@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
|
@@ -50,7 +50,8 @@ const Input = Object.assign((0, schema_namespaceObject.connect)(external_antd_na
|
|
|
50
50
|
})), (0, schema_namespaceObject.mapReadPretty)(external_ReadPretty_js_namespaceObject.ReadPretty.TextArea)),
|
|
51
51
|
URL: (0, schema_namespaceObject.connect)(external_antd_namespaceObject.Input, (0, schema_namespaceObject.mapReadPretty)(external_ReadPretty_js_namespaceObject.ReadPretty.URL)),
|
|
52
52
|
JSON: (0, schema_namespaceObject.connect)(external_Json_js_namespaceObject.Json, (0, schema_namespaceObject.mapReadPretty)(external_ReadPretty_js_namespaceObject.ReadPretty.JSON)),
|
|
53
|
-
ReadPretty: external_ReadPretty_js_namespaceObject.ReadPretty.Input
|
|
53
|
+
ReadPretty: external_ReadPretty_js_namespaceObject.ReadPretty.Input,
|
|
54
|
+
Preview: external_ReadPretty_js_namespaceObject.ReadPretty.Preview
|
|
54
55
|
});
|
|
55
56
|
const input_Input = Input;
|
|
56
57
|
exports.Input = __webpack_exports__.Input;
|
|
@@ -37,8 +37,9 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
37
37
|
});
|
|
38
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
39
39
|
require("react");
|
|
40
|
-
const
|
|
40
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
41
41
|
const css_namespaceObject = require("@emotion/css");
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
43
|
const external_antd_namespaceObject = require("antd");
|
|
43
44
|
const external_classnames_namespaceObject = require("classnames");
|
|
44
45
|
var external_classnames_default = /*#__PURE__*/ __webpack_require__.n(external_classnames_namespaceObject);
|
|
@@ -64,7 +65,7 @@ function _templateObject() {
|
|
|
64
65
|
}
|
|
65
66
|
const ReadPretty = ()=>null;
|
|
66
67
|
const _Input = (props)=>{
|
|
67
|
-
const prefixCls = (0,
|
|
68
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-input", props);
|
|
68
69
|
const compile = (0, external_index_js_namespaceObject.useCompile)();
|
|
69
70
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
70
71
|
className: external_classnames_default()(prefixCls, props.className),
|
|
@@ -88,7 +89,7 @@ const _Input = (props)=>{
|
|
|
88
89
|
});
|
|
89
90
|
};
|
|
90
91
|
const _TextArea = (props)=>{
|
|
91
|
-
const prefixCls = (0,
|
|
92
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-textarea", props);
|
|
92
93
|
const compile = (0, external_index_js_namespaceObject.useCompile)();
|
|
93
94
|
var _props_value;
|
|
94
95
|
const value = compile(null != (_props_value = props.value) ? _props_value : '');
|
|
@@ -128,7 +129,7 @@ function convertToText(html) {
|
|
|
128
129
|
return (null == text ? void 0 : text.replace(/[\n\r]/g, '')) || '';
|
|
129
130
|
}
|
|
130
131
|
const _Html = (props)=>{
|
|
131
|
-
const prefixCls = (0,
|
|
132
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-textarea", props);
|
|
132
133
|
const compile = (0, external_index_js_namespaceObject.useCompile)();
|
|
133
134
|
var _props_value;
|
|
134
135
|
const value = compile(null != (_props_value = props.value) ? _props_value : '');
|
|
@@ -161,7 +162,7 @@ const _Html = (props)=>{
|
|
|
161
162
|
};
|
|
162
163
|
const _URL = (props)=>{
|
|
163
164
|
var _props_value;
|
|
164
|
-
const prefixCls = (0,
|
|
165
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)("description-url", props);
|
|
165
166
|
const content = props.value && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Typography.Link, {
|
|
166
167
|
ellipsis: true,
|
|
167
168
|
target: '_blank',
|
|
@@ -181,7 +182,7 @@ const _URL = (props)=>{
|
|
|
181
182
|
});
|
|
182
183
|
};
|
|
183
184
|
const _JSON = (props)=>{
|
|
184
|
-
const prefixCls = (0,
|
|
185
|
+
const prefixCls = (0, client_namespaceObject.usePrefixCls)('json', props);
|
|
185
186
|
var _props_space;
|
|
186
187
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("pre", {
|
|
187
188
|
className: external_classnames_default()(prefixCls, props.className, (0, css_namespaceObject.css)(_templateObject())),
|
|
@@ -189,11 +190,38 @@ const _JSON = (props)=>{
|
|
|
189
190
|
children: null != props.value ? JSON.stringify(props.value, null, null != (_props_space = props.space) ? _props_space : 2) : ''
|
|
190
191
|
});
|
|
191
192
|
};
|
|
193
|
+
const sizes = {
|
|
194
|
+
small: 24,
|
|
195
|
+
middle: 48,
|
|
196
|
+
large: 72,
|
|
197
|
+
oversized: 120
|
|
198
|
+
};
|
|
199
|
+
const _Preview = (props)=>{
|
|
200
|
+
var _fieldSchema_xcomponentprops, _fieldSchema_xcomponentprops1;
|
|
201
|
+
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
202
|
+
const size = (null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['size']) || 'small';
|
|
203
|
+
const objectFit = (null == (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops1['objectFit']) || 'cover';
|
|
204
|
+
if (!props.value) return props.value;
|
|
205
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Image, {
|
|
206
|
+
style: [
|
|
207
|
+
'small',
|
|
208
|
+
'middle',
|
|
209
|
+
'large',
|
|
210
|
+
'oversized'
|
|
211
|
+
].includes(size) ? {
|
|
212
|
+
width: sizes[size],
|
|
213
|
+
height: sizes[size],
|
|
214
|
+
objectFit
|
|
215
|
+
} : {},
|
|
216
|
+
src: props.value
|
|
217
|
+
});
|
|
218
|
+
};
|
|
192
219
|
ReadPretty.Input = _Input;
|
|
193
220
|
ReadPretty.TextArea = _TextArea;
|
|
194
221
|
ReadPretty.URL = _URL;
|
|
195
222
|
ReadPretty.Html = _Html;
|
|
196
223
|
ReadPretty.JSON = _JSON;
|
|
224
|
+
ReadPretty.Preview = _Preview;
|
|
197
225
|
exports.ReadPretty = __webpack_exports__.ReadPretty;
|
|
198
226
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
199
227
|
"ReadPretty"
|
|
@@ -33,7 +33,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
33
33
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
34
34
|
const external_react_namespaceObject = require("react");
|
|
35
35
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
36
|
-
const client_namespaceObject = require("@
|
|
36
|
+
const client_namespaceObject = require("@tego/client");
|
|
37
37
|
const external_d3_format_namespaceObject = require("d3-format");
|
|
38
38
|
const external_mathjs_namespaceObject = require("mathjs");
|
|
39
39
|
function countDecimalPlaces(value) {
|
|
@@ -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 external_antd_style_namespaceObject = require("antd-style");
|
|
46
46
|
const external_lodash_namespaceObject = require("lodash");
|
|
47
47
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
@@ -98,7 +98,7 @@ const InternalListBlockProvider = (props)=>{
|
|
|
98
98
|
},
|
|
99
99
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(schema_namespaceObject.FormContext.Provider, {
|
|
100
100
|
value: form,
|
|
101
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
101
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
102
102
|
layout: 'vertical',
|
|
103
103
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
104
104
|
className: styles.container,
|
|
@@ -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_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");
|
|
@@ -99,7 +99,7 @@ const ListDesigner = ()=>{
|
|
|
99
99
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsModalItem, {
|
|
100
100
|
title: t('Set default sorting rules'),
|
|
101
101
|
components: {
|
|
102
|
-
ArrayItems:
|
|
102
|
+
ArrayItems: client_namespaceObject.ArrayItems
|
|
103
103
|
},
|
|
104
104
|
schema: {
|
|
105
105
|
type: 'object',
|
|
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
MenuDesigner: ()=>MenuDesigner
|
|
29
29
|
});
|
|
30
30
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
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_file_saver_namespaceObject = require("file-saver");
|
|
35
35
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
@@ -391,7 +391,7 @@ const MenuDesigner = (props)=>{
|
|
|
391
391
|
title: t('Move to'),
|
|
392
392
|
eventKey: "move-to",
|
|
393
393
|
components: {
|
|
394
|
-
TreeSelect:
|
|
394
|
+
TreeSelect: client_namespaceObject.TreeSelect
|
|
395
395
|
},
|
|
396
396
|
effects: effects,
|
|
397
397
|
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject_3.Icon, {
|
|
@@ -29,8 +29,8 @@ __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("@tachybase/utils/client");
|
|
33
32
|
const core_namespaceObject = require("@dnd-kit/core");
|
|
33
|
+
const client_namespaceObject = require("@tego/client");
|
|
34
34
|
const external_antd_namespaceObject = require("antd");
|
|
35
35
|
const external_react_dom_namespaceObject = require("react-dom");
|
|
36
36
|
const external_index_js_namespaceObject = require("../../index.js");
|
|
@@ -28,7 +28,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const schema_namespaceObject = require("@tachybase/schema");
|
|
30
30
|
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
31
|
-
const external_react_router_namespaceObject = require("react-router");
|
|
32
31
|
const external_index_js_namespaceObject = require("../../index.js");
|
|
33
32
|
const index_js_namespaceObject = require("../../../application/schema-settings/index.js");
|
|
34
33
|
const schema_toolbar_index_js_namespaceObject = require("../../../application/schema-toolbar/index.js");
|
|
@@ -65,38 +64,6 @@ const pageSettings = new index_js_namespaceObject.SchemaSettings({
|
|
|
65
64
|
};
|
|
66
65
|
}
|
|
67
66
|
},
|
|
68
|
-
{
|
|
69
|
-
name: 'enablesharePage',
|
|
70
|
-
type: 'switch',
|
|
71
|
-
useVisible () {
|
|
72
|
-
const isShare = (0, external_react_router_namespaceObject.useMatch)('/share/:name');
|
|
73
|
-
return !isShare;
|
|
74
|
-
},
|
|
75
|
-
useComponentProps () {
|
|
76
|
-
var _fieldSchema_xcomponentprops;
|
|
77
|
-
const { dn } = (0, external_index_js_namespaceObject.useDesignable)();
|
|
78
|
-
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
79
|
-
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
80
|
-
const { title } = (0, schema_toolbar_index_js_namespaceObject.useSchemaToolbar)();
|
|
81
|
-
return {
|
|
82
|
-
title: t('Enable Share page'),
|
|
83
|
-
checked: null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.enableSharePage,
|
|
84
|
-
onChange (v) {
|
|
85
|
-
fieldSchema['x-component-props'] = fieldSchema['x-component-props'] || {};
|
|
86
|
-
fieldSchema['x-component-props']['enableSharePage'] = v;
|
|
87
|
-
if (!fieldSchema.title) fieldSchema.title = title;
|
|
88
|
-
dn.emit('patch', {
|
|
89
|
-
schema: {
|
|
90
|
-
['x-uid']: fieldSchema['x-uid'],
|
|
91
|
-
['x-component-props']: fieldSchema['x-component-props'],
|
|
92
|
-
title: fieldSchema.title
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
dn.refresh();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
},
|
|
100
67
|
{
|
|
101
68
|
name: 'divider',
|
|
102
69
|
type: 'divider',
|
|
@@ -37,11 +37,11 @@ __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");
|
|
42
41
|
const icons_namespaceObject = require("@ant-design/icons");
|
|
43
42
|
const pro_layout_namespaceObject = require("@ant-design/pro-layout");
|
|
44
43
|
const core_namespaceObject = require("@dnd-kit/core");
|
|
44
|
+
const client_namespaceObject = require("@tego/client");
|
|
45
45
|
const external_antd_namespaceObject = require("antd");
|
|
46
46
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
47
47
|
const external_classnames_namespaceObject = require("classnames");
|
|
@@ -66,7 +66,6 @@ const external_hooks_index_js_namespaceObject = require("../../hooks/index.js");
|
|
|
66
66
|
const external_error_fallback_index_js_namespaceObject = require("../error-fallback/index.js");
|
|
67
67
|
const external_FixedBlock_js_namespaceObject = require("./FixedBlock.js");
|
|
68
68
|
var external_FixedBlock_js_default = /*#__PURE__*/ __webpack_require__.n(external_FixedBlock_js_namespaceObject);
|
|
69
|
-
const useShareActions_js_namespaceObject = require("./hooks/useShareActions.js");
|
|
70
69
|
const external_Page_style_js_namespaceObject = require("./Page.style.js");
|
|
71
70
|
const external_PageDesigner_js_namespaceObject = require("./PageDesigner.js");
|
|
72
71
|
const external_PageTabDesigner_js_namespaceObject = require("./PageTabDesigner.js");
|
|
@@ -128,29 +127,21 @@ const Page = (props)=>{
|
|
|
128
127
|
}));
|
|
129
128
|
};
|
|
130
129
|
const PageHeader = (props)=>{
|
|
131
|
-
var _fieldSchema_xcomponentprops;
|
|
130
|
+
var _fieldSchema_xcomponentprops, _Object_values, _Object_values1;
|
|
132
131
|
const { disablePageHeader, enablePageTabs, setHeight, activeKey, setLoading, setSearchParams, fieldSchema, title, parentProps, enableSharePage } = props;
|
|
133
132
|
const { theme } = (0, theme_index_js_namespaceObject.useGlobalTheme)();
|
|
134
133
|
const options = (0, external_react_namespaceObject.useContext)(schema_namespaceObject.SchemaOptionsContext);
|
|
135
134
|
const compile = (0, external_hooks_index_js_namespaceObject.useCompile)();
|
|
136
|
-
const [open, setOpen] = (0, external_react_namespaceObject.useState)(false);
|
|
137
|
-
const [imageOpen, setImageOpen] = (0, external_react_namespaceObject.useState)(false);
|
|
138
135
|
const { showScrollArea } = (0, useContextMenu_js_namespaceObject.useContextMenu)();
|
|
139
136
|
const hidePageTitle = null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.hidePageTitle;
|
|
137
|
+
const extendComponents = fieldSchema['x-extend-components'] || {};
|
|
140
138
|
const pageHeaderTitle = hidePageTitle ? void 0 : fieldSchema.title || compile(title);
|
|
141
|
-
const isShare = (0, external_react_router_dom_namespaceObject.useMatch)('/share/:name');
|
|
142
139
|
const items = fieldSchema.mapProperties((schema)=>({
|
|
143
140
|
key: schema.name,
|
|
144
141
|
label: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TabItem, {
|
|
145
142
|
schema: schema
|
|
146
143
|
})
|
|
147
144
|
}));
|
|
148
|
-
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
149
|
-
const { styles } = (0, external_style_js_namespaceObject.useStyles)();
|
|
150
|
-
const { copyLink, imageAction } = (0, useShareActions_js_namespaceObject.useShareActions)({
|
|
151
|
-
title: pageHeaderTitle,
|
|
152
|
-
uid: ''
|
|
153
|
-
});
|
|
154
145
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
155
146
|
ref: (ref)=>{
|
|
156
147
|
setHeight(Math.floor((null == ref ? void 0 : ref.getBoundingClientRect().height) || 0) + 1);
|
|
@@ -162,12 +153,29 @@ const PageHeader = (props)=>{
|
|
|
162
153
|
ghost: false,
|
|
163
154
|
title: pageHeaderTitle || ' ',
|
|
164
155
|
...parentProps,
|
|
165
|
-
extra: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
156
|
+
extra: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
157
|
+
children: [
|
|
158
|
+
null == (_Object_values = Object.values(extendComponents)) ? void 0 : _Object_values.map((item, index)=>{
|
|
159
|
+
const schema = {
|
|
160
|
+
type: 'void',
|
|
161
|
+
name: item.name,
|
|
162
|
+
'x-component': item.component,
|
|
163
|
+
'x-component-props': {}
|
|
164
|
+
};
|
|
165
|
+
const componentProps = {
|
|
166
|
+
...props,
|
|
167
|
+
isExtra: true,
|
|
168
|
+
fieldSchema
|
|
169
|
+
};
|
|
170
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.PageExtendComponentProvider, {
|
|
171
|
+
...componentProps,
|
|
172
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_core_index_js_namespaceObject.SchemaComponent, {
|
|
173
|
+
schema: schema
|
|
174
|
+
})
|
|
175
|
+
});
|
|
176
|
+
}),
|
|
177
|
+
!enablePageTabs && showScrollArea && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.ScrollArea, {})
|
|
178
|
+
]
|
|
171
179
|
}),
|
|
172
180
|
footer: enablePageTabs && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TabComponent, {
|
|
173
181
|
activeKey: activeKey,
|
|
@@ -179,84 +187,27 @@ const PageHeader = (props)=>{
|
|
|
179
187
|
items: items
|
|
180
188
|
})
|
|
181
189
|
}),
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
width: 500,
|
|
198
|
-
onCancel: ()=>{
|
|
199
|
-
setOpen(false);
|
|
200
|
-
},
|
|
201
|
-
children: [
|
|
202
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
203
|
-
className: styles.secondmodal,
|
|
204
|
-
children: [
|
|
205
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
206
|
-
className: "tb-header-modal-list",
|
|
207
|
-
onClick: copyLink,
|
|
208
|
-
children: [
|
|
209
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icon_index_js_namespaceObject.Icon, {
|
|
210
|
-
type: "PaperClipOutlined"
|
|
211
|
-
}),
|
|
212
|
-
t('Copy link')
|
|
213
|
-
]
|
|
214
|
-
}),
|
|
215
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
216
|
-
className: "tb-header-modal-list",
|
|
217
|
-
onClick: ()=>{
|
|
218
|
-
setImageOpen(true);
|
|
219
|
-
},
|
|
220
|
-
children: [
|
|
221
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_icon_index_js_namespaceObject.Icon, {
|
|
222
|
-
type: "QrcodeOutlined"
|
|
223
|
-
}),
|
|
224
|
-
t('Generate QR code')
|
|
225
|
-
]
|
|
226
|
-
})
|
|
227
|
-
]
|
|
228
|
-
}),
|
|
229
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Modal, {
|
|
230
|
-
className: styles.imageModal,
|
|
231
|
-
open: imageOpen,
|
|
232
|
-
footer: null,
|
|
233
|
-
onCancel: ()=>{
|
|
234
|
-
setImageOpen(false);
|
|
235
|
-
},
|
|
236
|
-
children: imageAction()
|
|
190
|
+
null == (_Object_values1 = Object.values(extendComponents)) ? void 0 : _Object_values1.map((item, index)=>{
|
|
191
|
+
const schema = {
|
|
192
|
+
type: 'void',
|
|
193
|
+
name: 'icon' + item.name,
|
|
194
|
+
'x-component': item.component,
|
|
195
|
+
'x-component-props': {}
|
|
196
|
+
};
|
|
197
|
+
const componentProps = {
|
|
198
|
+
...props,
|
|
199
|
+
fieldSchema
|
|
200
|
+
};
|
|
201
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.PageExtendComponentProvider, {
|
|
202
|
+
...componentProps,
|
|
203
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_core_index_js_namespaceObject.SchemaComponent, {
|
|
204
|
+
schema: schema
|
|
237
205
|
})
|
|
238
|
-
|
|
206
|
+
});
|
|
239
207
|
})
|
|
240
208
|
]
|
|
241
209
|
});
|
|
242
210
|
};
|
|
243
|
-
const HeaderExtra = (param)=>{
|
|
244
|
-
let { enablePageTabs, showScrollArea, isShare, setOpen, enableSharePage } = param;
|
|
245
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
|
|
246
|
-
children: [
|
|
247
|
-
!isShare && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Button, {
|
|
248
|
-
icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ShareAltOutlined, {}),
|
|
249
|
-
onClick: ()=>{
|
|
250
|
-
setOpen(true);
|
|
251
|
-
},
|
|
252
|
-
style: {
|
|
253
|
-
visibility: "".concat(enableSharePage ? 'visible' : 'hidden')
|
|
254
|
-
}
|
|
255
|
-
}),
|
|
256
|
-
!enablePageTabs && showScrollArea && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.ScrollArea, {})
|
|
257
|
-
]
|
|
258
|
-
});
|
|
259
|
-
};
|
|
260
211
|
const TabComponent = (props)=>{
|
|
261
212
|
const { activeKey, setLoading, setSearchParams, showScrollArea, options, theme, items } = props;
|
|
262
213
|
const { styles } = (0, external_Page_style_js_namespaceObject.useStyles)();
|
|
@@ -378,7 +329,7 @@ const AddTabForm = (props)=>{
|
|
|
378
329
|
components: {
|
|
379
330
|
...options.components
|
|
380
331
|
},
|
|
381
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
332
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormLayout, {
|
|
382
333
|
layout: 'vertical',
|
|
383
334
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_core_index_js_namespaceObject.SchemaComponent, {
|
|
384
335
|
schema: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
-
"./
|
|
4
|
-
module.exports = require("./
|
|
3
|
+
"./useIsBlockInPage": function(module) {
|
|
4
|
+
module.exports = require("./useIsBlockInPage.js");
|
|
5
5
|
}
|
|
6
6
|
};
|
|
7
7
|
var __webpack_module_cache__ = {};
|
|
@@ -47,10 +47,10 @@ function __webpack_require__(moduleId) {
|
|
|
47
47
|
var __webpack_exports__ = {};
|
|
48
48
|
(()=>{
|
|
49
49
|
__webpack_require__.r(__webpack_exports__);
|
|
50
|
-
var
|
|
50
|
+
var _useIsBlockInPage__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("./useIsBlockInPage");
|
|
51
51
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
52
|
-
for(var __WEBPACK_IMPORT_KEY__ in
|
|
53
|
-
return
|
|
52
|
+
for(var __WEBPACK_IMPORT_KEY__ in _useIsBlockInPage__WEBPACK_IMPORTED_MODULE_0__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
53
|
+
return _useIsBlockInPage__WEBPACK_IMPORTED_MODULE_0__[key];
|
|
54
54
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
55
55
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
56
56
|
})();
|
|
@@ -17,6 +17,9 @@ var __webpack_modules__ = {
|
|
|
17
17
|
},
|
|
18
18
|
"./hooks?5620": function(module) {
|
|
19
19
|
module.exports = require("./hooks/index.js");
|
|
20
|
+
},
|
|
21
|
+
"./pageExtendComponentProvider": function(module) {
|
|
22
|
+
module.exports = require("./pageExtendComponentProvider.js");
|
|
20
23
|
}
|
|
21
24
|
};
|
|
22
25
|
var __webpack_module_cache__ = {};
|
|
@@ -98,6 +101,12 @@ var __webpack_exports__ = {};
|
|
|
98
101
|
return _hooks__WEBPACK_IMPORTED_MODULE_5__[key];
|
|
99
102
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
100
103
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
104
|
+
var _pageExtendComponentProvider__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./pageExtendComponentProvider");
|
|
105
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
106
|
+
for(var __WEBPACK_IMPORT_KEY__ in _pageExtendComponentProvider__WEBPACK_IMPORTED_MODULE_6__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
107
|
+
return _pageExtendComponentProvider__WEBPACK_IMPORTED_MODULE_6__[key];
|
|
108
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
109
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
101
110
|
})();
|
|
102
111
|
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
103
112
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -24,20 +24,25 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
27
|
+
usePageExtendComponentContext: ()=>usePageExtendComponentContext,
|
|
28
|
+
PageExtendComponentContext: ()=>PageExtendComponentContext,
|
|
29
|
+
PageExtendComponentProvider: ()=>PageExtendComponentProvider
|
|
28
30
|
});
|
|
29
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
uid: params.name
|
|
32
|
+
const external_react_namespaceObject = require("react");
|
|
33
|
+
const PageExtendComponentContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({});
|
|
34
|
+
const PageExtendComponentProvider = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PageExtendComponentContext.Provider, {
|
|
35
|
+
value: props,
|
|
36
|
+
children: props.children
|
|
36
37
|
});
|
|
37
|
-
|
|
38
|
-
exports.
|
|
38
|
+
const usePageExtendComponentContext = ()=>(0, external_react_namespaceObject.useContext)(PageExtendComponentContext);
|
|
39
|
+
exports.PageExtendComponentContext = __webpack_exports__.PageExtendComponentContext;
|
|
40
|
+
exports.PageExtendComponentProvider = __webpack_exports__.PageExtendComponentProvider;
|
|
41
|
+
exports.usePageExtendComponentContext = __webpack_exports__.usePageExtendComponentContext;
|
|
39
42
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
40
|
-
"
|
|
43
|
+
"PageExtendComponentContext",
|
|
44
|
+
"PageExtendComponentProvider",
|
|
45
|
+
"usePageExtendComponentContext"
|
|
41
46
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
42
47
|
Object.defineProperty(exports, '__esModule', {
|
|
43
48
|
value: true
|
|
@@ -24,46 +24,9 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
getStyles: ()=>getStyles
|
|
28
|
-
useStyles: ()=>useStyles
|
|
27
|
+
getStyles: ()=>getStyles
|
|
29
28
|
});
|
|
30
|
-
const external_antd_style_namespaceObject = require("antd-style");
|
|
31
29
|
const index_js_namespaceObject = require("../__builtins__/index.js");
|
|
32
|
-
function _tagged_template_literal(strings, raw) {
|
|
33
|
-
if (!raw) raw = strings.slice(0);
|
|
34
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
35
|
-
raw: {
|
|
36
|
-
value: Object.freeze(raw)
|
|
37
|
-
}
|
|
38
|
-
}));
|
|
39
|
-
}
|
|
40
|
-
function _templateObject() {
|
|
41
|
-
const data = _tagged_template_literal([
|
|
42
|
-
"\n .ant-modal-content {\n position: relative;\n overflow: hidden;\n border-radius: 16px;\n &::before,\n &::after {\n content: '';\n position: absolute;\n width: 300px;\n height: 300px;\n background: radial-gradient(circle, rgba(0, 149, 255, 0.11) 0%, transparent 70%);\n z-index: 0;\n pointer-events: none;\n }\n\n &::before {\n top: -165px;\n left: -10px;\n }\n\n &::after {\n bottom: -160px;\n right: -150px;\n }\n .ant-modal-header {\n text-align: center;\n margin-bottom: 20px;\n margin-top: 15px;\n .ant-modal-title {\n font-size: x-large;\n font-weight: 400;\n }\n }\n .ant-modal-body {\n justify-items: center;\n }\n }\n "
|
|
43
|
-
]);
|
|
44
|
-
_templateObject = function() {
|
|
45
|
-
return data;
|
|
46
|
-
};
|
|
47
|
-
return data;
|
|
48
|
-
}
|
|
49
|
-
function _templateObject1() {
|
|
50
|
-
const data = _tagged_template_literal([
|
|
51
|
-
"\n display: flex;\n justify-content: center;\n align-items: center;\n width: 100%;\n margin-top: 20px;\n margin-bottom: 40px;\n position: relative;\n gap: 20%;\n padding-left: 10%;\n padding-right: 10%;\n .tb-header-modal-list {\n width: 50%;\n gap: 10px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n text-align: center;\n border: 1px solid transparent;\n border-color: rgba(203, 227, 254, 0.62);\n box-shadow: none;\n border-radius: 12px;\n padding: 16px;\n transition:\n box-shadow 0.2s ease,\n transform 0.2s ease;\n z-index: 1;\n position: relative;\n &:hover {\n border-color: rgba(0, 120, 255, 0.3);\n box-shadow: 0 4px 16px rgba(0, 120, 255, 0.15);\n }\n &:active {\n box-shadow: none;\n transform: translateY(2px);\n }\n .anticon {\n width: 100%;\n display: flex;\n justify-content: center;\n svg {\n width: 30px;\n height: 30px;\n }\n }\n .tb-header-modal-list-text {\n text-align: center;\n }\n }\n "
|
|
52
|
-
]);
|
|
53
|
-
_templateObject1 = function() {
|
|
54
|
-
return data;
|
|
55
|
-
};
|
|
56
|
-
return data;
|
|
57
|
-
}
|
|
58
|
-
function _templateObject2() {
|
|
59
|
-
const data = _tagged_template_literal([
|
|
60
|
-
"\n display: flex;\n justify-content: center;\n .ant-modal-content {\n width: 280px;\n height: 360px;\n }\n "
|
|
61
|
-
]);
|
|
62
|
-
_templateObject2 = function() {
|
|
63
|
-
return data;
|
|
64
|
-
};
|
|
65
|
-
return data;
|
|
66
|
-
}
|
|
67
30
|
const getStyles = (0, index_js_namespaceObject.genStyleHook)('tb-page', (token)=>{
|
|
68
31
|
const { componentCls } = token;
|
|
69
32
|
return {
|
|
@@ -208,19 +171,9 @@ const getStyles = (0, index_js_namespaceObject.genStyleHook)('tb-page', (token)=
|
|
|
208
171
|
}
|
|
209
172
|
};
|
|
210
173
|
});
|
|
211
|
-
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
212
|
-
let { css, token } = param;
|
|
213
|
-
return {
|
|
214
|
-
firstmodal: css(_templateObject()),
|
|
215
|
-
secondmodal: css(_templateObject1()),
|
|
216
|
-
imageModal: css(_templateObject2())
|
|
217
|
-
};
|
|
218
|
-
});
|
|
219
174
|
exports.getStyles = __webpack_exports__.getStyles;
|
|
220
|
-
exports.useStyles = __webpack_exports__.useStyles;
|
|
221
175
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
222
|
-
"getStyles"
|
|
223
|
-
"useStyles"
|
|
176
|
+
"getStyles"
|
|
224
177
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
225
178
|
Object.defineProperty(exports, '__esModule', {
|
|
226
179
|
value: true
|
|
@@ -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);
|
|
@@ -266,7 +266,7 @@ const FileSelector = (props)=>{
|
|
|
266
266
|
]
|
|
267
267
|
})
|
|
268
268
|
}),
|
|
269
|
-
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
269
|
+
visible && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.Lightbox, {
|
|
270
270
|
mainSrc: null == (_fileList_photoIndex = fileList[photoIndex]) ? void 0 : _fileList_photoIndex.imageUrl,
|
|
271
271
|
nextSrc: null == (_fileList_ = fileList[(photoIndex + 1) % fileList.length]) ? void 0 : _fileList_.imageUrl,
|
|
272
272
|
prevSrc: null == (_fileList_1 = fileList[(photoIndex + fileList.length - 1) % fileList.length]) ? void 0 : _fileList_1.imageUrl,
|
|
@@ -39,8 +39,8 @@ __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");
|
|
43
|
+
const client_namespaceObject = require("@tego/client");
|
|
44
44
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
45
45
|
const index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
46
46
|
const external_popover_index_js_namespaceObject = require("../popover/index.js");
|
|
@@ -96,7 +96,7 @@ const Editable = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
96
96
|
});
|
|
97
97
|
return child;
|
|
98
98
|
});
|
|
99
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
99
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormItem, {
|
|
100
100
|
...props,
|
|
101
101
|
labelStyle: {
|
|
102
102
|
display: 'none'
|
|
@@ -142,7 +142,7 @@ const QuickEdit = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
142
142
|
if (!collectionField) return null;
|
|
143
143
|
return field.editable ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Editable, {
|
|
144
144
|
...props
|
|
145
|
-
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
145
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.FormItem, {
|
|
146
146
|
...props,
|
|
147
147
|
style: {
|
|
148
148
|
padding: '0 8px'
|