@tachybase/client 1.3.21 → 1.3.23
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 +1 -2
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/schema-settings/SchemaSettings.d.ts +1 -1
- package/es/application/schema-settings/SchemaSettings.mjs +5 -3
- package/es/application/schema-settings/SchemaSettingsManager.d.ts +6 -0
- package/es/application/schema-settings/SchemaSettingsManager.mjs +15 -0
- package/es/application/utils/globalDeps.d.ts +1 -1
- package/es/application/utils/globalDeps.mjs +4 -11
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/FormFieldProvider.mjs +1 -1
- package/es/block-provider/hooks/index.mjs +1 -1
- package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
- package/es/built-in/attachment-preview/previewers/file-pdf.mjs +1 -1
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
- package/es/built-in/index.mjs +1 -1
- package/es/built-in/locale/LocalePlugin.mjs +0 -2
- package/es/built-in/page-style/useTabSettings.mjs +3 -3
- package/es/built-in/pm/PluginDetail.mjs +0 -2
- 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/Configuration/components/index.mjs +1 -1
- package/es/collection-manager/Configuration/index.d.ts +1 -0
- package/es/collection-manager/Configuration/index.mjs +2 -0
- package/es/collection-manager/hooks/index.d.ts +1 -0
- package/es/collection-manager/hooks/index.mjs +2 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
- package/es/collection-manager/index.d.ts +1 -1
- package/es/collection-manager/index.mjs +2 -2
- package/es/collection-manager/interfaces/checkbox.d.ts +1 -0
- package/es/collection-manager/interfaces/checkbox.mjs +1 -1
- package/es/collection-manager/interfaces/checkboxGroup.d.ts +1 -0
- package/es/collection-manager/interfaces/checkboxGroup.mjs +1 -1
- package/es/collection-manager/interfaces/chinaRegion.d.ts +1 -0
- package/es/collection-manager/interfaces/chinaRegion.mjs +1 -1
- package/es/collection-manager/interfaces/collection.d.ts +1 -0
- package/es/collection-manager/interfaces/collection.mjs +2 -2
- package/es/collection-manager/interfaces/color.d.ts +1 -0
- package/es/collection-manager/interfaces/color.mjs +1 -1
- package/es/collection-manager/interfaces/createdAt.d.ts +1 -0
- package/es/collection-manager/interfaces/createdAt.mjs +1 -1
- package/es/collection-manager/interfaces/createdBy.d.ts +1 -0
- package/es/collection-manager/interfaces/createdBy.mjs +1 -1
- package/es/collection-manager/interfaces/datetime.d.ts +1 -0
- package/es/collection-manager/interfaces/datetime.mjs +1 -1
- package/es/collection-manager/interfaces/email.d.ts +1 -0
- package/es/collection-manager/interfaces/email.mjs +1 -1
- package/es/collection-manager/interfaces/icon.d.ts +1 -0
- package/es/collection-manager/interfaces/icon.mjs +1 -1
- package/es/collection-manager/interfaces/input.d.ts +1 -0
- package/es/collection-manager/interfaces/input.mjs +1 -1
- package/es/collection-manager/interfaces/integer.d.ts +1 -0
- package/es/collection-manager/interfaces/integer.mjs +1 -1
- package/es/collection-manager/interfaces/json.d.ts +1 -0
- package/es/collection-manager/interfaces/json.mjs +2 -2
- package/es/collection-manager/interfaces/m2m.d.ts +1 -0
- package/es/collection-manager/interfaces/m2m.mjs +1 -1
- package/es/collection-manager/interfaces/m2o.d.ts +1 -0
- package/es/collection-manager/interfaces/m2o.mjs +1 -1
- package/es/collection-manager/interfaces/markdown.d.ts +1 -0
- package/es/collection-manager/interfaces/markdown.mjs +1 -1
- package/es/collection-manager/interfaces/multipleSelect.d.ts +1 -0
- package/es/collection-manager/interfaces/multipleSelect.mjs +2 -2
- package/es/collection-manager/interfaces/nanoid.d.ts +1 -0
- package/es/collection-manager/interfaces/nanoid.mjs +1 -1
- package/es/collection-manager/interfaces/number.d.ts +1 -0
- package/es/collection-manager/interfaces/number.mjs +1 -1
- package/es/collection-manager/interfaces/o2m.d.ts +1 -0
- package/es/collection-manager/interfaces/o2m.mjs +1 -1
- package/es/collection-manager/interfaces/o2o.d.ts +1 -0
- package/es/collection-manager/interfaces/o2o.mjs +1 -1
- package/es/collection-manager/interfaces/password.d.ts +1 -0
- package/es/collection-manager/interfaces/password.mjs +1 -1
- package/es/collection-manager/interfaces/percent.d.ts +1 -0
- package/es/collection-manager/interfaces/percent.mjs +2 -2
- package/es/collection-manager/interfaces/phone.d.ts +1 -0
- package/es/collection-manager/interfaces/phone.mjs +1 -1
- package/es/collection-manager/interfaces/radioGroup.d.ts +12 -11
- package/es/collection-manager/interfaces/radioGroup.mjs +1 -1
- package/es/collection-manager/interfaces/richText.d.ts +1 -0
- package/es/collection-manager/interfaces/richText.mjs +1 -1
- package/es/collection-manager/interfaces/select.d.ts +1 -0
- package/es/collection-manager/interfaces/select.mjs +2 -2
- package/es/collection-manager/interfaces/sort.d.ts +1 -0
- package/es/collection-manager/interfaces/sort.mjs +1 -1
- package/es/collection-manager/interfaces/subTable.d.ts +1 -0
- package/es/collection-manager/interfaces/subTable.mjs +1 -1
- package/es/collection-manager/interfaces/tableoid.d.ts +1 -0
- package/es/collection-manager/interfaces/tableoid.mjs +1 -1
- package/es/collection-manager/interfaces/textarea.d.ts +1 -0
- package/es/collection-manager/interfaces/textarea.mjs +1 -1
- package/es/collection-manager/interfaces/time.d.ts +1 -0
- package/es/collection-manager/interfaces/time.mjs +1 -1
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -0
- package/es/collection-manager/interfaces/unixTimestamp.mjs +1 -1
- package/es/collection-manager/interfaces/updatedAt.d.ts +1 -0
- package/es/collection-manager/interfaces/updatedAt.mjs +1 -1
- package/es/collection-manager/interfaces/updatedBy.d.ts +1 -0
- package/es/collection-manager/interfaces/updatedBy.mjs +1 -1
- package/es/collection-manager/interfaces/url.d.ts +1 -0
- package/es/collection-manager/interfaces/url.mjs +1 -1
- package/es/collection-manager/interfaces/uuid.d.ts +1 -0
- package/es/collection-manager/interfaces/uuid.mjs +1 -1
- package/es/collection-manager/templates/expression.mjs +1 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -0
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/filter-provider/utils.mjs +2 -1
- package/es/icon/preloaded.mjs +0 -1
- package/es/index.d.ts +3 -0
- package/es/index.mjs +4 -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 +1 -1
- 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/tableBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -1
- 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/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/preload.d.ts +16 -0
- package/es/preload.mjs +33 -0
- 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/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.mjs +1 -1
- package/es/schema-component/antd/association-field/index.d.ts +1 -0
- package/es/schema-component/antd/association-field/index.mjs +2 -1
- 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 +2 -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 +2 -1
- package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
- package/es/schema-component/antd/filter/index.d.ts +1 -0
- package/es/schema-component/antd/filter/index.mjs +1 -0
- 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/index.d.ts +1 -0
- package/es/schema-component/antd/form-v2/index.mjs +1 -0
- 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/ReadPretty.mjs +1 -1
- 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.mjs +1 -1
- 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 +1 -1
- package/es/schema-component/antd/select/ReadPretty.mjs +2 -2
- package/es/schema-component/antd/select/Select.mjs +1 -1
- 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/table-v2/index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/index.mjs +1 -0
- 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/common/sortable-item/DragHandlePageTab.mjs +6 -7
- 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/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/LinkageRules/index.d.ts +2 -0
- package/es/schema-settings/LinkageRules/index.mjs +2 -0
- package/es/schema-settings/SchemaSettings.mjs +2 -3
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
- package/es/schema-settings/VariableInput/index.d.ts +1 -0
- package/es/schema-settings/VariableInput/index.mjs +1 -0
- package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
- package/es/schema-settings/index.d.ts +3 -0
- package/es/schema-settings/index.mjs +3 -0
- 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 -7
- package/lib/application/WebSocketClient.js +2 -2
- package/lib/application/schema-settings/SchemaSettings.js +5 -3
- package/lib/application/schema-settings/SchemaSettingsManager.js +15 -0
- package/lib/application/utils/globalDeps.js +5 -11
- package/lib/block-provider/FormFieldProvider.js +1 -1
- package/lib/block-provider/hooks/index.js +13 -13
- package/lib/block-provider/hooks/useParsedFilter.js +1 -1
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +1 -1
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
- package/lib/built-in/index.js +12 -12
- package/lib/built-in/locale/LocalePlugin.js +72 -92
- package/lib/built-in/page-style/useTabSettings.js +3 -3
- package/lib/built-in/pm/PluginDetail.js +0 -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/Configuration/components/index.js +1 -1
- package/lib/collection-manager/Configuration/index.js +79 -19
- package/lib/collection-manager/hooks/index.js +28 -5
- package/lib/collection-manager/index.js +37 -17
- package/lib/collection-manager/interfaces/checkbox.js +1 -1
- package/lib/collection-manager/interfaces/checkboxGroup.js +1 -1
- package/lib/collection-manager/interfaces/chinaRegion.js +1 -1
- package/lib/collection-manager/interfaces/collection.js +2 -2
- package/lib/collection-manager/interfaces/color.js +1 -1
- package/lib/collection-manager/interfaces/createdAt.js +1 -1
- package/lib/collection-manager/interfaces/createdBy.js +1 -1
- package/lib/collection-manager/interfaces/datetime.js +1 -1
- package/lib/collection-manager/interfaces/email.js +1 -1
- package/lib/collection-manager/interfaces/icon.js +1 -1
- package/lib/collection-manager/interfaces/input.js +1 -1
- package/lib/collection-manager/interfaces/integer.js +1 -1
- package/lib/collection-manager/interfaces/json.js +4 -4
- package/lib/collection-manager/interfaces/m2m.js +1 -1
- package/lib/collection-manager/interfaces/m2o.js +1 -1
- package/lib/collection-manager/interfaces/markdown.js +1 -1
- package/lib/collection-manager/interfaces/multipleSelect.js +2 -2
- package/lib/collection-manager/interfaces/nanoid.js +1 -1
- package/lib/collection-manager/interfaces/number.js +1 -1
- package/lib/collection-manager/interfaces/o2m.js +1 -1
- package/lib/collection-manager/interfaces/o2o.js +1 -1
- package/lib/collection-manager/interfaces/password.js +1 -1
- package/lib/collection-manager/interfaces/percent.js +2 -2
- package/lib/collection-manager/interfaces/phone.js +1 -1
- package/lib/collection-manager/interfaces/radioGroup.js +1 -1
- package/lib/collection-manager/interfaces/richText.js +1 -1
- package/lib/collection-manager/interfaces/select.js +2 -2
- package/lib/collection-manager/interfaces/sort.js +1 -1
- package/lib/collection-manager/interfaces/subTable.js +1 -1
- package/lib/collection-manager/interfaces/tableoid.js +1 -1
- package/lib/collection-manager/interfaces/textarea.js +1 -1
- package/lib/collection-manager/interfaces/time.js +1 -1
- package/lib/collection-manager/interfaces/unixTimestamp.js +1 -1
- package/lib/collection-manager/interfaces/updatedAt.js +1 -1
- package/lib/collection-manager/interfaces/updatedBy.js +1 -1
- package/lib/collection-manager/interfaces/url.js +1 -1
- package/lib/collection-manager/interfaces/uuid.js +1 -1
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -0
- package/lib/filter-provider/utils.js +4 -2
- package/lib/icon/preloaded.js +0 -1
- package/lib/index.js +234 -125
- package/lib/locale/zh-CN.js +3 -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 -3
- 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/tableBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -3
- 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/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/preload.js +77 -0
- 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/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 +1 -1
- package/lib/schema-component/antd/association-field/index.js +10 -2
- 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 +18 -7
- 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 +30 -19
- package/lib/schema-component/antd/filter/FilterAction.js +1 -1
- package/lib/schema-component/antd/filter/index.js +9 -0
- 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/index.js +14 -0
- 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/ReadPretty.js +6 -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.js +2 -2
- 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 +1 -1
- package/lib/schema-component/antd/select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/select/Select.js +1 -1
- 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/table-v2/index.js +9 -0
- 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/common/sortable-item/DragHandlePageTab.js +6 -7
- 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/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/LinkageRules/index.js +271 -180
- package/lib/schema-settings/SchemaSettings.js +17 -18
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
- package/lib/schema-settings/VariableInput/index.js +9 -0
- package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
- package/lib/schema-settings/index.js +75 -48
- 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 +13 -3
- package/package.json +12 -26
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, 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 lodash from "lodash";
|
|
5
5
|
import { mergeFilter } from "../../../../filter-provider/index.mjs";
|
|
6
6
|
import { useParseDataScopeFilter } from "../../../../schema-settings/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createContext, useCallback, useContext, useEffect, useMemo, useState } from "react";
|
|
2
2
|
import { reaction, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
-
import { flatten, getValuesByPath } from "@
|
|
3
|
+
import { flatten, getValuesByPath } from "@tego/client";
|
|
4
4
|
import lodash, { isString } from "lodash";
|
|
5
5
|
import cloneDeep from "lodash/cloneDeep";
|
|
6
6
|
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../../collection-manager/index.mjs";
|
|
@@ -5,6 +5,7 @@ import { InternalPicker } from "./InternalPicker.mjs";
|
|
|
5
5
|
import { Nester } from "./Nester.mjs";
|
|
6
6
|
import { ReadPretty } from "./ReadPretty.mjs";
|
|
7
7
|
import { SubTable } from "./SubTable.mjs";
|
|
8
|
+
import { isSubMode } from "./util.mjs";
|
|
8
9
|
export * from "./SubTabs/index.mjs";
|
|
9
10
|
const AssociationField = connect(Editable, mapReadPretty(ReadPretty));
|
|
10
11
|
AssociationField.SubTable = SubTable;
|
|
@@ -14,4 +15,4 @@ AssociationField.Selector = Action.Container;
|
|
|
14
15
|
AssociationField.Viewer = Action.Container;
|
|
15
16
|
AssociationField.InternalSelect = InternalPicker;
|
|
16
17
|
AssociationField.ReadPretty = ReadPretty;
|
|
17
|
-
export { AssociationField };
|
|
18
|
+
export { AssociationField, isSubMode };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { isArr } from "@tachybase/schema";
|
|
3
|
-
import { getDefaultFormat, str2moment } from "@
|
|
3
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
4
4
|
import { Tag } from "antd";
|
|
5
5
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
6
6
|
const useLabelUiSchemaV2 = ()=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse, ArrayItems, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { connect, mapProps, mapReadPretty, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { LoadingOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayCollapse, ArrayItems, FormLayout } from "@tego/client";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { useFilterByTk, useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -242,7 +242,7 @@ AssociationSelect.Designer = function() {
|
|
|
242
242
|
title: t('Set default value'),
|
|
243
243
|
properties: {
|
|
244
244
|
default: {
|
|
245
|
-
...fieldSchemaWithoutRequired
|
|
245
|
+
...fieldSchemaWithoutRequired,
|
|
246
246
|
'x-decorator': 'FormItem',
|
|
247
247
|
'x-component-props': {
|
|
248
248
|
...fieldSchemaWithoutRequired['x-component-props'],
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { connect, mapProps, mapReadPretty, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { fuzzysearch } from "@
|
|
4
|
+
import { fuzzysearch } from "@tego/client";
|
|
5
5
|
import { useAsyncEffect } from "ahooks";
|
|
6
6
|
import { AutoComplete } from "antd";
|
|
7
7
|
import { useAPIClient } from "../../../api-client/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 { connect, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
4
|
+
import { usePrefixCls } from "@tego/client";
|
|
5
5
|
import { ColorPicker } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import classnames from "classnames";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultFormat, str2moment, toGmt, toLocal } from "@tego/client";
|
|
2
|
+
import dayjs from "dayjs";
|
|
2
3
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
3
4
|
if (!dayjs.isDayjs(value)) return value;
|
|
4
5
|
if ('local' === timezone) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { connect, mapReadPretty } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import cronstrue from "cronstrue";
|
|
7
7
|
import { Cron } from "react-js-cron";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { isArr } from "@tachybase/schema";
|
|
4
|
-
import { getDefaultFormat, str2moment } from "@
|
|
4
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
5
5
|
import classnames from "classnames";
|
|
6
6
|
import dayjs from "dayjs";
|
|
7
7
|
import { usePrefixCls } from "../__builtins__/index.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultFormat, str2moment, toGmt, toLocal } from "@tego/client";
|
|
2
|
+
import dayjs from "dayjs";
|
|
2
3
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
3
4
|
if (!dayjs.isDayjs(value)) return value;
|
|
4
5
|
if ('local' === timezone) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useMemo, useState } from "react";
|
|
3
3
|
import { createForm, observer, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { flatten, unflatten } from "@
|
|
4
|
+
import { flatten, unflatten } from "@tego/client";
|
|
5
5
|
import { Button, Space } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FieldContext, FormContext, RecursionField, createForm, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { ConfigProvider, Spin } from "antd";
|
|
6
6
|
import { useAttach, useComponent } from "../../index.mjs";
|
|
7
7
|
import { useRequest } from "../../../api-client/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "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 lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { SchemaSettings } from "../../../application/schema-settings/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { FormItem } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormItem } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import { useApp } from "../../../application/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "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 lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useEffect, useMemo, useRef } from "react";
|
|
2
2
|
import { useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
3
|
-
import { nextTick } from "@
|
|
3
|
+
import { nextTick } from "@tego/client";
|
|
4
4
|
import lodash from "lodash";
|
|
5
5
|
import { useAssociationNames } from "../../../../block-provider/hooks/index.mjs";
|
|
6
6
|
import { useCollectionManager_deprecated, useCollection_deprecated } from "../../../../collection-manager/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { useCallback, useEffect } from "react";
|
|
2
2
|
import { reaction, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
-
import { getValuesByPath } from "@
|
|
3
|
+
import { getValuesByPath } from "@tego/client";
|
|
4
4
|
import lodash from "lodash";
|
|
5
5
|
import { useRecordIndex } from "../../../../record-provider/index.mjs";
|
|
6
6
|
import { useCollection_deprecated } from "../../../../collection-manager/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ArrayItems } from "@tachybase/components";
|
|
2
1
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
2
|
+
import { ArrayItems } from "@tego/client";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { SchemaSettings } from "../../../application/schema-settings/index.mjs";
|
|
5
5
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FieldContext, FormContext, RecursionField, createForm, observer, onFieldInit, onFormInputChange, reaction, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
|
-
import { getValuesByPath } from "@
|
|
4
|
+
import { FormLayout, getValuesByPath } from "@tego/client";
|
|
6
5
|
import { ConfigProvider, Spin } from "antd";
|
|
7
6
|
import { createStyles } from "antd-style";
|
|
8
7
|
import { useActionContext } from "../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error, forEach } from "@
|
|
4
|
+
import { error, forEach } from "@tego/client";
|
|
5
5
|
import { Select, Space } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -4,6 +4,7 @@ import { FilterDesigner } from "./Form.FilterDesigner.mjs";
|
|
|
4
4
|
import { Templates, fetchTemplateData } from "./Templates.mjs";
|
|
5
5
|
export * from "./Form.Settings.mjs";
|
|
6
6
|
export * from "./FormField.mjs";
|
|
7
|
+
export * from "./utils.mjs";
|
|
7
8
|
Form.Designer = FormDesigner;
|
|
8
9
|
Form.FilterDesigner = FilterDesigner;
|
|
9
10
|
Form.ReadPrettyDesigner = ReadPrettyFormDesigner;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { evaluators } from "@
|
|
2
|
-
import { uid } from "@tachybase/utils/client";
|
|
1
|
+
import { evaluators, uid } from "@tego/client";
|
|
3
2
|
import lodash from "lodash";
|
|
4
3
|
import { ActionType } from "../../../schema-settings/LinkageRules/type.mjs";
|
|
5
4
|
import { REGEX_OF_VARIABLE } from "../../../variables/utils/isVariable.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FormContext, createForm, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { withDynamicSchemaProps } from "../../../application/hoc/withDynamicSchemaProps.mjs";
|
|
6
6
|
import { BlockProvider, useBlockRequestContext } from "../../../block-provider/index.mjs";
|
|
7
7
|
import { useGridCardBlockParams } from "../../../modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } 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 { Slider } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { useFormLayout } from "@tachybase/components";
|
|
4
3
|
import { connect, isValid, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { CloseOutlined, LoadingOutlined } from "@ant-design/icons";
|
|
5
|
+
import { useFormLayout } from "@tego/client";
|
|
6
6
|
import { Button, Space } from "antd";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
8
8
|
import { Icon, hasIcon } from "../../../icon/index.mjs";
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import "./index.css";
|
|
2
2
|
import { genStyleHook } from "./__builtins__/index.mjs";
|
|
3
3
|
import { PageHeader } from "@ant-design/pro-layout";
|
|
4
|
-
import { CodeMirror } from "@tachybase/components";
|
|
5
4
|
export * from "./AntdSchemaComponentProvider.mjs";
|
|
6
5
|
export * from "./action/index.mjs";
|
|
7
6
|
export * from "./appends-tree-select/index.mjs";
|
|
@@ -62,4 +61,4 @@ export * from "./upload/index.mjs";
|
|
|
62
61
|
export * from "./variable/index.mjs";
|
|
63
62
|
export * from "./media-card/index.mjs";
|
|
64
63
|
export * from "./tracking-link/index.mjs";
|
|
65
|
-
export {
|
|
64
|
+
export { PageHeader, genStyleHook };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { usePrefixCls } from "@tachybase/components";
|
|
4
3
|
import { useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { css } from "@emotion/css";
|
|
5
|
+
import { usePrefixCls } from "@tego/client";
|
|
6
6
|
import { Image, Typography } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { useCompile } from "../../index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { isValid } from "@tachybase/schema";
|
|
4
|
-
import { toFixedByStep } from "@
|
|
4
|
+
import { toFixedByStep } from "@tego/client";
|
|
5
5
|
import { format as external_d3_format_format } from "d3-format";
|
|
6
6
|
import { round } from "mathjs";
|
|
7
7
|
function countDecimalPlaces(value) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { FormContext, createForm, useField } from "@tachybase/schema";
|
|
4
|
+
import { FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { withDynamicSchemaProps } from "../../../application/hoc/withDynamicSchemaProps.mjs";
|
|
@@ -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 lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useFormBlockContext } from "../../../block-provider/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { TreeSelect } from "@tachybase/components";
|
|
3
2
|
import { onFieldChange, useField, useFieldSchema } from "@tachybase/schema";
|
|
3
|
+
import { TreeSelect } from "@tego/client";
|
|
4
4
|
import { App } from "antd";
|
|
5
5
|
import { saveAs } from "file-saver";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useContext, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { FieldContext, RecursionField, SchemaContext, SchemaExpressionScopeContext, observer, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@tachybase/utils/client";
|
|
5
4
|
import { PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
|
|
5
|
+
import { error } from "@tego/client";
|
|
6
6
|
import { Button, Menu, Popover } from "antd";
|
|
7
7
|
import { createPortal } from "react-dom";
|
|
8
8
|
import { DndContext, SortableItem, createDesignable, useDesignable, useDesigner } from "../../index.mjs";
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useContext, useEffect, useMemo, useState } from "react";
|
|
3
|
-
import { FormLayout } from "@tachybase/components";
|
|
4
3
|
import { Schema, SchemaOptionsContext, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { PlusOutlined } from "@ant-design/icons";
|
|
6
5
|
import { PageHeader } from "@ant-design/pro-layout";
|
|
7
6
|
import { PointerSensor, useSensor, useSensors } from "@dnd-kit/core";
|
|
7
|
+
import { FormLayout } from "@tego/client";
|
|
8
8
|
import { Button, Tabs } from "antd";
|
|
9
9
|
import { cx } from "antd-style";
|
|
10
10
|
import classnames from "classnames";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { Lightbox } from "@tachybase/components";
|
|
4
3
|
import { connect, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { DeleteOutlined, DownloadOutlined, 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 } from "react/jsx-runtime";
|
|
2
2
|
import react, { useMemo, useRef } from "react";
|
|
3
|
-
import { FormItem } from "@tachybase/components";
|
|
4
3
|
import { FormContext, RecursionField, createForm, observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { FormItem } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
7
7
|
import { StablePopover } from "../popover/index.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import { isArr } from "@tachybase/schema";
|
|
3
|
-
import { getDefaultFormat, str2moment } from "@
|
|
3
|
+
import { getDefaultFormat, str2moment } from "@tego/client";
|
|
4
4
|
import { Tag } from "antd";
|
|
5
5
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
6
6
|
const useLabelUiSchema = (collectionField, label)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useMemo, useState } from "react";
|
|
3
3
|
import { isValid, toArr, useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { isPlainObject } from "@tachybase/utils/client";
|
|
5
4
|
import { CloseCircleFilled, CloseOutlined } from "@ant-design/icons";
|
|
5
|
+
import { isPlainObject } from "@tego/client";
|
|
6
6
|
import { Empty, Select, Spin, Tag } from "antd";
|
|
7
7
|
import { useAPIClient, useRequest } from "../../../api-client/index.mjs";
|
|
8
8
|
import { useCollection_deprecated } from "../../../collection-manager/index.mjs";
|
|
@@ -6,7 +6,7 @@ import { useCollectionField } from "../../../data-source/collection-field/Collec
|
|
|
6
6
|
import { EllipsisWithTooltip } from "../input/EllipsisWithTooltip.mjs";
|
|
7
7
|
import { defaultFieldNames, getCurrentOptions } from "./utils.mjs";
|
|
8
8
|
const ReadPretty = observer((props)=>{
|
|
9
|
-
var _field_value, _fieldSchema_xcomponentprops_fieldNames;
|
|
9
|
+
var _field_value, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops;
|
|
10
10
|
const fieldNames = {
|
|
11
11
|
...defaultFieldNames,
|
|
12
12
|
...props.fieldNames
|
|
@@ -18,7 +18,7 @@ const ReadPretty = observer((props)=>{
|
|
|
18
18
|
const fieldSchema = useFieldSchema();
|
|
19
19
|
const dataSource = field.dataSource || props.options || (null == collectionField ? void 0 : collectionField.uiSchema.enum) || [];
|
|
20
20
|
const options = getCurrentOptions(field.value, dataSource, fieldNames);
|
|
21
|
-
const currentOptions = getFormulaValue(null == (
|
|
21
|
+
const currentOptions = getFormulaValue(null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) ? void 0 : _fieldSchema_xcomponentprops_fieldNames['formula'], options, fieldSchema);
|
|
22
22
|
return /*#__PURE__*/ jsx("div", {
|
|
23
23
|
children: /*#__PURE__*/ jsx(EllipsisWithTooltip, {
|
|
24
24
|
ellipsis: props.ellipsis,
|
|
@@ -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";
|
|
@@ -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";
|
|
@@ -9,6 +9,7 @@ import { TableSelector } from "./TableSelector.mjs";
|
|
|
9
9
|
export * from "./TableBlockDesigner.mjs";
|
|
10
10
|
export * from "./TableField.mjs";
|
|
11
11
|
export * from "./TableSelectorDesigner.mjs";
|
|
12
|
+
export * from "./Table.Column.Designer.mjs";
|
|
12
13
|
const TableV2 = Table;
|
|
13
14
|
TableV2.Column = TableColumn;
|
|
14
15
|
TableV2.Column.ActionBar = TableColumnActionBar;
|
|
@@ -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";
|