@tachybase/client 1.6.21 → 1.6.22
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/api-client/APIClient.d.ts +2 -1
- package/es/api-client/APIClient.mjs +6 -3
- package/es/application/Plugin.d.ts +2 -2
- package/es/application/hoc/withDynamicSchemaProps.mjs +1 -1
- package/es/application/schema-initializer/hooks/index.mjs +4 -1
- package/es/application/schema-settings/components/SchemaSettingsChildren.mjs +14 -14
- package/es/application/utils/clientModuleRegistry.d.ts +2 -0
- package/es/application/utils/clientModuleRegistry.mjs +9 -0
- package/es/application/utils/globalDeps.mjs +3 -3
- package/es/block-provider/BlockProvider.d.ts +1 -27
- package/es/block-provider/BlockProvider.mjs +1 -3
- package/es/block-provider/BlockRequestContext.d.ts +27 -0
- package/es/block-provider/BlockRequestContext.mjs +5 -0
- package/es/block-provider/FormBlockContext.d.ts +32 -0
- package/es/block-provider/FormBlockContext.mjs +5 -0
- package/es/block-provider/FormBlockProvider.d.ts +1 -33
- package/es/block-provider/FormBlockProvider.mjs +4 -5
- package/es/built-in/acl/ACLCollectionFieldProvider.d.ts +1 -0
- package/es/built-in/acl/ACLCollectionFieldProvider.mjs +42 -0
- package/es/built-in/acl/ACLContext.d.ts +9 -0
- package/es/built-in/acl/ACLContext.mjs +24 -0
- package/es/built-in/acl/ACLPlugin.mjs +2 -1
- package/es/built-in/acl/ACLProvider.d.ts +0 -11
- package/es/built-in/acl/ACLProvider.mjs +6 -51
- package/es/built-in/acl/index.d.ts +2 -0
- package/es/built-in/acl/index.mjs +2 -0
- package/es/collection-manager/hooks/useCollectionManager_deprecated.mjs +2 -1
- package/es/collection-manager/sub-table.d.ts +1 -1
- package/es/data-source/data-source/DataSourceManager.d.ts +1 -2
- package/es/data-source/data-source/DataSourceManager.mjs +1 -2
- package/es/data-source/data-source/constants.d.ts +2 -0
- package/es/data-source/data-source/constants.mjs +3 -0
- package/es/data-source/utils.d.ts +2 -2
- package/es/data-source/utils.mjs +1 -1
- package/es/exports.d.ts +46 -0
- package/es/exports.mjs +46 -0
- package/es/filter-provider/utils.d.ts +2 -14
- package/es/filter-provider/utils.mjs +2 -57
- package/es/index.d.ts +1 -46
- package/es/index.mjs +4 -46
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +2 -86
- package/es/record-provider/index.mjs +3 -3
- package/es/schema-component/antd/action/Action.mjs +7 -6
- package/es/schema-component/antd/action/hooks.mjs +3 -2
- package/es/schema-component/antd/association-field/AssociationSelect.mjs +4 -3
- package/es/schema-component/antd/association-field/hooks.mjs +18 -1
- package/es/schema-component/antd/cron/CronSet.mjs +9 -3
- package/es/schema-component/antd/filter/conditionUtils.d.ts +2 -0
- package/es/schema-component/antd/filter/conditionUtils.mjs +133 -0
- package/es/schema-component/antd/filter/dateValueUtils.d.ts +13 -0
- package/es/schema-component/antd/filter/dateValueUtils.mjs +66 -0
- package/es/schema-component/antd/filter/useFilterActionProps.d.ts +2 -4
- package/es/schema-component/antd/filter/useFilterActionProps.mjs +3 -181
- package/es/schema-component/antd/filter/useGetFilterOptions.d.ts +2 -0
- package/es/schema-component/antd/filter/useGetFilterOptions.mjs +54 -0
- package/es/schema-component/antd/form/Form.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.FilterFormDesigner.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.d.ts +1 -1
- package/es/schema-component/antd/form-item/FormItem.mjs +14 -12
- package/es/schema-component/antd/form-item/SchemaSettingOptions.d.ts +1 -14
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -33
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +4 -3
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +5 -3
- package/es/schema-component/antd/form-item/operatorUtils.d.ts +14 -0
- package/es/schema-component/antd/form-item/operatorUtils.mjs +36 -0
- package/es/schema-component/antd/form-v2/Form.mjs +26 -167
- package/es/schema-component/antd/form-v2/FormLinkageRules.d.ts +9 -0
- package/es/schema-component/antd/form-v2/FormLinkageRules.mjs +191 -0
- package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
- package/es/schema-component/antd/grid/Grid.mjs +6 -4
- package/es/schema-component/antd/grid-card/GridCard.Item.mjs +2 -2
- package/es/schema-component/antd/icon-picker/IconFilterInput.mjs +12 -4
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
- package/es/schema-component/antd/input/Json.d.ts +1 -4
- package/es/schema-component/antd/input/ReadPretty.mjs +2 -2
- package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/markdown/Markdown.Void.Designer.mjs +2 -1
- package/es/schema-component/antd/markdown/Markdown.Void.mjs +10 -2
- package/es/schema-component/antd/markdown/Markdown.mjs +1 -1
- package/es/schema-component/antd/markdown/util.mjs +5 -0
- package/es/schema-component/antd/rich-text/RichText.mjs +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +1 -2
- package/es/schema-component/antd/select/ReadPretty.mjs +2 -2
- package/es/schema-component/antd/select/Select.mjs +1 -2
- package/es/schema-component/antd/select/utils.d.ts +2 -1
- package/es/schema-component/antd/select/utils.mjs +2 -2
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/upload/ReadPretty.mjs +5 -5
- package/es/schema-component/antd/upload/Upload.mjs +6 -5
- package/es/schema-component/antd/variable/Input.mjs +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/hooks/useDesigner.mjs +9 -3
- package/es/schema-component/hooks/useOptionalNavigate.d.ts +1 -0
- package/es/schema-component/hooks/useOptionalNavigate.mjs +2 -0
- package/es/schema-settings/DataTemplates/components/Designer.mjs +2 -1
- package/es/schema-settings/VariableInput/hooks/useBaseVariable.mjs +2 -1
- package/es/schema-settings/VariableInput/hooks/useBlockCollection.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +2 -1
- package/es/schema-settings/VariableInput/hooks/useFormVariable.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useRecordVariable.mjs +1 -1
- package/es/style/theme/AntdAppProvider.mjs +2 -2
- package/es/user/ChangePassword.d.ts +4 -1
- package/es/user/CurrentUserContext.d.ts +2 -0
- package/es/user/CurrentUserContext.mjs +5 -0
- package/es/user/CurrentUserProvider.d.ts +0 -3
- package/es/user/CurrentUserProvider.mjs +3 -5
- package/es/user/EditProfile.d.ts +4 -1
- package/es/user/LanguageSettings.d.ts +4 -1
- package/es/user/SwitchRole.d.ts +4 -1
- package/es/user/index.d.ts +1 -0
- package/es/user/index.mjs +1 -0
- package/es/variables/VariablesProvider.mjs +1 -1
- package/lib/api-client/APIClient.js +8 -5
- package/lib/application/hoc/withDynamicSchemaProps.js +3 -3
- package/lib/application/schema-initializer/hooks/index.js +4 -1
- package/lib/application/schema-settings/components/SchemaSettingsChildren.js +14 -14
- package/lib/application/utils/clientModuleRegistry.js +46 -0
- package/lib/application/utils/globalDeps.js +2 -2
- package/lib/block-provider/BlockProvider.js +6 -8
- package/lib/block-provider/BlockRequestContext.js +42 -0
- package/lib/block-provider/FormBlockContext.js +42 -0
- package/lib/block-provider/FormBlockProvider.js +13 -14
- package/lib/built-in/acl/ACLCollectionFieldProvider.js +76 -0
- package/lib/built-in/acl/ACLContext.js +70 -0
- package/lib/built-in/acl/ACLPlugin.js +2 -1
- package/lib/built-in/acl/ACLProvider.js +13 -76
- package/lib/built-in/acl/index.js +27 -9
- package/lib/collection-manager/hooks/useCollectionManager_deprecated.js +4 -3
- package/lib/data-source/data-source/DataSourceManager.js +6 -7
- package/lib/data-source/data-source/constants.js +40 -0
- package/lib/data-source/utils.js +2 -2
- package/lib/exports.js +769 -0
- package/lib/filter-provider/utils.js +7 -63
- package/lib/index.js +10 -714
- package/lib/record-provider/index.js +6 -6
- package/lib/schema-component/antd/action/Action.js +9 -8
- package/lib/schema-component/antd/action/hooks.js +3 -2
- package/lib/schema-component/antd/association-field/AssociationSelect.js +3 -2
- package/lib/schema-component/antd/association-field/hooks.js +18 -1
- package/lib/schema-component/antd/cron/CronSet.js +8 -2
- package/lib/schema-component/antd/filter/conditionUtils.js +180 -0
- package/lib/schema-component/antd/filter/dateValueUtils.js +116 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.js +7 -186
- package/lib/schema-component/antd/filter/useGetFilterOptions.js +91 -0
- package/lib/schema-component/antd/form/Form.js +4 -4
- package/lib/schema-component/antd/form-item/FormItem.FilterFormDesigner.js +2 -2
- package/lib/schema-component/antd/form-item/FormItem.js +23 -20
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +6 -38
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +9 -7
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +12 -8
- package/lib/schema-component/antd/form-item/operatorUtils.js +76 -0
- package/lib/schema-component/antd/form-v2/Form.js +204 -317
- package/lib/schema-component/antd/form-v2/FormLinkageRules.js +236 -0
- package/lib/schema-component/antd/form-v2/Templates.js +2 -2
- package/lib/schema-component/antd/grid/Grid.js +11 -9
- package/lib/schema-component/antd/grid-card/GridCard.Item.js +2 -2
- package/lib/schema-component/antd/icon-picker/IconFilterInput.js +12 -4
- package/lib/schema-component/antd/icon-picker/IconPicker.js +1 -1
- package/lib/schema-component/antd/input/ReadPretty.js +10 -10
- package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
- package/lib/schema-component/antd/markdown/Markdown.Void.Designer.js +6 -5
- package/lib/schema-component/antd/markdown/Markdown.Void.js +138 -111
- package/lib/schema-component/antd/markdown/Markdown.js +2 -2
- package/lib/schema-component/antd/markdown/util.js +5 -0
- package/lib/schema-component/antd/rich-text/RichText.js +2 -2
- package/lib/schema-component/antd/select/FormulaSelect.js +1 -2
- package/lib/schema-component/antd/select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/select/Select.js +1 -2
- package/lib/schema-component/antd/select/utils.js +6 -3
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
- package/lib/schema-component/antd/upload/ReadPretty.js +5 -5
- package/lib/schema-component/antd/upload/Upload.js +6 -5
- package/lib/schema-component/antd/variable/Input.js +1 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/hooks/useDesigner.js +57 -23
- package/lib/schema-component/hooks/useOptionalNavigate.js +36 -0
- package/lib/schema-settings/DataTemplates/components/Designer.js +4 -3
- package/lib/schema-settings/VariableInput/hooks/useBaseVariable.js +4 -3
- package/lib/schema-settings/VariableInput/hooks/useBlockCollection.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +4 -3
- package/lib/schema-settings/VariableInput/hooks/useFormVariable.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useRecordVariable.js +2 -2
- package/lib/style/theme/AntdAppProvider.js +4 -4
- package/lib/user/CurrentUserContext.js +42 -0
- package/lib/user/CurrentUserProvider.js +6 -14
- package/lib/user/index.js +24 -12
- package/lib/variables/VariablesProvider.js +2 -2
- package/package.json +5 -4
|
@@ -33,19 +33,19 @@ const useFieldComponentName_js_namespaceObject = require("../../../common/useFie
|
|
|
33
33
|
const index_js_namespaceObject = require("../../../schema-component/index.js");
|
|
34
34
|
const SchemaSettings_js_namespaceObject = require("../../../schema-settings/SchemaSettings.js");
|
|
35
35
|
const external_context_index_js_namespaceObject = require("../context/index.js");
|
|
36
|
-
const
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
};
|
|
36
|
+
const getTypeComponentMap = ()=>({
|
|
37
|
+
item: SchemaSettings_js_namespaceObject.SchemaSettingsItem,
|
|
38
|
+
itemGroup: SchemaSettings_js_namespaceObject.SchemaSettingsItemGroup,
|
|
39
|
+
subMenu: SchemaSettings_js_namespaceObject.SchemaSettingsSubMenu,
|
|
40
|
+
divider: SchemaSettings_js_namespaceObject.SchemaSettingsDivider,
|
|
41
|
+
remove: SchemaSettings_js_namespaceObject.SchemaSettingsRemove,
|
|
42
|
+
select: SchemaSettings_js_namespaceObject.SchemaSettingsSelectItem,
|
|
43
|
+
cascader: SchemaSettings_js_namespaceObject.SchemaSettingsCascaderItem,
|
|
44
|
+
switch: SchemaSettings_js_namespaceObject.SchemaSettingsSwitchItem,
|
|
45
|
+
popup: SchemaSettings_js_namespaceObject.SchemaSettingsPopupItem,
|
|
46
|
+
actionModal: SchemaSettings_js_namespaceObject.SchemaSettingsActionModalItem,
|
|
47
|
+
modal: SchemaSettings_js_namespaceObject.SchemaSettingsModalItem
|
|
48
|
+
});
|
|
49
49
|
const SchemaSettingsChildren = (props)=>{
|
|
50
50
|
const { children } = props;
|
|
51
51
|
const { visible } = (0, SchemaSettings_js_namespaceObject.useSchemaSettings)();
|
|
@@ -94,7 +94,7 @@ const SchemaSettingsChild = /*#__PURE__*/ (0, external_react_namespaceObject.mem
|
|
|
94
94
|
children
|
|
95
95
|
]);
|
|
96
96
|
const visibleResult = useVisible();
|
|
97
|
-
const ComponentValue = (0, external_react_namespaceObject.useMemo)(()=>!Component && type
|
|
97
|
+
const ComponentValue = (0, external_react_namespaceObject.useMemo)(()=>!Component && type ? getTypeComponentMap()[type] : Component, [
|
|
98
98
|
type,
|
|
99
99
|
Component
|
|
100
100
|
]);
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
getTachybaseClientExports: ()=>getTachybaseClientExports,
|
|
28
|
+
registerTachybaseClientExports: ()=>registerTachybaseClientExports
|
|
29
|
+
});
|
|
30
|
+
let tachybaseClientExports;
|
|
31
|
+
function registerTachybaseClientExports(exports1) {
|
|
32
|
+
tachybaseClientExports = exports1;
|
|
33
|
+
}
|
|
34
|
+
function getTachybaseClientExports() {
|
|
35
|
+
if (null == tachybaseClientExports) throw new Error('@tachybase/client exports have not been registered. Ensure the package root entry is loaded first.');
|
|
36
|
+
return tachybaseClientExports;
|
|
37
|
+
}
|
|
38
|
+
exports.getTachybaseClientExports = __webpack_exports__.getTachybaseClientExports;
|
|
39
|
+
exports.registerTachybaseClientExports = __webpack_exports__.registerTachybaseClientExports;
|
|
40
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
41
|
+
"getTachybaseClientExports",
|
|
42
|
+
"registerTachybaseClientExports"
|
|
43
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
44
|
+
Object.defineProperty(exports, '__esModule', {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
@@ -65,7 +65,7 @@ const external_react_router_namespaceObject = require("react-router");
|
|
|
65
65
|
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
66
66
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
67
67
|
var jsx_runtime_default = /*#__PURE__*/ __webpack_require__.n(jsx_runtime_namespaceObject);
|
|
68
|
-
const
|
|
68
|
+
const external_clientModuleRegistry_js_namespaceObject = require("./clientModuleRegistry.js");
|
|
69
69
|
function defineGlobalDeps(requirejs) {
|
|
70
70
|
requirejs.define('react', ()=>external_react_default());
|
|
71
71
|
requirejs.define('react-dom', ()=>external_react_dom_default());
|
|
@@ -79,7 +79,7 @@ function defineGlobalDeps(requirejs) {
|
|
|
79
79
|
requirejs.define('i18next', ()=>external_i18next_namespaceObject);
|
|
80
80
|
requirejs.define('react-i18next', ()=>external_react_i18next_namespaceObject);
|
|
81
81
|
requirejs.define('@tego/client', ()=>client_namespaceObject);
|
|
82
|
-
requirejs.define('@tachybase/client', ()=>
|
|
82
|
+
requirejs.define('@tachybase/client', ()=>(0, external_clientModuleRegistry_js_namespaceObject.getTachybaseClientExports)());
|
|
83
83
|
requirejs.define('@tachybase/schema', ()=>schema_namespaceObject);
|
|
84
84
|
requirejs.define('@tachybase/utils/client', ()=>client_namespaceObject);
|
|
85
85
|
requirejs.define('@dnd-kit/accessibility', ()=>accessibility_namespaceObject);
|
|
@@ -42,10 +42,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
42
42
|
BlockAssociationContext: ()=>BlockAssociationContext,
|
|
43
43
|
BlockProvider: ()=>BlockProvider,
|
|
44
44
|
useFilterByTk: ()=>useFilterByTk,
|
|
45
|
-
BlockRequestContext_deprecated: ()=>BlockRequestContext_deprecated,
|
|
45
|
+
BlockRequestContext_deprecated: ()=>external_BlockRequestContext_js_namespaceObject.BlockRequestContext_deprecated,
|
|
46
46
|
RenderChildrenWithAssociationFilter: ()=>RenderChildrenWithAssociationFilter,
|
|
47
47
|
BlockRequestProvider_deprecated: ()=>BlockRequestProvider_deprecated,
|
|
48
|
-
useBlockRequestContext: ()=>useBlockRequestContext,
|
|
48
|
+
useBlockRequestContext: ()=>external_BlockRequestContext_js_namespaceObject.useBlockRequestContext,
|
|
49
49
|
useParamsFromRecord: ()=>useParamsFromRecord,
|
|
50
50
|
useBlockContext: ()=>useBlockContext,
|
|
51
51
|
useBlockAssociationContext: ()=>useBlockAssociationContext
|
|
@@ -66,6 +66,7 @@ const index_js_namespaceObject = require("../collection-manager/index.js");
|
|
|
66
66
|
const FilterProvider_js_namespaceObject = require("../filter-provider/FilterProvider.js");
|
|
67
67
|
const incomingFilterFromSources_js_namespaceObject = require("../filter-provider/incomingFilterFromSources.js");
|
|
68
68
|
const external_record_provider_index_js_namespaceObject = require("../record-provider/index.js");
|
|
69
|
+
const external_BlockRequestContext_js_namespaceObject = require("./BlockRequestContext.js");
|
|
69
70
|
const external_hooks_index_js_namespaceObject = require("./hooks/index.js");
|
|
70
71
|
const useDataBlockSourceId_js_namespaceObject = require("./hooks/useDataBlockSourceId.js");
|
|
71
72
|
function _tagged_template_literal(strings, raw) {
|
|
@@ -116,8 +117,6 @@ const BlockResourceContext = /*#__PURE__*/ (0, external_react_namespaceObject.cr
|
|
|
116
117
|
BlockResourceContext.displayName = 'BlockResourceContext';
|
|
117
118
|
const BlockAssociationContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)(null);
|
|
118
119
|
BlockAssociationContext.displayName = 'BlockAssociationContext';
|
|
119
|
-
const BlockRequestContext_deprecated = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({});
|
|
120
|
-
BlockRequestContext_deprecated.displayName = 'BlockRequestContext_deprecated';
|
|
121
120
|
const useBlockResource = ()=>{
|
|
122
121
|
const resource = (0, external_index_js_namespaceObject.useDataBlockResource)();
|
|
123
122
|
return (0, external_react_namespaceObject.useContext)(BlockResourceContext) || resource;
|
|
@@ -146,8 +145,8 @@ const BlockRequestProvider_deprecated = (props)=>{
|
|
|
146
145
|
}, [
|
|
147
146
|
serviceAllowedActions
|
|
148
147
|
]);
|
|
149
|
-
const __parent = useBlockRequestContext();
|
|
150
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(BlockRequestContext_deprecated.Provider, {
|
|
148
|
+
const __parent = (0, external_BlockRequestContext_js_namespaceObject.useBlockRequestContext)();
|
|
149
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BlockRequestContext_js_namespaceObject.BlockRequestContext_deprecated.Provider, {
|
|
151
150
|
value: {
|
|
152
151
|
allowedActions,
|
|
153
152
|
block: props.block,
|
|
@@ -166,7 +165,6 @@ const BlockRequestProvider_deprecated = (props)=>{
|
|
|
166
165
|
})
|
|
167
166
|
});
|
|
168
167
|
};
|
|
169
|
-
const useBlockRequestContext = ()=>(0, external_react_namespaceObject.useContext)(BlockRequestContext_deprecated);
|
|
170
168
|
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
171
169
|
let { css } = param;
|
|
172
170
|
return {
|
|
@@ -299,7 +297,7 @@ const useBlockAssociationContext = ()=>{
|
|
|
299
297
|
return (0, external_react_namespaceObject.useContext)(BlockAssociationContext) || association;
|
|
300
298
|
};
|
|
301
299
|
const useFilterByTk = ()=>{
|
|
302
|
-
const { resource, __parent } = useBlockRequestContext();
|
|
300
|
+
const { resource, __parent } = (0, external_BlockRequestContext_js_namespaceObject.useBlockRequestContext)();
|
|
303
301
|
const recordIndex = (0, external_record_provider_index_js_namespaceObject.useRecordIndex)();
|
|
304
302
|
const record = (0, external_index_js_namespaceObject.useRecord)();
|
|
305
303
|
const collection = (0, index_js_namespaceObject.useCollection_deprecated)();
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
BlockRequestContext_deprecated: ()=>BlockRequestContext_deprecated,
|
|
28
|
+
useBlockRequestContext: ()=>useBlockRequestContext
|
|
29
|
+
});
|
|
30
|
+
const external_react_namespaceObject = require("react");
|
|
31
|
+
const BlockRequestContext_deprecated = (0, external_react_namespaceObject.createContext)({});
|
|
32
|
+
BlockRequestContext_deprecated.displayName = 'BlockRequestContext_deprecated';
|
|
33
|
+
const useBlockRequestContext = ()=>(0, external_react_namespaceObject.useContext)(BlockRequestContext_deprecated);
|
|
34
|
+
exports.BlockRequestContext_deprecated = __webpack_exports__.BlockRequestContext_deprecated;
|
|
35
|
+
exports.useBlockRequestContext = __webpack_exports__.useBlockRequestContext;
|
|
36
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
37
|
+
"BlockRequestContext_deprecated",
|
|
38
|
+
"useBlockRequestContext"
|
|
39
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
40
|
+
Object.defineProperty(exports, '__esModule', {
|
|
41
|
+
value: true
|
|
42
|
+
});
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
FormBlockContext: ()=>FormBlockContext,
|
|
28
|
+
useFormBlockContext: ()=>useFormBlockContext
|
|
29
|
+
});
|
|
30
|
+
const external_react_namespaceObject = require("react");
|
|
31
|
+
const FormBlockContext = (0, external_react_namespaceObject.createContext)({});
|
|
32
|
+
FormBlockContext.displayName = 'FormBlockContext';
|
|
33
|
+
const useFormBlockContext = ()=>(0, external_react_namespaceObject.useContext)(FormBlockContext);
|
|
34
|
+
exports.FormBlockContext = __webpack_exports__.FormBlockContext;
|
|
35
|
+
exports.useFormBlockContext = __webpack_exports__.useFormBlockContext;
|
|
36
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
37
|
+
"FormBlockContext",
|
|
38
|
+
"useFormBlockContext"
|
|
39
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
40
|
+
Object.defineProperty(exports, '__esModule', {
|
|
41
|
+
value: true
|
|
42
|
+
});
|
|
@@ -36,10 +36,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
36
|
useFormBlockProps: ()=>useFormBlockProps,
|
|
37
37
|
useIsDetailBlock: ()=>useIsDetailBlock,
|
|
38
38
|
useFormBlockType: ()=>useFormBlockType,
|
|
39
|
-
FormBlockContext: ()=>FormBlockContext,
|
|
39
|
+
FormBlockContext: ()=>external_FormBlockContext_js_namespaceObject.FormBlockContext,
|
|
40
40
|
FormBlockProvider: ()=>FormBlockProvider,
|
|
41
41
|
findFormBlock: ()=>findFormBlock,
|
|
42
|
-
useFormBlockContext: ()=>useFormBlockContext
|
|
42
|
+
useFormBlockContext: ()=>external_FormBlockContext_js_namespaceObject.useFormBlockContext
|
|
43
43
|
});
|
|
44
44
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
45
|
const external_react_namespaceObject = require("react");
|
|
@@ -49,16 +49,16 @@ const external_antd_namespaceObject = require("antd");
|
|
|
49
49
|
const withDynamicSchemaProps_js_namespaceObject = require("../application/hoc/withDynamicSchemaProps.js");
|
|
50
50
|
const index_js_namespaceObject = require("../data-source/index.js");
|
|
51
51
|
const external_record_provider_index_js_namespaceObject = require("../record-provider/index.js");
|
|
52
|
-
const
|
|
52
|
+
const hooks_js_namespaceObject = require("../schema-component/antd/action/hooks.js");
|
|
53
53
|
const Templates_js_namespaceObject = require("../schema-component/antd/form-v2/Templates.js");
|
|
54
|
+
const useDesignable_js_namespaceObject = require("../schema-component/hooks/useDesignable.js");
|
|
54
55
|
const external_BlockProvider_js_namespaceObject = require("./BlockProvider.js");
|
|
56
|
+
const external_FormBlockContext_js_namespaceObject = require("./FormBlockContext.js");
|
|
55
57
|
const useFormActiveFields_js_namespaceObject = require("./hooks/useFormActiveFields.js");
|
|
56
|
-
const FormBlockContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({});
|
|
57
|
-
FormBlockContext.displayName = 'FormBlockContext';
|
|
58
58
|
const InternalFormBlockProvider = (props)=>{
|
|
59
59
|
var _Object_keys, _record_parentRecord;
|
|
60
60
|
const cm = (0, index_js_namespaceObject.useCollectionManager)();
|
|
61
|
-
const ctx = useFormBlockContext();
|
|
61
|
+
const ctx = (0, external_FormBlockContext_js_namespaceObject.useFormBlockContext)();
|
|
62
62
|
const { action, readPretty, params, collection, association } = props;
|
|
63
63
|
const field = (0, schema_namespaceObject.useField)();
|
|
64
64
|
const form = (0, external_react_namespaceObject.useMemo)(()=>(0, schema_namespaceObject.createForm)({
|
|
@@ -100,7 +100,7 @@ const InternalFormBlockProvider = (props)=>{
|
|
|
100
100
|
updateAssociationValues
|
|
101
101
|
]);
|
|
102
102
|
if (service.loading && (null == (_Object_keys = Object.keys(null == form ? void 0 : form.initialValues)) ? void 0 : _Object_keys.length) === 0 && action) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Spin, {});
|
|
103
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(FormBlockContext.Provider, {
|
|
103
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FormBlockContext_js_namespaceObject.FormBlockContext.Provider, {
|
|
104
104
|
value: formBlockValue,
|
|
105
105
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordProvider, {
|
|
106
106
|
isNew: null == record ? void 0 : record.isNew,
|
|
@@ -116,7 +116,7 @@ const InternalFormBlockProvider = (props)=>{
|
|
|
116
116
|
});
|
|
117
117
|
};
|
|
118
118
|
const useFormBlockType = ()=>{
|
|
119
|
-
const ctx = useFormBlockContext() || {};
|
|
119
|
+
const ctx = (0, external_FormBlockContext_js_namespaceObject.useFormBlockContext)() || {};
|
|
120
120
|
const res = (0, external_react_namespaceObject.useMemo)(()=>({
|
|
121
121
|
type: ctx.type
|
|
122
122
|
}), [
|
|
@@ -125,8 +125,8 @@ const useFormBlockType = ()=>{
|
|
|
125
125
|
return res;
|
|
126
126
|
};
|
|
127
127
|
const useIsDetailBlock = ()=>{
|
|
128
|
-
const ctx = useFormBlockContext();
|
|
129
|
-
const { fieldSchema } = (0,
|
|
128
|
+
const ctx = (0, external_FormBlockContext_js_namespaceObject.useFormBlockContext)();
|
|
129
|
+
const { fieldSchema } = (0, hooks_js_namespaceObject.useActionContext)();
|
|
130
130
|
return 'create' !== ctx.type && (null == fieldSchema ? void 0 : fieldSchema['x-acl-action']) !== 'create' && (null == fieldSchema ? void 0 : fieldSchema['x-action']) !== 'create';
|
|
131
131
|
};
|
|
132
132
|
const FormBlockProvider = (0, withDynamicSchemaProps_js_namespaceObject.withDynamicSchemaProps)((props)=>{
|
|
@@ -145,13 +145,12 @@ const FormBlockProvider = (0, withDynamicSchemaProps_js_namespaceObject.withDyna
|
|
|
145
145
|
})
|
|
146
146
|
});
|
|
147
147
|
});
|
|
148
|
-
const useFormBlockContext = ()=>(0, external_react_namespaceObject.useContext)(FormBlockContext);
|
|
149
148
|
const useFormBlockProps = function() {
|
|
150
149
|
arguments.length > 0 && void 0 !== arguments[0] && arguments[0];
|
|
151
150
|
var _fieldSchema_xcomponentprops, _ctx_service;
|
|
152
|
-
const ctx = useFormBlockContext();
|
|
151
|
+
const ctx = (0, external_FormBlockContext_js_namespaceObject.useFormBlockContext)();
|
|
153
152
|
const record = (0, external_record_provider_index_js_namespaceObject.useRecord)();
|
|
154
|
-
const { fieldSchema } = (0,
|
|
153
|
+
const { fieldSchema } = (0, hooks_js_namespaceObject.useActionContext)();
|
|
155
154
|
const addChild = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.addChild;
|
|
156
155
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
157
156
|
if (addChild) {
|
|
@@ -181,7 +180,7 @@ const RenderChildrenWithDataTemplates = (param)=>{
|
|
|
181
180
|
let { form } = param;
|
|
182
181
|
var _field_component;
|
|
183
182
|
const FieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
184
|
-
const { findComponent } = (0,
|
|
183
|
+
const { findComponent } = (0, useDesignable_js_namespaceObject.useDesignable)();
|
|
185
184
|
const field = (0, schema_namespaceObject.useField)();
|
|
186
185
|
const Component = findComponent(null == (_field_component = field.component) ? void 0 : _field_component[0]) || external_react_default().Fragment;
|
|
187
186
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(Component, {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
ACLCollectionFieldProvider: ()=>ACLCollectionFieldProvider
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_react_namespaceObject = require("react");
|
|
31
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
32
|
+
const external_ACLContext_js_namespaceObject = require("./ACLContext.js");
|
|
33
|
+
const external_ACLProvider_js_namespaceObject = require("./ACLProvider.js");
|
|
34
|
+
const ACLCollectionFieldProvider = (props)=>{
|
|
35
|
+
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
36
|
+
const field = (0, schema_namespaceObject.useField)();
|
|
37
|
+
const { allowAll } = (0, external_ACLProvider_js_namespaceObject.useACLRoleContext)();
|
|
38
|
+
const { whitelist } = (0, external_ACLContext_js_namespaceObject.useACLFieldWhitelist)();
|
|
39
|
+
const [name] = fieldSchema.name.split('.');
|
|
40
|
+
const allowed = !fieldSchema['x-acl-ignore'] && whitelist.length > 0 ? whitelist.includes(name) : true;
|
|
41
|
+
const originalFieldStateRef = (0, external_react_namespaceObject.useRef)();
|
|
42
|
+
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
43
|
+
var _originalFieldStateRef;
|
|
44
|
+
(_originalFieldStateRef = originalFieldStateRef).current || (_originalFieldStateRef.current = {
|
|
45
|
+
required: field.required,
|
|
46
|
+
display: field.display
|
|
47
|
+
});
|
|
48
|
+
if (allowed) {
|
|
49
|
+
field.required = originalFieldStateRef.current.required;
|
|
50
|
+
field.display = originalFieldStateRef.current.display;
|
|
51
|
+
} else {
|
|
52
|
+
field.required = false;
|
|
53
|
+
field.display = 'hidden';
|
|
54
|
+
}
|
|
55
|
+
}, [
|
|
56
|
+
allowed,
|
|
57
|
+
field
|
|
58
|
+
]);
|
|
59
|
+
if (allowAll) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
|
|
60
|
+
children: props.children
|
|
61
|
+
});
|
|
62
|
+
if (!fieldSchema['x-collection-field']) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
|
|
63
|
+
children: props.children
|
|
64
|
+
});
|
|
65
|
+
if (!allowed) return null;
|
|
66
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
|
|
67
|
+
children: props.children
|
|
68
|
+
});
|
|
69
|
+
};
|
|
70
|
+
exports.ACLCollectionFieldProvider = __webpack_exports__.ACLCollectionFieldProvider;
|
|
71
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
72
|
+
"ACLCollectionFieldProvider"
|
|
73
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
74
|
+
Object.defineProperty(exports, '__esModule', {
|
|
75
|
+
value: true
|
|
76
|
+
});
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
useACLContext: ()=>useACLContext,
|
|
28
|
+
useACLFieldWhitelist: ()=>useACLFieldWhitelist,
|
|
29
|
+
ACLActionParamsContext: ()=>ACLActionParamsContext,
|
|
30
|
+
ACLContext: ()=>ACLContext,
|
|
31
|
+
useACLActionParamsContext: ()=>useACLActionParamsContext
|
|
32
|
+
});
|
|
33
|
+
const external_react_namespaceObject = require("react");
|
|
34
|
+
const ACLContext = (0, external_react_namespaceObject.createContext)({});
|
|
35
|
+
ACLContext.displayName = 'ACLContext';
|
|
36
|
+
const useACLContext = ()=>(0, external_react_namespaceObject.useContext)(ACLContext);
|
|
37
|
+
const ACLActionParamsContext = (0, external_react_namespaceObject.createContext)({});
|
|
38
|
+
ACLActionParamsContext.displayName = 'ACLActionParamsContext';
|
|
39
|
+
const useACLActionParamsContext = ()=>(0, external_react_namespaceObject.useContext)(ACLActionParamsContext);
|
|
40
|
+
const useACLFieldWhitelist = ()=>{
|
|
41
|
+
const context = (0, external_react_namespaceObject.useContext)(ACLActionParamsContext);
|
|
42
|
+
const params = (null == context ? void 0 : context.params) || context;
|
|
43
|
+
const whitelist = [].concat((null == params ? void 0 : params.whitelist) || []).concat((null == params ? void 0 : params.fields) || []).concat((null == params ? void 0 : params.appends) || []);
|
|
44
|
+
return {
|
|
45
|
+
whitelist,
|
|
46
|
+
schemaInWhitelist (fieldSchema, isSkip) {
|
|
47
|
+
if (isSkip) return true;
|
|
48
|
+
if (0 === whitelist.length) return true;
|
|
49
|
+
if (!fieldSchema) return true;
|
|
50
|
+
if (!fieldSchema['x-collection-field']) return true;
|
|
51
|
+
const [key1, key2] = fieldSchema['x-collection-field'].split('.');
|
|
52
|
+
return null == whitelist ? void 0 : whitelist.includes(key2 || key1);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
exports.ACLActionParamsContext = __webpack_exports__.ACLActionParamsContext;
|
|
57
|
+
exports.ACLContext = __webpack_exports__.ACLContext;
|
|
58
|
+
exports.useACLActionParamsContext = __webpack_exports__.useACLActionParamsContext;
|
|
59
|
+
exports.useACLContext = __webpack_exports__.useACLContext;
|
|
60
|
+
exports.useACLFieldWhitelist = __webpack_exports__.useACLFieldWhitelist;
|
|
61
|
+
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
62
|
+
"ACLActionParamsContext",
|
|
63
|
+
"ACLContext",
|
|
64
|
+
"useACLActionParamsContext",
|
|
65
|
+
"useACLContext",
|
|
66
|
+
"useACLFieldWhitelist"
|
|
67
|
+
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
68
|
+
Object.defineProperty(exports, '__esModule', {
|
|
69
|
+
value: true
|
|
70
|
+
});
|
|
@@ -27,11 +27,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
ACLPlugin: ()=>ACLPlugin
|
|
28
28
|
});
|
|
29
29
|
const Plugin_js_namespaceObject = require("../../application/Plugin.js");
|
|
30
|
+
const external_ACLCollectionFieldProvider_js_namespaceObject = require("./ACLCollectionFieldProvider.js");
|
|
30
31
|
const external_ACLProvider_js_namespaceObject = require("./ACLProvider.js");
|
|
31
32
|
class ACLPlugin extends Plugin_js_namespaceObject.Plugin {
|
|
32
33
|
async load() {
|
|
33
34
|
this.app.addComponents({
|
|
34
|
-
ACLCollectionFieldProvider:
|
|
35
|
+
ACLCollectionFieldProvider: external_ACLCollectionFieldProvider_js_namespaceObject.ACLCollectionFieldProvider,
|
|
35
36
|
ACLActionProvider: external_ACLProvider_js_namespaceObject.ACLActionProvider,
|
|
36
37
|
ACLMenuItemProvider: external_ACLProvider_js_namespaceObject.ACLMenuItemProvider,
|
|
37
38
|
ACLCollectionProvider: external_ACLProvider_js_namespaceObject.ACLCollectionProvider
|