neo.mjs 5.10.7 → 5.10.8

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.10.7'
23
+ * @member {String} version='5.10.8'
24
24
  */
25
- version: '5.10.7'
25
+ version: '5.10.8'
26
26
  }
27
27
 
28
28
  /**
@@ -7,7 +7,7 @@ import fs from 'fs-extra';
7
7
  import inquirer from 'inquirer';
8
8
  import path from 'path';
9
9
  import postcss from 'postcss';
10
- import sass from 'sass';
10
+ import * as sass from 'sass';
11
11
 
12
12
  const __dirname = path.resolve(),
13
13
  cwd = process.cwd(),
@@ -3,7 +3,7 @@ import chalk from 'chalk';
3
3
  import fs from 'fs-extra';
4
4
  import path from 'path';
5
5
  import postcss from 'postcss';
6
- import sass from 'sass';
6
+ import * as sass from 'sass';
7
7
 
8
8
  let cwd = process.cwd(),
9
9
  requireJson = path => JSON.parse(fs.readFileSync((path))),
@@ -20,9 +20,9 @@ class ServiceWorker extends ServiceBase {
20
20
  */
21
21
  singleton: true,
22
22
  /**
23
- * @member {String} version='5.10.7'
23
+ * @member {String} version='5.10.8'
24
24
  */
25
- version: '5.10.7'
25
+ version: '5.10.8'
26
26
  }
27
27
 
28
28
  /**
@@ -2,6 +2,7 @@ import CheckBox from '../../../src/form/field/CheckBox.mjs';
2
2
  import ConfigurationViewport from '../../ConfigurationViewport.mjs';
3
3
  import Radio from '../../../src/form/field/Radio.mjs';
4
4
  import NumberField from '../../../src/form/field/Number.mjs';
5
+ import SelectField from '../../../src/form/field/Select.mjs';
5
6
  import SplitButton from '../../../src/button/Split.mjs';
6
7
  import TextField from '../../../src/form/field/Text.mjs';
7
8
 
@@ -87,6 +88,22 @@ class MainContainer extends ConfigurationViewport {
87
88
  listeners : {change: me.onConfigChange.bind(me, 'text')},
88
89
  style : {marginTop: '10px'},
89
90
  value : me.exampleComponent.text
91
+ }, {
92
+ module : SelectField,
93
+ forceSelection: true,
94
+ labelText : 'ui',
95
+ listeners : {change: me.onConfigChange.bind(me, 'ui')},
96
+ style : {marginTop: '10px'},
97
+ value : me.exampleComponent.ui,
98
+
99
+ store: {
100
+ data: [
101
+ {id: 'ghost', name: 'ghost'},
102
+ {id: 'primary', name: 'primary'},
103
+ {id: 'secondary', name: 'secondary'},
104
+ {id: 'tertiary', name: 'tertiary'}
105
+ ]
106
+ }
90
107
  }, {
91
108
  module : NumberField,
92
109
  clearable : true,
@@ -104,6 +121,7 @@ class MainContainer extends ConfigurationViewport {
104
121
  module : SplitButton,
105
122
  iconCls: 'fa fa-home',
106
123
  text : 'Hello World',
124
+ ui : 'ghost',
107
125
 
108
126
  handler: data => {
109
127
  console.log('button click =>', data.component.id);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo.mjs",
3
- "version": "5.10.7",
3
+ "version": "5.10.8",
4
4
  "description": "The webworkers driven UI framework",
5
5
  "type": "module",
6
6
  "repository": {
@@ -56,7 +56,7 @@
56
56
  "neo-jsdoc": "^1.0.1",
57
57
  "neo-jsdoc-x": "^1.0.5",
58
58
  "postcss": "^8.4.24",
59
- "sass": "1.62.1",
59
+ "sass": "^1.63.3",
60
60
  "webpack": "^5.86.0",
61
61
  "webpack-cli": "^5.1.4",
62
62
  "webpack-dev-server": "4.15.1",
@@ -65,7 +65,7 @@
65
65
  },
66
66
  "devDependencies": {
67
67
  "siesta-lite": "5.5.2",
68
- "url": "^0.11.0"
68
+ "url": "^0.11.1"
69
69
  },
70
70
  "funding": {
71
71
  "type": "GitHub Sponsors",
@@ -236,12 +236,12 @@ const DefaultConfig = {
236
236
  useVdomWorker: true,
237
237
  /**
238
238
  * buildScripts/injectPackageVersion.mjs will update this value
239
- * @default '5.10.7'
239
+ * @default '5.10.8'
240
240
  * @memberOf! module:Neo
241
241
  * @name config.version
242
242
  * @type String
243
243
  */
244
- version: '5.10.7'
244
+ version: '5.10.8'
245
245
  };
246
246
 
247
247
  Object.assign(DefaultConfig, {
@@ -174,13 +174,18 @@ class Split extends Button {
174
174
  * @param {String|null} oldValue
175
175
  */
176
176
  afterSetUi(value, oldValue) {
177
- let triggerButton = this.triggerButton;
177
+ let me = this,
178
+ ntype = me.ntype,
179
+ triggerButton = me.triggerButton;
178
180
 
179
181
  if (triggerButton) {
180
182
  triggerButton.ui = value;
181
183
  }
182
184
 
185
+ // we do want to assign a button based ui to the vdomRoot
186
+ me.ntype = 'button';
183
187
  super.afterSetUi(value, oldValue);
188
+ me.ntype = ntype;
184
189
  }
185
190
 
186
191
  /**