@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
|
@@ -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_antd_style_namespaceObject = require("antd-style");
|
|
43
43
|
const external_classnames_namespaceObject = require("classnames");
|
|
44
44
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -97,7 +97,7 @@ const InternalNester = (0, schema_namespaceObject.observer)(()=>{
|
|
|
97
97
|
name: collectionField.target,
|
|
98
98
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.ACLCollectionProvider, {
|
|
99
99
|
actionPath: "".concat(collectionField.target, ":").concat(actionName),
|
|
100
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
100
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
101
101
|
layout: 'vertical',
|
|
102
102
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
103
103
|
className: external_classnames_default()(styles.body, {
|
|
@@ -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_antd_style_namespaceObject = require("antd-style");
|
|
43
43
|
const index_js_namespaceObject = require("../../../built-in/acl/index.js");
|
|
44
44
|
const external_collection_manager_index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
@@ -105,7 +105,7 @@ const InternalSubTable = (0, schema_namespaceObject.observer)(()=>{
|
|
|
105
105
|
name: options.target,
|
|
106
106
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.ACLCollectionProvider, {
|
|
107
107
|
actionPath: "".concat(options.target, ":").concat(actionName || 'view'),
|
|
108
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
108
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
109
109
|
className: styles.container,
|
|
110
110
|
layout: 'vertical',
|
|
111
111
|
bordered: false,
|
|
@@ -80,7 +80,7 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
80
80
|
const isTreeCollection = (null == targetCollection ? void 0 : targetCollection.template) === 'tree';
|
|
81
81
|
const ellipsisWithTooltipRef = (0, external_react_namespaceObject.useRef)();
|
|
82
82
|
const getLabelUiSchema = (0, external_util_js_namespaceObject.useLabelUiSchemaV2)();
|
|
83
|
-
const { formulaRecord, fieldNames } =
|
|
83
|
+
const { formulaRecord, fieldNames } = (0, external_hooks_js_namespaceObject.useCustomTitle)(recordCtx, fieldSchema, defFieldNames);
|
|
84
84
|
const renderRecords = ()=>(0, schema_namespaceObject.toArr)(formulaRecord[fieldSchema['name']] || props.value).map((record, index, arr)=>{
|
|
85
85
|
var _getCollection_options, _getCollection, _targetCollection_fieldsMap_, _targetCollection_fieldsMap, _getCollection_options1, _getCollection1, _targetCollection_fieldsMap_1, _targetCollection_fieldsMap1;
|
|
86
86
|
const value = null == record ? void 0 : record[(null == fieldNames ? void 0 : fieldNames.label) || 'label'];
|
|
@@ -173,60 +173,6 @@ const ReadPrettyInternalViewer = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
173
173
|
}, {
|
|
174
174
|
displayName: 'ReadPrettyInternalViewer'
|
|
175
175
|
});
|
|
176
|
-
const customTitle = (record, schema, fieldNames)=>{
|
|
177
|
-
var _schema_xcomponentprops, _schema_xcomponentprops_fieldNames, _schema_xcomponentprops1;
|
|
178
|
-
if ((null == (_schema_xcomponentprops = schema['x-component-props']) ? void 0 : _schema_xcomponentprops.mode) === 'CustomTitle' && (null == (_schema_xcomponentprops1 = schema['x-component-props']) ? void 0 : null == (_schema_xcomponentprops_fieldNames = _schema_xcomponentprops1.fieldNames) ? void 0 : _schema_xcomponentprops_fieldNames.formula)) {
|
|
179
|
-
var _schema_xcomponentprops_fieldNames1, _schema_xcomponentprops2;
|
|
180
|
-
const regex = /{{(.*?)}}/g;
|
|
181
|
-
const valueOject = {};
|
|
182
|
-
let outputStr = '';
|
|
183
|
-
let match;
|
|
184
|
-
const formula = null == (_schema_xcomponentprops2 = schema['x-component-props']) ? void 0 : null == (_schema_xcomponentprops_fieldNames1 = _schema_xcomponentprops2.fieldNames) ? void 0 : _schema_xcomponentprops_fieldNames1.formula;
|
|
185
|
-
while(match = regex.exec(formula))if (match[1].includes('.')) {
|
|
186
|
-
const fieldList = [
|
|
187
|
-
schema.name
|
|
188
|
-
];
|
|
189
|
-
fieldList.push(...match[1].split('.'));
|
|
190
|
-
const result = {
|
|
191
|
-
currRecord: record,
|
|
192
|
-
value: ''
|
|
193
|
-
};
|
|
194
|
-
fieldList.forEach((value, index)=>{
|
|
195
|
-
var _result_currRecord;
|
|
196
|
-
if (fieldList.length - 1 !== index) {
|
|
197
|
-
var _result_currRecord1;
|
|
198
|
-
result.currRecord = null == (_result_currRecord1 = result.currRecord) ? void 0 : _result_currRecord1[value];
|
|
199
|
-
return;
|
|
200
|
-
}
|
|
201
|
-
result.value = null == (_result_currRecord = result.currRecord) ? void 0 : _result_currRecord[value];
|
|
202
|
-
});
|
|
203
|
-
var _result_value;
|
|
204
|
-
valueOject[match[1]] = null != (_result_value = result.value) ? _result_value : '';
|
|
205
|
-
} else {
|
|
206
|
-
var _record_schema_name;
|
|
207
|
-
valueOject[match[1]] = (null == (_record_schema_name = record[schema['name']]) ? void 0 : _record_schema_name[match[1]]) || '';
|
|
208
|
-
}
|
|
209
|
-
outputStr = replacePlaceholders(formula, valueOject);
|
|
210
|
-
record[schema['name']] = {
|
|
211
|
-
...record[schema['name']],
|
|
212
|
-
customLabel: outputStr
|
|
213
|
-
};
|
|
214
|
-
return {
|
|
215
|
-
formulaRecord: record,
|
|
216
|
-
fieldNames: {
|
|
217
|
-
...fieldNames,
|
|
218
|
-
label: 'customLabel'
|
|
219
|
-
}
|
|
220
|
-
};
|
|
221
|
-
}
|
|
222
|
-
return {
|
|
223
|
-
formulaRecord: record,
|
|
224
|
-
fieldNames
|
|
225
|
-
};
|
|
226
|
-
};
|
|
227
|
-
const replacePlaceholders = (inputStr, values)=>inputStr.replace(/{{(.*?)}}/g, function(match, placeholder) {
|
|
228
|
-
return Object.prototype.hasOwnProperty.call(values, placeholder) ? values[placeholder] : match;
|
|
229
|
-
});
|
|
230
176
|
exports.ReadPrettyInternalViewer = __webpack_exports__.ReadPrettyInternalViewer;
|
|
231
177
|
exports.isObject = __webpack_exports__.isObject;
|
|
232
178
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -40,8 +40,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40
40
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
41
|
const external_react_namespaceObject = require("react");
|
|
42
42
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
43
|
-
const client_namespaceObject = require("@tachybase/utils/client");
|
|
44
43
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
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_flat_namespaceObject = require("flat");
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
40
|
-
const client_namespaceObject = require("@
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_lodash_namespaceObject = require("lodash");
|
|
42
42
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
43
43
|
const index_js_namespaceObject = require("../../../../filter-provider/index.js");
|
|
@@ -34,6 +34,7 @@ var __webpack_exports__ = {};
|
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
36
|
useAssociationFieldContext: ()=>useAssociationFieldContext,
|
|
37
|
+
useCustomTitle: ()=>useCustomTitle,
|
|
37
38
|
default: ()=>useServiceOptions,
|
|
38
39
|
SubFormProvider: ()=>SubFormProvider,
|
|
39
40
|
useSubFormValue: ()=>useSubFormValue,
|
|
@@ -42,7 +43,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
42
43
|
});
|
|
43
44
|
const external_react_namespaceObject = require("react");
|
|
44
45
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
45
|
-
const client_namespaceObject = require("@
|
|
46
|
+
const client_namespaceObject = require("@tego/client");
|
|
46
47
|
const external_lodash_namespaceObject = require("lodash");
|
|
47
48
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
48
49
|
const cloneDeep_namespaceObject = require("lodash/cloneDeep");
|
|
@@ -191,9 +192,61 @@ const useSubFormValue = ()=>{
|
|
|
191
192
|
collection
|
|
192
193
|
};
|
|
193
194
|
};
|
|
195
|
+
const useCustomTitle = (record, schema, fieldNames)=>{
|
|
196
|
+
var _schema_xcomponentprops, _schema_xcomponentprops_fieldNames, _schema_xcomponentprops1;
|
|
197
|
+
if ((null == (_schema_xcomponentprops = schema['x-component-props']) ? void 0 : _schema_xcomponentprops.mode) === 'CustomTitle' && (null == (_schema_xcomponentprops1 = schema['x-component-props']) ? void 0 : null == (_schema_xcomponentprops_fieldNames = _schema_xcomponentprops1.fieldNames) ? void 0 : _schema_xcomponentprops_fieldNames.formula)) {
|
|
198
|
+
if (Array.isArray(record[schema['name']])) record[schema['name']].forEach((recordItem)=>{
|
|
199
|
+
recordItem['customLabel'] = getCustomLabel(recordItem, schema);
|
|
200
|
+
});
|
|
201
|
+
else record[schema['name']]['customLabel'] = getCustomLabel(record[schema['name']], schema);
|
|
202
|
+
return {
|
|
203
|
+
formulaRecord: record,
|
|
204
|
+
fieldNames: {
|
|
205
|
+
...fieldNames,
|
|
206
|
+
label: 'customLabel'
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
}
|
|
210
|
+
return {
|
|
211
|
+
formulaRecord: record,
|
|
212
|
+
fieldNames
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
const getCustomLabel = (record, schema)=>{
|
|
216
|
+
var _schema_xcomponentprops_fieldNames, _schema_xcomponentprops;
|
|
217
|
+
const regex = /{{(.*?)}}/g;
|
|
218
|
+
const valueOject = {};
|
|
219
|
+
let outputStr = '';
|
|
220
|
+
let match;
|
|
221
|
+
const formula = null == (_schema_xcomponentprops = schema['x-component-props']) ? void 0 : null == (_schema_xcomponentprops_fieldNames = _schema_xcomponentprops.fieldNames) ? void 0 : _schema_xcomponentprops_fieldNames.formula;
|
|
222
|
+
while(match = regex.exec(formula))if (match[1].includes('.')) {
|
|
223
|
+
const fieldList = match[1].split('.');
|
|
224
|
+
const result = {
|
|
225
|
+
currRecord: record,
|
|
226
|
+
value: ''
|
|
227
|
+
};
|
|
228
|
+
fieldList.forEach((value, index)=>{
|
|
229
|
+
var _result_currRecord;
|
|
230
|
+
if (fieldList.length - 1 !== index) {
|
|
231
|
+
var _result_currRecord1;
|
|
232
|
+
result.currRecord = null == (_result_currRecord1 = result.currRecord) ? void 0 : _result_currRecord1[value];
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
result.value = null == (_result_currRecord = result.currRecord) ? void 0 : _result_currRecord[value];
|
|
236
|
+
});
|
|
237
|
+
var _result_value;
|
|
238
|
+
valueOject[match[1]] = null != (_result_value = result.value) ? _result_value : '';
|
|
239
|
+
} else valueOject[match[1]] = record[match[1]] || '';
|
|
240
|
+
outputStr = replacePlaceholders(formula, valueOject);
|
|
241
|
+
return outputStr;
|
|
242
|
+
};
|
|
243
|
+
const replacePlaceholders = (inputStr, values)=>inputStr.replace(/{{(.*?)}}/g, function(match, placeholder) {
|
|
244
|
+
return Object.prototype.hasOwnProperty.call(values, placeholder) ? values[placeholder] : match;
|
|
245
|
+
});
|
|
194
246
|
exports.SubFormProvider = __webpack_exports__.SubFormProvider;
|
|
195
247
|
exports["default"] = __webpack_exports__["default"];
|
|
196
248
|
exports.useAssociationFieldContext = __webpack_exports__.useAssociationFieldContext;
|
|
249
|
+
exports.useCustomTitle = __webpack_exports__.useCustomTitle;
|
|
197
250
|
exports.useFieldNames = __webpack_exports__.useFieldNames;
|
|
198
251
|
exports.useInsertSchema = __webpack_exports__.useInsertSchema;
|
|
199
252
|
exports.useSubFormValue = __webpack_exports__.useSubFormValue;
|
|
@@ -201,6 +254,7 @@ for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
|
201
254
|
"SubFormProvider",
|
|
202
255
|
"default",
|
|
203
256
|
"useAssociationFieldContext",
|
|
257
|
+
"useCustomTitle",
|
|
204
258
|
"useFieldNames",
|
|
205
259
|
"useInsertSchema",
|
|
206
260
|
"useSubFormValue"
|
|
@@ -45,7 +45,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
45
45
|
const external_react_namespaceObject = require("react");
|
|
46
46
|
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
47
47
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
48
|
-
const client_namespaceObject = require("@
|
|
48
|
+
const client_namespaceObject = require("@tego/client");
|
|
49
49
|
const external_antd_namespaceObject = require("antd");
|
|
50
50
|
const index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
51
51
|
const useLabelUiSchemaV2 = ()=>{
|
|
@@ -38,9 +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
42
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
43
|
+
const client_namespaceObject = require("@tego/client");
|
|
44
44
|
const external_lodash_namespaceObject = require("lodash");
|
|
45
45
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
46
46
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -160,8 +160,8 @@ AssociationSelect.Designer = function() {
|
|
|
160
160
|
form && !(null == form ? void 0 : form.readPretty) && validateSchema && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
161
161
|
title: t('Set validation rules'),
|
|
162
162
|
components: {
|
|
163
|
-
ArrayCollapse:
|
|
164
|
-
FormLayout:
|
|
163
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
164
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
165
165
|
},
|
|
166
166
|
schema: {
|
|
167
167
|
type: 'object',
|
|
@@ -273,8 +273,8 @@ AssociationSelect.Designer = function() {
|
|
|
273
273
|
isAllowToSetDefaultValue() && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
274
274
|
title: t('Set default value'),
|
|
275
275
|
components: {
|
|
276
|
-
ArrayCollapse:
|
|
277
|
-
FormLayout:
|
|
276
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
277
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
278
278
|
},
|
|
279
279
|
width: 800,
|
|
280
280
|
schema: {
|
|
@@ -282,7 +282,7 @@ AssociationSelect.Designer = function() {
|
|
|
282
282
|
title: t('Set default value'),
|
|
283
283
|
properties: {
|
|
284
284
|
default: {
|
|
285
|
-
...fieldSchemaWithoutRequired
|
|
285
|
+
...fieldSchemaWithoutRequired,
|
|
286
286
|
'x-decorator': 'FormItem',
|
|
287
287
|
'x-component-props': {
|
|
288
288
|
...fieldSchemaWithoutRequired['x-component-props'],
|
|
@@ -394,7 +394,7 @@ AssociationSelect.Designer = function() {
|
|
|
394
394
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
395
395
|
title: t('Set default sorting rules'),
|
|
396
396
|
components: {
|
|
397
|
-
ArrayItems:
|
|
397
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
398
398
|
},
|
|
399
399
|
schema: {
|
|
400
400
|
type: 'object',
|
|
@@ -616,8 +616,8 @@ AssociationSelect.FilterDesigner = function() {
|
|
|
616
616
|
form && !(null == form ? void 0 : form.readPretty) && validateSchema && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
617
617
|
title: t('Set validation rules'),
|
|
618
618
|
components: {
|
|
619
|
-
ArrayCollapse:
|
|
620
|
-
FormLayout:
|
|
619
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
620
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
621
621
|
},
|
|
622
622
|
schema: {
|
|
623
623
|
type: 'object',
|
|
@@ -729,8 +729,8 @@ AssociationSelect.FilterDesigner = function() {
|
|
|
729
729
|
form && !(null == form ? void 0 : form.readPretty) && (null == collectionField ? void 0 : null == (_collectionField_uiSchema1 = collectionField.uiSchema) ? void 0 : _collectionField_uiSchema1.type) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
730
730
|
title: t('Set default value'),
|
|
731
731
|
components: {
|
|
732
|
-
ArrayCollapse:
|
|
733
|
-
FormLayout:
|
|
732
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
733
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
734
734
|
},
|
|
735
735
|
schema: {
|
|
736
736
|
type: 'object',
|
|
@@ -778,7 +778,7 @@ AssociationSelect.FilterDesigner = function() {
|
|
|
778
778
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(SchemaSettings_js_namespaceObject.SchemaSettingsModalItem, {
|
|
779
779
|
title: t('Set default sorting rules'),
|
|
780
780
|
components: {
|
|
781
|
-
ArrayItems:
|
|
781
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
782
782
|
},
|
|
783
783
|
schema: {
|
|
784
784
|
type: 'object',
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
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("@
|
|
32
|
+
const client_namespaceObject = require("@tego/client");
|
|
33
33
|
const external_ahooks_namespaceObject = require("ahooks");
|
|
34
34
|
const external_antd_namespaceObject = require("antd");
|
|
35
35
|
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
@@ -38,8 +38,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
});
|
|
39
39
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
40
40
|
require("react");
|
|
41
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
42
41
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_namespaceObject = require("antd");
|
|
44
44
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
45
45
|
const external_classnames_namespaceObject = require("classnames");
|
|
@@ -107,7 +107,7 @@ const ColorPicker = (0, schema_namespaceObject.connect)((props)=>{
|
|
|
107
107
|
}, (0, schema_namespaceObject.mapProps)((props, field)=>({
|
|
108
108
|
...props
|
|
109
109
|
})), (0, schema_namespaceObject.mapReadPretty)((props)=>{
|
|
110
|
-
const prefixCls = (0,
|
|
110
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-color-picker", props);
|
|
111
111
|
const { styles } = useStyles();
|
|
112
112
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
113
113
|
role: "button",
|
|
@@ -29,7 +29,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
29
|
mapDatePicker: ()=>mapDatePicker,
|
|
30
30
|
getDateRanges: ()=>getDateRanges
|
|
31
31
|
});
|
|
32
|
-
const client_namespaceObject = require("@
|
|
32
|
+
const client_namespaceObject = require("@tego/client");
|
|
33
33
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
34
34
|
if (!client_namespaceObject.dayjs.isDayjs(value)) return value;
|
|
35
35
|
if ('local' === timezone) {
|
|
@@ -39,7 +39,7 @@ __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
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
42
|
-
const client_namespaceObject = require("@
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
44
44
|
const external_cronstrue_namespaceObject = require("cronstrue");
|
|
45
45
|
var external_cronstrue_default = /*#__PURE__*/ __webpack_require__.n(external_cronstrue_namespaceObject);
|
|
@@ -38,7 +38,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
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_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");
|
|
@@ -30,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
getDateExact: ()=>getDateExact,
|
|
31
31
|
getDateRanges: ()=>getDateRanges
|
|
32
32
|
});
|
|
33
|
-
const client_namespaceObject = require("@
|
|
33
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
34
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
35
35
|
if (!client_namespaceObject.dayjs.isDayjs(value)) return value;
|
|
36
36
|
if ('local' === timezone) {
|
|
@@ -30,7 +30,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
31
|
const external_react_namespaceObject = require("react");
|
|
32
32
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
33
|
-
const client_namespaceObject = require("@
|
|
33
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
34
|
const external_antd_namespaceObject = require("antd");
|
|
35
35
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
36
36
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -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_antd_namespaceObject = require("antd");
|
|
34
34
|
const external_index_js_namespaceObject = require("../../index.js");
|
|
35
35
|
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
@@ -48,7 +48,7 @@ const FormComponent = (props)=>{
|
|
|
48
48
|
value: void 0,
|
|
49
49
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
50
50
|
value: form,
|
|
51
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
51
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
52
52
|
layout: 'vertical',
|
|
53
53
|
...others,
|
|
54
54
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.RecursionField, {
|
|
@@ -82,7 +82,7 @@ const FormDecorator = (props)=>{
|
|
|
82
82
|
value: void 0,
|
|
83
83
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
84
84
|
value: form,
|
|
85
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
85
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
86
86
|
layout: 'vertical',
|
|
87
87
|
...others,
|
|
88
88
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FieldContext.Provider, {
|
|
@@ -48,8 +48,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
48
48
|
});
|
|
49
49
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
50
50
|
require("react");
|
|
51
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
52
51
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
52
|
+
const client_namespaceObject = require("@tego/client");
|
|
53
53
|
const external_lodash_namespaceObject = require("lodash");
|
|
54
54
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
55
55
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -233,8 +233,8 @@ const formItemSettings = new index_js_namespaceObject.SchemaSettings({
|
|
|
233
233
|
return {
|
|
234
234
|
title: t('Set validation rules'),
|
|
235
235
|
components: {
|
|
236
|
-
ArrayCollapse:
|
|
237
|
-
FormLayout:
|
|
236
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
237
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
238
238
|
},
|
|
239
239
|
schema: {
|
|
240
240
|
type: 'object',
|
|
@@ -38,8 +38,8 @@ __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");
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
43
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
44
44
|
const external_classnames_namespaceObject = require("classnames");
|
|
45
45
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -156,7 +156,7 @@ const FormItem = (props)=>{
|
|
|
156
156
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_block_item_index_js_namespaceObject.BlockItem, {
|
|
157
157
|
className: 'tb-form-item',
|
|
158
158
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(acl_index_js_namespaceObject.ACLCollectionFieldProvider, {
|
|
159
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
159
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormItem, {
|
|
160
160
|
className: className,
|
|
161
161
|
...props,
|
|
162
162
|
extra: extra
|
|
@@ -48,8 +48,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
48
48
|
});
|
|
49
49
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
50
50
|
require("react");
|
|
51
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
52
51
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
52
|
+
const client_namespaceObject = require("@tego/client");
|
|
53
53
|
const external_lodash_namespaceObject = require("lodash");
|
|
54
54
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
55
55
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -216,8 +216,8 @@ const EditValidationRules = ()=>{
|
|
|
216
216
|
return form && !(null == form ? void 0 : form.readPretty) && validateSchema ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
217
217
|
title: t('Set validation rules'),
|
|
218
218
|
components: {
|
|
219
|
-
ArrayCollapse:
|
|
220
|
-
FormLayout:
|
|
219
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
220
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
221
221
|
},
|
|
222
222
|
schema: {
|
|
223
223
|
type: 'object',
|
|
@@ -340,8 +340,8 @@ const EditDefaultValue = ()=>{
|
|
|
340
340
|
return form && !(null == form ? void 0 : form.readPretty) && (null == collectionField ? void 0 : null == (_collectionField_uiSchema = collectionField.uiSchema) ? void 0 : _collectionField_uiSchema.type) ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
341
341
|
title: t('Set default value'),
|
|
342
342
|
components: {
|
|
343
|
-
ArrayCollapse:
|
|
344
|
-
FormLayout:
|
|
343
|
+
ArrayCollapse: client_namespaceObject.ArrayCollapse,
|
|
344
|
+
FormLayout: client_namespaceObject.FormLayout
|
|
345
345
|
},
|
|
346
346
|
schema: {
|
|
347
347
|
type: 'object',
|
package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js
CHANGED
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
40
|
-
const client_namespaceObject = require("@
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_lodash_namespaceObject = require("lodash");
|
|
42
42
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
43
43
|
const index_js_namespaceObject = require("../../../../block-provider/hooks/index.js");
|
|
@@ -37,7 +37,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const external_react_namespaceObject = require("react");
|
|
39
39
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
40
|
-
const client_namespaceObject = require("@
|
|
40
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
41
|
const external_lodash_namespaceObject = require("lodash");
|
|
42
42
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
43
43
|
const index_js_namespaceObject = require("../../../../record-provider/index.js");
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
formSettings: ()=>formSettings,
|
|
29
29
|
readPrettyFormSettings: ()=>readPrettyFormSettings
|
|
30
30
|
});
|
|
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("../../../application/schema-settings/index.js");
|
|
35
35
|
const external_block_provider_index_js_namespaceObject = require("../../../block-provider/index.js");
|
|
@@ -217,7 +217,7 @@ const formDetailsSettings = new index_js_namespaceObject.SchemaSettings({
|
|
|
217
217
|
return {
|
|
218
218
|
title: t('Set default sorting rules'),
|
|
219
219
|
components: {
|
|
220
|
-
ArrayItems:
|
|
220
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
221
221
|
},
|
|
222
222
|
schema: {
|
|
223
223
|
type: 'object',
|
|
@@ -28,9 +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");
|
|
33
|
-
const client_namespaceObject = require("@
|
|
32
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
33
|
const external_antd_namespaceObject = require("antd");
|
|
35
34
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
36
35
|
const external_index_js_namespaceObject = require("../index.js");
|
|
@@ -79,7 +78,7 @@ const FormComponent = (props)=>{
|
|
|
79
78
|
value: void 0,
|
|
80
79
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
81
80
|
value: form,
|
|
82
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
81
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
83
82
|
layout: 'vertical',
|
|
84
83
|
...others,
|
|
85
84
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.RecursionField, {
|
|
@@ -105,7 +104,7 @@ const FormDecorator = (props)=>{
|
|
|
105
104
|
value: void 0,
|
|
106
105
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
107
106
|
value: form,
|
|
108
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
107
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
109
108
|
layout: 'vertical',
|
|
110
109
|
...others,
|
|
111
110
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FieldContext.Provider, {
|
|
@@ -39,7 +39,7 @@ __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
|
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);
|
|
@@ -36,8 +36,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
36
36
|
collectFieldStateOfLinkageRules: ()=>collectFieldStateOfLinkageRules,
|
|
37
37
|
getTempFieldState: ()=>getTempFieldState
|
|
38
38
|
});
|
|
39
|
-
const client_namespaceObject = require("@
|
|
40
|
-
const utils_client_namespaceObject = require("@tachybase/utils/client");
|
|
39
|
+
const client_namespaceObject = require("@tego/client");
|
|
41
40
|
const external_lodash_namespaceObject = require("lodash");
|
|
42
41
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
43
42
|
const type_js_namespaceObject = require("../../../schema-settings/LinkageRules/type.js");
|
|
@@ -163,7 +162,7 @@ async function replaceVariables(value, param) {
|
|
|
163
162
|
if (null == value) return;
|
|
164
163
|
const waitForParsing = null == (_value_match = value.match(isVariable_js_namespaceObject.REGEX_OF_VARIABLE)) ? void 0 : _value_match.map(async (item)=>{
|
|
165
164
|
const result = await variables.parseVariable(item, localVariables);
|
|
166
|
-
const id = "_".concat((0,
|
|
165
|
+
const id = "_".concat((0, client_namespaceObject.uid)());
|
|
167
166
|
scope[id] = result;
|
|
168
167
|
store[item] = id;
|
|
169
168
|
return result;
|
|
@@ -40,8 +40,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
40
40
|
});
|
|
41
41
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
42
42
|
const external_react_namespaceObject = require("react");
|
|
43
|
-
const components_namespaceObject = require("@tachybase/components");
|
|
44
43
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
44
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
45
|
const withDynamicSchemaProps_js_namespaceObject = require("../../../application/hoc/withDynamicSchemaProps.js");
|
|
46
46
|
const index_js_namespaceObject = require("../../../block-provider/index.js");
|
|
47
47
|
const useGridCardBlockParams_js_namespaceObject = require("../../../modules/blocks/data-blocks/grid-card/hooks/useGridCardBlockParams.js");
|
|
@@ -77,7 +77,7 @@ const InternalGridCardBlockProvider = (props)=>{
|
|
|
77
77
|
},
|
|
78
78
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
79
79
|
value: form,
|
|
80
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
80
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
81
81
|
layout: 'vertical',
|
|
82
82
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
83
83
|
className: "".concat(componentCls, " ").concat(hashId),
|