@tachybase/client 1.3.20 → 1.3.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 +1 -1
- package/es/api-client/APIClient.mjs +1 -1
- package/es/api-client/hooks/assign.mjs +1 -1
- package/es/api-client/hooks/useResource.d.ts +1 -1
- package/es/application/Application.d.ts +1 -2
- package/es/application/Application.mjs +2 -11
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/components/index.d.ts +0 -2
- package/es/application/components/index.mjs +0 -2
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/utils/globalDeps.d.ts +1 -1
- package/es/application/utils/globalDeps.mjs +4 -12
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/FormFieldProvider.mjs +1 -1
- package/es/block-provider/hooks/index.mjs +2 -2
- package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
- package/es/built-in/index.d.ts +2 -1
- package/es/built-in/index.mjs +4 -3
- package/es/built-in/page-style/useTabSettings.mjs +3 -3
- package/es/built-in/pm/PluginManager.mjs +1 -1
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
- package/es/collection-manager/collectionPlugin.mjs +36 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
- package/es/collection-manager/interfaces/json.mjs +1 -1
- package/es/collection-manager/interfaces/radioGroup.d.ts +11 -11
- package/es/collection-manager/interfaces/url.d.ts +4 -0
- package/es/collection-manager/interfaces/url.mjs +10 -1
- package/es/collection-manager/templates/expression.mjs +1 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/collection-manager/templates/sql.d.ts +3 -3
- package/es/collection-manager/templates/view.d.ts +3 -3
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -15
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/filter-provider/utils.mjs +1 -1
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +2 -5
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +14 -2
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +1 -3
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +0 -4
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -5
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
- package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +95 -5
- package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.d.ts +2 -0
- package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.mjs +99 -0
- package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.d.ts +2 -0
- package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.mjs +64 -0
- package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +15 -2
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +26 -7
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
- package/es/modules/menu/GroupItem.mjs +1 -1
- package/es/modules/menu/LinkMenuItem.mjs +1 -1
- package/es/modules/menu/PageMenuItem.mjs +1 -1
- package/es/modules/menu/UploadMenuItem.mjs +1 -1
- package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
- package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalViewer.mjs +4 -58
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +4 -0
- package/es/schema-component/antd/association-field/hooks.mjs +53 -2
- package/es/schema-component/antd/association-field/util.mjs +1 -1
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
- package/es/schema-component/antd/color-picker/util.d.ts +1 -1
- package/es/schema-component/antd/color-picker/util.mjs +1 -1
- package/es/schema-component/antd/cron/Cron.mjs +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/date-picker/util.d.ts +1 -1
- package/es/schema-component/antd/date-picker/util.mjs +1 -1
- package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
- package/es/schema-component/antd/form/Form.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.mjs +1 -2
- package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
- package/es/schema-component/antd/form-v2/utils.mjs +1 -2
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
- package/es/schema-component/antd/index.d.ts +0 -1
- package/es/schema-component/antd/index.mjs +1 -2
- package/es/schema-component/antd/input/Input.mjs +2 -1
- package/es/schema-component/antd/input/ReadPretty.d.ts +1 -0
- package/es/schema-component/antd/input/ReadPretty.mjs +30 -2
- package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
- package/es/schema-component/antd/list/List.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.mjs +1 -1
- package/es/schema-component/antd/page/Page.Settings.mjs +0 -33
- package/es/schema-component/antd/page/Page.mjs +47 -96
- package/es/schema-component/antd/page/hooks/index.d.ts +1 -1
- package/es/schema-component/antd/page/hooks/index.mjs +1 -1
- package/es/schema-component/antd/page/index.d.ts +1 -0
- package/es/schema-component/antd/page/index.mjs +1 -0
- package/es/schema-component/antd/page/pageExtendComponentProvider.d.ts +3 -0
- package/es/schema-component/antd/page/pageExtendComponentProvider.mjs +9 -0
- package/es/schema-component/antd/page/style.d.ts +0 -5
- package/es/schema-component/antd/page/style.mjs +1 -45
- package/es/schema-component/antd/preview/Preview.mjs +1 -1
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
- package/es/schema-component/antd/record-picker/util.mjs +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +17 -5
- package/es/schema-component/antd/select/ReadPretty.mjs +16 -3
- package/es/schema-component/antd/select/Select.mjs +7 -2
- package/es/schema-component/antd/select/utils.mjs +2 -2
- package/es/schema-component/antd/space/index.mjs +1 -1
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
- package/es/schema-component/antd/table-v2/Table.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
- package/es/schema-component/antd/upload/Upload.mjs +1 -1
- package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
- package/es/schema-component/antd/variable/Input.mjs +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
- package/es/schema-component/hooks/useFieldModeOptions.mjs +13 -10
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
- package/es/schema-settings/DataTemplates/utils.mjs +1 -1
- package/es/schema-settings/EditFormulaTitleField.mjs +19 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
- package/es/schema-settings/SchemaSettings.mjs +2 -3
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettingsPlugin.mjs +4 -0
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
- package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
- package/es/user/ChangePassword.mjs +2 -2
- package/es/user/CurrentUser.mjs +1 -1
- package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
- package/es/variables/VariablesProvider.mjs +2 -2
- package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
- package/lib/api-client/APIClient.js +2 -2
- package/lib/api-client/hooks/assign.js +1 -1
- package/lib/application/Application.js +6 -15
- package/lib/application/WebSocketClient.js +2 -2
- package/lib/application/components/index.js +0 -18
- package/lib/application/utils/globalDeps.js +3 -11
- package/lib/block-provider/FormFieldProvider.js +1 -1
- package/lib/block-provider/hooks/index.js +14 -14
- package/lib/block-provider/hooks/useParsedFilter.js +1 -1
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
- package/lib/built-in/index.js +42 -16
- package/lib/built-in/page-style/useTabSettings.js +3 -3
- package/lib/built-in/pm/PluginManager.js +1 -1
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
- package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
- package/lib/collection-manager/collectionPlugin.js +36 -0
- package/lib/collection-manager/interfaces/json.js +3 -3
- package/lib/collection-manager/interfaces/url.js +10 -1
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -15
- package/lib/filter-provider/utils.js +1 -1
- package/lib/locale/zh-CN.js +1 -0
- package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -6
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +14 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +1 -3
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +0 -4
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -7
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
- package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +93 -3
- package/lib/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.js +133 -0
- package/lib/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.js +98 -0
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +16 -3
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +23 -4
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
- package/lib/modules/menu/GroupItem.js +2 -2
- package/lib/modules/menu/LinkMenuItem.js +2 -2
- package/lib/modules/menu/PageMenuItem.js +2 -2
- package/lib/modules/menu/UploadMenuItem.js +2 -2
- package/lib/schema-component/antd/action/Action.Designer.js +3 -3
- package/lib/schema-component/antd/action/Action.js +1 -1
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
- package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
- package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
- package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
- package/lib/schema-component/antd/association-field/InternalViewer.js +1 -55
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
- package/lib/schema-component/antd/association-field/hooks.js +55 -1
- package/lib/schema-component/antd/association-field/util.js +1 -1
- package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
- package/lib/schema-component/antd/color-picker/util.js +1 -1
- package/lib/schema-component/antd/cron/Cron.js +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/date-picker/util.js +1 -1
- package/lib/schema-component/antd/filter/FilterAction.js +1 -1
- package/lib/schema-component/antd/form/Form.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.js +2 -2
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
- package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
- package/lib/schema-component/antd/form-v2/Form.js +3 -4
- package/lib/schema-component/antd/form-v2/Templates.js +1 -1
- package/lib/schema-component/antd/form-v2/utils.js +2 -3
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
- package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
- package/lib/schema-component/antd/index.js +120 -187
- package/lib/schema-component/antd/input/Input.js +2 -1
- package/lib/schema-component/antd/input/ReadPretty.js +34 -6
- package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
- package/lib/schema-component/antd/list/List.Decorator.js +2 -2
- package/lib/schema-component/antd/list/List.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.js +1 -1
- package/lib/schema-component/antd/page/Page.Settings.js +0 -33
- package/lib/schema-component/antd/page/Page.js +43 -92
- package/lib/schema-component/antd/page/hooks/index.js +5 -5
- package/lib/schema-component/antd/page/index.js +9 -0
- package/lib/{application/components/ShareSchemaComponent.js → schema-component/antd/page/pageExtendComponentProvider.js} +15 -10
- package/lib/schema-component/antd/page/style.js +2 -49
- package/lib/schema-component/antd/preview/Preview.js +2 -2
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
- package/lib/schema-component/antd/record-picker/util.js +1 -1
- package/lib/schema-component/antd/select/FormulaSelect.js +17 -5
- package/lib/schema-component/antd/select/ReadPretty.js +15 -2
- package/lib/schema-component/antd/select/Select.js +7 -2
- package/lib/schema-component/antd/select/utils.js +2 -2
- package/lib/schema-component/antd/space/index.js +2 -2
- package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
- package/lib/schema-component/antd/table-v2/Table.js +1 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
- package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
- package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
- package/lib/schema-component/antd/upload/Upload.js +2 -2
- package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
- package/lib/schema-component/antd/variable/Input.js +1 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
- package/lib/schema-component/hooks/useFieldModeOptions.js +13 -10
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
- package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
- package/lib/schema-settings/DataTemplates/utils.js +4 -4
- package/lib/schema-settings/EditFormulaTitleField.js +19 -1
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
- package/lib/schema-settings/SchemaSettings.js +17 -18
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
- package/lib/schema-settings/SchemaSettingsPlugin.js +4 -0
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
- package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
- package/lib/user/ChangePassword.js +2 -2
- package/lib/user/CurrentUser.js +1 -1
- package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
- package/lib/variables/VariablesProvider.js +2 -2
- package/lib/variables/hooks/useBuiltinVariables.js +1 -1
- package/package.json +9 -23
- package/es/application/components/SharePage.d.ts +0 -4
- package/es/application/components/SharePage.mjs +0 -113
- package/es/application/components/ShareSchemaComponent.d.ts +0 -1
- package/es/application/components/ShareSchemaComponent.mjs +0 -10
- package/es/schema-component/antd/page/hooks/useShareActions.d.ts +0 -7
- package/es/schema-component/antd/page/hooks/useShareActions.mjs +0 -242
- package/lib/application/components/SharePage.js +0 -156
- package/lib/schema-component/antd/page/hooks/useShareActions.js +0 -286
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { connect, isValid, mapProps, mapReadPretty, toArr } from "@tachybase/schema";
|
|
3
|
-
import { isPlainObject } from "@tachybase/utils/client";
|
|
4
3
|
import { CloseCircleFilled, CloseOutlined, LoadingOutlined } from "@ant-design/icons";
|
|
4
|
+
import { isPlainObject } from "@tego/client";
|
|
5
5
|
import { Empty, Radio, Select, Spin, Tag } from "antd";
|
|
6
6
|
import FormulaSelect from "./FormulaSelect.mjs";
|
|
7
7
|
import { ReadPretty } from "./ReadPretty.mjs";
|
|
@@ -81,8 +81,12 @@ const InternalSelect = connect((props)=>{
|
|
|
81
81
|
let mode = props.multiple ? 'multiple' : props.mode;
|
|
82
82
|
if (mode && ![
|
|
83
83
|
'multiple',
|
|
84
|
-
'tags'
|
|
84
|
+
'tags',
|
|
85
|
+
'CustomTitle'
|
|
85
86
|
].includes(mode)) mode = void 0;
|
|
87
|
+
let options = props.options ? [
|
|
88
|
+
...props.options
|
|
89
|
+
] : [];
|
|
86
90
|
if ([
|
|
87
91
|
'CustomTitle'
|
|
88
92
|
].includes(props.mode) && ('formula' in others.fieldNames || 'collection' in props)) return /*#__PURE__*/ jsx(FormulaSelect, {
|
|
@@ -117,6 +121,7 @@ const InternalSelect = connect((props)=>{
|
|
|
117
121
|
"aria-label": "icon-close-select"
|
|
118
122
|
})
|
|
119
123
|
},
|
|
124
|
+
options: options,
|
|
120
125
|
popupMatchSelectWidth: false,
|
|
121
126
|
notFoundContent: loading ? /*#__PURE__*/ jsx(Spin, {}) : /*#__PURE__*/ jsx(Empty, {
|
|
122
127
|
image: Empty.PRESENTED_IMAGE_SIMPLE
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isPlainObject } from "@
|
|
1
|
+
import { isPlainObject } from "@tego/client";
|
|
2
2
|
import { castArray } from "lodash";
|
|
3
3
|
const defaultFieldNames = {
|
|
4
4
|
label: 'label',
|
|
@@ -25,7 +25,7 @@ function getCurrentOptions(values, dataSource, fieldNames) {
|
|
|
25
25
|
if (!options) return [];
|
|
26
26
|
const current = [];
|
|
27
27
|
for (const value of arrValues){
|
|
28
|
-
const option = options.find((v)=>v[fieldNames.value]
|
|
28
|
+
const option = options.find((v)=>v[fieldNames.value] === value) || {
|
|
29
29
|
value,
|
|
30
30
|
label: value ? value.toString() : value
|
|
31
31
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { useCollection_deprecated, useResourceActionContext } from "../../../collection-manager/index.mjs";
|
|
7
7
|
import { useCollectionFilterOptions, useSortFields } from "../../../collection-manager/action-hooks.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { RecursionField, action, observer, spliceArrayState, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { isPortalInBody } from "@tachybase/utils/client";
|
|
5
4
|
import { CopyOutlined, DeleteOutlined, MenuOutlined } from "@ant-design/icons";
|
|
6
5
|
import { SortableContext, useSortable } from "@dnd-kit/sortable";
|
|
6
|
+
import { isPortalInBody } from "@tego/client";
|
|
7
7
|
import { useMemoizedFn } from "ahooks";
|
|
8
8
|
import { Table } from "antd";
|
|
9
9
|
import classnames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
import { useCompile } from "../../index.mjs";
|
|
7
7
|
import { useAPIClient } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext, useTableSelectorContext } from "../../../block-provider/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { usePrefixCls } from "@tachybase/components";
|
|
4
3
|
import { toArr } from "@tachybase/schema";
|
|
4
|
+
import { usePrefixCls } from "@tego/client";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
const ReadPretty = (props)=>{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { dayjsable, formatDayjsValue } from "@tachybase/components";
|
|
2
1
|
import { connect, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
2
|
+
import { dayjsable, formatDayjsValue } from "@tego/client";
|
|
3
3
|
import { TimePicker } from "antd";
|
|
4
4
|
import { ReadPretty } from "./ReadPretty.mjs";
|
|
5
5
|
const mapTimeFormat = function() {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { usePrefixCls } from "@tachybase/components";
|
|
4
3
|
import { isArr, observer, useField } from "@tachybase/schema";
|
|
4
|
+
import { usePrefixCls } from "@tego/client";
|
|
5
5
|
import { Tag } from "antd";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
const ReadPretty = observer((props)=>{
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { Lightbox } from "@tachybase/components";
|
|
4
3
|
import { useField } from "@tachybase/schema";
|
|
5
|
-
import { isString } from "@tachybase/utils/client";
|
|
6
4
|
import { DownloadOutlined } from "@ant-design/icons";
|
|
5
|
+
import { Lightbox, isString } from "@tego/client";
|
|
7
6
|
import { Button, Space } from "antd";
|
|
8
7
|
import style from "antd/es/upload/style";
|
|
9
8
|
import classnames from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createElement, useEffect, useRef, useState } from "react";
|
|
3
|
-
import { Lightbox } from "@tachybase/components";
|
|
4
3
|
import { connect, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { DeleteOutlined, DownloadOutlined, InboxOutlined, LoadingOutlined, PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { Lightbox } from "@tego/client";
|
|
6
6
|
import { Button, Progress, Space, Upload } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { saveAs } from "file-saver";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { CodeMirror } from "@tachybase/components";
|
|
4
3
|
import { useForm } from "@tachybase/schema";
|
|
4
|
+
import { CodeMirror } from "@tego/client";
|
|
5
5
|
import { cloneDeep } from "lodash";
|
|
6
6
|
import { css, useTranslation } from "../../../index.mjs";
|
|
7
7
|
import { VariableSelect } from "./VariableSelect.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useEffect, useMemo } from "react";
|
|
3
3
|
import { useForm } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@tachybase/utils/client";
|
|
5
4
|
import { CloseCircleFilled } from "@ant-design/icons";
|
|
5
|
+
import { error } from "@tego/client";
|
|
6
6
|
import { Cascader, DatePicker, Input, InputNumber, Select, Space, Tag } from "antd";
|
|
7
7
|
import { createStyles } from "antd-style";
|
|
8
8
|
import classnames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { Space } from "antd";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { getScrollParent } from "@
|
|
3
|
+
import { getScrollParent } from "@tego/client";
|
|
4
4
|
import { useLockFn, useThrottleFn } from "ahooks";
|
|
5
5
|
import { Spin } from "antd";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -2,8 +2,10 @@ import { useMemo } from "react";
|
|
|
2
2
|
import { useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../collection-manager/index.mjs";
|
|
5
|
+
import { useDataSourceManager } from "../../data-source/index.mjs";
|
|
6
|
+
import { useCompile } from "./useCompile.mjs";
|
|
5
7
|
const useFieldModeOptions = (props)=>{
|
|
6
|
-
var _fieldSchema_xcomponentprops;
|
|
8
|
+
var _fieldSchema_xcomponentprops, _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions;
|
|
7
9
|
const { t } = useTranslation();
|
|
8
10
|
const { getCollectionJoinField, getCollection } = useCollectionManager_deprecated();
|
|
9
11
|
const currentFieldSchema = useFieldSchema();
|
|
@@ -11,12 +13,15 @@ const useFieldModeOptions = (props)=>{
|
|
|
11
13
|
const field = useField();
|
|
12
14
|
const form = useForm();
|
|
13
15
|
const isReadPretty = (null == fieldSchema ? void 0 : fieldSchema['x-read-pretty']) || field.readPretty || form.readPretty;
|
|
16
|
+
const dm = useDataSourceManager();
|
|
14
17
|
const isTableField = null == props ? void 0 : props.fieldSchema;
|
|
15
18
|
const { getField } = useCollection_deprecated();
|
|
16
19
|
const collectionField = (null == props ? void 0 : props.collectionField) || getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
|
|
20
|
+
const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionField ? void 0 : collectionField.interface);
|
|
17
21
|
const { label } = (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.fieldNames) || {};
|
|
22
|
+
const compile = useCompile();
|
|
18
23
|
const fieldModeOptions = useMemo(()=>{
|
|
19
|
-
if (!collectionField || !(null == collectionField ? void 0 : collectionField.interface)) return;
|
|
24
|
+
if (!collectionField || !(null == collectionField ? void 0 : collectionField.interface)) return [];
|
|
20
25
|
if (![
|
|
21
26
|
'o2o',
|
|
22
27
|
'oho',
|
|
@@ -206,10 +211,6 @@ const useFieldModeOptions = (props)=>{
|
|
|
206
211
|
label: t('Tag'),
|
|
207
212
|
value: 'Tag'
|
|
208
213
|
},
|
|
209
|
-
{
|
|
210
|
-
label: t('Custom Title'),
|
|
211
|
-
value: 'CustomTitle'
|
|
212
|
-
},
|
|
213
214
|
!isTableField && {
|
|
214
215
|
label: t('Sub-details'),
|
|
215
216
|
value: 'Nester'
|
|
@@ -238,10 +239,6 @@ const useFieldModeOptions = (props)=>{
|
|
|
238
239
|
{
|
|
239
240
|
label: t('Cascader'),
|
|
240
241
|
value: 'Cascader'
|
|
241
|
-
},
|
|
242
|
-
{
|
|
243
|
-
label: t('Custom Title'),
|
|
244
|
-
value: 'CustomTitle'
|
|
245
242
|
}
|
|
246
243
|
];
|
|
247
244
|
default:
|
|
@@ -286,6 +283,12 @@ const useFieldModeOptions = (props)=>{
|
|
|
286
283
|
null == collectionField ? void 0 : collectionField.interface,
|
|
287
284
|
label
|
|
288
285
|
]);
|
|
286
|
+
null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
|
|
287
|
+
if (!(null == fieldModeOptions ? void 0 : fieldModeOptions.find((modeItem)=>modeItem.value === item.value))) null == fieldModeOptions || fieldModeOptions.push({
|
|
288
|
+
label: compile(item.label),
|
|
289
|
+
value: item.value
|
|
290
|
+
});
|
|
291
|
+
});
|
|
289
292
|
return (fieldModeOptions || []).filter(Boolean);
|
|
290
293
|
};
|
|
291
294
|
export { useFieldModeOptions };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useContext, useMemo } from "react";
|
|
3
|
-
import { ArrayItems, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { Schema, SchemaOptionsContext, observer, onFieldValueChange, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems, FormLayout } from "@tego/client";
|
|
5
5
|
import { ConfigProvider, Space } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -321,7 +321,7 @@ const FilterCustomItemInitializer = /*#__PURE__*/ memo((props)=>{
|
|
|
321
321
|
'x-decorator': 'FilterFormItem',
|
|
322
322
|
'x-decorator-props': collection,
|
|
323
323
|
'x-component-props': {
|
|
324
|
-
...defaultSchema['x-component-props']
|
|
324
|
+
...defaultSchema['x-component-props'],
|
|
325
325
|
fieldNames: {
|
|
326
326
|
label: titleField,
|
|
327
327
|
value: titleField
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react from "react";
|
|
3
|
-
import { ArrayBase } from "@
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { Switch } from "antd";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
const AsDefaultTemplate = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { Fragment, createElement, useEffect, useState } from "react";
|
|
3
|
-
import { ArrayBase } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, observer, toArr, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { CopyOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayBase } from "@tego/client";
|
|
6
6
|
import { Badge, Card, Collapse, Empty, Input } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { clone } from "lodash";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { Select } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react, { useCallback } from "react";
|
|
2
|
-
import { ArrayBase } from "@tachybase/components";
|
|
3
2
|
import { useForm } from "@tachybase/schema";
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { App } from "antd";
|
|
5
5
|
import { LRUCache } from "lru-cache";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -15,6 +15,12 @@ function useFormulaTitleOptions() {
|
|
|
15
15
|
const collectionManage = useCollectionManager_deprecated();
|
|
16
16
|
const collectionManageField = collectionManage.collections.filter((value)=>value.name === fieldSchema['x-decorator-props'])[0];
|
|
17
17
|
const collectionField = getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
|
|
18
|
+
const isAssociationField = collectionField && [
|
|
19
|
+
'hasOne',
|
|
20
|
+
'hasMany',
|
|
21
|
+
'belongsTo',
|
|
22
|
+
'belongsToMany'
|
|
23
|
+
].includes(collectionField.type);
|
|
18
24
|
let fields = [];
|
|
19
25
|
if (collectionField) fields = getCollectionFields(collectionField ? collectionField.target ? collectionField.target : collectionField.collectionName : fieldSchema['name']);
|
|
20
26
|
else if (collectionManageField) fields = collectionManageField['fields'];
|
|
@@ -23,7 +29,7 @@ function useFormulaTitleOptions() {
|
|
|
23
29
|
if (![
|
|
24
30
|
'm2m',
|
|
25
31
|
'o2m'
|
|
26
|
-
].includes(field.interface)) {
|
|
32
|
+
].includes(field.interface) && isAssociationField) {
|
|
27
33
|
if (field.uiSchema) {
|
|
28
34
|
var _getCollectionFields;
|
|
29
35
|
var _getCollectionFields_filter_map;
|
|
@@ -37,6 +43,18 @@ function useFormulaTitleOptions() {
|
|
|
37
43
|
});
|
|
38
44
|
}
|
|
39
45
|
}
|
|
46
|
+
if (!isAssociationField && field.name === fieldSchema['name']) {
|
|
47
|
+
var _getCollectionFields1;
|
|
48
|
+
var _getCollectionFields_filter_map1;
|
|
49
|
+
options.push({
|
|
50
|
+
label: compile(field.uiSchema.title),
|
|
51
|
+
value: field.name,
|
|
52
|
+
children: null != (_getCollectionFields_filter_map1 = null == (_getCollectionFields1 = getCollectionFields(field.target)) ? void 0 : _getCollectionFields1.filter((subField)=>subField.uiSchema).map((subField)=>({
|
|
53
|
+
label: subField.uiSchema ? compile(subField.uiSchema.title) : '',
|
|
54
|
+
value: subField.name
|
|
55
|
+
}))) ? _getCollectionFields_filter_map1 : []
|
|
56
|
+
});
|
|
57
|
+
}
|
|
40
58
|
});
|
|
41
59
|
return options;
|
|
42
60
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useContext, useMemo, useState } from "react";
|
|
3
|
-
import { TreeSelect } from "@tachybase/components";
|
|
4
3
|
import { observer, uid } from "@tachybase/schema";
|
|
5
4
|
import { CloseCircleOutlined } from "@ant-design/icons";
|
|
5
|
+
import { TreeSelect } from "@tego/client";
|
|
6
6
|
import { Select, Space } from "antd";
|
|
7
7
|
import { createStyles } from "antd-style";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react from "react";
|
|
3
|
-
import { ArrayBase } from "@
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { Switch } from "antd";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
const EnableLinkage = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { Fragment, createElement, useEffect, useState } from "react";
|
|
3
|
-
import { ArrayBase } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, observer, toArr, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { CopyOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayBase } from "@tego/client";
|
|
6
6
|
import { Badge, Card, Collapse, Empty, Input } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { cloneDeep } from "lodash";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { createContext, useCallback, useContext, useEffect, useMemo, useState, useTransition } from "react";
|
|
3
|
-
import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext, createForm, uid as schema_uid, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
5
|
-
import { error } from "@
|
|
4
|
+
import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input, error } from "@tego/client";
|
|
6
5
|
import { Alert, App, Button, Cascader, ConfigProvider, Dropdown, Empty, Modal, Space, Switch } from "antd";
|
|
7
6
|
import { createStyles } from "antd-style";
|
|
8
7
|
import lodash, { cloneDeep, get, set } from "lodash";
|
|
@@ -1180,7 +1179,7 @@ const SchemaSettingsDataTemplates = function(props) {
|
|
|
1180
1179
|
]);
|
|
1181
1180
|
const onSubmit = useCallback((v)=>{
|
|
1182
1181
|
const data = {
|
|
1183
|
-
...formSchema['x-data-templates']
|
|
1182
|
+
...formSchema['x-data-templates'],
|
|
1184
1183
|
...v.fieldReaction
|
|
1185
1184
|
};
|
|
1186
1185
|
data.items.forEach((item)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse, FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -43,6 +43,8 @@ import { fileManagerComponentFieldSettings } from "../modules/fields/component/F
|
|
|
43
43
|
import { uploadAttachmentComponentFieldSettings } from "../modules/fields/component/FileManager/uploadAttachmentComponentFieldSettings.mjs";
|
|
44
44
|
import { inputComponentFieldSettings } from "../modules/fields/component/Input/inputComponentFieldsSettings.mjs";
|
|
45
45
|
import { inputNumberComponentFieldSettings } from "../modules/fields/component/InputNumber/inputNumberComponentFieldSettings.mjs";
|
|
46
|
+
import { inputPreviewComponentFieldSettings } from "../modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.mjs";
|
|
47
|
+
import { multipleComponentFieldSettings } from "../modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.mjs";
|
|
46
48
|
import { subformComponentFieldSettings } from "../modules/fields/component/Nester/subformComponentFieldSettings.mjs";
|
|
47
49
|
import { recordPickerComponentFieldSettings } from "../modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs";
|
|
48
50
|
import { subformPopoverComponentFieldSettings } from "../modules/fields/component/PopoverNester/subformPopoverComponentFieldSettings.mjs";
|
|
@@ -100,6 +102,7 @@ class SchemaSettingsPlugin extends Plugin {
|
|
|
100
102
|
this.schemaSettingsManager.add(datePickerComponentFieldSettings);
|
|
101
103
|
this.schemaSettingsManager.add(unixTimestampComponentFieldSettings);
|
|
102
104
|
this.schemaSettingsManager.add(inputComponentFieldSettings);
|
|
105
|
+
this.schemaSettingsManager.add(inputPreviewComponentFieldSettings);
|
|
103
106
|
this.schemaSettingsManager.add(inputNumberComponentFieldSettings);
|
|
104
107
|
this.schemaSettingsManager.add(checkboxComponentFieldSettings);
|
|
105
108
|
this.schemaSettingsManager.add(radioComponentFieldSettings);
|
|
@@ -109,6 +112,7 @@ class SchemaSettingsPlugin extends Plugin {
|
|
|
109
112
|
this.schemaSettingsManager.add(cascadeSelectComponentFieldSettings);
|
|
110
113
|
this.schemaSettingsManager.add(uploadAttachmentComponentFieldSettings);
|
|
111
114
|
this.schemaSettingsManager.add(cascaderComponentFieldSettings);
|
|
115
|
+
this.schemaSettingsManager.add(multipleComponentFieldSettings);
|
|
112
116
|
}
|
|
113
117
|
}
|
|
114
118
|
export { SchemaSettingsPlugin };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useCollectionManager_deprecated, useCollection_deprecated, useDesignable, useSortFields } from "../index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { error } from "@
|
|
2
|
+
import { error } from "@tego/client";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
5
5
|
import { useCompile, useGetFilterOptions } from "../../../schema-component/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse } from "@tachybase/components";
|
|
4
3
|
import { observer, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse } from "@tego/client";
|
|
5
5
|
import { css } from "antd-style";
|
|
6
6
|
import { FormBlockContext } from "../../block-provider/index.mjs";
|
|
7
7
|
import { useCollectionManager_deprecated } from "../../collection-manager/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
-
import { flatten, unflatten } from "@
|
|
2
|
+
import { flatten, unflatten } from "@tego/client";
|
|
3
3
|
import { useLocalVariables, useVariables } from "../../variables/index.mjs";
|
|
4
4
|
import { getVariableName } from "../../variables/utils/getVariableName.mjs";
|
|
5
5
|
import { isVariable } from "../../variables/utils/isVariable.mjs";
|
|
@@ -115,7 +115,7 @@ const schema = {
|
|
|
115
115
|
],
|
|
116
116
|
fulfill: {
|
|
117
117
|
state: {
|
|
118
|
-
hidden: "{{
|
|
118
|
+
hidden: "{{\n !$deps[1] ||\n !smsVerifyEnabled ||\n ($deps[0] !== 'code' && $deps[0] !== undefined) // \u6709 verifyMethod \u4F46\u672A\u9009 code\n }}"
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -140,7 +140,7 @@ const schema = {
|
|
|
140
140
|
],
|
|
141
141
|
fulfill: {
|
|
142
142
|
state: {
|
|
143
|
-
hidden: "{{
|
|
143
|
+
hidden: "{{\n !$deps[1] ||\n (smsVerifyEnabled && $deps[0] !== 'password' && $deps[0] !== undefined)\n }}"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
package/es/user/CurrentUser.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { error } from "@tachybase/utils/client";
|
|
4
3
|
import { UserOutlined } from "@ant-design/icons";
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { App, Dropdown, Menu } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useRef } from "react";
|
|
3
|
-
import { error } from "@
|
|
3
|
+
import { error } from "@tego/client";
|
|
4
4
|
const CurrentUserSettingsMenuContext = /*#__PURE__*/ createContext(null);
|
|
5
5
|
CurrentUserSettingsMenuContext.displayName = 'CurrentUserSettingsMenuContext';
|
|
6
6
|
const useCurrentUserSettingsMenu = ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { raw, untracked } from "@tachybase/schema";
|
|
4
|
-
import { getValuesByPath } from "@
|
|
4
|
+
import { getValuesByPath } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useAPIClient } from "../api-client/index.mjs";
|
|
7
7
|
import { useCollectionManager_deprecated } from "../collection-manager/index.mjs";
|
|
@@ -72,7 +72,7 @@ const VariablesProvider_VariablesProvider = (param)=>{
|
|
|
72
72
|
return null == item ? void 0 : item[key];
|
|
73
73
|
});
|
|
74
74
|
current = lodash.flatten(await Promise.all(result));
|
|
75
|
-
} else if (shouldToRequest(current[key]) && null != current.id && (null == associationField ? void 0 : associationField.target) && (null == associationField ? void 0 : associationField.type)
|
|
75
|
+
} else if (shouldToRequest(current[key]) && null != current.id && (null == associationField ? void 0 : associationField.target) && (null == associationField ? void 0 : associationField.type) !== 'virtual') {
|
|
76
76
|
const url = "/".concat(collectionName, "/").concat(current.id, "/").concat(key, ":").concat(getAction(associationField.type));
|
|
77
77
|
let data = null;
|
|
78
78
|
if (hasRequested(url)) data = await getRequested(url);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { dayjs } from "@
|
|
2
|
+
import { dayjs } from "@tego/client";
|
|
3
3
|
import { useCurrentUserVariable, useDatetimeVariable, useExactDateVariable } from "../../schema-settings/index.mjs";
|
|
4
4
|
import { useCurrentRoleVariable } from "../../schema-settings/VariableInput/hooks/useRoleVariable.mjs";
|
|
5
5
|
const useBuiltInVariables = ()=>{
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
40
|
-
const
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_antd_namespaceObject = require("antd");
|
|
42
42
|
function _define_property(obj, key, value) {
|
|
43
43
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -80,7 +80,7 @@ const getCurrentTimezone = ()=>{
|
|
|
80
80
|
return offsetToTimeZone(timezoneOffset);
|
|
81
81
|
};
|
|
82
82
|
const errorCache = new Map();
|
|
83
|
-
class APIClient extends
|
|
83
|
+
class APIClient extends client_namespaceObject.APIClient {
|
|
84
84
|
cloneInstance() {
|
|
85
85
|
const api = new APIClient(this.options);
|
|
86
86
|
api.options = this.options;
|
|
@@ -36,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
36
|
mergeStrategies: ()=>mergeStrategies,
|
|
37
37
|
assign: ()=>assign_assign
|
|
38
38
|
});
|
|
39
|
-
const client_namespaceObject = require("@
|
|
39
|
+
const client_namespaceObject = require("@tego/client");
|
|
40
40
|
const external_deepmerge_namespaceObject = require("deepmerge");
|
|
41
41
|
var external_deepmerge_default = /*#__PURE__*/ __webpack_require__.n(external_deepmerge_namespaceObject);
|
|
42
42
|
const external_lodash_namespaceObject = require("lodash");
|