neo.mjs 6.3.5 → 6.3.6
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/ServiceWorker.mjs +2 -2
- package/examples/ServiceWorker.mjs +2 -2
- package/examples/popover/MainContainer.mjs +1 -2
- package/package.json +1 -1
- package/src/DefaultConfig.mjs +2 -2
- package/src/component/Carousel.mjs +1 -1
- package/src/core/Base.mjs +2 -1
- package/src/plugin/Popover.mjs +18 -22
package/apps/ServiceWorker.mjs
CHANGED
@@ -18,7 +18,6 @@ class MainContainer extends ConfigurationViewport {
|
|
18
18
|
cls : ['examples-container-accordion']
|
19
19
|
}
|
20
20
|
|
21
|
-
|
22
21
|
/**
|
23
22
|
* @returns {*}
|
24
23
|
*/
|
@@ -49,7 +48,7 @@ class MainContainer extends ConfigurationViewport {
|
|
49
48
|
}]
|
50
49
|
}]
|
51
50
|
}]
|
52
|
-
})
|
51
|
+
})
|
53
52
|
}
|
54
53
|
}
|
55
54
|
|
package/package.json
CHANGED
package/src/DefaultConfig.mjs
CHANGED
@@ -236,12 +236,12 @@ const DefaultConfig = {
|
|
236
236
|
useVdomWorker: true,
|
237
237
|
/**
|
238
238
|
* buildScripts/injectPackageVersion.mjs will update this value
|
239
|
-
* @default '6.3.
|
239
|
+
* @default '6.3.6'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '6.3.
|
244
|
+
version: '6.3.6'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
@@ -22,7 +22,7 @@ class Carousel extends Component {
|
|
22
22
|
positionArray = ['neo-carousel--translate-x-full', 'neo-carousel-translate-x-0', 'neo-carousel-translate-x-full']
|
23
23
|
/**
|
24
24
|
* keeps track of the data for the onClickEvent
|
25
|
-
* @
|
25
|
+
* @member {Object} itemData={}
|
26
26
|
*/
|
27
27
|
itemData = {}
|
28
28
|
|
package/src/core/Base.mjs
CHANGED
package/src/plugin/Popover.mjs
CHANGED
@@ -8,7 +8,6 @@ import NeoArray from "../util/Array.mjs";
|
|
8
8
|
* @extends Neo.plugin.Base
|
9
9
|
*
|
10
10
|
* @example
|
11
|
-
*
|
12
11
|
* module : Button,
|
13
12
|
* width : 200,
|
14
13
|
* text : 'Click Me',
|
@@ -34,7 +33,7 @@ class Popover extends Base {
|
|
34
33
|
* @protected
|
35
34
|
* @static
|
36
35
|
*
|
37
|
-
* todo add more
|
36
|
+
* todo: add more
|
38
37
|
*/
|
39
38
|
static alignValues = ['bc-tc', 'tc-bc', 'tl-tr', 'tr-tl', 'cl-cr', 'cr-cl', null]
|
40
39
|
|
@@ -45,28 +44,26 @@ class Popover extends Base {
|
|
45
44
|
*/
|
46
45
|
className: 'Neo.plugin.Popover',
|
47
46
|
/**
|
48
|
-
* @member {String} ntype='popover'
|
47
|
+
* @member {String} ntype='plugin-popover'
|
49
48
|
* @protected
|
50
49
|
*/
|
51
50
|
ntype: 'plugin-popover',
|
52
|
-
|
53
|
-
|
54
51
|
/**
|
55
|
-
* Define popover to
|
52
|
+
* Define popover to popover target alignment
|
56
53
|
* Defaults to bottom center of popover is aligned to top center of owner
|
57
|
-
* @
|
54
|
+
* @member {String} align='bc-tc'
|
58
55
|
*/
|
59
56
|
align_: 'bc-tc',
|
60
57
|
/**
|
61
58
|
* Custom cls to add to the owner component
|
62
|
-
* @member {String}
|
59
|
+
* @member {String} popoverBaseCls='neo-popover'
|
63
60
|
*/
|
64
|
-
|
61
|
+
popoverBaseCls: 'neo-popover',
|
65
62
|
/**
|
66
63
|
* Custom cls to add to the owner component
|
67
|
-
* @member {String}
|
64
|
+
* @member {String} popovertargetCls='neo-popover-target'
|
68
65
|
*/
|
69
|
-
|
66
|
+
popovertargetCls: 'neo-popover-target'
|
70
67
|
}
|
71
68
|
|
72
69
|
/**
|
@@ -83,11 +80,10 @@ class Popover extends Base {
|
|
83
80
|
me.preparePopoverTarget();
|
84
81
|
me.addPopover();
|
85
82
|
|
86
|
-
me.addListeners()
|
83
|
+
me.addListeners()
|
87
84
|
}
|
88
85
|
|
89
86
|
/**
|
90
|
-
* Add listeners
|
91
87
|
* @protected
|
92
88
|
*/
|
93
89
|
addListeners() {
|
@@ -95,8 +91,8 @@ class Popover extends Base {
|
|
95
91
|
|
96
92
|
me.owner.addDomListeners([
|
97
93
|
{mouseover: me.onTargetMouseOver, scope: me},
|
98
|
-
{mouseout: me.onTargetMouseOut,
|
99
|
-
])
|
94
|
+
{mouseout : me.onTargetMouseOut, scope: me}
|
95
|
+
])
|
100
96
|
}
|
101
97
|
|
102
98
|
/**
|
@@ -124,7 +120,7 @@ class Popover extends Base {
|
|
124
120
|
}
|
125
121
|
};
|
126
122
|
|
127
|
-
parent.add(popover)
|
123
|
+
parent.add(popover)
|
128
124
|
}
|
129
125
|
|
130
126
|
/**
|
@@ -135,7 +131,7 @@ class Popover extends Base {
|
|
135
131
|
* @returns {String|null} value
|
136
132
|
*/
|
137
133
|
beforeSetAlign(value, oldValue) {
|
138
|
-
return this.testInputValue(value, oldValue, 'alignValues', 'align')
|
134
|
+
return this.testInputValue(value, oldValue, 'alignValues', 'align')
|
139
135
|
}
|
140
136
|
|
141
137
|
/**
|
@@ -144,7 +140,7 @@ class Popover extends Base {
|
|
144
140
|
* @protected
|
145
141
|
*/
|
146
142
|
onTargetMouseOut(data) {
|
147
|
-
Neo.main.addon.Popover.hide({id: data.component.id})
|
143
|
+
Neo.main.addon.Popover.hide({id: data.component.id})
|
148
144
|
}
|
149
145
|
|
150
146
|
/**
|
@@ -153,7 +149,7 @@ class Popover extends Base {
|
|
153
149
|
* @protected
|
154
150
|
*/
|
155
151
|
onTargetMouseOver(data) {
|
156
|
-
Neo.main.addon.Popover.show({id: data.component.id})
|
152
|
+
Neo.main.addon.Popover.show({id: data.component.id})
|
157
153
|
}
|
158
154
|
|
159
155
|
/**
|
@@ -165,7 +161,7 @@ class Popover extends Base {
|
|
165
161
|
targetVdom = target.vdom;
|
166
162
|
|
167
163
|
target.addCls(me.popovertargetCls);
|
168
|
-
targetVdom.popovertarget = me.popoverId
|
164
|
+
targetVdom.popovertarget = me.popoverId
|
169
165
|
}
|
170
166
|
|
171
167
|
/**
|
@@ -182,10 +178,10 @@ class Popover extends Base {
|
|
182
178
|
|
183
179
|
if (!NeoArray.hasItem(validValues, value)) {
|
184
180
|
Neo.logError(this.id + ' -> layout: supported values for "' + propertyName + '" are', validValues);
|
185
|
-
return oldValue
|
181
|
+
return oldValue
|
186
182
|
}
|
187
183
|
|
188
|
-
return value
|
184
|
+
return value
|
189
185
|
}
|
190
186
|
}
|
191
187
|
|