@tachybase/client 0.23.35 → 0.23.40
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/es/application/schema-initializer/components/SchemaInitializerButton.mjs +1 -1
- package/es/built-in/admin-layout/AdminLayout.mjs +15 -1
- package/es/built-in/index.mjs +0 -5
- package/es/index.d.ts +0 -1
- package/es/index.mjs +0 -1
- package/es/schema-component/antd/menu/AdminMenu.mjs +5 -1
- package/es/schema-component/antd/menu/AdminMenu.style.mjs +3 -3
- package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -0
- package/es/schema-component/antd/menu/Menu.Designer.mjs +4 -3
- package/es/schema-component/antd/menu/Menu.mjs +24 -30
- package/es/schema-component/antd/menu/MenuAdd.d.ts +1 -0
- package/es/schema-component/antd/menu/MenuAdd.mjs +18 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.d.ts +7 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.mjs +41 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.style.d.ts +3 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +25 -0
- package/es/schema-component/common/sortable-item/SortableItem.d.ts +1 -0
- package/lib/application/schema-initializer/components/SchemaInitializerButton.js +1 -1
- package/lib/built-in/admin-layout/AdminLayout.js +15 -1
- package/lib/built-in/index.js +99 -110
- package/lib/index.js +71 -86
- package/lib/schema-component/antd/menu/AdminMenu.js +5 -1
- package/lib/schema-component/antd/menu/AdminMenu.style.js +3 -3
- package/lib/schema-component/antd/menu/Menu.Designer.js +4 -2
- package/lib/schema-component/antd/menu/Menu.js +24 -30
- package/lib/{built-in/assistant/context.js → schema-component/antd/menu/MenuAdd.js} +18 -6
- package/lib/schema-component/antd/menu/{MenuSearch.js → MenuSearchAdd.js} +30 -21
- package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +59 -0
- package/package.json +7 -7
- package/es/built-in/assistant/Assistant.provider.d.ts +0 -3
- package/es/built-in/assistant/Assistant.provider.mjs +0 -28
- package/es/built-in/assistant/context.d.ts +0 -3
- package/es/built-in/assistant/context.mjs +0 -6
- package/es/built-in/assistant/index.d.ts +0 -6
- package/es/built-in/assistant/index.mjs +0 -9
- package/es/schema-component/antd/menu/MenuSearch.d.ts +0 -5
- package/es/schema-component/antd/menu/MenuSearch.mjs +0 -32
- package/lib/built-in/assistant/Assistant.provider.js +0 -62
- package/lib/built-in/assistant/index.js +0 -94
|
@@ -39,38 +39,47 @@ var __webpack_require__ = {};
|
|
|
39
39
|
var __webpack_exports__ = {};
|
|
40
40
|
__webpack_require__.r(__webpack_exports__);
|
|
41
41
|
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
-
|
|
42
|
+
MenuSearchAdd: ()=>MenuSearchAdd
|
|
43
43
|
});
|
|
44
44
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
45
|
const external_antd_namespaceObject = require("antd");
|
|
46
46
|
const external_lodash_namespaceObject = require("lodash");
|
|
47
47
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
48
48
|
const external_index_js_namespaceObject = require("../../../index.js");
|
|
49
|
-
const
|
|
50
|
-
|
|
49
|
+
const external_MenuAdd_js_namespaceObject = require("./MenuAdd.js");
|
|
50
|
+
const external_MenuSearchAdd_style_js_namespaceObject = require("./MenuSearchAdd.style.js");
|
|
51
|
+
const MenuSearchAdd = (props)=>{
|
|
52
|
+
const { designable, dn, setSearchMenuTitle } = props;
|
|
51
53
|
const { t } = (0, external_index_js_namespaceObject.useTranslation)();
|
|
52
|
-
const
|
|
53
|
-
|
|
54
|
+
const { styles } = (0, external_MenuSearchAdd_style_js_namespaceObject.useStyles)();
|
|
55
|
+
const handleChange = external_lodash_default().debounce((event)=>{
|
|
56
|
+
event.stopPropagation();
|
|
57
|
+
const searchValue = event.target.value.trim();
|
|
58
|
+
setSearchMenuTitle(searchValue);
|
|
54
59
|
}, 500);
|
|
55
60
|
const handleSearch = (value, event)=>{
|
|
56
61
|
event.stopPropagation();
|
|
57
|
-
|
|
58
|
-
};
|
|
59
|
-
const handleClear = (event)=>{
|
|
60
|
-
if ('' === event.target.value) {
|
|
61
|
-
event.stopPropagation();
|
|
62
|
-
debounceChangeValue('');
|
|
63
|
-
}
|
|
62
|
+
external_lodash_default().debounce(setSearchMenuTitle, 500)(value.trim());
|
|
64
63
|
};
|
|
65
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
64
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
65
|
+
className: styles.menuSearchAdd,
|
|
66
|
+
children: [
|
|
67
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Input.Search, {
|
|
68
|
+
allowClear: true,
|
|
69
|
+
placeholder: t('search Menu'),
|
|
70
|
+
prefix: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.Icon, {
|
|
71
|
+
type: "SearchOutlined"
|
|
72
|
+
}),
|
|
73
|
+
onChange: handleChange,
|
|
74
|
+
onSearch: handleSearch
|
|
75
|
+
}),
|
|
76
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
77
|
+
className: "menu-add-wrapper",
|
|
78
|
+
children: designable && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_MenuAdd_js_namespaceObject.MenuAdd, {
|
|
79
|
+
dn: dn
|
|
80
|
+
})
|
|
81
|
+
})
|
|
82
|
+
]
|
|
74
83
|
});
|
|
75
84
|
};
|
|
76
85
|
var __webpack_export_target__ = exports;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
useStyles: ()=>useStyles
|
|
30
|
+
});
|
|
31
|
+
const external_antd_style_namespaceObject = require("antd-style");
|
|
32
|
+
function _tagged_template_literal(strings, raw) {
|
|
33
|
+
if (!raw) raw = strings.slice(0);
|
|
34
|
+
return Object.freeze(Object.defineProperties(strings, {
|
|
35
|
+
raw: {
|
|
36
|
+
value: Object.freeze(raw)
|
|
37
|
+
}
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
function _templateObject() {
|
|
41
|
+
const data = _tagged_template_literal([
|
|
42
|
+
"\n /* NOTE: 这里的样式是为了让搜索框的样式, 避免上层 antd 写死的 padding-left: 24px 的影响 */\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n\n /* NOTE: 放这三个样式是为了提升选择器优先级, 覆盖掉 antd 的默认样式 */\n .ant-input-outlined.ant-input-outlined.ant-input-outlined {\n background-color: #f9f9f9;\n border-radius: 5px;\n border: none;\n box-shadow: none;\n }\n\n /* 移除 antd 默认的后置搜索图标 */\n .ant-input-group-addon {\n display: none;\n }\n\n .menu-add-wrapper {\n .ant-dropdown-trigger {\n display: grid;\n place-items: center;\n\n width: 30px;\n /* 这里是为了和前边元素保持对齐, antd 组件写死了高度 */\n height: 28px;\n\n cursor: pointer;\n\n :hover,\n :active {\n border-radius: 5px;\n color: #ffffff;\n background-color: #f4f4f4;\n }\n }\n }\n "
|
|
43
|
+
]);
|
|
44
|
+
_templateObject = function() {
|
|
45
|
+
return data;
|
|
46
|
+
};
|
|
47
|
+
return data;
|
|
48
|
+
}
|
|
49
|
+
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
50
|
+
let { css, token } = param;
|
|
51
|
+
return {
|
|
52
|
+
menuSearchAdd: css(_templateObject())
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
var __webpack_export_target__ = exports;
|
|
56
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
57
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
58
|
+
value: true
|
|
59
|
+
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/client",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.40",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"react-zoom-pan-pinch": "^3.6.1",
|
|
65
65
|
"sanitize-html": "2.14.0",
|
|
66
66
|
"use-deep-compare-effect": "^1.8.1",
|
|
67
|
-
"@tachybase/components": "0.23.
|
|
68
|
-
"@tachybase/
|
|
69
|
-
"@tachybase/
|
|
70
|
-
"@tachybase/
|
|
71
|
-
"@tachybase/
|
|
72
|
-
"@tachybase/
|
|
67
|
+
"@tachybase/components": "0.23.40",
|
|
68
|
+
"@tachybase/evaluators": "0.23.40",
|
|
69
|
+
"@tachybase/requirejs": "0.23.40",
|
|
70
|
+
"@tachybase/schema": "0.23.40",
|
|
71
|
+
"@tachybase/utils": "0.23.40",
|
|
72
|
+
"@tachybase/sdk": "0.23.40"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@testing-library/react": "^14.3.1",
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__acl_index_mjs__ from "../acl/index.mjs";
|
|
5
|
-
import * as __WEBPACK_EXTERNAL_MODULE__pinned_list_index_mjs__ from "../pinned-list/index.mjs";
|
|
6
|
-
const AssistantProvider = (param)=>{
|
|
7
|
-
let { children } = param;
|
|
8
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.Fragment, {
|
|
9
|
-
children: [
|
|
10
|
-
children,
|
|
11
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__acl_index_mjs__.ACLRolesCheckProvider, {
|
|
12
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.FloatButton.Group, {
|
|
13
|
-
trigger: "click",
|
|
14
|
-
type: "default",
|
|
15
|
-
style: {
|
|
16
|
-
right: 24,
|
|
17
|
-
zIndex: 1250
|
|
18
|
-
},
|
|
19
|
-
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.ToolOutlined, {}),
|
|
20
|
-
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__pinned_list_index_mjs__.PinnedPluginList, {
|
|
21
|
-
belongToFilter: "hoverbutton"
|
|
22
|
-
})
|
|
23
|
-
})
|
|
24
|
-
})
|
|
25
|
-
]
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
export { AssistantProvider };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__ from "../../application/Plugin.mjs";
|
|
2
|
-
export * from "./context.mjs";
|
|
3
|
-
export * from "./Assistant.provider.mjs";
|
|
4
|
-
class PluginAssistant extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.Plugin {
|
|
5
|
-
async afterLoad() {
|
|
6
|
-
this.app.use(AssistantProvider);
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
export { PluginAssistant };
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
-
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
3
|
-
import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
|
|
4
|
-
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../../index.mjs";
|
|
5
|
-
const MenuSearch = (props)=>{
|
|
6
|
-
const { setSearchMenuTitle } = props;
|
|
7
|
-
const { t } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useTranslation)();
|
|
8
|
-
const debounceChangeValue = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].debounce((value)=>{
|
|
9
|
-
setSearchMenuTitle(value);
|
|
10
|
-
}, 500);
|
|
11
|
-
const handleSearch = (value, event)=>{
|
|
12
|
-
event.stopPropagation();
|
|
13
|
-
debounceChangeValue(value.trim());
|
|
14
|
-
};
|
|
15
|
-
const handleClear = (event)=>{
|
|
16
|
-
if ('' === event.target.value) {
|
|
17
|
-
event.stopPropagation();
|
|
18
|
-
debounceChangeValue('');
|
|
19
|
-
}
|
|
20
|
-
};
|
|
21
|
-
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Input.Search, {
|
|
22
|
-
style: {
|
|
23
|
-
width: '100%'
|
|
24
|
-
},
|
|
25
|
-
allowClear: true,
|
|
26
|
-
placeholder: t('search Menu'),
|
|
27
|
-
prefix: null,
|
|
28
|
-
onSearch: handleSearch,
|
|
29
|
-
onChange: handleClear
|
|
30
|
-
});
|
|
31
|
-
};
|
|
32
|
-
export { MenuSearch };
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
get: definition[key]
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
})();
|
|
11
|
-
(()=>{
|
|
12
|
-
__webpack_require__.o = function(obj, prop) {
|
|
13
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
(()=>{
|
|
17
|
-
__webpack_require__.r = function(exports1) {
|
|
18
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
-
value: 'Module'
|
|
20
|
-
});
|
|
21
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
-
value: true
|
|
23
|
-
});
|
|
24
|
-
};
|
|
25
|
-
})();
|
|
26
|
-
var __webpack_exports__ = {};
|
|
27
|
-
__webpack_require__.r(__webpack_exports__);
|
|
28
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
-
AssistantProvider: ()=>AssistantProvider
|
|
30
|
-
});
|
|
31
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
-
const icons_namespaceObject = require("@ant-design/icons");
|
|
33
|
-
const external_antd_namespaceObject = require("antd");
|
|
34
|
-
const index_js_namespaceObject = require("../acl/index.js");
|
|
35
|
-
const external_pinned_list_index_js_namespaceObject = require("../pinned-list/index.js");
|
|
36
|
-
const AssistantProvider = (param)=>{
|
|
37
|
-
let { children } = param;
|
|
38
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
39
|
-
children: [
|
|
40
|
-
children,
|
|
41
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.ACLRolesCheckProvider, {
|
|
42
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.FloatButton.Group, {
|
|
43
|
-
trigger: "click",
|
|
44
|
-
type: "default",
|
|
45
|
-
style: {
|
|
46
|
-
right: 24,
|
|
47
|
-
zIndex: 1250
|
|
48
|
-
},
|
|
49
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ToolOutlined, {}),
|
|
50
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_pinned_list_index_js_namespaceObject.PinnedPluginList, {
|
|
51
|
-
belongToFilter: "hoverbutton"
|
|
52
|
-
})
|
|
53
|
-
})
|
|
54
|
-
})
|
|
55
|
-
]
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
var __webpack_export_target__ = exports;
|
|
59
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
60
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
61
|
-
value: true
|
|
62
|
-
});
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_modules__ = {
|
|
3
|
-
"../../application/Plugin": function(module) {
|
|
4
|
-
module.exports = require("../../application/Plugin.js");
|
|
5
|
-
},
|
|
6
|
-
"./Assistant.provider": function(module) {
|
|
7
|
-
module.exports = require("./Assistant.provider.js");
|
|
8
|
-
},
|
|
9
|
-
"./context?d80f": function(module) {
|
|
10
|
-
module.exports = require("./context.js");
|
|
11
|
-
}
|
|
12
|
-
};
|
|
13
|
-
var __webpack_module_cache__ = {};
|
|
14
|
-
function __webpack_require__(moduleId) {
|
|
15
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
16
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
17
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
18
|
-
exports: {}
|
|
19
|
-
};
|
|
20
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
21
|
-
return module.exports;
|
|
22
|
-
}
|
|
23
|
-
(()=>{
|
|
24
|
-
__webpack_require__.n = function(module) {
|
|
25
|
-
var getter = module && module.__esModule ? function() {
|
|
26
|
-
return module['default'];
|
|
27
|
-
} : function() {
|
|
28
|
-
return module;
|
|
29
|
-
};
|
|
30
|
-
__webpack_require__.d(getter, {
|
|
31
|
-
a: getter
|
|
32
|
-
});
|
|
33
|
-
return getter;
|
|
34
|
-
};
|
|
35
|
-
})();
|
|
36
|
-
(()=>{
|
|
37
|
-
__webpack_require__.d = function(exports1, definition) {
|
|
38
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
39
|
-
enumerable: true,
|
|
40
|
-
get: definition[key]
|
|
41
|
-
});
|
|
42
|
-
};
|
|
43
|
-
})();
|
|
44
|
-
(()=>{
|
|
45
|
-
__webpack_require__.o = function(obj, prop) {
|
|
46
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
47
|
-
};
|
|
48
|
-
})();
|
|
49
|
-
(()=>{
|
|
50
|
-
__webpack_require__.r = function(exports1) {
|
|
51
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
52
|
-
value: 'Module'
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
55
|
-
value: true
|
|
56
|
-
});
|
|
57
|
-
};
|
|
58
|
-
})();
|
|
59
|
-
var __webpack_exports__ = {};
|
|
60
|
-
__webpack_require__.r(__webpack_exports__);
|
|
61
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
62
|
-
PluginAssistant: function() {
|
|
63
|
-
return PluginAssistant;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
var _application_Plugin__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("../../application/Plugin");
|
|
67
|
-
var _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("./Assistant.provider");
|
|
68
|
-
var _context__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("./context?d80f");
|
|
69
|
-
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
70
|
-
for(var __WEBPACK_IMPORT_KEY__ in _context__WEBPACK_IMPORTED_MODULE_2__)if ([
|
|
71
|
-
"default",
|
|
72
|
-
"PluginAssistant"
|
|
73
|
-
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
74
|
-
return _context__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
75
|
-
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
76
|
-
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
77
|
-
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
78
|
-
for(var __WEBPACK_IMPORT_KEY__ in _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__)if ([
|
|
79
|
-
"PluginAssistant",
|
|
80
|
-
"default"
|
|
81
|
-
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
82
|
-
return _Assistant_provider__WEBPACK_IMPORTED_MODULE_1__[key];
|
|
83
|
-
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
84
|
-
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
85
|
-
class PluginAssistant extends _application_Plugin__WEBPACK_IMPORTED_MODULE_0__.Plugin {
|
|
86
|
-
async afterLoad() {
|
|
87
|
-
this.app.use(_Assistant_provider__WEBPACK_IMPORTED_MODULE_1__.AssistantProvider);
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
var __webpack_export_target__ = exports;
|
|
91
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
92
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
93
|
-
value: true
|
|
94
|
-
});
|