@things-factory/menu-ui 10.1.302 → 10.1.304
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.
|
@@ -2,6 +2,7 @@ import { __decorate, __metadata } from "tslib";
|
|
|
2
2
|
import '@things-factory/form-ui';
|
|
3
3
|
import '@operato/data-grist';
|
|
4
4
|
import './menu-management-detail';
|
|
5
|
+
import '@things-factory/ai-assistant/dist-client/index.js';
|
|
5
6
|
import gql from 'graphql-tag';
|
|
6
7
|
import { css, html } from 'lit';
|
|
7
8
|
import { customElement, property, query } from 'lit/decorators.js';
|
|
@@ -38,7 +39,16 @@ let MenuManagement = class MenuManagement extends localize(i18next)(PageView) {
|
|
|
38
39
|
.mode=${isMobileDevice() ? 'LIST' : 'GRID'}
|
|
39
40
|
.config=${this.config}
|
|
40
41
|
.fetchHandler="${this.fetchHandler.bind(this)}"
|
|
41
|
-
|
|
42
|
+
>
|
|
43
|
+
<!-- What is done to the picked rows: over the column heads while rows are picked (ADR-0225). -->
|
|
44
|
+
<ox-assistant-selection-bar
|
|
45
|
+
slot="selection"
|
|
46
|
+
.gridOf=${() => this.dataGrist}
|
|
47
|
+
name=${i18next.t('title.menu_management')}
|
|
48
|
+
.assistant=${false}
|
|
49
|
+
.actions=${[{ id: 'delete', title: i18next.t('button.delete'), icon: 'delete_outline', emphasis: { danger: true }, action: () => this.delete() }]}
|
|
50
|
+
></ox-assistant-selection-bar>
|
|
51
|
+
</ox-grist>
|
|
42
52
|
`;
|
|
43
53
|
}
|
|
44
54
|
get context() {
|
|
@@ -49,11 +59,6 @@ let MenuManagement = class MenuManagement extends localize(i18next)(PageView) {
|
|
|
49
59
|
title: i18next.t('button.save'),
|
|
50
60
|
action: this.save.bind(this),
|
|
51
61
|
...CommonButtonStyles.save
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
title: i18next.t('button.delete'),
|
|
55
|
-
action: this.delete.bind(this),
|
|
56
|
-
...CommonButtonStyles.delete
|
|
57
62
|
}
|
|
58
63
|
]
|
|
59
64
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@things-factory/menu-ui",
|
|
3
|
-
"version": "10.1.
|
|
3
|
+
"version": "10.1.304",
|
|
4
4
|
"main": "dist-server/index.js",
|
|
5
5
|
"browser": "dist-client/index.js",
|
|
6
6
|
"files": [
|
|
@@ -48,12 +48,13 @@
|
|
|
48
48
|
"@operato/layout": "^10.0.0",
|
|
49
49
|
"@operato/oops": "^10.0.0",
|
|
50
50
|
"@operato/shell": "^10.29.69",
|
|
51
|
-
"@things-factory/
|
|
52
|
-
"@things-factory/
|
|
53
|
-
"@things-factory/
|
|
51
|
+
"@things-factory/ai-assistant": "^10.1.304",
|
|
52
|
+
"@things-factory/apptool-base": "^10.1.304",
|
|
53
|
+
"@things-factory/component-ui": "^10.1.304",
|
|
54
|
+
"@things-factory/fav-base": "^10.1.304",
|
|
54
55
|
"@things-factory/form-ui": "^10.1.281",
|
|
55
|
-
"@things-factory/i18n-base": "^10.1.
|
|
56
|
-
"@things-factory/menu-base": "^10.1.
|
|
56
|
+
"@things-factory/i18n-base": "^10.1.304",
|
|
57
|
+
"@things-factory/menu-base": "^10.1.304"
|
|
57
58
|
},
|
|
58
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "76ce38519069ba90190d69d2a9d6c130bc981cf0"
|
|
59
60
|
}
|