neo.mjs 4.7.2 → 4.7.3
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/covid/view/MainContainer.mjs +0 -4
- package/apps/realworld/view/MainContainer.mjs +0 -4
- package/apps/realworld2/view/MainContainer.mjs +0 -5
- package/apps/sharedcovid/view/GalleryContainer.mjs +0 -4
- package/apps/sharedcovid/view/HelixContainer.mjs +0 -4
- package/apps/sharedcovid/view/MainContainer.mjs +0 -4
- package/apps/sharedcovid/view/TableContainer.mjs +0 -4
- package/apps/sharedcovidchart/MainContainer.mjs +0 -4
- package/apps/sharedcovidgallery/MainContainer.mjs +0 -4
- package/apps/sharedcovidhelix/MainContainer.mjs +0 -4
- package/apps/sharedcovidmap/MainContainer.mjs +0 -4
- package/apps/shareddialog/view/MainContainer.mjs +0 -4
- package/apps/shareddialog2/view/MainContainer.mjs +0 -4
- package/apps/website/view/MainContainer.mjs +0 -4
- package/docs/app/view/MainContainer.mjs +0 -4
- package/examples/ConfigurationViewport.mjs +0 -4
- package/examples/calendar/weekview/MainContainer.mjs +0 -5
- package/examples/charts/MainContainer.mjs +0 -1
- package/examples/component/carousel/MainContainer.mjs +0 -1
- package/examples/component/circle/MainContainer.mjs +0 -1
- package/examples/component/coronaGallery/MainContainer.mjs +0 -4
- package/examples/component/coronaHelix/MainContainer.mjs +0 -4
- package/examples/component/gallery/MainContainer.mjs +0 -4
- package/examples/component/helix/MainContainer.mjs +0 -4
- package/examples/component/mwc/buttons/MainContainer.mjs +0 -1
- package/examples/component/mwc/textFields/MainContainer.mjs +0 -1
- package/examples/core/config/MainContainer.mjs +0 -4
- package/examples/dashboard/MainContainer.mjs +0 -1
- package/examples/dialog/MainContainer.mjs +0 -1
- package/examples/grid/covid/MainContainer.mjs +0 -4
- package/examples/list/animate/MainContainer.mjs +0 -4
- package/examples/model/advanced/MainContainer.mjs +0 -4
- package/examples/model/dialog/MainContainer.mjs +0 -4
- package/examples/model/extendedClass/MainContainer.mjs +0 -4
- package/examples/model/inline/MainContainer.mjs +0 -4
- package/examples/model/inlineNoModel/MainContainer.mjs +0 -4
- package/examples/model/nestedData/MainContainer.mjs +0 -4
- package/examples/model/table/MainContainer.mjs +0 -4
- package/examples/preloadingAssets/view/MainContainer.mjs +0 -4
- package/examples/sitemap/MainContainer.mjs +0 -1
- package/examples/table/covid/MainContainer.mjs +0 -4
- package/examples/tableFiltering/MainContainer.mjs +0 -1
- package/examples/tablePerformance/Viewport.mjs +0 -1
- package/examples/tableStore/MainContainer.mjs +0 -1
- package/examples/toolbar/breadcrumb/app.mjs +6 -0
- package/examples/toolbar/breadcrumb/index.html +11 -0
- package/examples/toolbar/breadcrumb/neo-config.json +6 -0
- package/examples/toolbar/breadcrumb/view/MainContainer.mjs +35 -0
- package/examples/toolbar/paging/view/MainContainer.mjs +0 -4
- package/examples/viewport/MainContainer.mjs +0 -1
- package/package.json +1 -1
- package/src/container/Viewport.mjs +6 -0
- package/src/toolbar/Breadcrumb.mjs +51 -0
@@ -17,11 +17,6 @@ class MainContainer extends Viewport {
|
|
17
17
|
* @protected
|
18
18
|
*/
|
19
19
|
className: 'RealWorld2.view.MainContainer',
|
20
|
-
/**
|
21
|
-
* @member {Boolean} autoMount=true
|
22
|
-
* @protected
|
23
|
-
*/
|
24
|
-
autoMount: true,
|
25
20
|
/**
|
26
21
|
* @member {String[]} baseCls=['rw2-home-container','neo-viewport']
|
27
22
|
*/
|
@@ -16,10 +16,6 @@ class GalleryContainer extends Container {
|
|
16
16
|
* @protected
|
17
17
|
*/
|
18
18
|
className: 'SharedCovid.view.GalleryContainer',
|
19
|
-
/**
|
20
|
-
* @member {Boolean} autoMount=true
|
21
|
-
*/
|
22
|
-
autoMount: true,
|
23
19
|
/**
|
24
20
|
* @member {String[]} baseCls=['neo-gallery-maincontainer','neo-viewport']
|
25
21
|
*/
|
@@ -16,10 +16,6 @@ class HelixContainer extends Container {
|
|
16
16
|
* @protected
|
17
17
|
*/
|
18
18
|
className: 'SharedCovid.view.HelixContainer',
|
19
|
-
/**
|
20
|
-
* @member {Boolean} autoMount=true
|
21
|
-
*/
|
22
|
-
autoMount: true,
|
23
19
|
/**
|
24
20
|
* @member {String[]} baseCls=['neo-helix-maincontainer','neo-viewport']
|
25
21
|
*/
|
@@ -16,10 +16,6 @@ class MainContainer extends Viewport {
|
|
16
16
|
* @protected
|
17
17
|
*/
|
18
18
|
className: 'SharedCovid.view.MainContainer',
|
19
|
-
/**
|
20
|
-
* @member {Boolean} autoMount=true
|
21
|
-
*/
|
22
|
-
autoMount: true,
|
23
19
|
/**
|
24
20
|
* @member {String[]} baseCls=['covid-viewport','neo-viewport']
|
25
21
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'SharedDialog.view.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {Neo.controller.Component} controller=MainContainerController
|
24
20
|
*/
|
@@ -14,10 +14,6 @@ class MainContainer extends Viewport {
|
|
14
14
|
* @protected
|
15
15
|
*/
|
16
16
|
className: 'SharedDialog2.view.MainContainer',
|
17
|
-
/**
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
17
|
/**
|
22
18
|
* @member {Neo.controller.Component} controller=MainContainerController
|
23
19
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Website.view.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {String[]} baseCls=['website-main-container','neo-viewport']
|
24
20
|
*/
|
@@ -13,11 +13,6 @@ class MainContainer extends Viewport {
|
|
13
13
|
* @protected
|
14
14
|
*/
|
15
15
|
className: 'Neo.examples.calendar.weekview.MainContainer',
|
16
|
-
/**
|
17
|
-
* Value for the component.Base autoMount_ config
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
16
|
/**
|
22
17
|
* Value for the container.Base layout_ config
|
23
18
|
* @member {Object} layout={ntype: 'fit'}
|
@@ -10,7 +10,6 @@ import RangeField from '../../../src/form/field/Range.mjs';
|
|
10
10
|
class MainContainer extends ConfigurationViewport {
|
11
11
|
static getConfig() {return {
|
12
12
|
className: 'Neo.examples.component.carousel.MainContainer',
|
13
|
-
autoMount: true,
|
14
13
|
layout : {ntype: 'hbox', align: 'stretch'}
|
15
14
|
}}
|
16
15
|
|
@@ -10,7 +10,6 @@ import RangeField from '../../../src/form/field/Range.mjs';
|
|
10
10
|
class MainContainer extends ConfigurationViewport {
|
11
11
|
static getConfig() {return {
|
12
12
|
className: 'Neo.examples.component.circle.MainContainer',
|
13
|
-
autoMount: true,
|
14
13
|
layout : {ntype: 'hbox', align: 'stretch'}
|
15
14
|
}}
|
16
15
|
|
@@ -14,10 +14,6 @@ class MainContainer extends Viewport {
|
|
14
14
|
* @protected
|
15
15
|
*/
|
16
16
|
className: 'Neo.examples.component.coronaGallery.MainContainer',
|
17
|
-
/**
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
17
|
/**
|
22
18
|
* @member {String[]} baseCls=['neo-gallery-maincontainer','neo-viewport']
|
23
19
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Neo.examples.component.coronaHelix.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {String[]} baseCls=['neo-helix-maincontainer','neo-viewport']
|
24
20
|
*/
|
@@ -12,10 +12,6 @@ import Viewport from '../../../src/container/Viewport.mjs';
|
|
12
12
|
class MainContainer extends Viewport {
|
13
13
|
static getConfig() {return {
|
14
14
|
className: 'Neo.examples.component.gallery.MainContainer',
|
15
|
-
/**
|
16
|
-
* @member {Boolean} autoMount=true
|
17
|
-
*/
|
18
|
-
autoMount: true,
|
19
15
|
/**
|
20
16
|
* @member {Neo.component.Gallery|null} gallery=null
|
21
17
|
*/
|
@@ -13,10 +13,6 @@ import Viewport from '../../../src/container/Viewport.mjs';
|
|
13
13
|
class MainContainer extends Viewport {
|
14
14
|
static getConfig() {return {
|
15
15
|
className: 'Neo.examples.component.helix.MainContainer',
|
16
|
-
/**
|
17
|
-
* @member {Boolean} autoMount=true
|
18
|
-
*/
|
19
|
-
autoMount: true,
|
20
16
|
/**
|
21
17
|
* @member {Neo.component.Helix|null} helix=null
|
22
18
|
*/
|
@@ -9,7 +9,6 @@ import Viewport from '../../../../src/container/Viewport.mjs';
|
|
9
9
|
class MainContainer extends Viewport {
|
10
10
|
static getConfig() {return {
|
11
11
|
className: 'Neo.examples.component.mwc.buttons.MainContainer',
|
12
|
-
autoMount: true,
|
13
12
|
layout : {ntype: 'fit'},
|
14
13
|
|
15
14
|
items: [{
|
@@ -9,7 +9,6 @@ import Viewport from '../../../../src/container/Viewport.mjs';
|
|
9
9
|
class MainContainer extends Viewport {
|
10
10
|
static getConfig() {return {
|
11
11
|
className: 'Neo.examples.component.mwc.textFields.MainContainer',
|
12
|
-
autoMount: true,
|
13
12
|
layout : {ntype: 'fit'},
|
14
13
|
|
15
14
|
items: [{
|
@@ -18,10 +18,6 @@ class MainContainer extends Viewport {
|
|
18
18
|
* @protected
|
19
19
|
*/
|
20
20
|
className: 'Neo.examples.list.animate.MainContainer',
|
21
|
-
/**
|
22
|
-
* @member {Boolean} autoMount=true
|
23
|
-
*/
|
24
|
-
autoMount: true,
|
25
21
|
/**
|
26
22
|
* @member {Neo.controller.Component} controller=MainContainerController
|
27
23
|
*/
|
@@ -16,10 +16,6 @@ class MainContainer extends Viewport {
|
|
16
16
|
* @protected
|
17
17
|
*/
|
18
18
|
className: 'Neo.examples.model.advanced.MainContainer',
|
19
|
-
/**
|
20
|
-
* @member {Boolean} autoMount=true
|
21
|
-
*/
|
22
|
-
autoMount: true,
|
23
19
|
/**
|
24
20
|
* @member {Neo.controller.Component} controller=MainContainerController
|
25
21
|
*/
|
@@ -14,10 +14,6 @@ class MainContainer extends Viewport {
|
|
14
14
|
* @protected
|
15
15
|
*/
|
16
16
|
className: 'Neo.examples.model.dialog.MainContainer',
|
17
|
-
/**
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
17
|
/**
|
22
18
|
* @member {Neo.controller.Component} controller=MainContainerController
|
23
19
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Neo.examples.model.extendedClass.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {Neo.controller.Component} controller=MainContainerController
|
24
20
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Neo.examples.model.inline.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {Neo.controller.Component} controller=MainContainerController
|
24
20
|
*/
|
@@ -14,10 +14,6 @@ class MainContainer extends Viewport {
|
|
14
14
|
* @protected
|
15
15
|
*/
|
16
16
|
className: 'Neo.examples.model.inlineNoModel.MainContainer',
|
17
|
-
/**
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
17
|
/**
|
22
18
|
* @member {Neo.controller.Component} controller=MainContainerController
|
23
19
|
*/
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Neo.examples.model.nestedData.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {Neo.controller.Component} controller=MainContainerController
|
24
20
|
*/
|
@@ -14,10 +14,6 @@ class MainContainer extends Viewport {
|
|
14
14
|
* @protected
|
15
15
|
*/
|
16
16
|
className: 'Neo.examples.preloadingAssets.view.MainContainer',
|
17
|
-
/**
|
18
|
-
* @member {Boolean} autoMount=true
|
19
|
-
*/
|
20
|
-
autoMount: true,
|
21
17
|
/**
|
22
18
|
* @member {Neo.controller.Component} controller=MainContainerController
|
23
19
|
*/
|
@@ -9,7 +9,6 @@ import SiteMapComponent from '../../src/sitemap/Component.mjs';
|
|
9
9
|
class MainContainer extends ConfigurationViewport {
|
10
10
|
static getConfig() {return {
|
11
11
|
className: 'Neo.examples.sitemap.MainContainer',
|
12
|
-
autoMount: true,
|
13
12
|
layout : {ntype: 'hbox', align: 'stretch'}
|
14
13
|
}}
|
15
14
|
|
@@ -16,7 +16,6 @@ import Viewport from '../../src/container/Viewport.mjs';
|
|
16
16
|
class MainContainer extends Viewport {
|
17
17
|
static getConfig() {return {
|
18
18
|
className: 'Neo.examples.tableFiltering.MainContainer',
|
19
|
-
autoMount: true,
|
20
19
|
layout : {ntype: 'vbox', align: 'stretch'},
|
21
20
|
style : {padding: '20px'},
|
22
21
|
|
@@ -10,7 +10,6 @@ import MainContainer3 from './MainContainer3.mjs';
|
|
10
10
|
class Viewport extends BaseViewport {
|
11
11
|
static getConfig() {return {
|
12
12
|
className: 'Neo.examples.tablePerformance.Viewport',
|
13
|
-
autoMount: true,
|
14
13
|
style : {overflow: 'hidden', padding: '10px'},
|
15
14
|
|
16
15
|
layout: {
|
@@ -15,7 +15,6 @@ import Viewport from '../../src/container/Viewport.mjs';
|
|
15
15
|
class MainContainer extends Viewport {
|
16
16
|
static getConfig() {return {
|
17
17
|
className: 'Neo.examples.tableStore.MainContainer',
|
18
|
-
autoMount: true,
|
19
18
|
layout : {ntype: 'vbox', align: 'stretch'},
|
20
19
|
style : {padding: '20px'},
|
21
20
|
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<!DOCTYPE HTML>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta name="viewport" content="width=device-width, initial-scale=1">
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
<title>Neo Breadcrumb Toolbar</title>
|
7
|
+
</head>
|
8
|
+
<body>
|
9
|
+
<script src="../../../src/MicroLoader.mjs" type="module"></script>
|
10
|
+
</body>
|
11
|
+
</html>
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import BreadcrumbToolbar from '../../../../src/toolbar/Breadcrumb.mjs';
|
2
|
+
import Viewport from '../../../../src/container/Viewport.mjs';
|
3
|
+
|
4
|
+
/**
|
5
|
+
* @class Neo.examples.toolbar.breadcrumb.view.MainContainer
|
6
|
+
* @extends Neo.container.Viewport
|
7
|
+
*/
|
8
|
+
class MainContainer extends Viewport {
|
9
|
+
static getConfig() {return {
|
10
|
+
/**
|
11
|
+
* @member {String} className='Neo.examples.toolbar.breadcrumb.view.MainContainer'
|
12
|
+
* @protected
|
13
|
+
*/
|
14
|
+
className: 'Neo.examples.toolbar.breadcrumb.view.MainContainer',
|
15
|
+
/**
|
16
|
+
* @member {Object[]} items
|
17
|
+
*/
|
18
|
+
items: [{
|
19
|
+
module: BreadcrumbToolbar,
|
20
|
+
flex : 'none'
|
21
|
+
}],
|
22
|
+
/**
|
23
|
+
* @member {Object} layout={ntype:'vbox',align:'stretch'}
|
24
|
+
*/
|
25
|
+
layout: {ntype: 'vbox', align: 'stretch'},
|
26
|
+
/**
|
27
|
+
* @member {Object} style={padding:'20px'}
|
28
|
+
*/
|
29
|
+
style: {padding: '20px'}
|
30
|
+
}}
|
31
|
+
}
|
32
|
+
|
33
|
+
Neo.applyClassConfig(MainContainer);
|
34
|
+
|
35
|
+
export default MainContainer;
|
@@ -15,10 +15,6 @@ class MainContainer extends Viewport {
|
|
15
15
|
* @protected
|
16
16
|
*/
|
17
17
|
className: 'Neo.examples.toolbar.paging.view.MainContainer',
|
18
|
-
/**
|
19
|
-
* @member {Boolean} autoMount=true
|
20
|
-
*/
|
21
|
-
autoMount: true,
|
22
18
|
/**
|
23
19
|
* @member {Neo.controller.Component} controller=MainContainerController
|
24
20
|
*/
|
package/package.json
CHANGED
@@ -21,6 +21,12 @@ class Viewport extends Container {
|
|
21
21
|
* @member {Boolean} applyBodyCls=true
|
22
22
|
*/
|
23
23
|
applyBodyCls: true,
|
24
|
+
/**
|
25
|
+
* Assuming that a Viewport is the top level view of your app, and you want to mount it right away.
|
26
|
+
* Could be without any items. Use false otherwise.
|
27
|
+
* @member {Boolean} autoMount=true
|
28
|
+
*/
|
29
|
+
autoMount: true,
|
24
30
|
/**
|
25
31
|
* @member {String[]} baseCls=['neo-viewport']
|
26
32
|
*/
|
@@ -0,0 +1,51 @@
|
|
1
|
+
import ClassSystemUtil from '../util/ClassSystem.mjs';
|
2
|
+
import Store from '../data/Store.mjs';
|
3
|
+
import Toolbar from '../toolbar/Base.mjs';
|
4
|
+
|
5
|
+
/**
|
6
|
+
* @class Neo.toolbar.Breadcrumb
|
7
|
+
* @extends Neo.toolbar.Base
|
8
|
+
*/
|
9
|
+
class Breadcrumb extends Toolbar {
|
10
|
+
static getConfig() {return {
|
11
|
+
/**
|
12
|
+
* @member {String} className='Neo.toolbar.Breadcrumb'
|
13
|
+
* @protected
|
14
|
+
*/
|
15
|
+
className: 'Neo.toolbar.Breadcrumb',
|
16
|
+
/**
|
17
|
+
* @member {Object[]} items
|
18
|
+
*/
|
19
|
+
items: [],
|
20
|
+
/**
|
21
|
+
* @member {Neo.data.Store|Object} store_=null
|
22
|
+
*/
|
23
|
+
store_: null
|
24
|
+
}}
|
25
|
+
|
26
|
+
/**
|
27
|
+
* Triggered after the store config got changed
|
28
|
+
* @param {Neo.data.Store|Object} value
|
29
|
+
* @param {Neo.data.Store|Object} oldValue
|
30
|
+
* @protected
|
31
|
+
*/
|
32
|
+
afterSetStore(value, oldValue) {
|
33
|
+
|
34
|
+
}
|
35
|
+
|
36
|
+
/**
|
37
|
+
* Triggered before the store config gets changed
|
38
|
+
* @param {Neo.data.Store|Object} value
|
39
|
+
* @param {Neo.data.Store|Object} oldValue
|
40
|
+
* @returns {Neo.data.Store}
|
41
|
+
* @protected
|
42
|
+
*/
|
43
|
+
beforeSetStore(value, oldValue) {
|
44
|
+
oldValue?.destroy();
|
45
|
+
return ClassSystemUtil.beforeSetInstance(value, Store);
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
Neo.applyClassConfig(Breadcrumb);
|
50
|
+
|
51
|
+
export default Breadcrumb;
|