@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,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { createElement, useEffect, useRef, useState } from "react";
|
|
3
|
-
import { Lightbox } from "@tachybase/components";
|
|
4
3
|
import { connect, mapProps, mapReadPretty } from "@tachybase/schema";
|
|
5
4
|
import { DeleteOutlined, DownloadOutlined, InboxOutlined, LoadingOutlined, PlusOutlined } from "@ant-design/icons";
|
|
5
|
+
import { Lightbox } from "@tego/client";
|
|
6
6
|
import { Button, Progress, Space, Upload } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { saveAs } from "file-saver";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useState } from "react";
|
|
3
|
-
import { CodeMirror } from "@tachybase/components";
|
|
4
3
|
import { useForm } from "@tachybase/schema";
|
|
4
|
+
import { CodeMirror } from "@tego/client";
|
|
5
5
|
import { cloneDeep } from "lodash";
|
|
6
6
|
import { css, useTranslation } from "../../../index.mjs";
|
|
7
7
|
import { VariableSelect } from "./VariableSelect.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useEffect, useMemo } from "react";
|
|
3
3
|
import { useForm } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@tachybase/utils/client";
|
|
5
4
|
import { CloseCircleFilled } from "@ant-design/icons";
|
|
5
|
+
import { error } from "@tego/client";
|
|
6
6
|
import { Cascader, DatePicker, Input, InputNumber, Select, Space, Tag } from "antd";
|
|
7
7
|
import { createStyles } from "antd-style";
|
|
8
8
|
import classnames from "classnames";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
|
|
3
3
|
import { useFieldSchema, useForm } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { Space } from "antd";
|
|
6
6
|
import classnames from "classnames";
|
|
7
7
|
import { cloneDeep } from "lodash";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useEffect, useRef, useState } from "react";
|
|
3
|
-
import { getScrollParent } from "@
|
|
3
|
+
import { getScrollParent } from "@tego/client";
|
|
4
4
|
import { useLockFn, useThrottleFn } from "ahooks";
|
|
5
5
|
import { Spin } from "antd";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -19,20 +19,19 @@ const DragHandlePageTab = (props)=>{
|
|
|
19
19
|
x: 0,
|
|
20
20
|
y: 0
|
|
21
21
|
});
|
|
22
|
-
const centerOffset = {
|
|
23
|
-
x: 4 * dimensions.width,
|
|
24
|
-
y: 3 * dimensions.height
|
|
25
|
-
};
|
|
26
22
|
const style = {
|
|
27
23
|
position: isDragging ? 'fixed' : 'static',
|
|
28
|
-
top: isDragging ? initialPosition.y -
|
|
29
|
-
left: isDragging ? initialPosition.x -
|
|
24
|
+
top: isDragging ? initialPosition.y - 5 * dimensions.height : 0,
|
|
25
|
+
left: isDragging ? initialPosition.x - dimensions.width : 0,
|
|
30
26
|
width: isDragging ? 'max-content' : '100%',
|
|
31
27
|
height: isDragging ? 'max-content' : '100%',
|
|
32
28
|
zIndex: isDragging ? 999 : 'auto',
|
|
33
29
|
pointerEvents: isDragging ? 'none' : 'auto',
|
|
34
30
|
transform: transform ? "translate3d(".concat(transform.x, "px, ").concat(transform.y, "px, 0) scale(").concat(isDragging ? 1.05 : 1, ")") : void 0,
|
|
35
|
-
boxShadow: isDragging ? '0 4px
|
|
31
|
+
boxShadow: isDragging ? '0 8px 24px 4px rgba(0,0,0,0.18)' : 'none',
|
|
32
|
+
WebkitTransform: transform ? "translate3d(".concat(transform.x, "px, ").concat(transform.y, "px, 0) scale(").concat(isDragging ? 1.05 : 1, ")") : void 0,
|
|
33
|
+
WebkitPerspective: isDragging ? 1000 : void 0,
|
|
34
|
+
isolation: isDragging ? 'isolate' : void 0
|
|
36
35
|
};
|
|
37
36
|
const handleMouseDown = (event)=>{
|
|
38
37
|
if (ref.current) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { memo, useCallback, useContext, useMemo } from "react";
|
|
3
|
-
import { ArrayItems, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { Schema, SchemaOptionsContext, observer, onFieldValueChange, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems, FormLayout } from "@tego/client";
|
|
5
5
|
import { ConfigProvider, Space } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -321,7 +321,7 @@ const FilterCustomItemInitializer = /*#__PURE__*/ memo((props)=>{
|
|
|
321
321
|
'x-decorator': 'FilterFormItem',
|
|
322
322
|
'x-decorator-props': collection,
|
|
323
323
|
'x-component-props': {
|
|
324
|
-
...defaultSchema['x-component-props']
|
|
324
|
+
...defaultSchema['x-component-props'],
|
|
325
325
|
fieldNames: {
|
|
326
326
|
label: titleField,
|
|
327
327
|
value: titleField
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react from "react";
|
|
3
|
-
import { ArrayBase } from "@
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { Switch } from "antd";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
const AsDefaultTemplate = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { Fragment, createElement, useEffect, useState } from "react";
|
|
3
|
-
import { ArrayBase } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, observer, toArr, uid, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { CopyOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayBase } from "@tego/client";
|
|
6
6
|
import { Badge, Card, Collapse, Empty, Input } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { clone } from "lodash";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
3
|
import { observer, useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
-
import { error } from "@
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { Select } from "antd";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import react, { useCallback } from "react";
|
|
2
|
-
import { ArrayBase } from "@tachybase/components";
|
|
3
2
|
import { useForm } from "@tachybase/schema";
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { App } from "antd";
|
|
5
5
|
import { LRUCache } from "lru-cache";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { useCallback, useContext, useMemo, useState } from "react";
|
|
3
|
-
import { TreeSelect } from "@tachybase/components";
|
|
4
3
|
import { observer, uid } from "@tachybase/schema";
|
|
5
4
|
import { CloseCircleOutlined } from "@ant-design/icons";
|
|
5
|
+
import { TreeSelect } from "@tego/client";
|
|
6
6
|
import { Select, Space } from "antd";
|
|
7
7
|
import { createStyles } from "antd-style";
|
|
8
8
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import react from "react";
|
|
3
|
-
import { ArrayBase } from "@
|
|
3
|
+
import { ArrayBase } from "@tego/client";
|
|
4
4
|
import { Switch } from "antd";
|
|
5
5
|
import { useTranslation } from "react-i18next";
|
|
6
6
|
const EnableLinkage = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { Fragment, createElement, useEffect, useState } from "react";
|
|
3
|
-
import { ArrayBase } from "@tachybase/components";
|
|
4
3
|
import { RecursionField, observer, toArr, useField, useFieldSchema } from "@tachybase/schema";
|
|
5
4
|
import { CopyOutlined } from "@ant-design/icons";
|
|
5
|
+
import { ArrayBase } from "@tego/client";
|
|
6
6
|
import { Badge, Card, Collapse, Empty, Input } from "antd";
|
|
7
7
|
import classnames from "classnames";
|
|
8
8
|
import { cloneDeep } from "lodash";
|
|
@@ -13,6 +13,8 @@ import { VariableInput, getShouldChange } from "../VariableInput/VariableInput.m
|
|
|
13
13
|
import { EnableLinkage } from "./components/EnableLinkage.mjs";
|
|
14
14
|
import { ArrayCollapse } from "./components/LinkageHeader.mjs";
|
|
15
15
|
import { LinkageRuleActionGroup } from "./LinkageRuleActionGroup.mjs";
|
|
16
|
+
export * from "./type.mjs";
|
|
17
|
+
export * from "./action-hooks.mjs";
|
|
16
18
|
function _tagged_template_literal(strings, raw) {
|
|
17
19
|
if (!raw) raw = strings.slice(0);
|
|
18
20
|
return Object.freeze(Object.defineProperties(strings, {
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import react, { createContext, useCallback, useContext, useEffect, useMemo, useState, useTransition } from "react";
|
|
3
|
-
import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input } from "@tachybase/components";
|
|
4
3
|
import { SchemaOptionsContext, createForm, uid as schema_uid, useField, useFieldSchema, useForm } from "@tachybase/schema";
|
|
5
|
-
import { error } from "@
|
|
4
|
+
import { ArrayCollapse, ArrayItems, FormItem, FormLayout, Input, error } from "@tego/client";
|
|
6
5
|
import { Alert, App, Button, Cascader, ConfigProvider, Dropdown, Empty, Modal, Space, Switch } from "antd";
|
|
7
6
|
import { createStyles } from "antd-style";
|
|
8
7
|
import lodash, { cloneDeep, get, set } from "lodash";
|
|
@@ -1180,7 +1179,7 @@ const SchemaSettingsDataTemplates = function(props) {
|
|
|
1180
1179
|
]);
|
|
1181
1180
|
const onSubmit = useCallback((v)=>{
|
|
1182
1181
|
const data = {
|
|
1183
|
-
...formSchema['x-data-templates']
|
|
1182
|
+
...formSchema['x-data-templates'],
|
|
1184
1183
|
...v.fieldReaction
|
|
1185
1184
|
};
|
|
1186
1185
|
data.items.forEach((item)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useCallback, useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse, FormLayout } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse, FormLayout } from "@tego/client";
|
|
5
5
|
import { createStyles } from "antd-style";
|
|
6
6
|
import lodash from "lodash";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { ArrayItems } from "@tachybase/components";
|
|
4
3
|
import { useField, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayItems } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useTranslation } from "react-i18next";
|
|
7
7
|
import { useCollectionManager_deprecated, useCollection_deprecated, useDesignable, useSortFields } from "../index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import { error } from "@
|
|
2
|
+
import { error } from "@tego/client";
|
|
3
3
|
import { useTranslation } from "react-i18next";
|
|
4
4
|
import { useCollectionManager_deprecated } from "../../../collection-manager/index.mjs";
|
|
5
5
|
import { useCompile, useGetFilterOptions } from "../../../schema-component/index.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { useMemo } from "react";
|
|
3
|
-
import { ArrayCollapse } from "@tachybase/components";
|
|
4
3
|
import { observer, useFieldSchema } from "@tachybase/schema";
|
|
4
|
+
import { ArrayCollapse } from "@tego/client";
|
|
5
5
|
import { css } from "antd-style";
|
|
6
6
|
import { FormBlockContext } from "../../block-provider/index.mjs";
|
|
7
7
|
import { useCollectionManager_deprecated } from "../../collection-manager/index.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useCallback } from "react";
|
|
2
|
-
import { flatten, unflatten } from "@
|
|
2
|
+
import { flatten, unflatten } from "@tego/client";
|
|
3
3
|
import { useLocalVariables, useVariables } from "../../variables/index.mjs";
|
|
4
4
|
import { getVariableName } from "../../variables/utils/getVariableName.mjs";
|
|
5
5
|
import { isVariable } from "../../variables/utils/isVariable.mjs";
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from './DataTemplates/hooks/useCollectionState';
|
|
2
2
|
export * from './DataTemplates/utils';
|
|
3
3
|
export * from './DataTemplates/FormDataTemplates';
|
|
4
|
+
export * from './DateFormat/ExpiresRadio';
|
|
4
5
|
export * from './GeneralSchemaDesigner';
|
|
5
6
|
export * from './SchemaSettings';
|
|
6
7
|
export * from './hooks/useGetAriaLabelOfDesigner';
|
|
7
8
|
export * from './hooks/useIsAllowToSetDefaultValue';
|
|
9
|
+
export * from './hooks/useIsShowMultipleSwitch';
|
|
8
10
|
export * from './isPatternDisabled';
|
|
9
11
|
export * from './SchemaSettingsDataScope';
|
|
10
12
|
export * from './SchemaSettingsDefaultValue';
|
|
@@ -17,3 +19,4 @@ export * from './EditCustomDefaultValue';
|
|
|
17
19
|
export * from './hooks/useParseDataScopeFilter';
|
|
18
20
|
export * from './SchemaSettingsPlugin';
|
|
19
21
|
export * from './VariableInput';
|
|
22
|
+
export * from './LinkageRules';
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./DataTemplates/hooks/useCollectionState.mjs";
|
|
2
2
|
export * from "./DataTemplates/utils.mjs";
|
|
3
3
|
export * from "./DataTemplates/FormDataTemplates.mjs";
|
|
4
|
+
export * from "./DateFormat/ExpiresRadio.mjs";
|
|
4
5
|
export * from "./GeneralSchemaDesigner.mjs";
|
|
5
6
|
export * from "./SchemaSettings.mjs";
|
|
6
7
|
export * from "./hooks/useGetAriaLabelOfDesigner.mjs";
|
|
7
8
|
export * from "./hooks/useIsAllowToSetDefaultValue.mjs";
|
|
9
|
+
export * from "./hooks/useIsShowMultipleSwitch.mjs";
|
|
8
10
|
export * from "./isPatternDisabled.mjs";
|
|
9
11
|
export * from "./SchemaSettingsDataScope.mjs";
|
|
10
12
|
export * from "./SchemaSettingsDefaultValue.mjs";
|
|
@@ -17,3 +19,4 @@ export * from "./EditCustomDefaultValue.mjs";
|
|
|
17
19
|
export * from "./hooks/useParseDataScopeFilter.mjs";
|
|
18
20
|
export * from "./SchemaSettingsPlugin.mjs";
|
|
19
21
|
export * from "./VariableInput/index.mjs";
|
|
22
|
+
export * from "./LinkageRules/index.mjs";
|
|
@@ -115,7 +115,7 @@ const schema = {
|
|
|
115
115
|
],
|
|
116
116
|
fulfill: {
|
|
117
117
|
state: {
|
|
118
|
-
hidden: "{{
|
|
118
|
+
hidden: "{{\n !$deps[1] ||\n !smsVerifyEnabled ||\n ($deps[0] !== 'code' && $deps[0] !== undefined) // \u6709 verifyMethod \u4F46\u672A\u9009 code\n }}"
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
121
|
}
|
|
@@ -140,7 +140,7 @@ const schema = {
|
|
|
140
140
|
],
|
|
141
141
|
fulfill: {
|
|
142
142
|
state: {
|
|
143
|
-
hidden: "{{
|
|
143
|
+
hidden: "{{\n !$deps[1] ||\n (smsVerifyEnabled && $deps[0] !== 'password' && $deps[0] !== undefined)\n }}"
|
|
144
144
|
}
|
|
145
145
|
}
|
|
146
146
|
}
|
package/es/user/CurrentUser.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useMemo, useState } from "react";
|
|
3
|
-
import { error } from "@tachybase/utils/client";
|
|
4
3
|
import { UserOutlined } from "@ant-design/icons";
|
|
4
|
+
import { error } from "@tego/client";
|
|
5
5
|
import { App, Dropdown, Menu } from "antd";
|
|
6
6
|
import { createStyles } from "antd-style";
|
|
7
7
|
import { useTranslation } from "react-i18next";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useContext, useRef } from "react";
|
|
3
|
-
import { error } from "@
|
|
3
|
+
import { error } from "@tego/client";
|
|
4
4
|
const CurrentUserSettingsMenuContext = /*#__PURE__*/ createContext(null);
|
|
5
5
|
CurrentUserSettingsMenuContext.displayName = 'CurrentUserSettingsMenuContext';
|
|
6
6
|
const useCurrentUserSettingsMenu = ()=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { createContext, useCallback, useEffect, useMemo, useRef } from "react";
|
|
3
3
|
import { raw, untracked } from "@tachybase/schema";
|
|
4
|
-
import { getValuesByPath } from "@
|
|
4
|
+
import { getValuesByPath } from "@tego/client";
|
|
5
5
|
import lodash from "lodash";
|
|
6
6
|
import { useAPIClient } from "../api-client/index.mjs";
|
|
7
7
|
import { useCollectionManager_deprecated } from "../collection-manager/index.mjs";
|
|
@@ -72,7 +72,7 @@ const VariablesProvider_VariablesProvider = (param)=>{
|
|
|
72
72
|
return null == item ? void 0 : item[key];
|
|
73
73
|
});
|
|
74
74
|
current = lodash.flatten(await Promise.all(result));
|
|
75
|
-
} else if (shouldToRequest(current[key]) && null != current.id && (null == associationField ? void 0 : associationField.target) && (null == associationField ? void 0 : associationField.type)
|
|
75
|
+
} else if (shouldToRequest(current[key]) && null != current.id && (null == associationField ? void 0 : associationField.target) && (null == associationField ? void 0 : associationField.type) !== 'virtual') {
|
|
76
76
|
const url = "/".concat(collectionName, "/").concat(current.id, "/").concat(key, ":").concat(getAction(associationField.type));
|
|
77
77
|
let data = null;
|
|
78
78
|
if (hasRequested(url)) data = await getRequested(url);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { useMemo } from "react";
|
|
2
|
-
import
|
|
2
|
+
import dayjs from "dayjs";
|
|
3
3
|
import { useCurrentUserVariable, useDatetimeVariable, useExactDateVariable } from "../../schema-settings/index.mjs";
|
|
4
4
|
import { useCurrentRoleVariable } from "../../schema-settings/VariableInput/hooks/useRoleVariable.mjs";
|
|
5
5
|
const useBuiltInVariables = ()=>{
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
40
|
-
const
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_antd_namespaceObject = require("antd");
|
|
42
42
|
function _define_property(obj, key, value) {
|
|
43
43
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
@@ -80,7 +80,7 @@ const getCurrentTimezone = ()=>{
|
|
|
80
80
|
return offsetToTimeZone(timezoneOffset);
|
|
81
81
|
};
|
|
82
82
|
const errorCache = new Map();
|
|
83
|
-
class APIClient extends
|
|
83
|
+
class APIClient extends client_namespaceObject.APIClient {
|
|
84
84
|
cloneInstance() {
|
|
85
85
|
const api = new APIClient(this.options);
|
|
86
86
|
api.options = this.options;
|
|
@@ -36,7 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
36
|
mergeStrategies: ()=>mergeStrategies,
|
|
37
37
|
assign: ()=>assign_assign
|
|
38
38
|
});
|
|
39
|
-
const client_namespaceObject = require("@
|
|
39
|
+
const client_namespaceObject = require("@tego/client");
|
|
40
40
|
const external_deepmerge_namespaceObject = require("deepmerge");
|
|
41
41
|
var external_deepmerge_default = /*#__PURE__*/ __webpack_require__.n(external_deepmerge_namespaceObject);
|
|
42
42
|
const external_lodash_namespaceObject = require("lodash");
|
|
@@ -38,11 +38,10 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
const external_react_namespaceObject = require("react");
|
|
40
40
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
41
|
-
const requirejs_namespaceObject = require("@tachybase/requirejs");
|
|
42
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
43
|
-
const
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
44
43
|
const external_lodash_namespaceObject = require("lodash");
|
|
45
|
-
const
|
|
44
|
+
const external_react_dom_client_namespaceObject = require("react-dom/client");
|
|
46
45
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
47
46
|
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
48
47
|
const index_js_namespaceObject = require("../api-client/index.js");
|
|
@@ -88,7 +87,7 @@ class Application {
|
|
|
88
87
|
return "/apps/".concat(this.name, "/admin/");
|
|
89
88
|
}
|
|
90
89
|
initRequireJs() {
|
|
91
|
-
this.requirejs = (0,
|
|
90
|
+
this.requirejs = (0, client_namespaceObject.getRequireJs)();
|
|
92
91
|
(0, globalDeps_js_namespaceObject.defineGlobalDeps)(this.requirejs);
|
|
93
92
|
window.define = this.requirejs.define;
|
|
94
93
|
window.require = this.requirejs.require;
|
|
@@ -137,7 +136,7 @@ class Application {
|
|
|
137
136
|
return this.options.publicPath || '/';
|
|
138
137
|
}
|
|
139
138
|
getName() {
|
|
140
|
-
return (0,
|
|
139
|
+
return (0, client_namespaceObject.getSubAppName)(this.getPublicPath()) || null;
|
|
141
140
|
}
|
|
142
141
|
getApiUrl() {
|
|
143
142
|
let pathname = arguments.length > 0 && void 0 !== arguments[0] ? arguments[0] : '';
|
|
@@ -268,7 +267,7 @@ class Application {
|
|
|
268
267
|
const container = (0, external_utils_index_js_namespaceObject.normalizeContainer)(containerOrSelector);
|
|
269
268
|
if (!container) return;
|
|
270
269
|
const App = this.getRootComponent();
|
|
271
|
-
const root = (0,
|
|
270
|
+
const root = (0, external_react_dom_client_namespaceObject.createRoot)(container);
|
|
272
271
|
root.render(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(App, {}));
|
|
273
272
|
return root;
|
|
274
273
|
}
|
|
@@ -350,7 +349,7 @@ class Application {
|
|
|
350
349
|
this.systemSettingsManager = new external_SystemSettingsManager_js_namespaceObject.SystemSettingsManager(options.pluginSettings, this);
|
|
351
350
|
this.userSettingsManager = new external_UserSettingsManager_js_namespaceObject.UserSettingsManager(options.userSettings, this);
|
|
352
351
|
this.addRoutes();
|
|
353
|
-
this.name = this.options.name || (0,
|
|
352
|
+
this.name = this.options.name || (0, client_namespaceObject.getSubAppName)(options.publicPath) || 'main';
|
|
354
353
|
this.pluginContextMenu = new external_PluginContextMenu_js_namespaceObject.PluginContextMenu(options.pluginMenuItems);
|
|
355
354
|
this.AttachmentPreviewManager = new external_AttachmentPreviewManager_js_namespaceObject.AttachmentPreviewManager(options.attachmentItem, this);
|
|
356
355
|
this.i18n.on('languageChanged', (lng)=>{
|
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
WebSocketClient: ()=>WebSocketClient
|
|
28
28
|
});
|
|
29
29
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
30
|
-
const
|
|
30
|
+
const client_namespaceObject = require("@tego/client");
|
|
31
31
|
function _define_property(obj, key, value) {
|
|
32
32
|
if (key in obj) Object.defineProperty(obj, key, {
|
|
33
33
|
value: value,
|
|
@@ -45,7 +45,7 @@ class WebSocketClient {
|
|
|
45
45
|
const options = this.app.getOptions();
|
|
46
46
|
const apiBaseURL = null == options ? void 0 : null == (_options_apiClient = options.apiClient) ? void 0 : _options_apiClient['baseURL'];
|
|
47
47
|
if (!apiBaseURL) return;
|
|
48
|
-
const subApp = (0,
|
|
48
|
+
const subApp = (0, client_namespaceObject.getSubAppName)(this.app.getPublicPath());
|
|
49
49
|
const queryString = subApp ? "?__appName=".concat(subApp) : "?__hostname=".concat(window.location.hostname);
|
|
50
50
|
const wsPath = this.options.basename || '/ws';
|
|
51
51
|
if (this.options.url) {
|
|
@@ -40,7 +40,7 @@ class SchemaSettings {
|
|
|
40
40
|
get items() {
|
|
41
41
|
return this.options.items;
|
|
42
42
|
}
|
|
43
|
-
add(name, item) {
|
|
43
|
+
add(name, item, targetIndex) {
|
|
44
44
|
const arr = name.split('.');
|
|
45
45
|
const data = {
|
|
46
46
|
...item,
|
|
@@ -48,7 +48,8 @@ class SchemaSettings {
|
|
|
48
48
|
};
|
|
49
49
|
if (1 === arr.length) {
|
|
50
50
|
const index = this.items.findIndex((item)=>item.name === name);
|
|
51
|
-
if (-1 === index) this.items.
|
|
51
|
+
if (-1 === index) if (targetIndex) this.items.splice(targetIndex, 0, data);
|
|
52
|
+
else this.items.push(data);
|
|
52
53
|
else this.items[index] = data;
|
|
53
54
|
return;
|
|
54
55
|
}
|
|
@@ -57,7 +58,8 @@ class SchemaSettings {
|
|
|
57
58
|
if (parentItem) {
|
|
58
59
|
if (!parentItem.children) parentItem.children = [];
|
|
59
60
|
const index = parentItem.children.findIndex((item)=>item.name === name);
|
|
60
|
-
if (-1 === index) parentItem.children.
|
|
61
|
+
if (-1 === index) if (targetIndex) parentItem.children.splice(targetIndex, 0, data);
|
|
62
|
+
else parentItem.children.push(data);
|
|
61
63
|
else parentItem.children[index] = data;
|
|
62
64
|
}
|
|
63
65
|
}
|
|
@@ -64,6 +64,21 @@ class SchemaSettingsManager {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
+
addItemWithIndex(param) {
|
|
68
|
+
let { schemaSettingName, itemName, index, data } = param;
|
|
69
|
+
if (Array.isArray(schemaSettingName)) return void schemaSettingName.forEach((name, i)=>{
|
|
70
|
+
this.addItemWithIndex({
|
|
71
|
+
schemaSettingName: name,
|
|
72
|
+
itemName,
|
|
73
|
+
index: Array.isArray(index) ? index[i] : index,
|
|
74
|
+
data
|
|
75
|
+
});
|
|
76
|
+
});
|
|
77
|
+
const schemaSetting = this.get(schemaSettingName);
|
|
78
|
+
if (!schemaSetting) return;
|
|
79
|
+
const targetIndex = Array.isArray(index) ? index[0] : index;
|
|
80
|
+
schemaSetting.add(itemName, data, targetIndex);
|
|
81
|
+
}
|
|
67
82
|
get(name) {
|
|
68
83
|
return this.schemaSettings[name];
|
|
69
84
|
}
|
|
@@ -37,12 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
40
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
41
|
-
const client_namespaceObject = require("@tachybase/evaluators/client");
|
|
42
|
-
const requirejs_namespaceObject = require("@tachybase/requirejs");
|
|
43
40
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
44
|
-
const sdk_namespaceObject = require("@tachybase/sdk");
|
|
45
|
-
const utils_client_namespaceObject = require("@tachybase/utils/client");
|
|
46
41
|
const cssinjs_namespaceObject = require("@ant-design/cssinjs");
|
|
47
42
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
48
43
|
const accessibility_namespaceObject = require("@dnd-kit/accessibility");
|
|
@@ -52,11 +47,14 @@ const sortable_namespaceObject = require("@dnd-kit/sortable");
|
|
|
52
47
|
const utilities_namespaceObject = require("@dnd-kit/utilities");
|
|
53
48
|
const css_namespaceObject = require("@emotion/css");
|
|
54
49
|
const react_namespaceObject = require("@floating-ui/react");
|
|
50
|
+
const client_namespaceObject = require("@tego/client");
|
|
55
51
|
const external_ahooks_namespaceObject = require("ahooks");
|
|
56
52
|
const external_antd_namespaceObject = require("antd");
|
|
57
53
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
58
54
|
const external_axios_namespaceObject = require("axios");
|
|
59
55
|
var external_axios_default = /*#__PURE__*/ __webpack_require__.n(external_axios_namespaceObject);
|
|
56
|
+
const external_dayjs_namespaceObject = require("dayjs");
|
|
57
|
+
var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
|
|
60
58
|
const external_i18next_namespaceObject = require("i18next");
|
|
61
59
|
const external_lodash_namespaceObject = require("lodash");
|
|
62
60
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
@@ -80,20 +78,16 @@ function defineGlobalDeps(requirejs) {
|
|
|
80
78
|
requirejs.define('@ant-design/cssinjs', ()=>cssinjs_namespaceObject);
|
|
81
79
|
requirejs.define('i18next', ()=>external_i18next_namespaceObject);
|
|
82
80
|
requirejs.define('react-i18next', ()=>external_react_i18next_namespaceObject);
|
|
83
|
-
requirejs.define('@
|
|
81
|
+
requirejs.define('@tego/client', ()=>client_namespaceObject);
|
|
84
82
|
requirejs.define('@tachybase/client', ()=>external_index_js_namespaceObject);
|
|
85
|
-
requirejs.define('@tachybase/evaluators/client', ()=>client_namespaceObject);
|
|
86
|
-
requirejs.define('@tachybase/sdk', ()=>sdk_namespaceObject);
|
|
87
83
|
requirejs.define('@tachybase/schema', ()=>schema_namespaceObject);
|
|
88
|
-
requirejs.define('@tachybase/requirejs', ()=>requirejs_namespaceObject);
|
|
89
|
-
requirejs.define('@tachybase/components', ()=>components_namespaceObject);
|
|
90
84
|
requirejs.define('@dnd-kit/accessibility', ()=>accessibility_namespaceObject);
|
|
91
85
|
requirejs.define('@dnd-kit/core', ()=>core_namespaceObject);
|
|
92
86
|
requirejs.define('@dnd-kit/modifiers', ()=>modifiers_namespaceObject);
|
|
93
87
|
requirejs.define('@dnd-kit/sortable', ()=>sortable_namespaceObject);
|
|
94
88
|
requirejs.define('@dnd-kit/utilities', ()=>utilities_namespaceObject);
|
|
95
89
|
requirejs.define('axios', ()=>external_axios_default());
|
|
96
|
-
requirejs.define('dayjs', ()=>
|
|
90
|
+
requirejs.define('dayjs', ()=>external_dayjs_default());
|
|
97
91
|
requirejs.define('lodash', ()=>external_lodash_default());
|
|
98
92
|
requirejs.define('ahooks', ()=>external_ahooks_namespaceObject);
|
|
99
93
|
requirejs.define('@emotion/css', ()=>css_namespaceObject);
|
|
@@ -33,7 +33,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
33
33
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
36
|
-
const client_namespaceObject = require("@
|
|
36
|
+
const client_namespaceObject = require("@tego/client");
|
|
37
37
|
const external_antd_namespaceObject = require("antd");
|
|
38
38
|
const CollectionRecordProvider_js_namespaceObject = require("../data-source/collection-record/CollectionRecordProvider.js");
|
|
39
39
|
const index_js_namespaceObject = require("../record-provider/index.js");
|