@nocobase/client-v2 2.1.0-alpha.40 → 2.1.0-alpha.46
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.d.ts +7 -0
- package/es/BaseApplication.d.ts +13 -0
- package/es/RouterManager.d.ts +1 -0
- package/es/authRedirect.d.ts +12 -0
- package/es/collection-field-interface/CollectionFieldInterface.d.ts +51 -15
- package/es/collection-field-interface/CollectionFieldInterfaceManager.d.ts +82 -3
- package/es/collection-manager/field-configure.d.ts +80 -0
- package/es/collection-manager/field-validation.d.ts +43 -0
- package/es/collection-manager/filter-operators/index.d.ts +46 -0
- package/es/collection-manager/filter-operators/operators.d.ts +30 -0
- package/es/collection-manager/interfaces/checkbox.d.ts +1 -41
- package/es/collection-manager/interfaces/checkboxGroup.d.ts +12 -44
- package/es/collection-manager/interfaces/collection.d.ts +12 -51
- package/es/collection-manager/interfaces/color.d.ts +1 -16
- package/es/collection-manager/interfaces/createdAt.d.ts +1 -44
- package/es/collection-manager/interfaces/createdBy.d.ts +0 -4
- package/es/collection-manager/interfaces/dateOnly.d.ts +7 -44
- package/es/collection-manager/interfaces/datetime.d.ts +1 -44
- package/es/collection-manager/interfaces/datetimeNoTz.d.ts +1 -44
- package/es/collection-manager/interfaces/email.d.ts +1 -29
- package/es/collection-manager/interfaces/id.d.ts +1 -16
- package/es/collection-manager/interfaces/index.d.ts +2 -3
- package/es/collection-manager/interfaces/input.d.ts +1 -102
- package/es/collection-manager/interfaces/integer.d.ts +1 -95
- package/es/collection-manager/interfaces/json.d.ts +16 -7
- package/es/collection-manager/interfaces/m2m.d.ts +11 -19
- package/es/collection-manager/interfaces/m2o.d.ts +11 -19
- package/es/collection-manager/interfaces/markdown.d.ts +1 -63
- package/es/collection-manager/interfaces/multipleSelect.d.ts +12 -44
- package/es/collection-manager/interfaces/nanoid.d.ts +1 -34
- package/es/collection-manager/interfaces/number.d.ts +1 -87
- package/es/collection-manager/interfaces/o2m.d.ts +12 -24
- package/es/collection-manager/interfaces/obo.d.ts +207 -0
- package/es/collection-manager/interfaces/oho.d.ts +207 -0
- package/es/collection-manager/interfaces/password.d.ts +1 -56
- package/es/collection-manager/interfaces/percent.d.ts +1 -84
- package/es/collection-manager/interfaces/phone.d.ts +1 -25
- package/es/collection-manager/interfaces/properties/index.d.ts +0 -28
- package/es/collection-manager/interfaces/radioGroup.d.ts +1 -29
- package/es/collection-manager/interfaces/richText.d.ts +1 -63
- package/es/collection-manager/interfaces/select.d.ts +12 -44
- package/es/collection-manager/interfaces/snowflake-id.d.ts +1 -34
- package/es/collection-manager/interfaces/tableoid.d.ts +1 -10
- package/es/collection-manager/interfaces/textarea.d.ts +1 -51
- package/es/collection-manager/interfaces/time.d.ts +1 -16
- package/es/collection-manager/interfaces/types.d.ts +3 -12
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -44
- package/es/collection-manager/interfaces/updatedAt.d.ts +1 -44
- package/es/collection-manager/interfaces/updatedBy.d.ts +0 -4
- package/es/collection-manager/interfaces/url.d.ts +1 -20
- package/es/collection-manager/interfaces/uuid.d.ts +1 -34
- package/es/collection-manager/template-fields.d.ts +53 -0
- package/es/components/KeepAlive.d.ts +22 -0
- package/es/components/RouterBridge.d.ts +9 -0
- package/es/components/form/DialogFormLayout.d.ts +5 -29
- package/es/components/form/TypedVariableInput.d.ts +75 -0
- package/es/components/form/VariableInput.d.ts +53 -2
- package/es/components/form/filter/CollectionFilter.d.ts +49 -0
- package/es/components/form/filter/CollectionFilterItem.d.ts +49 -0
- package/es/components/form/filter/DateFilterDynamicComponent.d.ts +57 -0
- package/es/components/form/filter/FilterValueInput.d.ts +29 -0
- package/es/components/form/filter/index.d.ts +11 -0
- package/es/components/form/filter/useFilterActionProps.d.ts +96 -0
- package/es/components/form/index.d.ts +2 -0
- package/es/data-source/ExtendCollectionsProvider.d.ts +50 -0
- package/es/data-source/index.d.ts +9 -0
- package/es/flow/FlowPage.d.ts +2 -1
- package/es/flow/admin-shell/AdminLayoutRouteCoordinator.d.ts +8 -40
- package/es/flow/admin-shell/BaseLayoutModel.d.ts +89 -0
- package/es/flow/admin-shell/BaseLayoutRouteCoordinator.d.ts +74 -0
- package/es/flow/admin-shell/admin-layout/AdminLayoutEntryGuard.d.ts +12 -0
- package/es/flow/admin-shell/admin-layout/AdminLayoutMenuModels.d.ts +1 -0
- package/es/flow/admin-shell/admin-layout/AdminLayoutModel.d.ts +7 -92
- package/es/flow/admin-shell/admin-layout/AppListRender.d.ts +11 -0
- package/es/flow/admin-shell/admin-layout/index.d.ts +3 -0
- package/es/flow/admin-shell/admin-layout/useApplications.d.ts +3 -2
- package/es/flow/admin-shell/useAdminLayoutRoutePage.d.ts +2 -2
- package/es/flow/admin-shell/useLayoutRoutePage.d.ts +23 -0
- package/es/flow/components/ConditionBuilder.d.ts +1 -0
- package/es/flow/components/FieldAssignRulesEditor.d.ts +3 -1
- package/es/flow/components/FieldAssignValueInput.d.ts +1 -0
- package/es/flow/components/FlowRoute.d.ts +10 -1
- package/es/flow/components/fieldAssignOptions.d.ts +10 -0
- package/es/flow/components/filter/LinkageFilterItem.d.ts +1 -0
- package/es/flow/components/filter/VariableFilterItem.d.ts +1 -0
- package/es/flow/components/filter/index.d.ts +2 -0
- package/es/flow/components/filter/metaTreeAssociationDepth.d.ts +13 -0
- package/es/flow/components/filter/useFilterOptions.d.ts +66 -0
- package/es/flow/index.d.ts +4 -0
- package/es/flow/models/base/AssociationFieldGroupModel.d.ts +2 -33
- package/es/flow/models/base/PageModel/PageModel.d.ts +3 -1
- package/es/flow/models/blocks/assign-form/assignFieldValuesFlow.d.ts +92 -0
- package/es/flow/models/blocks/assign-form/index.d.ts +1 -0
- package/es/flow/models/blocks/form/FormActionGroupModel.d.ts +1 -0
- package/es/flow/models/blocks/form/FormActionModel.d.ts +9 -2
- package/es/flow/models/blocks/table/TableBlockModel.d.ts +10 -0
- package/es/flow/models/blocks/table/TableColumnModel.d.ts +2 -0
- package/es/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.d.ts +1 -1
- package/es/flow-compat/passwordUtils.d.ts +1 -1
- package/es/index.d.ts +6 -0
- package/es/index.mjs +552 -459
- package/es/layout-manager/LayoutContentRoute.d.ts +14 -0
- package/es/layout-manager/LayoutManager.d.ts +22 -0
- package/es/layout-manager/LayoutRoute.d.ts +14 -0
- package/es/layout-manager/index.d.ts +13 -0
- package/es/layout-manager/types.d.ts +20 -0
- package/es/layout-manager/utils.d.ts +14 -0
- package/es/nocobase-buildin-plugin/index.d.ts +3 -10
- package/es/settings-center/index.d.ts +1 -1
- package/es/settings-center/plugin-manager/BulkEnableButton.d.ts +15 -0
- package/es/settings-center/plugin-manager/PluginCard.d.ts +15 -0
- package/es/settings-center/plugin-manager/PluginDetail.d.ts +16 -0
- package/es/settings-center/{PluginManagerPage.d.ts → plugin-manager/index.d.ts} +1 -7
- package/es/settings-center/plugin-manager/types.d.ts +34 -0
- package/lib/index.js +552 -459
- package/package.json +8 -7
- package/src/Application.tsx +51 -12
- package/src/BaseApplication.tsx +32 -0
- package/src/PluginSettingsManager.ts +1 -1
- package/src/RouterManager.tsx +17 -1
- package/src/__tests__/PluginSettingsManager.test.ts +41 -2
- package/src/__tests__/app.test.tsx +17 -1
- package/src/__tests__/globalDeps.test.ts +1 -0
- package/src/__tests__/nocobase-buildin-plugin-auth.test.tsx +50 -2
- package/src/__tests__/plugin-manager.test.tsx +177 -0
- package/src/__tests__/settings-center.test.tsx +24 -2
- package/src/authRedirect.ts +43 -0
- package/src/collection-field-interface/CollectionFieldInterface.ts +71 -77
- package/src/collection-field-interface/CollectionFieldInterfaceManager.ts +201 -4
- package/src/collection-manager/field-configure.ts +548 -0
- package/src/collection-manager/field-validation.ts +195 -0
- package/src/collection-manager/filter-operators/index.ts +176 -0
- package/src/collection-manager/{interfaces/properties → filter-operators}/operators.ts +24 -13
- package/src/collection-manager/interfaces/checkbox.ts +2 -9
- package/src/collection-manager/interfaces/checkboxGroup.ts +2 -10
- package/src/collection-manager/interfaces/collection.ts +2 -15
- package/src/collection-manager/interfaces/color.ts +2 -2
- package/src/collection-manager/interfaces/createdAt.ts +2 -2
- package/src/collection-manager/interfaces/createdBy.ts +1 -12
- package/src/collection-manager/interfaces/dateOnly.ts +8 -2
- package/src/collection-manager/interfaces/datetime.ts +2 -2
- package/src/collection-manager/interfaces/datetimeNoTz.ts +2 -2
- package/src/collection-manager/interfaces/email.ts +2 -9
- package/src/collection-manager/interfaces/id.ts +1 -2
- package/src/collection-manager/interfaces/index.ts +2 -3
- package/src/collection-manager/interfaces/input.ts +2 -133
- package/src/collection-manager/interfaces/integer.ts +2 -71
- package/src/collection-manager/interfaces/json.tsx +17 -11
- package/src/collection-manager/interfaces/m2m.tsx +0 -21
- package/src/collection-manager/interfaces/m2o.tsx +0 -22
- package/src/collection-manager/interfaces/markdown.ts +2 -51
- package/src/collection-manager/interfaces/multipleSelect.ts +2 -14
- package/src/collection-manager/interfaces/nanoid.ts +2 -2
- package/src/collection-manager/interfaces/number.ts +2 -85
- package/src/collection-manager/interfaces/o2m.tsx +1 -22
- package/src/collection-manager/interfaces/obo.tsx +145 -0
- package/src/collection-manager/interfaces/oho.tsx +145 -0
- package/src/collection-manager/interfaces/password.ts +2 -44
- package/src/collection-manager/interfaces/percent.ts +2 -74
- package/src/collection-manager/interfaces/phone.ts +2 -2
- package/src/collection-manager/interfaces/properties/index.ts +0 -133
- package/src/collection-manager/interfaces/radioGroup.ts +2 -2
- package/src/collection-manager/interfaces/richText.ts +2 -51
- package/src/collection-manager/interfaces/select.ts +2 -14
- package/src/collection-manager/interfaces/snowflake-id.ts +2 -2
- package/src/collection-manager/interfaces/tableoid.ts +1 -2
- package/src/collection-manager/interfaces/textarea.ts +2 -51
- package/src/collection-manager/interfaces/time.ts +2 -2
- package/src/collection-manager/interfaces/types.ts +4 -12
- package/src/collection-manager/interfaces/unixTimestamp.tsx +2 -2
- package/src/collection-manager/interfaces/updatedAt.ts +2 -2
- package/src/collection-manager/interfaces/updatedBy.ts +1 -12
- package/src/collection-manager/interfaces/url.ts +2 -4
- package/src/collection-manager/interfaces/uuid.ts +2 -2
- package/src/collection-manager/template-fields.ts +109 -0
- package/src/components/KeepAlive.tsx +131 -0
- package/src/components/README.md +138 -6
- package/src/components/README.zh-CN.md +138 -7
- package/src/components/RouterBridge.tsx +28 -4
- package/src/components/__tests__/KeepAlive.test.tsx +63 -0
- package/src/components/__tests__/RouterBridge.test.tsx +27 -0
- package/src/components/form/DialogFormLayout.tsx +5 -29
- package/src/components/form/TypedVariableInput.tsx +441 -0
- package/src/components/form/VariableInput.tsx +101 -28
- package/src/components/form/__tests__/TypedVariableInput.test.tsx +152 -0
- package/src/components/form/__tests__/VariableInput.test.ts +85 -0
- package/src/components/form/filter/CollectionFilter.tsx +111 -0
- package/src/components/form/filter/CollectionFilterItem.tsx +184 -0
- package/src/components/form/filter/DateFilterDynamicComponent.tsx +283 -0
- package/src/components/form/filter/FilterValueInput.tsx +198 -0
- package/src/components/form/filter/__tests__/CollectionFilterItem.test.tsx +247 -0
- package/src/components/form/filter/__tests__/DateFilterDynamicComponent.test.tsx +148 -0
- package/src/components/form/filter/__tests__/FilterValueInput.test.tsx +243 -0
- package/src/components/form/filter/__tests__/compileFilterGroup.test.ts +146 -0
- package/src/components/form/filter/index.ts +13 -0
- package/src/components/form/filter/useFilterActionProps.ts +203 -0
- package/src/components/form/index.tsx +2 -0
- package/src/data-source/ExtendCollectionsProvider.tsx +144 -0
- package/src/data-source/__tests__/ExtendCollectionsProvider.test.tsx +264 -0
- package/src/data-source/index.ts +10 -0
- package/src/flow/FlowPage.tsx +35 -7
- package/src/flow/__tests__/FlowPage.test.tsx +79 -0
- package/src/flow/__tests__/FlowRoute.test.tsx +537 -3
- package/src/flow/actions/__tests__/linkageRules.hiddenSync.restore.test.ts +100 -0
- package/src/flow/actions/__tests__/linkageRules.subFormSetFieldProps.test.ts +191 -0
- package/src/flow/actions/__tests__/linkageRulesRefresh.test.ts +23 -1
- package/src/flow/actions/__tests__/openView.subModelKey.test.tsx +33 -0
- package/src/flow/actions/aclCheck.tsx +4 -0
- package/src/flow/actions/aclCheckRefresh.tsx +4 -0
- package/src/flow/actions/dataScope.tsx +8 -1
- package/src/flow/actions/dateTimeFormat.tsx +12 -8
- package/src/flow/actions/linkageRules.tsx +127 -2
- package/src/flow/actions/linkageRulesRefresh.tsx +2 -3
- package/src/flow/actions/openView.tsx +28 -4
- package/src/flow/actions/setTargetDataScope.tsx +1 -1
- package/src/flow/admin-shell/AdminLayoutRouteCoordinator.ts +11 -329
- package/src/flow/admin-shell/BaseLayoutModel.tsx +455 -0
- package/src/flow/admin-shell/BaseLayoutRouteCoordinator.ts +502 -0
- package/src/flow/admin-shell/__tests__/AdminLayoutRouteCoordinator.test.ts +547 -3
- package/src/flow/admin-shell/admin-layout/AdminLayoutComponent.tsx +35 -7
- package/src/flow/admin-shell/admin-layout/AdminLayoutEntryGuard.tsx +160 -0
- package/src/flow/admin-shell/admin-layout/AdminLayoutMenuModels.tsx +15 -13
- package/src/flow/admin-shell/admin-layout/AdminLayoutModel.tsx +28 -201
- package/src/flow/admin-shell/admin-layout/AdminLayoutSlotModels.tsx +11 -2
- package/src/flow/admin-shell/admin-layout/AppListRender.tsx +139 -0
- package/src/flow/admin-shell/admin-layout/__tests__/AdminLayoutMenuModels.test.ts +76 -27
- package/src/flow/admin-shell/admin-layout/__tests__/AdminLayoutModel.test.tsx +149 -27
- package/src/flow/admin-shell/admin-layout/index.ts +3 -0
- package/src/flow/admin-shell/admin-layout/resolveAdminRouteRuntimeTarget.test.ts +11 -0
- package/src/flow/admin-shell/admin-layout/resolveAdminRouteRuntimeTarget.ts +2 -4
- package/src/flow/admin-shell/admin-layout/useApplications.tsx +34 -1
- package/src/flow/admin-shell/useAdminLayoutRoutePage.ts +10 -26
- package/src/flow/admin-shell/useLayoutRoutePage.ts +61 -0
- package/src/flow/common/Markdown/Edit.tsx +32 -4
- package/src/flow/components/AdminLayout.tsx +4 -154
- package/src/flow/components/ConditionBuilder.tsx +12 -2
- package/src/flow/components/FieldAssignRulesEditor.tsx +37 -46
- package/src/flow/components/FieldAssignValueInput.tsx +8 -4
- package/src/flow/components/FlowRoute.tsx +105 -15
- package/src/flow/components/__tests__/FieldAssignRulesEditor.test.tsx +112 -1
- package/src/flow/components/__tests__/fieldAssignOptions.test.ts +71 -1
- package/src/flow/components/code-editor/__tests__/runjsCompletions.test.ts +272 -27
- package/src/flow/components/code-editor/runjsCompletions.ts +490 -9
- package/src/flow/components/fieldAssignOptions.ts +23 -6
- package/src/flow/components/filter/LinkageFilterItem.tsx +22 -9
- package/src/flow/components/filter/VariableFilterItem.tsx +27 -9
- package/src/flow/components/filter/__tests__/fieldsToOptions.test.ts +48 -0
- package/src/flow/components/filter/__tests__/metaTreeAssociationDepth.test.ts +60 -0
- package/src/flow/components/filter/fieldsToOptions.ts +9 -4
- package/src/flow/components/filter/index.ts +3 -0
- package/src/flow/components/filter/metaTreeAssociationDepth.ts +69 -0
- package/src/flow/components/filter/useFilterOptions.ts +102 -0
- package/src/flow/index.ts +4 -0
- package/src/flow/models/actions/FilterActionModel.tsx +15 -3
- package/src/flow/models/actions/UpdateRecordActionModel.tsx +14 -95
- package/src/flow/models/actions/UpdateRecordActionUtils.ts +4 -7
- package/src/flow/models/actions/__tests__/AssignFormRefill.test.ts +116 -1
- package/src/flow/models/base/ActionModel.tsx +8 -1
- package/src/flow/models/base/AssociationFieldGroupModel.tsx +20 -3
- package/src/flow/models/base/GridModel.tsx +1 -1
- package/src/flow/models/base/PageModel/ChildPageModel.tsx +5 -1
- package/src/flow/models/base/PageModel/PageModel.tsx +51 -18
- package/src/flow/models/base/PageModel/RootPageModel.tsx +6 -13
- package/src/flow/models/base/PageModel/__tests__/ChildPageModel.test.ts +12 -0
- package/src/flow/models/base/PageModel/__tests__/PageModel.test.ts +102 -1
- package/src/flow/models/base/RouteModel.tsx +1 -1
- package/src/flow/models/base/__tests__/AssociationFieldGroupModel.test.ts +86 -0
- package/src/flow/models/base/__tests__/GridModel.render.test.tsx +53 -0
- package/src/flow/models/blocks/assign-form/AssignFormGridModel.tsx +12 -3
- package/src/flow/models/blocks/assign-form/AssignFormItemModel.tsx +77 -6
- package/src/flow/models/blocks/assign-form/__tests__/assignFieldValuesFlow.editor.test.tsx +216 -0
- package/src/flow/models/blocks/assign-form/assignFieldValuesFlow.tsx +308 -0
- package/src/flow/models/blocks/assign-form/index.ts +1 -0
- package/src/flow/models/blocks/filter-form/FilterFormItemModel.tsx +1 -1
- package/src/flow/models/blocks/filter-form/__tests__/FilterFormItemModel.defineChildren.test.ts +6 -1
- package/src/flow/models/blocks/filter-manager/flow-actions/connectFields.tsx +48 -6
- package/src/flow/models/blocks/form/FormActionGroupModel.tsx +14 -0
- package/src/flow/models/blocks/form/FormActionModel.tsx +30 -3
- package/src/flow/models/blocks/form/FormAssociationItemModel.tsx +9 -0
- package/src/flow/models/blocks/form/FormItemModel.tsx +17 -1
- package/src/flow/models/blocks/form/__tests__/FormActionGroupModel.test.ts +46 -0
- package/src/flow/models/blocks/form/__tests__/FormBlockModel.test.tsx +17 -0
- package/src/flow/models/blocks/form/__tests__/FormItemModel.defineChildren.test.ts +27 -2
- package/src/flow/models/blocks/form/__tests__/submitHandler.test.ts +71 -0
- package/src/flow/models/blocks/form/submitHandler.ts +8 -1
- package/src/flow/models/blocks/form/submitValues.ts +4 -1
- package/src/flow/models/blocks/form/value-runtime/__tests__/runtime.test.ts +29 -0
- package/src/flow/models/blocks/form/value-runtime/runtime.ts +5 -1
- package/src/flow/models/blocks/table/TableBlockModel.tsx +118 -16
- package/src/flow/models/blocks/table/TableColumnModel.tsx +15 -5
- package/src/flow/models/blocks/table/TableCustomColumnModel.tsx +2 -2
- package/src/flow/models/blocks/table/__tests__/TableBlockModel.rowSelection.test.tsx +114 -0
- package/src/flow/models/blocks/table/__tests__/TableColumnModel.test.tsx +18 -0
- package/src/flow/models/fields/AssociationFieldModel/SubFormFieldModel.tsx +7 -1
- package/src/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableColumnModel.tsx +6 -7
- package/src/flow/models/fields/AssociationFieldModel/SubTableFieldModel/SubTableField.tsx +1 -1
- package/src/flow/models/fields/AssociationFieldModel/SubTableFieldModel/index.tsx +6 -5
- package/src/flow/models/fields/ClickableFieldModel.tsx +9 -1
- package/src/flow/models/fields/CollectionSelectorFieldModel.tsx +8 -2
- package/src/flow/models/fields/DisplayEnumFieldModel.tsx +8 -2
- package/src/flow/models/fields/DisplayTimeFieldModel.tsx +1 -1
- package/src/flow/models/fields/TimeFieldModel.tsx +1 -1
- package/src/flow/models/fields/__tests__/TimeFieldModel.test.tsx +61 -0
- package/src/flow/models/fields/mobile-components/MobileDatePicker.tsx +19 -3
- package/src/flow/models/fields/mobile-components/MobileLazySelect.tsx +5 -3
- package/src/flow/models/fields/mobile-components/__tests__/MobileDatePicker.test.tsx +94 -0
- package/src/flow/models/fields/mobile-components/__tests__/MobileSelect.test.tsx +70 -0
- package/src/flow/models/topbar/TopbarActionModel.tsx +1 -1
- package/src/flow/utils/__tests__/dateTimeFormat.test.ts +91 -0
- package/src/index.ts +6 -0
- package/src/layout-manager/LayoutContentRoute.tsx +90 -0
- package/src/layout-manager/LayoutManager.tsx +185 -0
- package/src/layout-manager/LayoutRoute.tsx +138 -0
- package/src/layout-manager/__tests__/LayoutManager.test.tsx +335 -0
- package/src/layout-manager/__tests__/LayoutRoute.test.tsx +473 -0
- package/src/layout-manager/index.ts +14 -0
- package/src/layout-manager/types.ts +22 -0
- package/src/layout-manager/utils.ts +37 -0
- package/src/nocobase-buildin-plugin/index.tsx +69 -67
- package/src/nocobase-buildin-plugin/plugins/LocalePlugin.ts +1 -0
- package/src/settings-center/index.ts +1 -1
- package/src/settings-center/plugin-manager/BulkEnableButton.tsx +111 -0
- package/src/settings-center/plugin-manager/PluginCard.tsx +270 -0
- package/src/settings-center/plugin-manager/PluginDetail.tsx +195 -0
- package/src/settings-center/plugin-manager/index.tsx +254 -0
- package/src/settings-center/plugin-manager/types.ts +35 -0
- package/src/settings-center/utils.tsx +8 -1
- package/src/theme/__tests__/globalStyles.test.ts +24 -0
- package/src/theme/globalStyles.ts +10 -0
- package/src/utils/globalDeps.ts +2 -0
- package/es/collection-manager/interfaces/linkTo.d.ts +0 -90
- package/es/collection-manager/interfaces/o2o.d.ts +0 -621
- package/es/collection-manager/interfaces/properties/operators.d.ts +0 -294
- package/es/collection-manager/interfaces/subTable.d.ts +0 -172
- package/src/collection-manager/interfaces/linkTo.ts +0 -120
- package/src/collection-manager/interfaces/o2o.tsx +0 -561
- package/src/collection-manager/interfaces/subTable.ts +0 -218
- package/src/settings-center/PluginManagerPage.tsx +0 -162
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import type { FilterGroupType } from '@nocobase/utils/client';
|
|
10
10
|
import React from 'react';
|
|
11
11
|
import { FieldAssignValueInput } from './FieldAssignValueInput';
|
|
12
|
-
import type
|
|
12
|
+
import { type FieldAssignCascaderOption } from './fieldAssignOptions';
|
|
13
13
|
export type AssignMode = 'default' | 'assign';
|
|
14
14
|
type CollectionFieldLike = {
|
|
15
15
|
name?: unknown;
|
|
@@ -17,6 +17,7 @@ type CollectionFieldLike = {
|
|
|
17
17
|
type?: unknown;
|
|
18
18
|
interface?: unknown;
|
|
19
19
|
uiSchema?: unknown;
|
|
20
|
+
target?: unknown;
|
|
20
21
|
targetKey?: unknown;
|
|
21
22
|
targetCollectionTitleFieldName?: unknown;
|
|
22
23
|
targetCollection?: any;
|
|
@@ -66,6 +67,7 @@ export interface FieldAssignRulesEditorProps {
|
|
|
66
67
|
onSyncAssociationTitleField?: (params: SyncAssociationTitleFieldParams) => Promise<void> | void;
|
|
67
68
|
/** 在日期字段下启用“日期变量替换 Constant 位”。 */
|
|
68
69
|
enableDateVariableAsConstant?: boolean;
|
|
70
|
+
maxAssociationFieldDepth?: number;
|
|
69
71
|
}
|
|
70
72
|
export declare const FieldAssignRulesEditor: React.FC<FieldAssignRulesEditorProps>;
|
|
71
73
|
export {};
|
|
@@ -52,6 +52,7 @@ interface Props {
|
|
|
52
52
|
* 默认 false,保持历史行为。
|
|
53
53
|
*/
|
|
54
54
|
enableDateVariableAsConstant?: boolean;
|
|
55
|
+
maxAssociationFieldDepth?: number;
|
|
55
56
|
}
|
|
56
57
|
export declare function mergeItemMetaTreeForAssignValue(baseTree: MetaTreeNode[], extraTree: MetaTreeNode[]): MetaTreeNode[];
|
|
57
58
|
export declare function resolveAssignValueFieldPath(itemModel: any): string | undefined;
|
|
@@ -6,7 +6,16 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import { type FlowEngine } from '@nocobase/flow-engine';
|
|
9
10
|
import React from 'react';
|
|
11
|
+
import { type BaseLayoutModel } from '../admin-shell/BaseLayoutModel';
|
|
12
|
+
export type LegacyPageBehavior = 'redirect' | 'notFound' | 'bridge';
|
|
13
|
+
export type FlowRouteProps = {
|
|
14
|
+
pageUid?: string;
|
|
15
|
+
active?: boolean;
|
|
16
|
+
getLayoutModel?: (flowEngine: FlowEngine) => BaseLayoutModel | undefined;
|
|
17
|
+
legacyPageBehavior?: LegacyPageBehavior;
|
|
18
|
+
};
|
|
10
19
|
/**
|
|
11
20
|
* 管理后台动态页面路由组件。
|
|
12
21
|
*
|
|
@@ -22,7 +31,7 @@ import React from 'react';
|
|
|
22
31
|
* @throws {Error} 当缺少 `route.params.name` 时抛出异常
|
|
23
32
|
*/
|
|
24
33
|
declare const FlowRoute: {
|
|
25
|
-
(): React.JSX.Element;
|
|
34
|
+
(props?: FlowRouteProps): React.JSX.Element;
|
|
26
35
|
displayName: string;
|
|
27
36
|
};
|
|
28
37
|
export default FlowRoute;
|
|
@@ -15,9 +15,19 @@ export type FieldAssignCascaderOption = {
|
|
|
15
15
|
loading?: boolean;
|
|
16
16
|
children?: FieldAssignCascaderOption[];
|
|
17
17
|
};
|
|
18
|
+
type CollectionLike = {
|
|
19
|
+
getField?: (name: string) => unknown;
|
|
20
|
+
getFields?: () => unknown[];
|
|
21
|
+
};
|
|
22
|
+
export declare function buildFieldAssignCascaderOptionsFromCollection(collection: CollectionLike | null, t: (key: string) => string, options?: {
|
|
23
|
+
associationDepth?: number;
|
|
24
|
+
maxAssociationFieldDepth?: number;
|
|
25
|
+
}): FieldAssignCascaderOption[];
|
|
18
26
|
export declare function collectFieldAssignCascaderOptions(options: {
|
|
19
27
|
formBlockModel: any;
|
|
20
28
|
t: (key: string) => string;
|
|
21
29
|
/** 子表单模型递归深度(FormItemModel 层级);默认不限制(只受实际配置与循环引用约束) */
|
|
22
30
|
maxFormItemDepth?: number;
|
|
31
|
+
maxAssociationFieldDepth?: number;
|
|
23
32
|
}): FieldAssignCascaderOption[];
|
|
33
|
+
export {};
|
|
@@ -14,3 +14,5 @@ export { VariableFilterItem } from './VariableFilterItem';
|
|
|
14
14
|
export type { VariableFilterItemProps, VariableFilterItemValue } from './VariableFilterItem';
|
|
15
15
|
export { LinkageFilterItem } from './LinkageFilterItem';
|
|
16
16
|
export type { LinkageFilterItemProps, LinkageFilterItemValue } from './LinkageFilterItem';
|
|
17
|
+
export { useFilterOptions } from './useFilterOptions';
|
|
18
|
+
export type { FilterOption, UseFilterOptionsArgs } from './useFilterOptions';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { MetaTreeNode } from '@nocobase/flow-engine';
|
|
10
|
+
export declare function limitAssociationMetaTree(nodes: MetaTreeNode[] | undefined, options?: {
|
|
11
|
+
associationDepth?: number;
|
|
12
|
+
maxAssociationDepth?: number;
|
|
13
|
+
}): MetaTreeNode[];
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import type { Collection } from '@nocobase/flow-engine';
|
|
10
|
+
/**
|
|
11
|
+
* One operator entry on a `FilterOption`. Mirrors v1's interface-defined operator shape so the v2 filter value renderer can pick up the same per-operator value-side schema (e.g. datetime operators wanting the smart date picker, array/enum operators wanting a tag-mode Select).
|
|
12
|
+
*/
|
|
13
|
+
export type FilterOperator = {
|
|
14
|
+
value: string;
|
|
15
|
+
label: string;
|
|
16
|
+
/**
|
|
17
|
+
* Per-operator override for the value-side renderer. Wins over the field's own `uiSchema` when set. The `x-component` string is looked up against the v2 filter component registry.
|
|
18
|
+
*/
|
|
19
|
+
schema?: {
|
|
20
|
+
'x-component'?: string;
|
|
21
|
+
'x-component-props'?: Record<string, any>;
|
|
22
|
+
} & Record<string, any>;
|
|
23
|
+
/** Operator takes no right-hand value (e.g. `$empty`, `$notEmpty`). */
|
|
24
|
+
noValue?: boolean;
|
|
25
|
+
[key: string]: any;
|
|
26
|
+
};
|
|
27
|
+
/** Single field-tree node returned by `useFilterOptions`. */
|
|
28
|
+
export type FilterOption = {
|
|
29
|
+
name: string;
|
|
30
|
+
type?: string;
|
|
31
|
+
target?: string;
|
|
32
|
+
title: string;
|
|
33
|
+
schema?: Record<string, any>;
|
|
34
|
+
operators?: FilterOperator[];
|
|
35
|
+
children?: FilterOption[];
|
|
36
|
+
};
|
|
37
|
+
export interface UseFilterOptionsArgs {
|
|
38
|
+
/**
|
|
39
|
+
* **Preferred way to restrict fields**, alongside `nonfilterableFieldNames`.
|
|
40
|
+
*
|
|
41
|
+
* Whitelist of root-level field names to expose. Empty/undefined means "all filterable fields". The whitelist applies only at depth 1 — nested fields under an allowed association field are always included, matching the legacy v1 `Filter.Action` behaviour.
|
|
42
|
+
*/
|
|
43
|
+
filterableFieldNames?: string[];
|
|
44
|
+
/**
|
|
45
|
+
* **Preferred way to restrict fields**, alongside `filterableFieldNames`.
|
|
46
|
+
*
|
|
47
|
+
* Blacklist of root-level field names to drop. Mirrors v1's `nonfilterable: [...]` schema prop on `Filter.Action`. Applies at depth 1 only, same as the whitelist. When both `filterableFieldNames` and `nonfilterableFieldNames` are provided, both apply: the final field set is `(whitelist or all) minus blacklist`.
|
|
48
|
+
*/
|
|
49
|
+
nonfilterableFieldNames?: string[];
|
|
50
|
+
/**
|
|
51
|
+
* Bypass the `filterableFieldNames` whitelist (mirrors v1 `noIgnore`).
|
|
52
|
+
*
|
|
53
|
+
* Legacy escape hatch from v1 schemas — prefer adjusting `filterableFieldNames` / `nonfilterableFieldNames` instead. Kept only for parity with existing v1 schemas that already set `noIgnore`.
|
|
54
|
+
*/
|
|
55
|
+
noIgnore?: boolean;
|
|
56
|
+
/** Translator used for field/operator labels. Defaults to identity. */
|
|
57
|
+
t?: (key: string) => string;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* v2 equivalent of v1's `useFilterOptions`/`useFilterFieldOptions`. Walks a `Collection`'s fields and returns the nested option tree consumed by antd `Cascader` in `CollectionFilterItem` (and any other v2 filter surface that wants the same field picker).
|
|
61
|
+
*
|
|
62
|
+
* Mirrors v1 in two ways that matter:
|
|
63
|
+
* - association fields (belongsTo / hasMany / m2m / etc.) are kept and recursed into via `fieldsToOptions`'s `nested` branch — so picking `user.username` is a first-class action, just like the legacy cascader.
|
|
64
|
+
* - the whitelist applies at depth 1 only, so capping the root field list (e.g. to `['lockedTs', 'unlockTs', 'user']`) doesn't accidentally hide the nested `user.username` / `user.nickname` leaves.
|
|
65
|
+
*/
|
|
66
|
+
export declare function useFilterOptions(collection: Collection | undefined, args?: UseFilterOptionsArgs): FilterOption[];
|
package/es/flow/index.d.ts
CHANGED
|
@@ -23,7 +23,11 @@ export * from './utils';
|
|
|
23
23
|
export * from './actions';
|
|
24
24
|
export * from './system-settings';
|
|
25
25
|
export * from './admin-shell/admin-layout';
|
|
26
|
+
export * from './admin-shell/BaseLayoutModel';
|
|
27
|
+
export * from './admin-shell/BaseLayoutRouteCoordinator';
|
|
26
28
|
export * from './admin-shell/AdminLayoutRouteCoordinator';
|
|
29
|
+
export * from './admin-shell/useLayoutRoutePage';
|
|
30
|
+
export * from './admin-shell/useAdminLayoutRoutePage';
|
|
27
31
|
export * from '../settings-center';
|
|
28
32
|
export { openViewFlow } from './flows/openViewFlow';
|
|
29
33
|
export { editMarkdownFlow } from './flows/editMarkdownFlow';
|
|
@@ -9,41 +9,10 @@
|
|
|
9
9
|
import { FlowModel, FlowModelContext } from '@nocobase/flow-engine';
|
|
10
10
|
export declare class AssociationFieldGroupModel extends FlowModel {
|
|
11
11
|
static itemModelName: string;
|
|
12
|
+
static maxAssociationFieldDepth: number;
|
|
12
13
|
static defineChildren(ctx: FlowModelContext): {
|
|
13
14
|
key: string;
|
|
14
15
|
label: string;
|
|
15
|
-
children: () =>
|
|
16
|
-
key: string;
|
|
17
|
-
label: string;
|
|
18
|
-
type: string;
|
|
19
|
-
children: {
|
|
20
|
-
key: string;
|
|
21
|
-
label: string;
|
|
22
|
-
useModel: string;
|
|
23
|
-
toggleable: (subModel: any) => boolean;
|
|
24
|
-
createModelOptions: {
|
|
25
|
-
stepParams: {
|
|
26
|
-
fieldSettings: {
|
|
27
|
-
init: {
|
|
28
|
-
dataSourceKey: any;
|
|
29
|
-
collectionName: any;
|
|
30
|
-
fieldPath: string;
|
|
31
|
-
associationPathName: any;
|
|
32
|
-
};
|
|
33
|
-
};
|
|
34
|
-
};
|
|
35
|
-
subModels: {
|
|
36
|
-
field: {
|
|
37
|
-
use: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}[];
|
|
42
|
-
} | {
|
|
43
|
-
key: string;
|
|
44
|
-
label: string;
|
|
45
|
-
type: string;
|
|
46
|
-
children: any[];
|
|
47
|
-
})[];
|
|
16
|
+
children: () => any;
|
|
48
17
|
}[];
|
|
49
18
|
}
|
|
@@ -32,9 +32,11 @@ export declare class PageModel extends FlowModel<PageModelStructure> {
|
|
|
32
32
|
private getEnableTabs;
|
|
33
33
|
private getActiveTabKey;
|
|
34
34
|
private scheduleActiveLifecycleRefresh;
|
|
35
|
+
activateCurrentTab(forceRefresh?: boolean): void;
|
|
36
|
+
deactivateCurrentTab(): void;
|
|
35
37
|
onMount(): void;
|
|
36
38
|
protected onUnmount(): void;
|
|
37
|
-
invokeTabModelLifecycleMethod(tabActiveKey: string, method: 'onActive' | 'onInactive', forceRefresh?: boolean): void;
|
|
39
|
+
invokeTabModelLifecycleMethod(tabActiveKey: string | undefined, method: 'onActive' | 'onInactive', forceRefresh?: boolean): void;
|
|
38
40
|
/**
|
|
39
41
|
* Resolve configured document title template and update browser tab title.
|
|
40
42
|
* Priority:
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is part of the NocoBase (R) project.
|
|
3
|
+
* Copyright (c) 2020-2024 NocoBase Co., Ltd.
|
|
4
|
+
* Authors: NocoBase Team.
|
|
5
|
+
*
|
|
6
|
+
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
|
+
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
|
+
*/
|
|
9
|
+
import { type FlowModelContext } from '@nocobase/flow-engine';
|
|
10
|
+
import React from 'react';
|
|
11
|
+
import { AssignFormModel } from './AssignFormModel';
|
|
12
|
+
export declare const ASSIGN_FIELD_VALUES_STEP_KEY = "assignFieldValues";
|
|
13
|
+
type AssignedValues = Record<string, unknown>;
|
|
14
|
+
type AssignFieldValuesCollection = {
|
|
15
|
+
dataSourceKey?: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
};
|
|
18
|
+
type AssignFieldValuesContext = FlowModelContext & {
|
|
19
|
+
collection?: AssignFieldValuesCollection;
|
|
20
|
+
flowSettingsEnabled?: boolean;
|
|
21
|
+
};
|
|
22
|
+
type AssignFieldValuesModel = {
|
|
23
|
+
uid: string;
|
|
24
|
+
assignFormUid?: string;
|
|
25
|
+
context?: AssignFieldValuesContext;
|
|
26
|
+
subModels?: {
|
|
27
|
+
assignForm?: AssignFormModel;
|
|
28
|
+
};
|
|
29
|
+
getStepParams?: (flowKey: string, stepKey: string) => {
|
|
30
|
+
assignedValues?: AssignedValues;
|
|
31
|
+
} | undefined;
|
|
32
|
+
setStepParams?: (flowKey: string, stepKey: string, params: {
|
|
33
|
+
assignedValues: AssignedValues;
|
|
34
|
+
}) => void;
|
|
35
|
+
};
|
|
36
|
+
type AssignFieldValuesStepOptions = {
|
|
37
|
+
settingsFlowKey: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
tipComponent?: React.ComponentType;
|
|
40
|
+
validateBeforeSave?: boolean;
|
|
41
|
+
clearRecordContext?: boolean;
|
|
42
|
+
};
|
|
43
|
+
export declare function createAssignFormSubModelOptions(ctx: AssignFieldValuesContext): {
|
|
44
|
+
async: boolean;
|
|
45
|
+
use: string;
|
|
46
|
+
stepParams: {
|
|
47
|
+
resourceSettings: {
|
|
48
|
+
init: {
|
|
49
|
+
dataSourceKey: string;
|
|
50
|
+
collectionName: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare function getAssignFieldValuesDefaultParams(ctx: {
|
|
56
|
+
model: Pick<AssignFieldValuesModel, 'getStepParams'>;
|
|
57
|
+
}, settingsFlowKey: string): {
|
|
58
|
+
assignedValues: AssignedValues;
|
|
59
|
+
};
|
|
60
|
+
export declare function resolveAssignFieldValues(ctx: {
|
|
61
|
+
message?: {
|
|
62
|
+
error?: (message: string) => void;
|
|
63
|
+
};
|
|
64
|
+
t?: (message: string) => string;
|
|
65
|
+
}, rawAssignedValues: unknown, logName?: string): Promise<AssignedValues | null>;
|
|
66
|
+
export declare function mergeAssignFieldValues<T extends Record<string, unknown>>(values: T, assignedValues?: AssignedValues | null): T;
|
|
67
|
+
export declare function createAssignFieldValuesStep(options: AssignFieldValuesStepOptions): {
|
|
68
|
+
title: string;
|
|
69
|
+
uiSchema(): {
|
|
70
|
+
tip: {
|
|
71
|
+
'x-decorator': string;
|
|
72
|
+
'x-component': React.ComponentType<{}>;
|
|
73
|
+
};
|
|
74
|
+
editor: {
|
|
75
|
+
'x-decorator': string;
|
|
76
|
+
'x-component': () => React.JSX.Element;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
beforeParamsSave(ctx: {
|
|
80
|
+
model: AssignFieldValuesModel;
|
|
81
|
+
engine: {
|
|
82
|
+
getModel?: (uid: string, fromRoot?: boolean) => AssignFormModel | undefined;
|
|
83
|
+
findModelByParentId?: (parentId: string, subKey: string) => AssignFormModel | undefined | null;
|
|
84
|
+
};
|
|
85
|
+
}, params?: {
|
|
86
|
+
assignedValues?: AssignedValues;
|
|
87
|
+
}, previousParams?: {
|
|
88
|
+
assignedValues?: AssignedValues;
|
|
89
|
+
}): Promise<void>;
|
|
90
|
+
handler(): void;
|
|
91
|
+
};
|
|
92
|
+
export {};
|
|
@@ -10,4 +10,5 @@ import { ActionGroupModel } from '../../base/ActionGroupModel';
|
|
|
10
10
|
import { FormActionModel } from './FormActionModel';
|
|
11
11
|
export declare class FormActionGroupModel extends ActionGroupModel {
|
|
12
12
|
static baseClass: typeof FormActionModel;
|
|
13
|
+
static defineChildren(ctx: any): Promise<any[]>;
|
|
13
14
|
}
|
|
@@ -6,12 +6,19 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
+
import { DefaultStructure } from '@nocobase/flow-engine';
|
|
9
10
|
import { ButtonProps } from 'antd';
|
|
10
11
|
import { AxiosRequestConfig } from 'axios';
|
|
11
12
|
import { ActionModel } from '../../base/ActionModelCore';
|
|
12
|
-
|
|
13
|
+
import { AssignFormModel } from '../assign-form/AssignFormModel';
|
|
14
|
+
export declare class FormActionModel<T extends DefaultStructure = DefaultStructure> extends ActionModel<T> {
|
|
13
15
|
}
|
|
14
|
-
export declare class FormSubmitActionModel extends FormActionModel
|
|
16
|
+
export declare class FormSubmitActionModel extends FormActionModel<{
|
|
17
|
+
subModels: {
|
|
18
|
+
assignForm: AssignFormModel;
|
|
19
|
+
};
|
|
20
|
+
}> {
|
|
21
|
+
assignFormUid?: string;
|
|
15
22
|
defaultProps: ButtonProps;
|
|
16
23
|
/**
|
|
17
24
|
* 简化设置保存请求配置的方式
|
|
@@ -61,8 +61,18 @@ export declare class TableBlockModel extends CollectionBlockModel<TableBlockMode
|
|
|
61
61
|
cell: React.MemoExoticComponent<import("@formily/reactive-react").ReactFC<Omit<any, "ref">>>;
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
|
+
isRowSelectionEnabled(): boolean;
|
|
65
|
+
isShowIndexEnabled(): boolean;
|
|
66
|
+
getRecordIndex(record: Record<string, unknown>, index: number): string | number;
|
|
67
|
+
getLeftAuxiliaryColumn(): {
|
|
68
|
+
key: string;
|
|
69
|
+
width: number;
|
|
70
|
+
align: "center";
|
|
71
|
+
render: (_value: unknown, record: Record<string, unknown>, index: number) => React.JSX.Element;
|
|
72
|
+
};
|
|
64
73
|
renderCell: (checked: any, record: any, index: any, originNode: any) => any;
|
|
65
74
|
renderConfigureActions(): React.JSX.Element;
|
|
75
|
+
shouldRenderAction(action: ActionModel, isConfigMode: boolean): boolean;
|
|
66
76
|
pagination(): import("antd").PaginationProps;
|
|
67
77
|
renderComponent(): React.JSX.Element;
|
|
68
78
|
}
|
|
@@ -10,6 +10,8 @@ import { DisplayItemModel, FlowModelContext, ModelRenderMode } from '@nocobase/f
|
|
|
10
10
|
import { TableColumnProps } from 'antd';
|
|
11
11
|
import React from 'react';
|
|
12
12
|
export declare function FieldDeletePlaceholder(props: any): React.JSX.Element;
|
|
13
|
+
export declare const TABLE_COLUMN_MIN_WIDTH = 10;
|
|
14
|
+
export declare function normalizeTableColumnWidth(width: number | null | undefined): number;
|
|
13
15
|
export declare const CustomWidth: ({ setOpen, t, handleChange, defaultValue }: {
|
|
14
16
|
setOpen: any;
|
|
15
17
|
t: any;
|
|
@@ -8,7 +8,7 @@ export declare class SubTableFieldModel extends AssociationFieldModel {
|
|
|
8
8
|
updateAssociation: boolean;
|
|
9
9
|
setCurrentPage: any;
|
|
10
10
|
currentPageSize: any;
|
|
11
|
-
getCurrentValue
|
|
11
|
+
getCurrentValue(): any[];
|
|
12
12
|
get collection(): any;
|
|
13
13
|
getColumns(): any;
|
|
14
14
|
render(): React.JSX.Element;
|
|
@@ -6,4 +6,4 @@
|
|
|
6
6
|
* This project is dual-licensed under AGPL-3.0 and NocoBase Commercial License.
|
|
7
7
|
* For more information, please refer to: https://www.nocobase.com/agreement.
|
|
8
8
|
*/
|
|
9
|
-
export declare const getStrength: (val: any) => 60 | 0 |
|
|
9
|
+
export declare const getStrength: (val: any) => 60 | 0 | 100 | 80 | 40 | 20;
|
package/es/index.d.ts
CHANGED
|
@@ -24,12 +24,18 @@ export * from './WebSocketClient';
|
|
|
24
24
|
export * from './RouterManager';
|
|
25
25
|
export * from './PluginManager';
|
|
26
26
|
export * from './PluginSettingsManager';
|
|
27
|
+
export * from './layout-manager';
|
|
27
28
|
export * from './hooks';
|
|
28
29
|
export { default as languageCodes } from './locale/languageCodes';
|
|
29
30
|
export * from './nocobase-buildin-plugin';
|
|
30
31
|
export * from './collection-field-interface/CollectionFieldInterface';
|
|
31
32
|
export * from './collection-field-interface/CollectionFieldInterfaceManager';
|
|
33
|
+
export * from './collection-manager/field-configure';
|
|
34
|
+
export * from './collection-manager/field-validation';
|
|
35
|
+
export * from './collection-manager/filter-operators';
|
|
32
36
|
export * from './collection-manager/interfaces';
|
|
37
|
+
export * from './collection-manager/template-fields';
|
|
38
|
+
export * from './data-source';
|
|
33
39
|
export * from './flow';
|
|
34
40
|
export { DEFAULT_DATA_SOURCE_KEY, isTitleField, isTitleFieldInterface } from './flow-compat';
|
|
35
41
|
export { default as AntdAppProvider } from './theme/AntdAppProvider';
|