neo.mjs 6.5.7 → 6.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.
@@ -1,17 +1,17 @@
|
|
1
|
-
name:
|
1
|
+
name: Publish Package to npmjs
|
2
2
|
on:
|
3
3
|
release:
|
4
|
-
types: [
|
4
|
+
types: [ published ]
|
5
5
|
jobs:
|
6
6
|
build:
|
7
7
|
runs-on: ubuntu-latest
|
8
8
|
steps:
|
9
|
-
- uses: actions/checkout@
|
9
|
+
- uses: actions/checkout@v3
|
10
10
|
# Setup .npmrc file to publish to npm
|
11
|
-
- uses: actions/setup-node@
|
11
|
+
- uses: actions/setup-node@v3
|
12
12
|
with:
|
13
|
-
node-version: '
|
13
|
+
node-version: '16.x'
|
14
14
|
registry-url: 'https://registry.npmjs.org'
|
15
15
|
- run: npm publish
|
16
16
|
env:
|
17
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
17
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/apps/ServiceWorker.mjs
CHANGED
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "neo.mjs",
|
3
|
-
"version": "6.5.
|
3
|
+
"version": "6.5.9",
|
4
4
|
"description": "The webworkers driven UI framework",
|
5
5
|
"type": "module",
|
6
6
|
"repository": {
|
@@ -56,7 +56,7 @@
|
|
56
56
|
"inquirer": "^9.2.11",
|
57
57
|
"neo-jsdoc": "1.0.1",
|
58
58
|
"neo-jsdoc-x": "1.0.5",
|
59
|
-
"postcss": "^8.4.
|
59
|
+
"postcss": "^8.4.30",
|
60
60
|
"sass": "^1.67.0",
|
61
61
|
"showdown": "^2.1.0",
|
62
62
|
"webpack": "^5.88.2",
|
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.5.
|
239
|
+
* @default '6.5.9'
|
240
240
|
* @memberOf! module:Neo
|
241
241
|
* @name config.version
|
242
242
|
* @type String
|
243
243
|
*/
|
244
|
-
version: '6.5.
|
244
|
+
version: '6.5.9'
|
245
245
|
};
|
246
246
|
|
247
247
|
Object.assign(DefaultConfig, {
|
package/src/button/Base.mjs
CHANGED
@@ -256,6 +256,7 @@ class Base extends Component {
|
|
256
256
|
isArray = Array.isArray(value),
|
257
257
|
items = isArray ? value : value.items,
|
258
258
|
menuConfig = isArray ? {} : value,
|
259
|
+
model = me.getModel(),
|
259
260
|
|
260
261
|
config = {
|
261
262
|
module : module.default,
|
@@ -273,6 +274,10 @@ class Base extends Component {
|
|
273
274
|
config.items = items
|
274
275
|
}
|
275
276
|
|
277
|
+
if (model) {
|
278
|
+
config.model = {parent: model}
|
279
|
+
}
|
280
|
+
|
276
281
|
me.menuList = Neo.create(config)
|
277
282
|
})
|
278
283
|
}
|
package/src/menu/List.mjs
CHANGED
@@ -364,13 +364,13 @@ class List extends BaseList {
|
|
364
364
|
subMenuMap = me.subMenuMap || (me.subMenuMap = {}),
|
365
365
|
subMenuMapId = me.getMenuMapId(recordId),
|
366
366
|
subMenu = subMenuMap[subMenuMapId] || (subMenuMap[subMenuMapId] = Neo.create({
|
367
|
+
module : List,
|
367
368
|
align : {
|
368
369
|
target : nodeId,
|
369
370
|
edgeAlign : 'l0-r0',
|
370
371
|
axisLock : true,
|
371
372
|
targetMargin : me.subMenuGap
|
372
373
|
},
|
373
|
-
module : List,
|
374
374
|
appName : me.appName,
|
375
375
|
displayField : me.displayField,
|
376
376
|
floating : true,
|