@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,4 +1,4 @@
|
|
|
1
|
-
import { APIClient as APIClientSDK } from '@
|
|
1
|
+
import { APIClient as APIClientSDK } from '@tego/client';
|
|
2
2
|
import { Result } from 'ahooks/es/useRequest/src/types';
|
|
3
3
|
import { Application } from '../application';
|
|
4
4
|
export declare class APIClient extends APIClientSDK {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import react from "react";
|
|
2
|
-
import { APIClient } from "@
|
|
2
|
+
import { APIClient } from "@tego/client";
|
|
3
3
|
import { notification as external_antd_notification } from "antd";
|
|
4
4
|
function _define_property(obj, key, value) {
|
|
5
5
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare function useResource(name: string, of?: string | number): import("
|
|
1
|
+
export declare function useResource(name: string, of?: string | number): import("@tego/client").IResource;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import React, { ComponentType, ReactElement } from 'react';
|
|
2
|
-
import { type RequireJS } from '@
|
|
3
|
-
import { APIClientOptions } from '@tachybase/sdk';
|
|
2
|
+
import { APIClientOptions, type RequireJS } from '@tego/client';
|
|
4
3
|
import { i18n as i18next } from 'i18next';
|
|
5
4
|
import { APIClient } from '../api-client';
|
|
6
5
|
import { CollectionFieldInterfaceComponentOption } from '../data-source';
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react from "react";
|
|
3
|
-
import { getRequireJs } from "@tachybase/requirejs";
|
|
4
3
|
import { define as schema_define, observable } from "@tachybase/schema";
|
|
5
|
-
import { getSubAppName } from "@
|
|
4
|
+
import { getRequireJs, getSubAppName } from "@tego/client";
|
|
6
5
|
import { get, merge, set } from "lodash";
|
|
7
6
|
import { createRoot } from "react-dom/client";
|
|
8
7
|
import { I18nextProvider } from "react-i18next";
|
|
@@ -17,7 +16,7 @@ import { CSSVariableProvider } from "../style/css-variable/index.mjs";
|
|
|
17
16
|
import { AntdAppProvider, GlobalThemeProvider } from "../style/theme/index.mjs";
|
|
18
17
|
import { AppSchemaComponentProvider } from "./AppSchemaComponentProvider.mjs";
|
|
19
18
|
import { AttachmentPreviewManager } from "./AttachmentPreviewManager.mjs";
|
|
20
|
-
import { AppComponent, BlankComponent,
|
|
19
|
+
import { AppComponent, BlankComponent, defaultAppComponents } from "./components/index.mjs";
|
|
21
20
|
import { NoticeManager } from "./NoticesManager.mjs";
|
|
22
21
|
import { PluginContextMenu } from "./PluginContextMenu.mjs";
|
|
23
22
|
import { PluginManager } from "./PluginManager.mjs";
|
|
@@ -87,14 +86,6 @@ class Application {
|
|
|
87
86
|
path: '*',
|
|
88
87
|
Component: this.components['AppNotFound']
|
|
89
88
|
});
|
|
90
|
-
this.router.add('share', {
|
|
91
|
-
path: '/share',
|
|
92
|
-
Component: SharePage
|
|
93
|
-
});
|
|
94
|
-
this.router.add('share.page', {
|
|
95
|
-
path: '/share/:name',
|
|
96
|
-
Component: ShareSchemaComponent
|
|
97
|
-
});
|
|
98
89
|
this.router.add('share.notAuthorized', {
|
|
99
90
|
path: '/share/not-authorized',
|
|
100
91
|
element: null
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { define as schema_define, observable } from "@tachybase/schema";
|
|
2
|
-
import { getSubAppName } from "@
|
|
2
|
+
import { getSubAppName } from "@tego/client";
|
|
3
3
|
function _define_property(obj, key, value) {
|
|
4
4
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
5
5
|
value: value,
|
|
@@ -12,5 +12,5 @@ export declare const useSchemaInitializer: () => {
|
|
|
12
12
|
visible: boolean;
|
|
13
13
|
setVisible: (v: boolean) => void;
|
|
14
14
|
};
|
|
15
|
-
export declare const SchemaInitializerItemContext: React.Context<Omit<SchemaInitializerItemType, "type" | "
|
|
15
|
+
export declare const SchemaInitializerItemContext: React.Context<Omit<SchemaInitializerItemType, "type" | "sort" | "component" | "componentProps" | "Component" | "useVisible" | "useChildren" | "hideIfNoChildren">>;
|
|
16
16
|
export declare const useSchemaInitializerItem: <T = any>() => T;
|
|
@@ -4,20 +4,15 @@ import lodash from "lodash";
|
|
|
4
4
|
import react_dom from "react-dom";
|
|
5
5
|
import jsx_runtime from "react/jsx-runtime";
|
|
6
6
|
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next_05dede28__ from "react-i18next";
|
|
7
|
-
import * as
|
|
7
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tego_client_7f3175c1__ from "@tego/client";
|
|
8
8
|
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_ahooks__ from "ahooks";
|
|
10
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_requirejs_6fa54ff5__ from "@tachybase/requirejs";
|
|
11
10
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema_532e17e1__ from "@tachybase/schema";
|
|
12
11
|
import * as __WEBPACK_EXTERNAL_MODULE_react_router_dom_5358f3fe__ from "react-router-dom";
|
|
13
12
|
import * as __WEBPACK_EXTERNAL_MODULE_antd_style_1dcbd21e__ from "antd-style";
|
|
14
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_utils_client_603f4a44__ from "@tachybase/utils/client";
|
|
15
13
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons_a8184985__ from "@ant-design/icons";
|
|
16
14
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
17
15
|
import * as __WEBPACK_EXTERNAL_MODULE_i18next__ from "i18next";
|
|
18
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_components_8f070c76__ from "@tachybase/components";
|
|
19
|
-
import * as __WEBPACK_EXTERNAL_MODULE_react_router_65608a1a__ from "react-router";
|
|
20
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_evaluators_client_f0da03e4__ from "@tachybase/evaluators/client";
|
|
21
16
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_cssinjs_c619260f__ from "@ant-design/cssinjs";
|
|
22
17
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_accessibility_682092eb__ from "@dnd-kit/accessibility";
|
|
23
18
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_core_a545325d__ from "@dnd-kit/core";
|
|
@@ -25,6 +20,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_modifiers_69ce91a8__ from "@dnd-k
|
|
|
25
20
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_sortable_a8361dd8__ from "@dnd-kit/sortable";
|
|
26
21
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_utilities_3c8eb4c2__ from "@dnd-kit/utilities";
|
|
27
22
|
import * as __WEBPACK_EXTERNAL_MODULE__floating_ui_react_3ddd630a__ from "@floating-ui/react";
|
|
23
|
+
import * as __WEBPACK_EXTERNAL_MODULE_react_router_65608a1a__ from "react-router";
|
|
28
24
|
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs_52ce5380__ from "../../index.mjs";
|
|
29
25
|
function defineGlobalDeps(requirejs) {
|
|
30
26
|
requirejs.define('react', ()=>react);
|
|
@@ -38,20 +34,16 @@ function defineGlobalDeps(requirejs) {
|
|
|
38
34
|
requirejs.define('@ant-design/cssinjs', ()=>__WEBPACK_EXTERNAL_MODULE__ant_design_cssinjs_c619260f__);
|
|
39
35
|
requirejs.define('i18next', ()=>__WEBPACK_EXTERNAL_MODULE_i18next__);
|
|
40
36
|
requirejs.define('react-i18next', ()=>__WEBPACK_EXTERNAL_MODULE_react_i18next_05dede28__);
|
|
41
|
-
requirejs.define('@
|
|
37
|
+
requirejs.define('@tego/client', ()=>__WEBPACK_EXTERNAL_MODULE__tego_client_7f3175c1__);
|
|
42
38
|
requirejs.define('@tachybase/client', ()=>__WEBPACK_EXTERNAL_MODULE__index_mjs_52ce5380__);
|
|
43
|
-
requirejs.define('@tachybase/evaluators/client', ()=>__WEBPACK_EXTERNAL_MODULE__tachybase_evaluators_client_f0da03e4__);
|
|
44
|
-
requirejs.define('@tachybase/sdk', ()=>__WEBPACK_EXTERNAL_MODULE__tachybase_sdk_f769e039__);
|
|
45
39
|
requirejs.define('@tachybase/schema', ()=>__WEBPACK_EXTERNAL_MODULE__tachybase_schema_532e17e1__);
|
|
46
|
-
requirejs.define('@tachybase/requirejs', ()=>__WEBPACK_EXTERNAL_MODULE__tachybase_requirejs_6fa54ff5__);
|
|
47
|
-
requirejs.define('@tachybase/components', ()=>__WEBPACK_EXTERNAL_MODULE__tachybase_components_8f070c76__);
|
|
48
40
|
requirejs.define('@dnd-kit/accessibility', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_accessibility_682092eb__);
|
|
49
41
|
requirejs.define('@dnd-kit/core', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_core_a545325d__);
|
|
50
42
|
requirejs.define('@dnd-kit/modifiers', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_modifiers_69ce91a8__);
|
|
51
43
|
requirejs.define('@dnd-kit/sortable', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_sortable_a8361dd8__);
|
|
52
44
|
requirejs.define('@dnd-kit/utilities', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_utilities_3c8eb4c2__);
|
|
53
45
|
requirejs.define('axios', ()=>axios);
|
|
54
|
-
requirejs.define('dayjs', ()=>
|
|
46
|
+
requirejs.define('dayjs', ()=>__WEBPACK_EXTERNAL_MODULE__tego_client_7f3175c1__.dayjs);
|
|
55
47
|
requirejs.define('lodash', ()=>lodash);
|
|
56
48
|
requirejs.define('ahooks', ()=>__WEBPACK_EXTERNAL_MODULE_ahooks__);
|
|
57
49
|
requirejs.define('@emotion/css', ()=>__WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
3
|
import { autorun, createForm, onFormValuesChange, useField } from "@tachybase/schema";
|
|
4
|
-
import { forEach } from "@
|
|
4
|
+
import { forEach } from "@tego/client";
|
|
5
5
|
import { Spin } from "antd";
|
|
6
6
|
import { useCollectionParentRecordData } from "../data-source/collection-record/CollectionRecordProvider.mjs";
|
|
7
7
|
import { RecordProvider } from "../record-provider/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect } from "react";
|
|
2
2
|
import { untracked, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
3
|
-
import { isURL, parse } from "@
|
|
3
|
+
import { isURL, parse } from "@tego/client";
|
|
4
4
|
import { App } from "antd";
|
|
5
5
|
import flat from "flat";
|
|
6
6
|
import lodash from "lodash";
|
|
@@ -1126,7 +1126,7 @@ const useAssociationNames = (dataSource)=>{
|
|
|
1126
1126
|
appends.add(append);
|
|
1127
1127
|
});
|
|
1128
1128
|
}
|
|
1129
|
-
if (null == (_s_xcomponentprops1 = s['x-component-props']) ? void 0 : null == (_s_xcomponentprops_fieldNames = _s_xcomponentprops1.fieldNames) ? void 0 : _s_xcomponentprops_fieldNames.formula) {
|
|
1129
|
+
if ((null == (_s_xcomponentprops1 = s['x-component-props']) ? void 0 : null == (_s_xcomponentprops_fieldNames = _s_xcomponentprops1.fieldNames) ? void 0 : _s_xcomponentprops_fieldNames.formula) && isAssociationField) {
|
|
1130
1130
|
var _s_xcomponentprops_fieldNames1, _s_xcomponentprops4;
|
|
1131
1131
|
appends.add(s['name']);
|
|
1132
1132
|
const regex = /{{(.*?)}}/g;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useState } from "react";
|
|
2
2
|
import { reaction } from "@tachybase/schema";
|
|
3
|
-
import { flatten, getValuesByPath } from "@
|
|
3
|
+
import { flatten, getValuesByPath } from "@tego/client";
|
|
4
4
|
import { useDeepCompareEffect } from "ahooks";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useParseDataScopeFilter } from "../../schema-settings/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext } from "react";
|
|
3
|
-
import { FormItem, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { connect, useField, useForm } from "@tachybase/schema";
|
|
4
|
+
import { FormItem, FormLayout } from "@tego/client";
|
|
5
5
|
import { Checkbox, Table, Tag } from "antd";
|
|
6
6
|
import { isEmpty } from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
package/es/built-in/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Plugin } from '../application/Plugin';
|
|
2
|
-
export { AdminProvider, NoticeArea, AdminLayout } from './admin-layout';
|
|
2
|
+
export { AdminProvider, NoticeArea, AdminLayout, MenuEditor, AdminTabs } from './admin-layout';
|
|
3
|
+
export * from './pinned-list';
|
|
3
4
|
export * from './context-menu/useContextMenu';
|
|
4
5
|
export declare const AppNotFound: () => import("react/jsx-runtime").JSX.Element;
|
|
5
6
|
export declare class BuiltInPlugin extends Plugin {
|
package/es/built-in/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { observer } from "@tachybase/schema";
|
|
3
|
-
import { getSubAppName } from "@tachybase/sdk";
|
|
4
3
|
import { DisconnectOutlined, LoadingOutlined } from "@ant-design/icons";
|
|
5
4
|
import { css as css_css } from "@emotion/css";
|
|
6
5
|
import { DotLottieReact } from "@lottiefiles/dotlottie-react";
|
|
6
|
+
import { getSubAppName } from "@tego/client";
|
|
7
7
|
import { Button, Result } from "antd";
|
|
8
8
|
import { createStyles } from "antd-style";
|
|
9
9
|
import { useTranslation } from "react-i18next";
|
|
@@ -38,7 +38,8 @@ import { ScrollAssistantPlugin } from "./scroll-assistant/index.mjs";
|
|
|
38
38
|
import { SystemSettingsPlugin } from "./system-settings/index.mjs";
|
|
39
39
|
import { PluginSystemVersion } from "./system-version/index.mjs";
|
|
40
40
|
import { UserSettingsPlugin } from "./user-settings/index.mjs";
|
|
41
|
-
import { AdminLayout, AdminProvider, NoticeArea } from "./admin-layout/index.mjs";
|
|
41
|
+
import { AdminLayout, AdminProvider, AdminTabs, MenuEditor, NoticeArea } from "./admin-layout/index.mjs";
|
|
42
|
+
export * from "./pinned-list/index.mjs";
|
|
42
43
|
export * from "./context-menu/useContextMenu.mjs";
|
|
43
44
|
function _tagged_template_literal(strings, raw) {
|
|
44
45
|
if (!raw) raw = strings.slice(0);
|
|
@@ -495,4 +496,4 @@ class BuiltInPlugin extends Plugin {
|
|
|
495
496
|
});
|
|
496
497
|
}
|
|
497
498
|
}
|
|
498
|
-
export { AdminLayout, AdminProvider, AppNotFound, BuiltInPlugin, NoticeArea };
|
|
499
|
+
export { AdminLayout, AdminProvider, AdminTabs, AppNotFound, BuiltInPlugin, MenuEditor, NoticeArea };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback } from "react";
|
|
3
|
-
import { error } from "@
|
|
3
|
+
import { error } from "@tego/client";
|
|
4
4
|
import { useTranslation } from "react-i18next";
|
|
5
5
|
import { useAPIClient } from "../../api-client/index.mjs";
|
|
6
6
|
import { SelectWithTitle } from "../../common/index.mjs";
|
|
@@ -41,7 +41,7 @@ function useUpdatePageStyleSettings() {
|
|
|
41
41
|
await api.resource('users').updateProfile({
|
|
42
42
|
values: {
|
|
43
43
|
systemSettings: {
|
|
44
|
-
...currentUser.data.data.systemSettings
|
|
44
|
+
...currentUser.data.data.systemSettings,
|
|
45
45
|
pageStyle
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -50,7 +50,7 @@ function useUpdatePageStyleSettings() {
|
|
|
50
50
|
data: {
|
|
51
51
|
...currentUser.data.data,
|
|
52
52
|
systemSettings: {
|
|
53
|
-
...currentUser.data.data.systemSettings
|
|
53
|
+
...currentUser.data.data.systemSettings,
|
|
54
54
|
pageStyle
|
|
55
55
|
}
|
|
56
56
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { fuzzysearch } from "@
|
|
3
|
+
import { fuzzysearch } from "@tego/client";
|
|
4
4
|
import { useDebounce } from "ahooks";
|
|
5
5
|
import { Button, Card, Form, Input, Radio, Result, Select, Space, Spin, Table, Tag, Typography } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
3
|
import { useForm } from "@tachybase/schema";
|
|
4
|
-
import { uid } from "@
|
|
4
|
+
import { uid } from "@tego/client";
|
|
5
5
|
import { SchemaInitializerItem, useSchemaInitializer } from "../../application/index.mjs";
|
|
6
6
|
import { Action, ActionContextProvider, SchemaComponent } from "../../schema-component/index.mjs";
|
|
7
7
|
function ModalActionSchemaInitializerItem(props) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useRef, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useField, useForm } from "@tachybase/schema";
|
|
5
4
|
import { DownOutlined, PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayTable } from "@tego/client";
|
|
6
6
|
import { Button, Dropdown } from "antd";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useField, useForm } from "@tachybase/schema";
|
|
5
4
|
import { PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayTable } from "@tego/client";
|
|
6
6
|
import { Button, Dropdown } from "antd";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid } from "@tachybase/schema";
|
|
5
4
|
import { PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayTable } from "@tego/client";
|
|
6
6
|
import { Button, Dropdown } from "antd";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useForm } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import omit from "lodash/omit";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useForm } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import omit from "lodash/omit";
|
|
7
7
|
import set from "lodash/set";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useForm } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useAPIClient, useRequest } from "../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import { cloneDeep, omit, set } from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useAPIClient, useRequest } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useForm } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import { omit, set } from "lodash";
|
|
6
6
|
import cloneDeep from "lodash/cloneDeep";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid, useField, useForm } from "@tachybase/schema";
|
|
5
4
|
import { PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayTable } from "@tego/client";
|
|
6
6
|
import { Button } from "antd";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { createForm, uid, useField, useForm } from "@tachybase/schema";
|
|
5
4
|
import { SyncOutlined } from "@ant-design/icons";
|
|
5
|
+
import { FormLayout } from "@tego/client";
|
|
6
6
|
import { Button } from "antd";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { useAPIClient } from "../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo, useState } from "react";
|
|
3
|
-
import { ArrayTable } from "@tachybase/components";
|
|
4
3
|
import { uid } from "@tachybase/schema";
|
|
4
|
+
import { ArrayTable } from "@tego/client";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import set from "lodash/set";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -42,6 +42,42 @@ class CollectionPlugin extends Plugin {
|
|
|
42
42
|
key: DEFAULT_DATA_SOURCE_KEY,
|
|
43
43
|
displayName: DEFAULT_DATA_SOURCE_TITLE
|
|
44
44
|
});
|
|
45
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('m2o', {
|
|
46
|
+
label: '{{t("CustomTitle")}}',
|
|
47
|
+
value: 'CustomTitle'
|
|
48
|
+
});
|
|
49
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('m2m', {
|
|
50
|
+
label: '{{t("CustomTitle")}}',
|
|
51
|
+
value: 'CustomTitle'
|
|
52
|
+
});
|
|
53
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('o2m', {
|
|
54
|
+
label: '{{t("CustomTitle")}}',
|
|
55
|
+
value: 'CustomTitle'
|
|
56
|
+
});
|
|
57
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('o2o', {
|
|
58
|
+
label: '{{t("CustomTitle")}}',
|
|
59
|
+
value: 'CustomTitle'
|
|
60
|
+
});
|
|
61
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('obo', {
|
|
62
|
+
label: '{{t("CustomTitle")}}',
|
|
63
|
+
value: 'CustomTitle'
|
|
64
|
+
});
|
|
65
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('select', {
|
|
66
|
+
label: '{{t("CustomTitle")}}',
|
|
67
|
+
value: 'CustomTitle'
|
|
68
|
+
});
|
|
69
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('checkbox', {
|
|
70
|
+
label: '{{t("CustomTitle")}}',
|
|
71
|
+
value: 'CustomTitle'
|
|
72
|
+
});
|
|
73
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('radioGroup', {
|
|
74
|
+
label: '{{t("CustomTitle")}}',
|
|
75
|
+
value: 'CustomTitle'
|
|
76
|
+
});
|
|
77
|
+
this.app.dataSourceManager.collectionFieldInterfaceManager.addFieldInterfaceComponentOption('multipleSelect', {
|
|
78
|
+
label: '{{t("CustomTitle")}}',
|
|
79
|
+
value: 'CustomTitle'
|
|
80
|
+
});
|
|
45
81
|
}
|
|
46
82
|
addFieldInterfaceGroups() {
|
|
47
83
|
this.dataSourceManager.addFieldInterfaceGroups({
|
|
@@ -4,7 +4,7 @@ export type Collection_deprecated = ReturnType<typeof useCollection_deprecated>;
|
|
|
4
4
|
* @deprecated use `useCollection` instead
|
|
5
5
|
*/
|
|
6
6
|
export declare const useCollection_deprecated: () => {
|
|
7
|
-
resource: import("
|
|
7
|
+
resource: import("@tego/client").IResource;
|
|
8
8
|
getTreeParentField: () => import("../..").CollectionFieldOptions;
|
|
9
9
|
fields: import("../..").CollectionFieldOptions[];
|
|
10
10
|
getField: (name: SchemaKey) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { FormItem, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { registerValidateRules } from "@tachybase/schema";
|
|
4
|
+
import { FormItem, FormLayout } from "@tego/client";
|
|
5
5
|
import { CollectionFieldInterface } from "../../data-source/collection-field-interface/CollectionFieldInterface.mjs";
|
|
6
6
|
import { defaultProps, operators } from "./properties/index.mjs";
|
|
7
7
|
function _define_property(obj, key, value) {
|
|
@@ -16,19 +16,19 @@ export declare class RadioGroupFieldInterface extends CollectionFieldInterface {
|
|
|
16
16
|
availableTypes: string[];
|
|
17
17
|
hasDefaultValue: boolean;
|
|
18
18
|
properties: {
|
|
19
|
-
'uiSchema.enum': import("
|
|
19
|
+
'uiSchema.enum': import("@tachybase/schema").Stringify<{
|
|
20
20
|
[key: symbol]: any;
|
|
21
21
|
[key: `x-${string}`]: any;
|
|
22
22
|
[key: `x-${number}`]: any;
|
|
23
23
|
version?: string;
|
|
24
|
-
name?: import("
|
|
24
|
+
name?: import("@tachybase/schema").SchemaKey;
|
|
25
25
|
title?: any;
|
|
26
26
|
description?: any;
|
|
27
27
|
default?: any;
|
|
28
28
|
readOnly?: boolean;
|
|
29
29
|
writeOnly?: boolean;
|
|
30
|
-
type?: import("
|
|
31
|
-
enum?: import("
|
|
30
|
+
type?: import("@tachybase/schema").SchemaTypes;
|
|
31
|
+
enum?: import("@tachybase/schema").SchemaEnum<any>;
|
|
32
32
|
const?: any;
|
|
33
33
|
multipleOf?: number;
|
|
34
34
|
maximum?: number;
|
|
@@ -47,12 +47,12 @@ export declare class RadioGroupFieldInterface extends CollectionFieldInterface {
|
|
|
47
47
|
format?: string;
|
|
48
48
|
$ref?: string;
|
|
49
49
|
$namespace?: string;
|
|
50
|
-
definitions?: import("
|
|
51
|
-
properties?: import("
|
|
52
|
-
items?: import("
|
|
53
|
-
additionalItems?: import("
|
|
54
|
-
patternProperties?: import("
|
|
55
|
-
additionalProperties?: import("
|
|
50
|
+
definitions?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
51
|
+
properties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
52
|
+
items?: import("@tachybase/schema").SchemaItems<any, any, any, any, any, any, any, any>;
|
|
53
|
+
additionalItems?: import("@tachybase/schema").Stringify</*elided*/ any>;
|
|
54
|
+
patternProperties?: import("@tachybase/schema").SchemaProperties<any, any, any, any, any, any, any, any>;
|
|
55
|
+
additionalProperties?: import("@tachybase/schema").Stringify</*elided*/ any>;
|
|
56
56
|
"x-value"?: any;
|
|
57
57
|
"x-index"?: number;
|
|
58
58
|
"x-pattern"?: any;
|
|
@@ -62,7 +62,7 @@ export declare class RadioGroupFieldInterface extends CollectionFieldInterface {
|
|
|
62
62
|
"x-decorator-props"?: any;
|
|
63
63
|
"x-component"?: any;
|
|
64
64
|
"x-component-props"?: any;
|
|
65
|
-
"x-reactions"?: import("
|
|
65
|
+
"x-reactions"?: import("@tachybase/schema").SchemaReactions<any>;
|
|
66
66
|
"x-content"?: any;
|
|
67
67
|
"x-data"?: any;
|
|
68
68
|
"x-visible"?: boolean;
|
|
@@ -13,6 +13,10 @@ export declare class UrlFieldInterface extends CollectionFieldInterface {
|
|
|
13
13
|
'x-component': string;
|
|
14
14
|
};
|
|
15
15
|
};
|
|
16
|
+
componentOptions: {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
}[];
|
|
16
20
|
availableTypes: string[];
|
|
17
21
|
schemaInitialize(schema: ISchema, { block }: {
|
|
18
22
|
block: any;
|
|
@@ -21,7 +21,16 @@ class UrlFieldInterface extends CollectionFieldInterface {
|
|
|
21
21
|
type: 'string',
|
|
22
22
|
'x-component': 'Input.URL'
|
|
23
23
|
}
|
|
24
|
-
}), _define_property(this, "
|
|
24
|
+
}), _define_property(this, "componentOptions", [
|
|
25
|
+
{
|
|
26
|
+
label: 'URL',
|
|
27
|
+
value: 'Input.URL'
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Preview',
|
|
31
|
+
value: 'Input.Preview'
|
|
32
|
+
}
|
|
33
|
+
]), _define_property(this, "availableTypes", [
|
|
25
34
|
'string',
|
|
26
35
|
'text'
|
|
27
36
|
]), _define_property(this, "properties", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getOptions } from "@
|
|
1
|
+
import { getOptions } from "@tego/client";
|
|
2
2
|
import { CollectionTemplate } from "../../data-source/collection-template/CollectionTemplate.mjs";
|
|
3
3
|
import { getConfigurableProperties } from "./properties/index.mjs";
|
|
4
4
|
function _define_property(obj, key, value) {
|
|
@@ -52,7 +52,7 @@ export declare const defaultConfigurableProperties: {
|
|
|
52
52
|
type: string;
|
|
53
53
|
'x-decorator': string;
|
|
54
54
|
'x-visible': string;
|
|
55
|
-
'x-component': import("react").MemoExoticComponent<import("
|
|
55
|
+
'x-component': import("react").MemoExoticComponent<import("@tachybase/schema").ReactFC<Omit<any, "ref">>>;
|
|
56
56
|
};
|
|
57
57
|
};
|
|
58
58
|
export type DefaultConfigurableKeys = 'name' | 'title' | 'inherits' | 'category' | 'autoGenId' | 'createdBy' | 'updatedBy' | 'createdAt' | 'updatedAt' | 'sortable' | 'description' | 'presetFields';
|
|
@@ -8,9 +8,6 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
|
|
|
8
8
|
fields: any[];
|
|
9
9
|
};
|
|
10
10
|
configurableProperties: {
|
|
11
|
-
name: any;
|
|
12
|
-
title: any;
|
|
13
|
-
description: any;
|
|
14
11
|
autoGenId: any;
|
|
15
12
|
createdBy: any;
|
|
16
13
|
updatedBy: any;
|
|
@@ -18,6 +15,9 @@ export declare class SqlCollectionTemplate extends CollectionTemplate {
|
|
|
18
15
|
updatedAt: any;
|
|
19
16
|
sortable: any;
|
|
20
17
|
inherits: any;
|
|
18
|
+
title: any;
|
|
19
|
+
name: any;
|
|
20
|
+
description: any;
|
|
21
21
|
category: any;
|
|
22
22
|
presetFields: any;
|
|
23
23
|
config: {
|