@tachybase/client 1.3.20 → 1.3.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api-client/APIClient.d.ts +1 -1
- package/es/api-client/APIClient.mjs +1 -1
- package/es/api-client/hooks/assign.mjs +1 -1
- package/es/api-client/hooks/useResource.d.ts +1 -1
- package/es/application/Application.d.ts +1 -2
- package/es/application/Application.mjs +2 -11
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/components/index.d.ts +0 -2
- package/es/application/components/index.mjs +0 -2
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/utils/globalDeps.d.ts +1 -1
- package/es/application/utils/globalDeps.mjs +4 -12
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/FormFieldProvider.mjs +1 -1
- package/es/block-provider/hooks/index.mjs +2 -2
- package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
- package/es/built-in/index.d.ts +2 -1
- package/es/built-in/index.mjs +4 -3
- package/es/built-in/page-style/useTabSettings.mjs +3 -3
- package/es/built-in/pm/PluginManager.mjs +1 -1
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
- package/es/collection-manager/collectionPlugin.mjs +36 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
- package/es/collection-manager/interfaces/json.mjs +1 -1
- package/es/collection-manager/interfaces/radioGroup.d.ts +11 -11
- package/es/collection-manager/interfaces/url.d.ts +4 -0
- package/es/collection-manager/interfaces/url.mjs +10 -1
- package/es/collection-manager/templates/expression.mjs +1 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/collection-manager/templates/sql.d.ts +3 -3
- package/es/collection-manager/templates/view.d.ts +3 -3
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -15
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/filter-provider/utils.mjs +1 -1
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +2 -5
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +14 -2
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +1 -3
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +0 -4
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -5
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
- package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +95 -5
- package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.d.ts +2 -0
- package/es/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.mjs +99 -0
- package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.d.ts +2 -0
- package/es/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.mjs +64 -0
- package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +15 -2
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +26 -7
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
- package/es/modules/menu/GroupItem.mjs +1 -1
- package/es/modules/menu/LinkMenuItem.mjs +1 -1
- package/es/modules/menu/PageMenuItem.mjs +1 -1
- package/es/modules/menu/UploadMenuItem.mjs +1 -1
- package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
- package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalViewer.mjs +4 -58
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +4 -0
- package/es/schema-component/antd/association-field/hooks.mjs +53 -2
- package/es/schema-component/antd/association-field/util.mjs +1 -1
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
- package/es/schema-component/antd/color-picker/util.d.ts +1 -1
- package/es/schema-component/antd/color-picker/util.mjs +1 -1
- package/es/schema-component/antd/cron/Cron.mjs +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/date-picker/util.d.ts +1 -1
- package/es/schema-component/antd/date-picker/util.mjs +1 -1
- package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
- package/es/schema-component/antd/form/Form.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.mjs +1 -2
- package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
- package/es/schema-component/antd/form-v2/utils.mjs +1 -2
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
- package/es/schema-component/antd/index.d.ts +0 -1
- package/es/schema-component/antd/index.mjs +1 -2
- package/es/schema-component/antd/input/Input.mjs +2 -1
- package/es/schema-component/antd/input/ReadPretty.d.ts +1 -0
- package/es/schema-component/antd/input/ReadPretty.mjs +30 -2
- package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
- package/es/schema-component/antd/list/List.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.mjs +1 -1
- package/es/schema-component/antd/page/Page.Settings.mjs +0 -33
- package/es/schema-component/antd/page/Page.mjs +47 -96
- package/es/schema-component/antd/page/hooks/index.d.ts +1 -1
- package/es/schema-component/antd/page/hooks/index.mjs +1 -1
- package/es/schema-component/antd/page/index.d.ts +1 -0
- package/es/schema-component/antd/page/index.mjs +1 -0
- package/es/schema-component/antd/page/pageExtendComponentProvider.d.ts +3 -0
- package/es/schema-component/antd/page/pageExtendComponentProvider.mjs +9 -0
- package/es/schema-component/antd/page/style.d.ts +0 -5
- package/es/schema-component/antd/page/style.mjs +1 -45
- package/es/schema-component/antd/preview/Preview.mjs +1 -1
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
- package/es/schema-component/antd/record-picker/util.mjs +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +17 -5
- package/es/schema-component/antd/select/ReadPretty.mjs +16 -3
- package/es/schema-component/antd/select/Select.mjs +7 -2
- package/es/schema-component/antd/select/utils.mjs +2 -2
- package/es/schema-component/antd/space/index.mjs +1 -1
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
- package/es/schema-component/antd/table-v2/Table.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
- package/es/schema-component/antd/upload/Upload.mjs +1 -1
- package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
- package/es/schema-component/antd/variable/Input.mjs +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
- package/es/schema-component/hooks/useFieldModeOptions.mjs +13 -10
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
- package/es/schema-settings/DataTemplates/utils.mjs +1 -1
- package/es/schema-settings/EditFormulaTitleField.mjs +19 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
- package/es/schema-settings/SchemaSettings.mjs +2 -3
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettingsPlugin.mjs +4 -0
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
- package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
- package/es/user/ChangePassword.mjs +2 -2
- package/es/user/CurrentUser.mjs +1 -1
- package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
- package/es/variables/VariablesProvider.mjs +2 -2
- package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
- package/lib/api-client/APIClient.js +2 -2
- package/lib/api-client/hooks/assign.js +1 -1
- package/lib/application/Application.js +6 -15
- package/lib/application/WebSocketClient.js +2 -2
- package/lib/application/components/index.js +0 -18
- package/lib/application/utils/globalDeps.js +3 -11
- package/lib/block-provider/FormFieldProvider.js +1 -1
- package/lib/block-provider/hooks/index.js +14 -14
- package/lib/block-provider/hooks/useParsedFilter.js +1 -1
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
- package/lib/built-in/index.js +42 -16
- package/lib/built-in/page-style/useTabSettings.js +3 -3
- package/lib/built-in/pm/PluginManager.js +1 -1
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
- package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
- package/lib/collection-manager/collectionPlugin.js +36 -0
- package/lib/collection-manager/interfaces/json.js +3 -3
- package/lib/collection-manager/interfaces/url.js +10 -1
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -15
- package/lib/filter-provider/utils.js +1 -1
- package/lib/locale/zh-CN.js +1 -0
- package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -6
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +14 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +1 -3
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +0 -4
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -7
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
- package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +93 -3
- package/lib/modules/fields/component/InputPreview/inputPreviewComponentFieldSettings.js +133 -0
- package/lib/modules/fields/component/MultipleSelect/multipleSelectComponentFieldSettings.js +98 -0
- package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +16 -3
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +23 -4
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
- package/lib/modules/menu/GroupItem.js +2 -2
- package/lib/modules/menu/LinkMenuItem.js +2 -2
- package/lib/modules/menu/PageMenuItem.js +2 -2
- package/lib/modules/menu/UploadMenuItem.js +2 -2
- package/lib/schema-component/antd/action/Action.Designer.js +3 -3
- package/lib/schema-component/antd/action/Action.js +1 -1
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
- package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
- package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
- package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
- package/lib/schema-component/antd/association-field/InternalViewer.js +1 -55
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
- package/lib/schema-component/antd/association-field/hooks.js +55 -1
- package/lib/schema-component/antd/association-field/util.js +1 -1
- package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
- package/lib/schema-component/antd/color-picker/util.js +1 -1
- package/lib/schema-component/antd/cron/Cron.js +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/date-picker/util.js +1 -1
- package/lib/schema-component/antd/filter/FilterAction.js +1 -1
- package/lib/schema-component/antd/form/Form.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.js +2 -2
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
- package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
- package/lib/schema-component/antd/form-v2/Form.js +3 -4
- package/lib/schema-component/antd/form-v2/Templates.js +1 -1
- package/lib/schema-component/antd/form-v2/utils.js +2 -3
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
- package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
- package/lib/schema-component/antd/index.js +120 -187
- package/lib/schema-component/antd/input/Input.js +2 -1
- package/lib/schema-component/antd/input/ReadPretty.js +34 -6
- package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
- package/lib/schema-component/antd/list/List.Decorator.js +2 -2
- package/lib/schema-component/antd/list/List.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.js +1 -1
- package/lib/schema-component/antd/page/Page.Settings.js +0 -33
- package/lib/schema-component/antd/page/Page.js +43 -92
- package/lib/schema-component/antd/page/hooks/index.js +5 -5
- package/lib/schema-component/antd/page/index.js +9 -0
- package/lib/{application/components/ShareSchemaComponent.js → schema-component/antd/page/pageExtendComponentProvider.js} +15 -10
- package/lib/schema-component/antd/page/style.js +2 -49
- package/lib/schema-component/antd/preview/Preview.js +2 -2
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
- package/lib/schema-component/antd/record-picker/util.js +1 -1
- package/lib/schema-component/antd/select/FormulaSelect.js +17 -5
- package/lib/schema-component/antd/select/ReadPretty.js +15 -2
- package/lib/schema-component/antd/select/Select.js +7 -2
- package/lib/schema-component/antd/select/utils.js +2 -2
- package/lib/schema-component/antd/space/index.js +2 -2
- package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
- package/lib/schema-component/antd/table-v2/Table.js +1 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
- package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
- package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
- package/lib/schema-component/antd/upload/Upload.js +2 -2
- package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
- package/lib/schema-component/antd/variable/Input.js +1 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
- package/lib/schema-component/hooks/useFieldModeOptions.js +13 -10
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
- package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
- package/lib/schema-settings/DataTemplates/utils.js +4 -4
- package/lib/schema-settings/EditFormulaTitleField.js +19 -1
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
- package/lib/schema-settings/SchemaSettings.js +17 -18
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
- package/lib/schema-settings/SchemaSettingsPlugin.js +4 -0
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
- package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
- package/lib/user/ChangePassword.js +2 -2
- package/lib/user/CurrentUser.js +1 -1
- package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
- package/lib/variables/VariablesProvider.js +2 -2
- package/lib/variables/hooks/useBuiltinVariables.js +1 -1
- package/package.json +9 -23
- package/es/application/components/SharePage.d.ts +0 -4
- package/es/application/components/SharePage.mjs +0 -113
- package/es/application/components/ShareSchemaComponent.d.ts +0 -1
- package/es/application/components/ShareSchemaComponent.mjs +0 -10
- package/es/schema-component/antd/page/hooks/useShareActions.d.ts +0 -7
- package/es/schema-component/antd/page/hooks/useShareActions.mjs +0 -242
- package/lib/application/components/SharePage.js +0 -156
- package/lib/schema-component/antd/page/hooks/useShareActions.js +0 -286
|
@@ -40,7 +40,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40
40
|
const external_react_namespaceObject = require("react");
|
|
41
41
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
42
42
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
43
|
-
const client_namespaceObject = require("@
|
|
43
|
+
const client_namespaceObject = require("@tego/client");
|
|
44
44
|
const external_antd_namespaceObject = require("antd");
|
|
45
45
|
const index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
46
46
|
const useLabelUiSchema = (collectionField, label)=>{
|
|
@@ -24,13 +24,13 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
default: ()=>
|
|
27
|
+
default: ()=>select_FormulaSelect
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
31
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
32
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
33
32
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
33
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
34
|
const external_antd_namespaceObject = require("antd");
|
|
35
35
|
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
36
36
|
const external_collection_manager_index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
@@ -131,6 +131,7 @@ const useLabelOptions = (others)=>{
|
|
|
131
131
|
const collectionField = (0, external_react_namespaceObject.useMemo)(()=>getField(fieldSchema['x-collection-field']), [
|
|
132
132
|
fieldSchema['x-collection-field']
|
|
133
133
|
]);
|
|
134
|
+
if (!(null == collectionField ? void 0 : collectionField.target) && !fieldSchema['collectionName']) return others;
|
|
134
135
|
const request = {
|
|
135
136
|
resource: (null == collectionField ? void 0 : collectionField.target) || fieldSchema['collectionName'],
|
|
136
137
|
action: 'list',
|
|
@@ -179,16 +180,18 @@ const useLabelOptions = (others)=>{
|
|
|
179
180
|
}
|
|
180
181
|
return others;
|
|
181
182
|
};
|
|
182
|
-
const
|
|
183
|
+
const FormulaSelect = (props)=>{
|
|
183
184
|
const { objectValue, loading, value, rawOptions, defaultValue, ...others } = props;
|
|
184
185
|
let mode = props.multiple ? 'multiple' : props.mode;
|
|
185
186
|
const filterField = null == others ? void 0 : others['params'];
|
|
186
187
|
const [options, setOptions] = (0, external_react_namespaceObject.useState)([]);
|
|
187
188
|
const [collectionName, setCollectionName] = (0, external_react_namespaceObject.useState)('');
|
|
189
|
+
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
188
190
|
const api = (0, index_js_namespaceObject.useAPIClient)();
|
|
189
191
|
if (mode && ![
|
|
190
192
|
'multiple',
|
|
191
|
-
'tags'
|
|
193
|
+
'tags',
|
|
194
|
+
'CustomTitle'
|
|
192
195
|
].includes(mode)) mode = void 0;
|
|
193
196
|
const fieldProps = {
|
|
194
197
|
...others
|
|
@@ -210,6 +213,7 @@ const FormulaSelect_FormulaSelect = (props)=>{
|
|
|
210
213
|
} else if ((null == others ? void 0 : others.collection) === collectionName) fieldProps['options'] = options.map((option)=>({
|
|
211
214
|
...option
|
|
212
215
|
}));
|
|
216
|
+
else fieldProps['options'] = getFormulaValue(props.fieldNames['formula'], (null == props ? void 0 : props.options) || [], fieldSchema);
|
|
213
217
|
const modifiedProps = useLabelOptions(fieldProps);
|
|
214
218
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ObjectSelect, {
|
|
215
219
|
rawOptions: rawOptions,
|
|
@@ -220,7 +224,15 @@ const FormulaSelect_FormulaSelect = (props)=>{
|
|
|
220
224
|
loading: loading
|
|
221
225
|
});
|
|
222
226
|
};
|
|
223
|
-
const
|
|
227
|
+
const select_FormulaSelect = FormulaSelect;
|
|
228
|
+
const getFormulaValue = (template, options, fieldSchema)=>options.map((item)=>{
|
|
229
|
+
const label = item.label;
|
|
230
|
+
const customLabel = template.replace(new RegExp("{{".concat(fieldSchema['name'], "}}"), 'g'), label);
|
|
231
|
+
return {
|
|
232
|
+
...item,
|
|
233
|
+
label: customLabel
|
|
234
|
+
};
|
|
235
|
+
});
|
|
224
236
|
exports["default"] = __webpack_exports__["default"];
|
|
225
237
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
226
238
|
"default"
|
|
@@ -34,7 +34,7 @@ const CollectionFieldProvider_js_namespaceObject = require("../../../data-source
|
|
|
34
34
|
const EllipsisWithTooltip_js_namespaceObject = require("../input/EllipsisWithTooltip.js");
|
|
35
35
|
const external_utils_js_namespaceObject = require("./utils.js");
|
|
36
36
|
const ReadPretty = (0, schema_namespaceObject.observer)((props)=>{
|
|
37
|
-
var _field_value;
|
|
37
|
+
var _field_value, _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops;
|
|
38
38
|
const fieldNames = {
|
|
39
39
|
...external_utils_js_namespaceObject.defaultFieldNames,
|
|
40
40
|
...props.fieldNames
|
|
@@ -43,8 +43,10 @@ const ReadPretty = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
43
43
|
if (!(0, schema_namespaceObject.isValid)(props.value)) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {});
|
|
44
44
|
if ((0, schema_namespaceObject.isArrayField)(field) && (null == field ? void 0 : null == (_field_value = field.value) ? void 0 : _field_value.length) === 0) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {});
|
|
45
45
|
const collectionField = (0, CollectionFieldProvider_js_namespaceObject.useCollectionField)();
|
|
46
|
+
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
46
47
|
const dataSource = field.dataSource || props.options || (null == collectionField ? void 0 : collectionField.uiSchema.enum) || [];
|
|
47
|
-
const
|
|
48
|
+
const options = (0, external_utils_js_namespaceObject.getCurrentOptions)(field.value, dataSource, fieldNames);
|
|
49
|
+
const currentOptions = getFormulaValue(null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : null == (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) ? void 0 : _fieldSchema_xcomponentprops_fieldNames['formula'], options, fieldSchema);
|
|
48
50
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
49
51
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(EllipsisWithTooltip_js_namespaceObject.EllipsisWithTooltip, {
|
|
50
52
|
ellipsis: props.ellipsis,
|
|
@@ -58,6 +60,17 @@ const ReadPretty = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
58
60
|
}, {
|
|
59
61
|
displayName: 'ReadPretty'
|
|
60
62
|
});
|
|
63
|
+
const getFormulaValue = (template, options, fieldSchema)=>{
|
|
64
|
+
if (!template) return options;
|
|
65
|
+
return options.map((item)=>{
|
|
66
|
+
const label = item.label;
|
|
67
|
+
const customLabel = template.replace(new RegExp("{{".concat(fieldSchema['name'], "}}"), 'g'), label);
|
|
68
|
+
return {
|
|
69
|
+
...item,
|
|
70
|
+
label: customLabel
|
|
71
|
+
};
|
|
72
|
+
});
|
|
73
|
+
};
|
|
61
74
|
exports.ReadPretty = __webpack_exports__.ReadPretty;
|
|
62
75
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
63
76
|
"ReadPretty"
|
|
@@ -38,8 +38,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
42
41
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_namespaceObject = require("antd");
|
|
44
44
|
const external_FormulaSelect_js_namespaceObject = require("./FormulaSelect.js");
|
|
45
45
|
var external_FormulaSelect_js_default = /*#__PURE__*/ __webpack_require__.n(external_FormulaSelect_js_namespaceObject);
|
|
@@ -120,8 +120,12 @@ const InternalSelect = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
120
120
|
let mode = props.multiple ? 'multiple' : props.mode;
|
|
121
121
|
if (mode && ![
|
|
122
122
|
'multiple',
|
|
123
|
-
'tags'
|
|
123
|
+
'tags',
|
|
124
|
+
'CustomTitle'
|
|
124
125
|
].includes(mode)) mode = void 0;
|
|
126
|
+
let options = props.options ? [
|
|
127
|
+
...props.options
|
|
128
|
+
] : [];
|
|
125
129
|
if ([
|
|
126
130
|
'CustomTitle'
|
|
127
131
|
].includes(props.mode) && ('formula' in others.fieldNames || 'collection' in props)) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_FormulaSelect_js_default(), {
|
|
@@ -156,6 +160,7 @@ const InternalSelect = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
156
160
|
"aria-label": "icon-close-select"
|
|
157
161
|
})
|
|
158
162
|
},
|
|
163
|
+
options: options,
|
|
159
164
|
popupMatchSelectWidth: false,
|
|
160
165
|
notFoundContent: loading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Spin, {}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Empty, {
|
|
161
166
|
image: external_antd_namespaceObject.Empty.PRESENTED_IMAGE_SIMPLE
|
|
@@ -27,7 +27,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
defaultFieldNames: ()=>defaultFieldNames,
|
|
28
28
|
getCurrentOptions: ()=>getCurrentOptions
|
|
29
29
|
});
|
|
30
|
-
const client_namespaceObject = require("@
|
|
30
|
+
const client_namespaceObject = require("@tego/client");
|
|
31
31
|
const external_lodash_namespaceObject = require("lodash");
|
|
32
32
|
const defaultFieldNames = {
|
|
33
33
|
label: 'label',
|
|
@@ -54,7 +54,7 @@ function getCurrentOptions(values, dataSource, fieldNames) {
|
|
|
54
54
|
if (!options) return [];
|
|
55
55
|
const current = [];
|
|
56
56
|
for (const value of arrValues){
|
|
57
|
-
const option = options.find((v)=>v[fieldNames.value]
|
|
57
|
+
const option = options.find((v)=>v[fieldNames.value] === value) || {
|
|
58
58
|
value,
|
|
59
59
|
label: value ? value.toString() : value
|
|
60
60
|
};
|
|
@@ -39,14 +39,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
const external_react_namespaceObject = require("react");
|
|
41
41
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
42
|
-
const
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_namespaceObject = require("antd");
|
|
44
44
|
const Space = (props)=>{
|
|
45
45
|
let { split } = props;
|
|
46
46
|
if ('|' === split) split = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
47
47
|
children: "\xa0"
|
|
48
48
|
});
|
|
49
|
-
const layout = (0,
|
|
49
|
+
const layout = (0, client_namespaceObject.useFormLayout)();
|
|
50
50
|
var _props_size;
|
|
51
51
|
return /*#__PURE__*/ external_react_default().createElement(external_antd_namespaceObject.Space, {
|
|
52
52
|
size: null != (_props_size = props.size) ? _props_size : null == layout ? void 0 : layout.spaceGap,
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
require("react");
|
|
31
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
32
31
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
32
|
+
const client_namespaceObject = require("@tego/client");
|
|
33
33
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
34
34
|
const index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
35
35
|
const action_hooks_js_namespaceObject = require("../../../collection-manager/action-hooks.js");
|
|
@@ -116,7 +116,7 @@ const TableVoidDesigner = ()=>{
|
|
|
116
116
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
117
117
|
title: t('Set default sorting rules'),
|
|
118
118
|
components: {
|
|
119
|
-
ArrayItems:
|
|
119
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
120
120
|
},
|
|
121
121
|
schema: {
|
|
122
122
|
type: 'object',
|
|
@@ -39,9 +39,9 @@ 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
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
42
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
43
42
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
44
43
|
const sortable_namespaceObject = require("@dnd-kit/sortable");
|
|
44
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
45
|
const external_ahooks_namespaceObject = require("ahooks");
|
|
46
46
|
const external_antd_namespaceObject = require("antd");
|
|
47
47
|
const external_classnames_namespaceObject = require("classnames");
|
|
@@ -29,8 +29,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
33
32
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
33
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
34
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
35
35
|
const external_index_js_namespaceObject = require("../../index.js");
|
|
36
36
|
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
@@ -197,7 +197,7 @@ const TableBlockDesigner = ()=>{
|
|
|
197
197
|
!dragSort && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
198
198
|
title: t('Set default sorting rules'),
|
|
199
199
|
components: {
|
|
200
|
-
ArrayItems:
|
|
200
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
201
201
|
},
|
|
202
202
|
schema: {
|
|
203
203
|
type: 'object',
|
|
@@ -37,8 +37,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
const external_react_namespaceObject = require("react");
|
|
40
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
41
40
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
42
|
const external_lodash_namespaceObject = require("lodash");
|
|
43
43
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
44
44
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -161,7 +161,7 @@ const TableSelectorDesigner = ()=>{
|
|
|
161
161
|
!dragSort && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
162
162
|
title: t('Set default sorting rules'),
|
|
163
163
|
components: {
|
|
164
|
-
ArrayItems:
|
|
164
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
165
165
|
},
|
|
166
166
|
schema: {
|
|
167
167
|
type: 'object',
|
|
@@ -37,15 +37,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
require("react");
|
|
40
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
41
40
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
42
|
const external_classnames_namespaceObject = require("classnames");
|
|
43
43
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
44
44
|
const external_dayjs_namespaceObject = require("dayjs");
|
|
45
45
|
var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
|
|
46
46
|
const ReadPretty = (props)=>{
|
|
47
47
|
const { value, format = 'HH:mm:ss' } = props;
|
|
48
|
-
const prefixCls = (0,
|
|
48
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-text", props);
|
|
49
49
|
const values = (0, schema_namespaceObject.toArr)(value);
|
|
50
50
|
const getLabels = ()=>{
|
|
51
51
|
const labels = values.map((v)=>external_dayjs_default()(v, 'HH:mm:ss').format(format));
|
|
@@ -27,8 +27,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
TimePicker: ()=>TimePicker,
|
|
28
28
|
default: ()=>time_picker_TimePicker
|
|
29
29
|
});
|
|
30
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
31
30
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
31
|
+
const client_namespaceObject = require("@tego/client");
|
|
32
32
|
const external_antd_namespaceObject = require("antd");
|
|
33
33
|
const external_ReadPretty_js_namespaceObject = require("./ReadPretty.js");
|
|
34
34
|
const mapTimeFormat = function() {
|
|
@@ -38,9 +38,9 @@ const mapTimeFormat = function() {
|
|
|
38
38
|
return {
|
|
39
39
|
...props,
|
|
40
40
|
format,
|
|
41
|
-
value: (0,
|
|
41
|
+
value: (0, client_namespaceObject.dayjsable)(props.value, format),
|
|
42
42
|
onChange: (value)=>{
|
|
43
|
-
if (onChange) onChange((0,
|
|
43
|
+
if (onChange) onChange((0, client_namespaceObject.formatDayjsValue)(value, format) || null);
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
};
|
|
@@ -37,8 +37,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
require("react");
|
|
40
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
41
40
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
42
|
const external_antd_namespaceObject = require("antd");
|
|
43
43
|
const external_classnames_namespaceObject = require("classnames");
|
|
44
44
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -46,7 +46,7 @@ const ReadPretty = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
46
46
|
var _field_dataSource, _props_treeData;
|
|
47
47
|
const field = (0, schema_namespaceObject.useField)();
|
|
48
48
|
const { placeholder } = props;
|
|
49
|
-
const prefixCls = (0,
|
|
49
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-tree-select", props);
|
|
50
50
|
const dataSource = (null == field ? void 0 : null == (_field_dataSource = field.dataSource) ? void 0 : _field_dataSource.length) ? field.dataSource : (null == props ? void 0 : null == (_props_treeData = props.treeData) ? void 0 : _props_treeData.length) ? props.treeData : [];
|
|
51
51
|
const getSelected = ()=>{
|
|
52
52
|
const value = props.value;
|
|
@@ -38,10 +38,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
const external_react_namespaceObject = require("react");
|
|
41
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
42
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
43
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
44
42
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
43
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
44
|
const external_antd_namespaceObject = require("antd");
|
|
46
45
|
const style_namespaceObject = require("antd/es/upload/style");
|
|
47
46
|
var style_default = /*#__PURE__*/ __webpack_require__.n(style_namespaceObject);
|
|
@@ -94,7 +93,7 @@ ReadPretty.File = function(props) {
|
|
|
94
93
|
})
|
|
95
94
|
})
|
|
96
95
|
}),
|
|
97
|
-
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
96
|
+
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.Lightbox, {
|
|
98
97
|
mainSrc: null == (_images_fileIndex = images[fileIndex]) ? void 0 : _images_fileIndex.imageUrl,
|
|
99
98
|
nextSrc: null == (_images_ = images[(fileIndex + 1) % images.length]) ? void 0 : _images_.imageUrl,
|
|
100
99
|
prevSrc: null == (_images_1 = images[(fileIndex + images.length - 1) % images.length]) ? void 0 : _images_1.imageUrl,
|
|
@@ -39,9 +39,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39
39
|
});
|
|
40
40
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
41
|
const external_react_namespaceObject = require("react");
|
|
42
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
43
42
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
44
43
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
44
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
45
|
const external_antd_namespaceObject = require("antd");
|
|
46
46
|
const external_classnames_namespaceObject = require("classnames");
|
|
47
47
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -155,7 +155,7 @@ Upload_Upload.Attachment = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
155
155
|
]
|
|
156
156
|
})
|
|
157
157
|
}),
|
|
158
|
-
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
158
|
+
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.Lightbox, {
|
|
159
159
|
mainSrc: null == (_images_fileIndex = images[fileIndex]) ? void 0 : _images_fileIndex.imageUrl,
|
|
160
160
|
nextSrc: null == (_images_ = images[(fileIndex + 1) % images.length]) ? void 0 : _images_.imageUrl,
|
|
161
161
|
prevSrc: null == (_images_1 = images[(fileIndex + images.length - 1) % images.length]) ? void 0 : _images_1.imageUrl,
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
31
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
32
31
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
32
|
+
const client_namespaceObject = require("@tego/client");
|
|
33
33
|
const external_lodash_namespaceObject = require("lodash");
|
|
34
34
|
const external_index_js_namespaceObject = require("../../../index.js");
|
|
35
35
|
const external_VariableSelect_js_namespaceObject = require("./VariableSelect.js");
|
|
@@ -113,7 +113,7 @@ const CodeMirror = (props)=>{
|
|
|
113
113
|
})
|
|
114
114
|
]
|
|
115
115
|
}),
|
|
116
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
116
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.CodeMirror, {
|
|
117
117
|
className: (0, external_index_js_namespaceObject.css)(_templateObject3()),
|
|
118
118
|
value: codeValue,
|
|
119
119
|
defaultLanguage: "Plain Text",
|
|
@@ -39,8 +39,8 @@ 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
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
42
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
43
42
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
43
|
+
const client_namespaceObject = require("@tego/client");
|
|
44
44
|
const external_antd_namespaceObject = require("antd");
|
|
45
45
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
46
46
|
const external_classnames_namespaceObject = require("classnames");
|
|
@@ -38,7 +38,7 @@ __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
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
|
-
const client_namespaceObject = require("@
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
42
|
const external_antd_namespaceObject = require("antd");
|
|
43
43
|
const external_classnames_namespaceObject = require("classnames");
|
|
44
44
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
const external_react_namespaceObject = require("react");
|
|
40
|
-
const client_namespaceObject = require("@
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_ahooks_namespaceObject = require("ahooks");
|
|
42
42
|
const external_antd_namespaceObject = require("antd");
|
|
43
43
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -30,8 +30,10 @@ const external_react_namespaceObject = require("react");
|
|
|
30
30
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
31
31
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
32
32
|
const index_js_namespaceObject = require("../../collection-manager/index.js");
|
|
33
|
+
const external_data_source_index_js_namespaceObject = require("../../data-source/index.js");
|
|
34
|
+
const external_useCompile_js_namespaceObject = require("./useCompile.js");
|
|
33
35
|
const useFieldModeOptions = (props)=>{
|
|
34
|
-
var _fieldSchema_xcomponentprops;
|
|
36
|
+
var _fieldSchema_xcomponentprops, _collectionInterface_componentOptions_filter, _collectionInterface_componentOptions;
|
|
35
37
|
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
36
38
|
const { getCollectionJoinField, getCollection } = (0, index_js_namespaceObject.useCollectionManager_deprecated)();
|
|
37
39
|
const currentFieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
@@ -39,12 +41,15 @@ const useFieldModeOptions = (props)=>{
|
|
|
39
41
|
const field = (0, schema_namespaceObject.useField)();
|
|
40
42
|
const form = (0, schema_namespaceObject.useForm)();
|
|
41
43
|
const isReadPretty = (null == fieldSchema ? void 0 : fieldSchema['x-read-pretty']) || field.readPretty || form.readPretty;
|
|
44
|
+
const dm = (0, external_data_source_index_js_namespaceObject.useDataSourceManager)();
|
|
42
45
|
const isTableField = null == props ? void 0 : props.fieldSchema;
|
|
43
46
|
const { getField } = (0, index_js_namespaceObject.useCollection_deprecated)();
|
|
44
47
|
const collectionField = (null == props ? void 0 : props.collectionField) || getField(fieldSchema['name']) || getCollectionJoinField(fieldSchema['x-collection-field']);
|
|
48
|
+
const collectionInterface = dm.collectionFieldInterfaceManager.getFieldInterface(null == collectionField ? void 0 : collectionField.interface);
|
|
45
49
|
const { label } = (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.fieldNames) || {};
|
|
50
|
+
const compile = (0, external_useCompile_js_namespaceObject.useCompile)();
|
|
46
51
|
const fieldModeOptions = (0, external_react_namespaceObject.useMemo)(()=>{
|
|
47
|
-
if (!collectionField || !(null == collectionField ? void 0 : collectionField.interface)) return;
|
|
52
|
+
if (!collectionField || !(null == collectionField ? void 0 : collectionField.interface)) return [];
|
|
48
53
|
if (![
|
|
49
54
|
'o2o',
|
|
50
55
|
'oho',
|
|
@@ -234,10 +239,6 @@ const useFieldModeOptions = (props)=>{
|
|
|
234
239
|
label: t('Tag'),
|
|
235
240
|
value: 'Tag'
|
|
236
241
|
},
|
|
237
|
-
{
|
|
238
|
-
label: t('Custom Title'),
|
|
239
|
-
value: 'CustomTitle'
|
|
240
|
-
},
|
|
241
242
|
!isTableField && {
|
|
242
243
|
label: t('Sub-details'),
|
|
243
244
|
value: 'Nester'
|
|
@@ -266,10 +267,6 @@ const useFieldModeOptions = (props)=>{
|
|
|
266
267
|
{
|
|
267
268
|
label: t('Cascader'),
|
|
268
269
|
value: 'Cascader'
|
|
269
|
-
},
|
|
270
|
-
{
|
|
271
|
-
label: t('Custom Title'),
|
|
272
|
-
value: 'CustomTitle'
|
|
273
270
|
}
|
|
274
271
|
];
|
|
275
272
|
default:
|
|
@@ -314,6 +311,12 @@ const useFieldModeOptions = (props)=>{
|
|
|
314
311
|
null == collectionField ? void 0 : collectionField.interface,
|
|
315
312
|
label
|
|
316
313
|
]);
|
|
314
|
+
null == collectionInterface || null == (_collectionInterface_componentOptions = collectionInterface.componentOptions) || null == (_collectionInterface_componentOptions_filter = _collectionInterface_componentOptions.filter((item)=>!item.useVisible || item.useVisible())) || _collectionInterface_componentOptions_filter.forEach((item)=>{
|
|
315
|
+
if (!(null == fieldModeOptions ? void 0 : fieldModeOptions.find((modeItem)=>modeItem.value === item.value))) null == fieldModeOptions || fieldModeOptions.push({
|
|
316
|
+
label: compile(item.label),
|
|
317
|
+
value: item.value
|
|
318
|
+
});
|
|
319
|
+
});
|
|
317
320
|
return (fieldModeOptions || []).filter(Boolean);
|
|
318
321
|
};
|
|
319
322
|
exports.useFieldModeOptions = __webpack_exports__.useFieldModeOptions;
|
|
@@ -42,8 +42,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
42
42
|
});
|
|
43
43
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
44
44
|
const external_react_namespaceObject = require("react");
|
|
45
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
46
45
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
46
|
+
const client_namespaceObject = require("@tego/client");
|
|
47
47
|
const external_antd_namespaceObject = require("antd");
|
|
48
48
|
const external_lodash_namespaceObject = require("lodash");
|
|
49
49
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
@@ -150,7 +150,7 @@ const FieldComponentProps = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
150
150
|
...scope
|
|
151
151
|
},
|
|
152
152
|
components: {
|
|
153
|
-
ArrayItems:
|
|
153
|
+
ArrayItems: client_namespaceObject.ArrayItems,
|
|
154
154
|
FormItem: external_schema_component_index_js_namespaceObject.FormItem,
|
|
155
155
|
Space: external_antd_namespaceObject.Space
|
|
156
156
|
},
|
|
@@ -239,7 +239,7 @@ const FilterCustomItemInitializer = /*#__PURE__*/ (0, external_react_namespaceOb
|
|
|
239
239
|
FieldComponentProps,
|
|
240
240
|
Select: external_schema_component_index_js_namespaceObject.Select
|
|
241
241
|
},
|
|
242
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
242
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
243
243
|
layout: 'vertical',
|
|
244
244
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.ConfigProvider, {
|
|
245
245
|
locale: locale,
|
|
@@ -364,7 +364,7 @@ const FilterCustomItemInitializer = /*#__PURE__*/ (0, external_react_namespaceOb
|
|
|
364
364
|
'x-decorator': 'FilterFormItem',
|
|
365
365
|
'x-decorator-props': collection,
|
|
366
366
|
'x-component-props': {
|
|
367
|
-
...defaultSchema['x-component-props']
|
|
367
|
+
...defaultSchema['x-component-props'],
|
|
368
368
|
fieldNames: {
|
|
369
369
|
label: titleField,
|
|
370
370
|
value: titleField
|
|
@@ -38,13 +38,13 @@ __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
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
42
|
const external_antd_namespaceObject = require("antd");
|
|
43
43
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
44
44
|
const AsDefaultTemplate = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=>{
|
|
45
45
|
var _array_field;
|
|
46
|
-
const array =
|
|
47
|
-
const index =
|
|
46
|
+
const array = client_namespaceObject.ArrayBase.useArray();
|
|
47
|
+
const index = client_namespaceObject.ArrayBase.useIndex(props.index);
|
|
48
48
|
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
49
49
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Switch, {
|
|
50
50
|
...props,
|
|
@@ -39,9 +39,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
const external_react_namespaceObject = require("react");
|
|
41
41
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
42
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
43
42
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
44
43
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
44
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
45
|
const external_antd_namespaceObject = require("antd");
|
|
46
46
|
const external_classnames_namespaceObject = require("classnames");
|
|
47
47
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -50,8 +50,8 @@ const external_react_i18next_namespaceObject = require("react-i18next");
|
|
|
50
50
|
const external_DataTemplateTitle_style_js_namespaceObject = require("./DataTemplateTitle.style.js");
|
|
51
51
|
const DataTemplateTitle = (0, schema_namespaceObject.observer)((props)=>{
|
|
52
52
|
var _array_field;
|
|
53
|
-
const array =
|
|
54
|
-
const index =
|
|
53
|
+
const array = client_namespaceObject.ArrayBase.useArray();
|
|
54
|
+
const index = client_namespaceObject.ArrayBase.useIndex(props.index);
|
|
55
55
|
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
56
56
|
const value = null == array ? void 0 : null == (_array_field = array.field) ? void 0 : _array_field.value[index];
|
|
57
57
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
@@ -168,7 +168,7 @@ const ArrayCollapse = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
168
168
|
type: 'error',
|
|
169
169
|
address: "".concat(path, ".**")
|
|
170
170
|
});
|
|
171
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
171
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(client_namespaceObject.ArrayBase.Item, {
|
|
172
172
|
index: index,
|
|
173
173
|
record: ()=>{
|
|
174
174
|
var _field_value;
|
|
@@ -196,7 +196,7 @@ const ArrayCollapse = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
196
196
|
]
|
|
197
197
|
});
|
|
198
198
|
};
|
|
199
|
-
const extra = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
199
|
+
const extra = /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(client_namespaceObject.ArrayBase.Item, {
|
|
200
200
|
index: index,
|
|
201
201
|
record: item,
|
|
202
202
|
children: [
|
|
@@ -228,14 +228,14 @@ const ArrayCollapse = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
228
228
|
key: index,
|
|
229
229
|
header: header(),
|
|
230
230
|
extra: extra
|
|
231
|
-
}, /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
231
|
+
}, /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.ArrayBase.Item, {
|
|
232
232
|
index: index,
|
|
233
233
|
record: item,
|
|
234
234
|
children: content
|
|
235
235
|
}, index));
|
|
236
236
|
})
|
|
237
237
|
});
|
|
238
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(
|
|
238
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(client_namespaceObject.ArrayBase, {
|
|
239
239
|
onAdd: (index)=>{
|
|
240
240
|
setActiveKeys(insertActiveKeys(activeKeys, index));
|
|
241
241
|
},
|
|
@@ -263,13 +263,13 @@ ArrayCollapse.defaultProps = {
|
|
|
263
263
|
};
|
|
264
264
|
ArrayCollapse.displayName = 'ArrayCollapse';
|
|
265
265
|
ArrayCollapse.CollapsePanel = CollapsePanel;
|
|
266
|
-
|
|
266
|
+
client_namespaceObject.ArrayBase.mixin(ArrayCollapse);
|
|
267
267
|
const components_DataTemplateTitle = ArrayCollapse;
|
|
268
268
|
ArrayCollapse.Copy = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=>{
|
|
269
269
|
var _array_field;
|
|
270
270
|
const self = (0, schema_namespaceObject.useField)();
|
|
271
|
-
const array =
|
|
272
|
-
const index =
|
|
271
|
+
const array = client_namespaceObject.ArrayBase.useArray();
|
|
272
|
+
const index = client_namespaceObject.ArrayBase.useIndex(props.index);
|
|
273
273
|
if (!array) return null;
|
|
274
274
|
if ((null == (_array_field = array.field) ? void 0 : _array_field.pattern) !== 'editable') return null;
|
|
275
275
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.CopyOutlined, {
|
|
@@ -39,7 +39,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
require("react");
|
|
41
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
42
|
-
const client_namespaceObject = require("@
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_namespaceObject = require("antd");
|
|
44
44
|
const external_lodash_namespaceObject = require("lodash");
|
|
45
45
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|