neo.mjs 5.5.7 → 5.5.9
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
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "neo.mjs",
|
3
|
-
"version": "5.5.
|
3
|
+
"version": "5.5.9",
|
4
4
|
"description": "The webworkers driven UI framework",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -48,7 +48,7 @@
|
|
48
48
|
"chalk": "^5.2.0",
|
49
49
|
"clean-webpack-plugin": "^4.0.0",
|
50
50
|
"commander": "^10.0.1",
|
51
|
-
"cssnano": "^6.0.
|
51
|
+
"cssnano": "^6.0.1",
|
52
52
|
"envinfo": "^7.8.1",
|
53
53
|
"fs-extra": "^11.1.1",
|
54
54
|
"highlightjs-line-numbers.js": "^2.8.0",
|
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 '5.5.
|
239
|
+
* @default '5.5.9'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '5.5.
|
244
|
+
version: '5.5.9'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/component/Base.mjs
CHANGED
@@ -537,8 +537,12 @@ class Base extends CoreBase {
|
|
537
537
|
* @protected
|
538
538
|
*/
|
539
539
|
afterSetHidden(value, oldValue) {
|
540
|
-
|
541
|
-
|
540
|
+
let me = this;
|
541
|
+
|
542
|
+
if (value && oldValue === undefined && me.hideMode === 'removeDom') {
|
543
|
+
me.getVdomRoot().removeDom = true;
|
544
|
+
} else if (!(!value && oldValue === undefined)) {
|
545
|
+
me[value ? 'hide' : 'show']();
|
542
546
|
}
|
543
547
|
}
|
544
548
|
|
package/src/form/field/Email.mjs
CHANGED
@@ -41,10 +41,11 @@ class Email extends Text {
|
|
41
41
|
*/
|
42
42
|
validate(silent=true) {
|
43
43
|
let me = this,
|
44
|
-
returnValue = super.validate(silent)
|
44
|
+
returnValue = super.validate(silent),
|
45
|
+
value = me.value;
|
45
46
|
|
46
47
|
if (returnValue) {
|
47
|
-
if (!Email.emailRegex.test(
|
48
|
+
if (value && !Email.emailRegex.test(value)) {
|
48
49
|
me._error = me.errorTextValidEmail;
|
49
50
|
returnValue = false;
|
50
51
|
}
|