@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,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";
|
|
@@ -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,
|
|
@@ -4,7 +4,7 @@ export declare class SchemaSettings<T = {}> {
|
|
|
4
4
|
name: string;
|
|
5
5
|
get items(): SchemaSettingsItemType[];
|
|
6
6
|
constructor(options: SchemaSettingOptions<T>);
|
|
7
|
-
add(name: string, item: SchemaSettingsItemTypeWithoutName): void;
|
|
7
|
+
add(name: string, item: SchemaSettingsItemTypeWithoutName, targetIndex?: number): void;
|
|
8
8
|
get(nestedName: string): SchemaSettingsItemType | undefined;
|
|
9
9
|
remove(nestedName: string): void;
|
|
10
10
|
}
|
|
@@ -12,7 +12,7 @@ class SchemaSettings {
|
|
|
12
12
|
get items() {
|
|
13
13
|
return this.options.items;
|
|
14
14
|
}
|
|
15
|
-
add(name, item) {
|
|
15
|
+
add(name, item, targetIndex) {
|
|
16
16
|
const arr = name.split('.');
|
|
17
17
|
const data = {
|
|
18
18
|
...item,
|
|
@@ -20,7 +20,8 @@ class SchemaSettings {
|
|
|
20
20
|
};
|
|
21
21
|
if (1 === arr.length) {
|
|
22
22
|
const index = this.items.findIndex((item)=>item.name === name);
|
|
23
|
-
if (-1 === index) this.items.
|
|
23
|
+
if (-1 === index) if (targetIndex) this.items.splice(targetIndex, 0, data);
|
|
24
|
+
else this.items.push(data);
|
|
24
25
|
else this.items[index] = data;
|
|
25
26
|
return;
|
|
26
27
|
}
|
|
@@ -29,7 +30,8 @@ class SchemaSettings {
|
|
|
29
30
|
if (parentItem) {
|
|
30
31
|
if (!parentItem.children) parentItem.children = [];
|
|
31
32
|
const index = parentItem.children.findIndex((item)=>item.name === name);
|
|
32
|
-
if (-1 === index) parentItem.children.
|
|
33
|
+
if (-1 === index) if (targetIndex) parentItem.children.splice(targetIndex, 0, data);
|
|
34
|
+
else parentItem.children.push(data);
|
|
33
35
|
else parentItem.children[index] = data;
|
|
34
36
|
}
|
|
35
37
|
}
|
|
@@ -14,6 +14,12 @@ export declare class SchemaSettingsManager {
|
|
|
14
14
|
constructor(_schemaSettings: SchemaSettings<any>[], app: Application);
|
|
15
15
|
add<T = any>(...schemaSettingList: SchemaSettings<T>[]): void;
|
|
16
16
|
addItem(schemaSettingName: string | string[], itemName: string, data: SchemaSettingsItemTypeWithoutName): void;
|
|
17
|
+
addItemWithIndex({ schemaSettingName, itemName, index, data, }: {
|
|
18
|
+
schemaSettingName: string | string[];
|
|
19
|
+
itemName: string;
|
|
20
|
+
index?: number | number[];
|
|
21
|
+
data?: SchemaSettingsItemTypeWithoutName;
|
|
22
|
+
}): void;
|
|
17
23
|
get<T>(name: string): SchemaSettings<T> | undefined;
|
|
18
24
|
getAll(): Record<string, SchemaSettings<any>>;
|
|
19
25
|
has(name: string): boolean;
|
|
@@ -36,6 +36,21 @@ class SchemaSettingsManager {
|
|
|
36
36
|
});
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
|
+
addItemWithIndex(param) {
|
|
40
|
+
let { schemaSettingName, itemName, index, data } = param;
|
|
41
|
+
if (Array.isArray(schemaSettingName)) return void schemaSettingName.forEach((name, i)=>{
|
|
42
|
+
this.addItemWithIndex({
|
|
43
|
+
schemaSettingName: name,
|
|
44
|
+
itemName,
|
|
45
|
+
index: Array.isArray(index) ? index[i] : index,
|
|
46
|
+
data
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
const schemaSetting = this.get(schemaSettingName);
|
|
50
|
+
if (!schemaSetting) return;
|
|
51
|
+
const targetIndex = Array.isArray(index) ? index[0] : index;
|
|
52
|
+
schemaSetting.add(itemName, data, targetIndex);
|
|
53
|
+
}
|
|
39
54
|
get(name) {
|
|
40
55
|
return this.schemaSettings[name];
|
|
41
56
|
}
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import react from "react";
|
|
2
2
|
import axios from "axios";
|
|
3
|
+
import dayjs from "dayjs";
|
|
3
4
|
import lodash from "lodash";
|
|
4
5
|
import react_dom from "react-dom";
|
|
5
6
|
import jsx_runtime from "react/jsx-runtime";
|
|
6
7
|
import * as __WEBPACK_EXTERNAL_MODULE_react_i18next_05dede28__ from "react-i18next";
|
|
7
|
-
import * as
|
|
8
|
+
import * as __WEBPACK_EXTERNAL_MODULE__tego_client_7f3175c1__ from "@tego/client";
|
|
8
9
|
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
9
10
|
import * as __WEBPACK_EXTERNAL_MODULE_ahooks__ from "ahooks";
|
|
10
|
-
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_requirejs_6fa54ff5__ from "@tachybase/requirejs";
|
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema_532e17e1__ from "@tachybase/schema";
|
|
12
12
|
import * as __WEBPACK_EXTERNAL_MODULE_react_router_dom_5358f3fe__ from "react-router-dom";
|
|
13
13
|
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
14
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons_a8184985__ from "@ant-design/icons";
|
|
16
15
|
import * as __WEBPACK_EXTERNAL_MODULE__emotion_css_bfcd1b5d__ from "@emotion/css";
|
|
17
16
|
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__tachybase_evaluators_client_f0da03e4__ from "@tachybase/evaluators/client";
|
|
20
17
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_cssinjs_c619260f__ from "@ant-design/cssinjs";
|
|
21
18
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_accessibility_682092eb__ from "@dnd-kit/accessibility";
|
|
22
19
|
import * as __WEBPACK_EXTERNAL_MODULE__dnd_kit_core_a545325d__ from "@dnd-kit/core";
|
|
@@ -38,20 +35,16 @@ function defineGlobalDeps(requirejs) {
|
|
|
38
35
|
requirejs.define('@ant-design/cssinjs', ()=>__WEBPACK_EXTERNAL_MODULE__ant_design_cssinjs_c619260f__);
|
|
39
36
|
requirejs.define('i18next', ()=>__WEBPACK_EXTERNAL_MODULE_i18next__);
|
|
40
37
|
requirejs.define('react-i18next', ()=>__WEBPACK_EXTERNAL_MODULE_react_i18next_05dede28__);
|
|
41
|
-
requirejs.define('@
|
|
38
|
+
requirejs.define('@tego/client', ()=>__WEBPACK_EXTERNAL_MODULE__tego_client_7f3175c1__);
|
|
42
39
|
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
40
|
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
41
|
requirejs.define('@dnd-kit/accessibility', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_accessibility_682092eb__);
|
|
49
42
|
requirejs.define('@dnd-kit/core', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_core_a545325d__);
|
|
50
43
|
requirejs.define('@dnd-kit/modifiers', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_modifiers_69ce91a8__);
|
|
51
44
|
requirejs.define('@dnd-kit/sortable', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_sortable_a8361dd8__);
|
|
52
45
|
requirejs.define('@dnd-kit/utilities', ()=>__WEBPACK_EXTERNAL_MODULE__dnd_kit_utilities_3c8eb4c2__);
|
|
53
46
|
requirejs.define('axios', ()=>axios);
|
|
54
|
-
requirejs.define('dayjs', ()=>
|
|
47
|
+
requirejs.define('dayjs', ()=>dayjs);
|
|
55
48
|
requirejs.define('lodash', ()=>lodash);
|
|
56
49
|
requirejs.define('ahooks', ()=>__WEBPACK_EXTERNAL_MODULE_ahooks__);
|
|
57
50
|
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";
|
|
@@ -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";
|
|
@@ -13,7 +13,7 @@ const options = {
|
|
|
13
13
|
cMapPacked: true,
|
|
14
14
|
standardFontDataUrl: "https://assets.tachybase.com/pdfjs-dist@".concat(pdfjs.version, "/standard_fonts/")
|
|
15
15
|
};
|
|
16
|
-
pdfjs.GlobalWorkerOptions.workerSrc = "https://assets.tachybase.com/pdfjs-dist@".concat(pdfjs.version, "/build/pdf.worker.min.
|
|
16
|
+
pdfjs.GlobalWorkerOptions.workerSrc = "https://assets.tachybase.com/pdfjs-dist@".concat(pdfjs.version, "/build/pdf.worker.min.mjs");
|
|
17
17
|
const TransformInternal = (param)=>{
|
|
18
18
|
let { noTransformWrapper = false, children } = param;
|
|
19
19
|
return noTransformWrapper ? children : /*#__PURE__*/ jsx(TransformWrapper, {
|
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";
|
|
@@ -52,8 +52,6 @@ class LocalePlugin extends Plugin {
|
|
|
52
52
|
const dayjsLang = dayjsLocale[null == data ? void 0 : null == (_data_data3 = data.data) ? void 0 : _data_data3.lang] || 'en';
|
|
53
53
|
await import("dayjs/locale/".concat(dayjsLang, ".js"));
|
|
54
54
|
dayjs.locale(dayjsLang);
|
|
55
|
-
const updateLocale = await import("dayjs/plugin/updateLocale");
|
|
56
|
-
dayjs.extend(updateLocale.default);
|
|
57
55
|
const localeSetting = {
|
|
58
56
|
invalidDate: '-'
|
|
59
57
|
};
|
|
@@ -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
|
}
|
|
@@ -2,12 +2,10 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useMemo } from "react";
|
|
3
3
|
import { Alert, Col, Modal, Row, Space, Spin, Table, Tabs, Tag, Typography } from "antd";
|
|
4
4
|
import dayjs from "dayjs";
|
|
5
|
-
import relativeTime from "dayjs/plugin/relativeTime";
|
|
6
5
|
import { useTranslation } from "react-i18next";
|
|
7
6
|
import { useRequest } from "../../api-client/index.mjs";
|
|
8
7
|
import { PluginDocument } from "./PluginDocument.mjs";
|
|
9
8
|
import { useStyles } from "./style.mjs";
|
|
10
|
-
dayjs.extend(relativeTime);
|
|
11
9
|
const PluginDetail = (param)=>{
|
|
12
10
|
let { plugin, onCancel } = param;
|
|
13
11
|
var _data_data, _data_data1, _data_data2, _data_data3, _data_data4, _data_data5, _data_data6, _data_data7, _data_data8, _data_data9;
|
|
@@ -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";
|
|
@@ -144,7 +144,7 @@ const TargetKey = observer((props)=>{
|
|
|
144
144
|
const field = useField();
|
|
145
145
|
field.required = true;
|
|
146
146
|
useEffect(()=>{
|
|
147
|
-
if (target) {
|
|
147
|
+
if (target && '__temp__' !== target) {
|
|
148
148
|
var _getCollection_fields;
|
|
149
149
|
setOptions(null == (_getCollection_fields = getCollection(target).fields) ? void 0 : _getCollection_fields.filter((v)=>{
|
|
150
150
|
if ('hasMany' !== type) return v.primaryKey || v.unique;
|
|
@@ -16,3 +16,4 @@ export * from './components/CollectionFieldInterfaceTag';
|
|
|
16
16
|
export * from './components/CollectionCategory';
|
|
17
17
|
export * from './components/CollectionTemplateTag';
|
|
18
18
|
export * from './ImportCollectionMetaAction';
|
|
19
|
+
export * as CMConfigurationComponents from './components';
|
|
@@ -17,6 +17,8 @@ export * from "./components/CollectionFieldInterfaceTag.mjs";
|
|
|
17
17
|
export * from "./components/CollectionCategory.mjs";
|
|
18
18
|
export * from "./components/CollectionTemplateTag.mjs";
|
|
19
19
|
export * from "./ImportCollectionMetaAction.mjs";
|
|
20
|
+
import * as __WEBPACK_EXTERNAL_MODULE__components_index_mjs_99c14d58__ from "./components/index.mjs";
|
|
20
21
|
registerValidateFormats({
|
|
21
22
|
uid: /^[a-zA-Z][a-zA-Z0-9_-]*$/
|
|
22
23
|
});
|
|
24
|
+
export { __WEBPACK_EXTERNAL_MODULE__components_index_mjs_99c14d58__ as CMConfigurationComponents };
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
+
import useDialect from "./useDialect.mjs";
|
|
1
2
|
export * from "./useCollection_deprecated.mjs";
|
|
2
3
|
export * from "./useCollectionField_deprecated.mjs";
|
|
3
4
|
export * from "./useCollectionManager_deprecated.mjs";
|
|
4
5
|
export * from "./useCollectionDataSource.mjs";
|
|
6
|
+
export { useDialect };
|
|
@@ -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,4 +1,4 @@
|
|
|
1
|
-
export { useCancelAction, useCollectionFilterOptions, useSortFields, useLinkageCollectionFilterOptions, useCollectionFieldsOptions, isDeleteButtonDisabled, } from './action-hooks';
|
|
1
|
+
export { useCancelAction, useCollectionFilterOptions, useSortFields, useLinkageCollectionFilterOptions, useCollectionFieldsOptions, isDeleteButtonDisabled, useCollectionFilterOptionsV2, } from './action-hooks';
|
|
2
2
|
export * from './CollectionManagerProvider';
|
|
3
3
|
export * from './CollectionManagerSchemaComponentProvider';
|
|
4
4
|
export * from './CollectionProvider_deprecated';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isDeleteButtonDisabled, useCancelAction, useCollectionFieldsOptions, useCollectionFilterOptions, useLinkageCollectionFilterOptions, useSortFields } from "./action-hooks.mjs";
|
|
1
|
+
import { isDeleteButtonDisabled, useCancelAction, useCollectionFieldsOptions, useCollectionFilterOptions, useCollectionFilterOptionsV2, useLinkageCollectionFilterOptions, useSortFields } from "./action-hooks.mjs";
|
|
2
2
|
import { useFieldInterfaceOptions } from "./Configuration/interfaces.mjs";
|
|
3
3
|
import { getConfigurableProperties } from "./templates/properties/index.mjs";
|
|
4
4
|
export * from "./CollectionManagerProvider.mjs";
|
|
@@ -19,4 +19,4 @@ export * from "./sub-table.mjs";
|
|
|
19
19
|
export * from "./CollectionHistoryProvider.mjs";
|
|
20
20
|
export * from "./utils.mjs";
|
|
21
21
|
import * as __WEBPACK_EXTERNAL_MODULE__interfaces_properties_index_mjs_a68377dd__ from "./interfaces/properties/index.mjs";
|
|
22
|
-
export { getConfigurableProperties, __WEBPACK_EXTERNAL_MODULE__interfaces_properties_index_mjs_a68377dd__ as interfacesProperties, isDeleteButtonDisabled, useCancelAction, useCollectionFieldsOptions, useCollectionFilterOptions, useFieldInterfaceOptions, useLinkageCollectionFilterOptions, useSortFields };
|
|
22
|
+
export { getConfigurableProperties, __WEBPACK_EXTERNAL_MODULE__interfaces_properties_index_mjs_a68377dd__ as interfacesProperties, isDeleteButtonDisabled, useCancelAction, useCollectionFieldsOptions, useCollectionFilterOptions, useCollectionFilterOptionsV2, useFieldInterfaceOptions, useLinkageCollectionFilterOptions, useSortFields };
|
|
@@ -22,7 +22,7 @@ class CheckboxFieldInterface extends CollectionFieldInterface {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
constructor(...args){
|
|
25
|
-
super(...args), _define_property(this, "name", 'checkbox'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Checkbox")}}'), _define_property(this, "default", {
|
|
25
|
+
super(...args), _define_property(this, "name", 'checkbox'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "icon", 'CheckSquareOutlined'), _define_property(this, "order", 1), _define_property(this, "title", '{{t("Checkbox")}}'), _define_property(this, "default", {
|
|
26
26
|
type: 'boolean',
|
|
27
27
|
uiSchema: {
|
|
28
28
|
type: 'boolean',
|
|
@@ -22,7 +22,7 @@ class CheckboxGroupFieldInterface extends CollectionFieldInterface {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
constructor(...args){
|
|
25
|
-
super(...args), _define_property(this, "name", 'checkboxGroup'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "order", 5), _define_property(this, "title", '{{t("Checkbox group")}}'), _define_property(this, "default", {
|
|
25
|
+
super(...args), _define_property(this, "name", 'checkboxGroup'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "icon", 'UnorderedListOutlined'), _define_property(this, "order", 5), _define_property(this, "title", '{{t("Checkbox group")}}'), _define_property(this, "default", {
|
|
26
26
|
interface: 'checkboxGroup',
|
|
27
27
|
type: 'array',
|
|
28
28
|
defaultValue: [],
|
|
@@ -20,7 +20,7 @@ class ChinaRegionFieldInterface extends CollectionFieldInterface {
|
|
|
20
20
|
if (!values.targetKey) values.targetKey = 'id';
|
|
21
21
|
}
|
|
22
22
|
constructor(...args){
|
|
23
|
-
super(...args), _define_property(this, "name", 'chinaRegion'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "order", 7), _define_property(this, "title", '{{t("China region")}}'), _define_property(this, "isAssociation", true), _define_property(this, "default", {
|
|
23
|
+
super(...args), _define_property(this, "name", 'chinaRegion'), _define_property(this, "type", 'object'), _define_property(this, "group", 'choices'), _define_property(this, "icon", 'CompassOutlined'), _define_property(this, "order", 7), _define_property(this, "title", '{{t("China region")}}'), _define_property(this, "isAssociation", true), _define_property(this, "default", {
|
|
24
24
|
interface: 'chinaRegion',
|
|
25
25
|
type: 'belongsToMany',
|
|
26
26
|
target: 'chinaRegions',
|