neo.mjs 5.5.2 → 5.5.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.
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.5.2'
23
+ * @member {String} version='5.5.4'
24
24
  */
25
- version: '5.5.2'
25
+ version: '5.5.4'
26
26
  }
27
27
 
28
28
  /**
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.5.2'
23
+ * @member {String} version='5.5.4'
24
24
  */
25
- version: '5.5.2'
25
+ version: '5.5.4'
26
26
  }
27
27
 
28
28
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "5.5.2",
3
+ "version": "5.5.4",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -57,7 +57,7 @@
57
57
  "neo-jsdoc-x": "^1.0.5",
58
58
  "postcss": "^8.4.23",
59
59
  "sass": "^1.62.1",
60
- "webpack": "^5.80.0",
60
+ "webpack": "^5.81.0",
61
61
  "webpack-cli": "^5.0.2",
62
62
  "webpack-dev-server": "4.13.3",
63
63
  "webpack-hook-plugin": "^1.0.7",
@@ -19,6 +19,7 @@
19
19
  display : inline-block;
20
20
  font-family: v(checkboxfield-icon-font-family);
21
21
  font-size : v(checkboxfield-icon-font-size);
22
+ margin : v(checkboxfield-icon-margin);
22
23
  width : 20px;
23
24
  }
24
25
 
@@ -53,7 +54,7 @@
53
54
  }
54
55
 
55
56
  .neo-checkbox-label {
56
- display: block;
57
+ display: flex;
57
58
  margin : v(checkboxfield-label-top-margin);
58
59
  }
59
60
  }
@@ -3,6 +3,7 @@ $neoMap: map-merge($neoMap, (
3
3
  'checkboxfield-color-checked' : #64B5F6,
4
4
  'checkboxfield-icon-font-family': var(--fa-style-family-classic),
5
5
  'checkboxfield-icon-font-size' : 14px,
6
+ 'checkboxfield-icon-margin' : 0,
6
7
  'checkboxfield-label-top-margin': 0 0 3px
7
8
  ));
8
9
 
@@ -12,6 +13,7 @@ $neoMap: map-merge($neoMap, (
12
13
  --checkboxfield-color-checked : #{neo(checkboxfield-color-checked)};
13
14
  --checkboxfield-icon-font-family: #{neo(checkboxfield-icon-font-family)};
14
15
  --checkboxfield-icon-font-size : #{neo(checkboxfield-icon-font-size)};
16
+ --checkboxfield-icon-margin : #{neo(checkboxfield-icon-margin)};
15
17
  --checkboxfield-label-top-margin: #{neo(checkboxfield-label-top-margin)};
16
18
  }
17
19
  }
@@ -3,6 +3,7 @@ $neoMap: map-merge($neoMap, (
3
3
  'checkboxfield-color-checked' : #1c60a0,
4
4
  'checkboxfield-icon-font-family': var(--fa-style-family-classic),
5
5
  'checkboxfield-icon-font-size' : 14px,
6
+ 'checkboxfield-icon-margin' : 0,
6
7
  'checkboxfield-label-top-margin': 0 0 3px
7
8
  ));
8
9
 
@@ -12,6 +13,7 @@ $neoMap: map-merge($neoMap, (
12
13
  --checkboxfield-color-checked : #{neo(checkboxfield-color-checked)};
13
14
  --checkboxfield-icon-font-family: #{neo(checkboxfield-icon-font-family)};
14
15
  --checkboxfield-icon-font-size : #{neo(checkboxfield-icon-font-size)};
16
+ --checkboxfield-icon-margin : #{neo(checkboxfield-icon-margin)};
15
17
  --checkboxfield-label-top-margin: #{neo(checkboxfield-label-top-margin)};
16
18
  }
17
19
  }
@@ -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.2'
239
+ * @default '5.5.4'
240
240
  * @memberOf! module:Neo
241
241
  * @name config.version
242
242
  * @type String
243
243
  */
244
- version: '5.5.2'
244
+ version: '5.5.4'
245
245
  };
246
246
 
247
247
  Object.assign(DefaultConfig, {
@@ -89,6 +89,20 @@ class DateField extends Picker {
89
89
  });
90
90
  }
91
91
 
92
+ /**
93
+ * Triggered after the value config got changed
94
+ * @param {String} value
95
+ * @param {String} oldValue
96
+ * @protected
97
+ */
98
+ afterSetValue(value, oldValue) {
99
+ super.afterSetValue(value, oldValue);
100
+
101
+ if (oldValue !== undefined) {
102
+ this.dateSelector.value = value
103
+ }
104
+ }
105
+
92
106
  /**
93
107
  * @returns {Neo.component.DateSelector}
94
108
  */
@@ -150,16 +164,8 @@ class DateField extends Picker {
150
164
  * @protected
151
165
  */
152
166
  onInputValueChange(data) {
153
- let me = this,
154
- value = data.value,
155
- oldValue = me.value;
156
-
157
167
  if (data.valid === true) {
158
- super.onInputValueChange(data);
159
-
160
- if (value !== oldValue) {
161
- me.dateSelector.value = value;
162
- }
168
+ super.onInputValueChange(data)
163
169
  }
164
170
  }
165
171