neo.mjs 4.7.2 → 4.7.4
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/form/field/select/MainContainer.mjs +6 -0
- 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/resources/scss/src/button/Split.scss +3 -3
- package/resources/scss/src/form/field/Picker.scss +8 -0
- package/resources/scss/theme-dark/form/field/CheckBox.scss +1 -1
- package/src/button/Split.mjs +7 -5
- package/src/container/Viewport.mjs +6 -0
- package/src/form/field/Picker.mjs +18 -0
- package/src/main/DomEvents.mjs +8 -1
- 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: [{
|
@@ -32,6 +32,12 @@ class MainContainer extends ConfigurationViewport {
|
|
32
32
|
labelText: 'clearToOriginalValue',
|
33
33
|
listeners: {change: me.onConfigChange.bind(me, 'clearToOriginalValue')},
|
34
34
|
style : {marginTop: '10px'}
|
35
|
+
}, {
|
36
|
+
module : CheckBox,
|
37
|
+
checked : me.exampleComponent.editable,
|
38
|
+
labelText: 'editable',
|
39
|
+
listeners: {change: me.onConfigChange.bind(me, 'editable')},
|
40
|
+
style : {marginTop: '10px'}
|
35
41
|
}, {
|
36
42
|
module : CheckBox,
|
37
43
|
checked : me.exampleComponent.hideLabel,
|
@@ -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
@@ -1,5 +1,5 @@
|
|
1
1
|
.neo-split-button {
|
2
|
-
border : v(button-border);
|
2
|
+
border : v(button-border-width) solid v(button-border-color);
|
3
3
|
border-radius: v(button-border-radius);
|
4
4
|
display : flex;
|
5
5
|
width : fit-content;
|
@@ -10,7 +10,7 @@
|
|
10
10
|
padding: .5em;
|
11
11
|
|
12
12
|
&:last-child {
|
13
|
-
border-left: v(button-border);
|
13
|
+
border-left: v(button-border-width) solid v(button-border-color);
|
14
14
|
}
|
15
15
|
}
|
16
|
-
}
|
16
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
$neoMap: map-merge($neoMap, (
|
2
2
|
'checkboxfield-color' : #eee,
|
3
3
|
'checkboxfield-color-checked' : #64B5F6,
|
4
|
-
'checkboxfield-icon-font-family': "Font Awesome 5 Free",
|
4
|
+
'checkboxfield-icon-font-family': '"Font Awesome 5 Free"',
|
5
5
|
'checkboxfield-icon-font-size' : 14px,
|
6
6
|
'checkboxfield-label-top-margin': 0 0 3px
|
7
7
|
));
|
package/src/button/Split.mjs
CHANGED
@@ -43,7 +43,11 @@ class Split extends Button {
|
|
43
43
|
{cls: ['neo-split-button'], cn: [
|
44
44
|
{tag: 'button', cn: [
|
45
45
|
{tag: 'span', cls: ['neo-button-glyph']},
|
46
|
-
{tag: 'span', cls: ['neo-button-text']}
|
46
|
+
{tag: 'span', cls: ['neo-button-text']},
|
47
|
+
{cls: ['neo-button-badge']},
|
48
|
+
{cls: ['neo-button-ripple-wrapper'], cn: [
|
49
|
+
{cls: ['neo-button-ripple']}
|
50
|
+
]}
|
47
51
|
]}
|
48
52
|
]}
|
49
53
|
}}
|
@@ -110,10 +114,8 @@ class Split extends Button {
|
|
110
114
|
* @protected
|
111
115
|
*/
|
112
116
|
afterSetTriggerButtonIconCls(value, oldValue) {
|
113
|
-
|
114
|
-
|
115
|
-
if (me.triggerButton) {
|
116
|
-
me.triggerButton.iconCls = value;
|
117
|
+
if (this.triggerButton) {
|
118
|
+
this.triggerButton.iconCls = value;
|
117
119
|
}
|
118
120
|
}
|
119
121
|
|
@@ -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
|
*/
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import Container from '../../container/Base.mjs';
|
2
|
+
import NeoArray from '../../util/Array.mjs';
|
2
3
|
import PickerTrigger from './trigger/Picker.mjs';
|
3
4
|
import Text from './Text.mjs';
|
4
5
|
import VDomUtil from '../../util/VDom.mjs';
|
@@ -32,6 +33,10 @@ class Picker extends Text {
|
|
32
33
|
* @protected
|
33
34
|
*/
|
34
35
|
clientRects: null,
|
36
|
+
/**
|
37
|
+
* @member {Boolean} editable_=true
|
38
|
+
*/
|
39
|
+
editable_: true,
|
35
40
|
/**
|
36
41
|
* Additional used keys for the selection model
|
37
42
|
* @member {Object} keys
|
@@ -83,6 +88,19 @@ class Picker extends Text {
|
|
83
88
|
}]
|
84
89
|
}}
|
85
90
|
|
91
|
+
/**
|
92
|
+
* Triggered after the editable config got changed
|
93
|
+
* @param {Boolean} value
|
94
|
+
* @param {Boolean} oldValue
|
95
|
+
* @protected
|
96
|
+
*/
|
97
|
+
afterSetEditable(value, oldValue) {
|
98
|
+
let cls = this.cls;
|
99
|
+
|
100
|
+
NeoArray.toggle(cls, 'neo-not-editable', !value);
|
101
|
+
this.cls = cls;
|
102
|
+
}
|
103
|
+
|
86
104
|
/**
|
87
105
|
* @param {Boolean} silent
|
88
106
|
*/
|
package/src/main/DomEvents.mjs
CHANGED
@@ -251,8 +251,15 @@ class DomEvents extends Base {
|
|
251
251
|
* @returns {Object}
|
252
252
|
*/
|
253
253
|
getEventData(event) {
|
254
|
+
let path = event.composedPath();
|
255
|
+
|
256
|
+
if (path.length < 1) {
|
257
|
+
// our draggable implementation will generate paths, so we do need to check for them
|
258
|
+
path = event.path;
|
259
|
+
}
|
260
|
+
|
254
261
|
return {
|
255
|
-
path :
|
262
|
+
path : path.map(e => this.getTargetData(e)),
|
256
263
|
target : this.getTargetData(event.target),
|
257
264
|
timeStamp: event.timeStamp,
|
258
265
|
type : event.type
|
@@ -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;
|