@tachybase/client 1.3.21 → 1.3.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/api-client/APIClient.d.ts +1 -1
- package/es/api-client/APIClient.mjs +1 -1
- package/es/api-client/hooks/assign.mjs +1 -1
- package/es/api-client/hooks/useResource.d.ts +1 -1
- package/es/application/Application.d.ts +1 -2
- package/es/application/Application.mjs +1 -2
- package/es/application/WebSocketClient.mjs +1 -1
- package/es/application/schema-settings/SchemaSettings.d.ts +1 -1
- package/es/application/schema-settings/SchemaSettings.mjs +5 -3
- package/es/application/schema-settings/SchemaSettingsManager.d.ts +6 -0
- package/es/application/schema-settings/SchemaSettingsManager.mjs +15 -0
- package/es/application/utils/globalDeps.d.ts +1 -1
- package/es/application/utils/globalDeps.mjs +4 -11
- package/es/application/utils/remotePlugins.d.ts +1 -1
- package/es/block-provider/FormFieldProvider.mjs +1 -1
- package/es/block-provider/hooks/index.mjs +1 -1
- package/es/block-provider/hooks/useParsedFilter.mjs +1 -1
- package/es/built-in/acl/Configuration/RolesResourcesActions.mjs +1 -1
- package/es/built-in/attachment-preview/previewers/file-pdf.mjs +1 -1
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +1 -1
- package/es/built-in/index.mjs +1 -1
- package/es/built-in/locale/LocalePlugin.mjs +0 -2
- package/es/built-in/page-style/useTabSettings.mjs +3 -3
- package/es/built-in/pm/PluginDetail.mjs +0 -2
- package/es/built-in/pm/PluginManager.mjs +1 -1
- package/es/built-in/quick-access/ModalActionSchemaInitializerItem.mjs +1 -1
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/AddSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditCollectionAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/EditSubFieldAction.mjs +1 -1
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +1 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.mjs +1 -1
- package/es/collection-manager/Configuration/SyncFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/SyncSQLFieldsAction.mjs +1 -1
- package/es/collection-manager/Configuration/ViewInheritedField.mjs +1 -1
- package/es/collection-manager/Configuration/components/index.mjs +1 -1
- package/es/collection-manager/Configuration/index.d.ts +1 -0
- package/es/collection-manager/Configuration/index.mjs +2 -0
- package/es/collection-manager/hooks/index.d.ts +1 -0
- package/es/collection-manager/hooks/index.mjs +2 -0
- package/es/collection-manager/hooks/useCollection_deprecated.d.ts +1 -1
- package/es/collection-manager/index.d.ts +1 -1
- package/es/collection-manager/index.mjs +2 -2
- package/es/collection-manager/interfaces/checkbox.d.ts +1 -0
- package/es/collection-manager/interfaces/checkbox.mjs +1 -1
- package/es/collection-manager/interfaces/checkboxGroup.d.ts +1 -0
- package/es/collection-manager/interfaces/checkboxGroup.mjs +1 -1
- package/es/collection-manager/interfaces/chinaRegion.d.ts +1 -0
- package/es/collection-manager/interfaces/chinaRegion.mjs +1 -1
- package/es/collection-manager/interfaces/collection.d.ts +1 -0
- package/es/collection-manager/interfaces/collection.mjs +2 -2
- package/es/collection-manager/interfaces/color.d.ts +1 -0
- package/es/collection-manager/interfaces/color.mjs +1 -1
- package/es/collection-manager/interfaces/createdAt.d.ts +1 -0
- package/es/collection-manager/interfaces/createdAt.mjs +1 -1
- package/es/collection-manager/interfaces/createdBy.d.ts +1 -0
- package/es/collection-manager/interfaces/createdBy.mjs +1 -1
- package/es/collection-manager/interfaces/datetime.d.ts +1 -0
- package/es/collection-manager/interfaces/datetime.mjs +1 -1
- package/es/collection-manager/interfaces/email.d.ts +1 -0
- package/es/collection-manager/interfaces/email.mjs +1 -1
- package/es/collection-manager/interfaces/icon.d.ts +1 -0
- package/es/collection-manager/interfaces/icon.mjs +1 -1
- package/es/collection-manager/interfaces/input.d.ts +1 -0
- package/es/collection-manager/interfaces/input.mjs +1 -1
- package/es/collection-manager/interfaces/integer.d.ts +1 -0
- package/es/collection-manager/interfaces/integer.mjs +1 -1
- package/es/collection-manager/interfaces/json.d.ts +1 -0
- package/es/collection-manager/interfaces/json.mjs +2 -2
- package/es/collection-manager/interfaces/m2m.d.ts +1 -0
- package/es/collection-manager/interfaces/m2m.mjs +1 -1
- package/es/collection-manager/interfaces/m2o.d.ts +1 -0
- package/es/collection-manager/interfaces/m2o.mjs +1 -1
- package/es/collection-manager/interfaces/markdown.d.ts +1 -0
- package/es/collection-manager/interfaces/markdown.mjs +1 -1
- package/es/collection-manager/interfaces/multipleSelect.d.ts +1 -0
- package/es/collection-manager/interfaces/multipleSelect.mjs +2 -2
- package/es/collection-manager/interfaces/nanoid.d.ts +1 -0
- package/es/collection-manager/interfaces/nanoid.mjs +1 -1
- package/es/collection-manager/interfaces/number.d.ts +1 -0
- package/es/collection-manager/interfaces/number.mjs +1 -1
- package/es/collection-manager/interfaces/o2m.d.ts +1 -0
- package/es/collection-manager/interfaces/o2m.mjs +1 -1
- package/es/collection-manager/interfaces/o2o.d.ts +1 -0
- package/es/collection-manager/interfaces/o2o.mjs +1 -1
- package/es/collection-manager/interfaces/password.d.ts +1 -0
- package/es/collection-manager/interfaces/password.mjs +1 -1
- package/es/collection-manager/interfaces/percent.d.ts +1 -0
- package/es/collection-manager/interfaces/percent.mjs +2 -2
- package/es/collection-manager/interfaces/phone.d.ts +1 -0
- package/es/collection-manager/interfaces/phone.mjs +1 -1
- package/es/collection-manager/interfaces/radioGroup.d.ts +12 -11
- package/es/collection-manager/interfaces/radioGroup.mjs +1 -1
- package/es/collection-manager/interfaces/richText.d.ts +1 -0
- package/es/collection-manager/interfaces/richText.mjs +1 -1
- package/es/collection-manager/interfaces/select.d.ts +1 -0
- package/es/collection-manager/interfaces/select.mjs +2 -2
- package/es/collection-manager/interfaces/sort.d.ts +1 -0
- package/es/collection-manager/interfaces/sort.mjs +1 -1
- package/es/collection-manager/interfaces/subTable.d.ts +1 -0
- package/es/collection-manager/interfaces/subTable.mjs +1 -1
- package/es/collection-manager/interfaces/tableoid.d.ts +1 -0
- package/es/collection-manager/interfaces/tableoid.mjs +1 -1
- package/es/collection-manager/interfaces/textarea.d.ts +1 -0
- package/es/collection-manager/interfaces/textarea.mjs +1 -1
- package/es/collection-manager/interfaces/time.d.ts +1 -0
- package/es/collection-manager/interfaces/time.mjs +1 -1
- package/es/collection-manager/interfaces/unixTimestamp.d.ts +1 -0
- package/es/collection-manager/interfaces/unixTimestamp.mjs +1 -1
- package/es/collection-manager/interfaces/updatedAt.d.ts +1 -0
- package/es/collection-manager/interfaces/updatedAt.mjs +1 -1
- package/es/collection-manager/interfaces/updatedBy.d.ts +1 -0
- package/es/collection-manager/interfaces/updatedBy.mjs +1 -1
- package/es/collection-manager/interfaces/url.d.ts +1 -0
- package/es/collection-manager/interfaces/url.mjs +1 -1
- package/es/collection-manager/interfaces/uuid.d.ts +1 -0
- package/es/collection-manager/interfaces/uuid.mjs +1 -1
- package/es/collection-manager/templates/expression.mjs +1 -1
- package/es/collection-manager/templates/properties/index.d.ts +1 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +1 -0
- package/es/data-source/data-block/DataBlockResourceProvider.d.ts +1 -1
- package/es/filter-provider/utils.mjs +2 -1
- package/es/icon/preloaded.mjs +0 -1
- package/es/index.d.ts +3 -0
- package/es/index.mjs +4 -1
- package/es/modules/actions/link/customizeLinkActionSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/FormBlockInitializer.d.ts +11 -11
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +1 -1
- package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +1 -1
- package/es/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.mjs +1 -1
- package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +1 -1
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +1 -1
- package/es/modules/menu/GroupItem.mjs +1 -1
- package/es/modules/menu/LinkMenuItem.mjs +1 -1
- package/es/modules/menu/PageMenuItem.mjs +1 -1
- package/es/modules/menu/UploadMenuItem.mjs +1 -1
- package/es/preload.d.ts +16 -0
- package/es/preload.mjs +33 -0
- package/es/schema-component/antd/action/Action.Designer.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascadeSelect.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalCascader.mjs +1 -2
- package/es/schema-component/antd/association-field/InternalNester.mjs +1 -1
- package/es/schema-component/antd/association-field/InternalSubTable.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +1 -1
- package/es/schema-component/antd/association-field/SubTabs/hook.mjs +1 -1
- package/es/schema-component/antd/association-field/hooks.mjs +1 -1
- package/es/schema-component/antd/association-field/index.d.ts +1 -0
- package/es/schema-component/antd/association-field/index.mjs +2 -1
- package/es/schema-component/antd/association-field/util.mjs +1 -1
- package/es/schema-component/antd/association-select/AssociationSelect.mjs +2 -2
- package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
- package/es/schema-component/antd/color-picker/ColorPicker.mjs +1 -1
- package/es/schema-component/antd/color-picker/util.d.ts +1 -1
- package/es/schema-component/antd/color-picker/util.mjs +2 -1
- package/es/schema-component/antd/cron/Cron.mjs +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/date-picker/util.d.ts +1 -1
- package/es/schema-component/antd/date-picker/util.mjs +2 -1
- package/es/schema-component/antd/filter/FilterAction.mjs +1 -1
- package/es/schema-component/antd/filter/index.d.ts +1 -0
- package/es/schema-component/antd/filter/index.mjs +1 -0
- package/es/schema-component/antd/form/Form.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +1 -1
- package/es/schema-component/antd/form-item/FormItem.mjs +1 -1
- package/es/schema-component/antd/form-item/SchemaSettingOptions.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.mjs +1 -1
- package/es/schema-component/antd/form-item/hooks/useParseDefaultValue.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.Settings.mjs +1 -1
- package/es/schema-component/antd/form-v2/Form.mjs +1 -2
- package/es/schema-component/antd/form-v2/Templates.mjs +1 -1
- package/es/schema-component/antd/form-v2/index.d.ts +1 -0
- package/es/schema-component/antd/form-v2/index.mjs +1 -0
- package/es/schema-component/antd/form-v2/utils.mjs +1 -2
- package/es/schema-component/antd/grid-card/GridCard.Decorator.mjs +1 -1
- package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +1 -1
- package/es/schema-component/antd/icon-picker/IconPicker.mjs +1 -1
- package/es/schema-component/antd/index.d.ts +0 -1
- package/es/schema-component/antd/index.mjs +1 -2
- package/es/schema-component/antd/input/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/input-number/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/list/List.Decorator.mjs +1 -1
- package/es/schema-component/antd/list/List.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.Designer.mjs +1 -1
- package/es/schema-component/antd/menu/Menu.mjs +1 -1
- package/es/schema-component/antd/page/Page.mjs +1 -1
- package/es/schema-component/antd/preview/Preview.mjs +1 -1
- package/es/schema-component/antd/quick-edit/QuickEdit.mjs +1 -1
- package/es/schema-component/antd/record-picker/util.mjs +1 -1
- package/es/schema-component/antd/select/FormulaSelect.mjs +1 -1
- package/es/schema-component/antd/select/ReadPretty.mjs +2 -2
- package/es/schema-component/antd/select/Select.mjs +1 -1
- package/es/schema-component/antd/select/utils.mjs +2 -2
- package/es/schema-component/antd/space/index.mjs +1 -1
- package/es/schema-component/antd/table/Table.Void.Designer.mjs +1 -1
- package/es/schema-component/antd/table-v2/Table.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +1 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +1 -1
- package/es/schema-component/antd/table-v2/index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/index.mjs +1 -0
- package/es/schema-component/antd/time-picker/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/time-picker/TimePicker.mjs +1 -1
- package/es/schema-component/antd/tree-select/ReadPretty.mjs +1 -1
- package/es/schema-component/antd/upload/ReadPretty.mjs +1 -2
- package/es/schema-component/antd/upload/Upload.mjs +1 -1
- package/es/schema-component/antd/variable/CodeMirror.mjs +1 -1
- package/es/schema-component/antd/variable/Input.mjs +1 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/common/infinite-scroll/infinite-scroll.mjs +1 -1
- package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +6 -7
- package/es/schema-initializer/items/CustomFilterFormItemInitializer.mjs +2 -2
- package/es/schema-settings/DataTemplates/components/AsDefaultTemplate.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.mjs +1 -1
- package/es/schema-settings/DataTemplates/components/Designer.mjs +1 -1
- package/es/schema-settings/DataTemplates/utils.mjs +1 -1
- package/es/schema-settings/LinkageRules/LinkageRuleAction.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/EnableLinkage.mjs +1 -1
- package/es/schema-settings/LinkageRules/components/LinkageHeader.mjs +1 -1
- package/es/schema-settings/LinkageRules/index.d.ts +2 -0
- package/es/schema-settings/LinkageRules/index.mjs +2 -0
- package/es/schema-settings/SchemaSettings.mjs +2 -3
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettingsSortingRule.mjs +1 -1
- package/es/schema-settings/VariableInput/hooks/useContextAssociationFields.mjs +1 -1
- package/es/schema-settings/VariableInput/index.d.ts +1 -0
- package/es/schema-settings/VariableInput/index.mjs +1 -0
- package/es/schema-settings/filter-form/FormFilterScope.mjs +1 -1
- package/es/schema-settings/hooks/useParseDataScopeFilter.mjs +1 -1
- package/es/schema-settings/index.d.ts +3 -0
- package/es/schema-settings/index.mjs +3 -0
- package/es/user/ChangePassword.mjs +2 -2
- package/es/user/CurrentUser.mjs +1 -1
- package/es/user/CurrentUserSettingsMenuProvider.mjs +1 -1
- package/es/variables/VariablesProvider.mjs +2 -2
- package/es/variables/hooks/useBuiltinVariables.mjs +1 -1
- package/lib/api-client/APIClient.js +2 -2
- package/lib/api-client/hooks/assign.js +1 -1
- package/lib/application/Application.js +6 -7
- package/lib/application/WebSocketClient.js +2 -2
- package/lib/application/schema-settings/SchemaSettings.js +5 -3
- package/lib/application/schema-settings/SchemaSettingsManager.js +15 -0
- package/lib/application/utils/globalDeps.js +5 -11
- package/lib/block-provider/FormFieldProvider.js +1 -1
- package/lib/block-provider/hooks/index.js +13 -13
- package/lib/block-provider/hooks/useParsedFilter.js +1 -1
- package/lib/built-in/acl/Configuration/RolesResourcesActions.js +4 -4
- package/lib/built-in/attachment-preview/previewers/file-pdf.js +1 -1
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +1 -1
- package/lib/built-in/index.js +12 -12
- package/lib/built-in/locale/LocalePlugin.js +72 -92
- package/lib/built-in/page-style/useTabSettings.js +3 -3
- package/lib/built-in/pm/PluginDetail.js +0 -3
- package/lib/built-in/pm/PluginManager.js +1 -1
- package/lib/built-in/quick-access/ModalActionSchemaInitializerItem.js +1 -1
- package/lib/collection-manager/Configuration/AddCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditCollectionAction.js +2 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +2 -2
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +2 -2
- package/lib/collection-manager/Configuration/SyncFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/SyncSQLFieldsAction.js +2 -2
- package/lib/collection-manager/Configuration/ViewInheritedField.js +2 -2
- package/lib/collection-manager/Configuration/components/index.js +1 -1
- package/lib/collection-manager/Configuration/index.js +79 -19
- package/lib/collection-manager/hooks/index.js +28 -5
- package/lib/collection-manager/index.js +37 -17
- package/lib/collection-manager/interfaces/checkbox.js +1 -1
- package/lib/collection-manager/interfaces/checkboxGroup.js +1 -1
- package/lib/collection-manager/interfaces/chinaRegion.js +1 -1
- package/lib/collection-manager/interfaces/collection.js +2 -2
- package/lib/collection-manager/interfaces/color.js +1 -1
- package/lib/collection-manager/interfaces/createdAt.js +1 -1
- package/lib/collection-manager/interfaces/createdBy.js +1 -1
- package/lib/collection-manager/interfaces/datetime.js +1 -1
- package/lib/collection-manager/interfaces/email.js +1 -1
- package/lib/collection-manager/interfaces/icon.js +1 -1
- package/lib/collection-manager/interfaces/input.js +1 -1
- package/lib/collection-manager/interfaces/integer.js +1 -1
- package/lib/collection-manager/interfaces/json.js +4 -4
- package/lib/collection-manager/interfaces/m2m.js +1 -1
- package/lib/collection-manager/interfaces/m2o.js +1 -1
- package/lib/collection-manager/interfaces/markdown.js +1 -1
- package/lib/collection-manager/interfaces/multipleSelect.js +2 -2
- package/lib/collection-manager/interfaces/nanoid.js +1 -1
- package/lib/collection-manager/interfaces/number.js +1 -1
- package/lib/collection-manager/interfaces/o2m.js +1 -1
- package/lib/collection-manager/interfaces/o2o.js +1 -1
- package/lib/collection-manager/interfaces/password.js +1 -1
- package/lib/collection-manager/interfaces/percent.js +2 -2
- package/lib/collection-manager/interfaces/phone.js +1 -1
- package/lib/collection-manager/interfaces/radioGroup.js +1 -1
- package/lib/collection-manager/interfaces/richText.js +1 -1
- package/lib/collection-manager/interfaces/select.js +2 -2
- package/lib/collection-manager/interfaces/sort.js +1 -1
- package/lib/collection-manager/interfaces/subTable.js +1 -1
- package/lib/collection-manager/interfaces/tableoid.js +1 -1
- package/lib/collection-manager/interfaces/textarea.js +1 -1
- package/lib/collection-manager/interfaces/time.js +1 -1
- package/lib/collection-manager/interfaces/unixTimestamp.js +1 -1
- package/lib/collection-manager/interfaces/updatedAt.js +1 -1
- package/lib/collection-manager/interfaces/updatedBy.js +1 -1
- package/lib/collection-manager/interfaces/url.js +1 -1
- package/lib/collection-manager/interfaces/uuid.js +1 -1
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +1 -0
- package/lib/filter-provider/utils.js +4 -2
- package/lib/icon/preloaded.js +0 -1
- package/lib/index.js +234 -125
- package/lib/locale/zh-CN.js +3 -0
- package/lib/modules/actions/link/customizeLinkActionSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +3 -3
- package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -2
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +3 -3
- package/lib/modules/blocks/filter-blocks/tree/filterTreeItemFieldSettings.js +3 -3
- package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -2
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +3 -3
- package/lib/modules/menu/GroupItem.js +2 -2
- package/lib/modules/menu/LinkMenuItem.js +2 -2
- package/lib/modules/menu/PageMenuItem.js +2 -2
- package/lib/modules/menu/UploadMenuItem.js +2 -2
- package/lib/preload.js +77 -0
- package/lib/schema-component/antd/action/Action.Designer.js +3 -3
- package/lib/schema-component/antd/action/Action.js +1 -1
- package/lib/schema-component/antd/association-field/InternalCascadeSelect.js +4 -4
- package/lib/schema-component/antd/association-field/InternalCascader.js +4 -5
- package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
- package/lib/schema-component/antd/association-field/InternalSubTable.js +2 -2
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +1 -1
- package/lib/schema-component/antd/association-field/SubTabs/hook.js +1 -1
- package/lib/schema-component/antd/association-field/hooks.js +1 -1
- package/lib/schema-component/antd/association-field/index.js +10 -2
- package/lib/schema-component/antd/association-field/util.js +1 -1
- package/lib/schema-component/antd/association-select/AssociationSelect.js +12 -12
- package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
- package/lib/schema-component/antd/color-picker/ColorPicker.js +2 -2
- package/lib/schema-component/antd/color-picker/util.js +18 -7
- package/lib/schema-component/antd/cron/Cron.js +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +1 -1
- package/lib/schema-component/antd/date-picker/util.js +30 -19
- package/lib/schema-component/antd/filter/FilterAction.js +1 -1
- package/lib/schema-component/antd/filter/index.js +9 -0
- package/lib/schema-component/antd/form/Form.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +3 -3
- package/lib/schema-component/antd/form-item/FormItem.js +2 -2
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +5 -5
- package/lib/schema-component/antd/form-item/hooks/useLazyLoadDisplayAssociationFieldsOfForm.js +1 -1
- package/lib/schema-component/antd/form-item/hooks/useParseDefaultValue.js +1 -1
- package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -2
- package/lib/schema-component/antd/form-v2/Form.js +3 -4
- package/lib/schema-component/antd/form-v2/Templates.js +1 -1
- package/lib/schema-component/antd/form-v2/index.js +14 -0
- package/lib/schema-component/antd/form-v2/utils.js +2 -3
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +2 -2
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -2
- package/lib/schema-component/antd/icon-picker/IconPicker.js +2 -2
- package/lib/schema-component/antd/index.js +120 -187
- package/lib/schema-component/antd/input/ReadPretty.js +6 -6
- package/lib/schema-component/antd/input-number/ReadPretty.js +1 -1
- package/lib/schema-component/antd/list/List.Decorator.js +2 -2
- package/lib/schema-component/antd/list/List.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.Designer.js +2 -2
- package/lib/schema-component/antd/menu/Menu.js +1 -1
- package/lib/schema-component/antd/page/Page.js +2 -2
- package/lib/schema-component/antd/preview/Preview.js +2 -2
- package/lib/schema-component/antd/quick-edit/QuickEdit.js +3 -3
- package/lib/schema-component/antd/record-picker/util.js +1 -1
- package/lib/schema-component/antd/select/FormulaSelect.js +1 -1
- package/lib/schema-component/antd/select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/select/Select.js +1 -1
- package/lib/schema-component/antd/select/utils.js +2 -2
- package/lib/schema-component/antd/space/index.js +2 -2
- package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -2
- package/lib/schema-component/antd/table-v2/Table.js +1 -1
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -2
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -2
- package/lib/schema-component/antd/table-v2/index.js +9 -0
- package/lib/schema-component/antd/time-picker/ReadPretty.js +2 -2
- package/lib/schema-component/antd/time-picker/TimePicker.js +3 -3
- package/lib/schema-component/antd/tree-select/ReadPretty.js +2 -2
- package/lib/schema-component/antd/upload/ReadPretty.js +2 -3
- package/lib/schema-component/antd/upload/Upload.js +2 -2
- package/lib/schema-component/antd/variable/CodeMirror.js +2 -2
- package/lib/schema-component/antd/variable/Input.js +1 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/common/infinite-scroll/infinite-scroll.js +1 -1
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +6 -7
- package/lib/schema-initializer/items/CustomFilterFormItemInitializer.js +4 -4
- package/lib/schema-settings/DataTemplates/components/AsDefaultTemplate.js +3 -3
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -10
- package/lib/schema-settings/DataTemplates/components/Designer.js +1 -1
- package/lib/schema-settings/DataTemplates/utils.js +4 -4
- package/lib/schema-settings/LinkageRules/LinkageRuleAction.js +2 -2
- package/lib/schema-settings/LinkageRules/components/EnableLinkage.js +3 -3
- package/lib/schema-settings/LinkageRules/components/LinkageHeader.js +10 -10
- package/lib/schema-settings/LinkageRules/index.js +271 -180
- package/lib/schema-settings/SchemaSettings.js +17 -18
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -3
- package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -2
- package/lib/schema-settings/VariableInput/hooks/useContextAssociationFields.js +1 -1
- package/lib/schema-settings/VariableInput/index.js +9 -0
- package/lib/schema-settings/filter-form/FormFilterScope.js +2 -2
- package/lib/schema-settings/hooks/useParseDataScopeFilter.js +1 -1
- package/lib/schema-settings/index.js +75 -48
- package/lib/user/ChangePassword.js +2 -2
- package/lib/user/CurrentUser.js +1 -1
- package/lib/user/CurrentUserSettingsMenuProvider.js +1 -1
- package/lib/variables/VariablesProvider.js +2 -2
- package/lib/variables/hooks/useBuiltinVariables.js +13 -3
- package/package.json +12 -26
|
@@ -21,6 +21,9 @@ var __webpack_modules__ = {
|
|
|
21
21
|
"./SubTabs": function(module) {
|
|
22
22
|
module.exports = require("./SubTabs/index.js");
|
|
23
23
|
},
|
|
24
|
+
"./util": function(module) {
|
|
25
|
+
module.exports = require("./util.js");
|
|
26
|
+
},
|
|
24
27
|
"@tachybase/schema": function(module) {
|
|
25
28
|
module.exports = require("@tachybase/schema");
|
|
26
29
|
}
|
|
@@ -69,7 +72,8 @@ var __webpack_exports__ = {};
|
|
|
69
72
|
(()=>{
|
|
70
73
|
__webpack_require__.r(__webpack_exports__);
|
|
71
74
|
__webpack_require__.d(__webpack_exports__, {
|
|
72
|
-
AssociationField: ()=>AssociationField
|
|
75
|
+
AssociationField: ()=>AssociationField,
|
|
76
|
+
isSubMode: ()=>_util__WEBPACK_IMPORTED_MODULE_8__.isSubMode
|
|
73
77
|
});
|
|
74
78
|
var _tachybase_schema__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("@tachybase/schema");
|
|
75
79
|
var _action__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("../action");
|
|
@@ -81,12 +85,14 @@ var __webpack_exports__ = {};
|
|
|
81
85
|
var _SubTabs__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("./SubTabs");
|
|
82
86
|
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
83
87
|
for(var __WEBPACK_IMPORT_KEY__ in _SubTabs__WEBPACK_IMPORTED_MODULE_7__)if ([
|
|
88
|
+
"isSubMode",
|
|
84
89
|
"default",
|
|
85
90
|
"AssociationField"
|
|
86
91
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
87
92
|
return _SubTabs__WEBPACK_IMPORTED_MODULE_7__[key];
|
|
88
93
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
89
94
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
95
|
+
var _util__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("./util");
|
|
90
96
|
const AssociationField = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_0__.connect)(_Editable__WEBPACK_IMPORTED_MODULE_2__.Editable, (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_0__.mapReadPretty)(_ReadPretty__WEBPACK_IMPORTED_MODULE_5__.ReadPretty));
|
|
91
97
|
AssociationField.SubTable = _SubTable__WEBPACK_IMPORTED_MODULE_6__.SubTable;
|
|
92
98
|
AssociationField.Nester = _Nester__WEBPACK_IMPORTED_MODULE_4__.Nester;
|
|
@@ -97,8 +103,10 @@ var __webpack_exports__ = {};
|
|
|
97
103
|
AssociationField.ReadPretty = _ReadPretty__WEBPACK_IMPORTED_MODULE_5__.ReadPretty;
|
|
98
104
|
})();
|
|
99
105
|
exports.AssociationField = __webpack_exports__.AssociationField;
|
|
106
|
+
exports.isSubMode = __webpack_exports__.isSubMode;
|
|
100
107
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
101
|
-
"AssociationField"
|
|
108
|
+
"AssociationField",
|
|
109
|
+
"isSubMode"
|
|
102
110
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
103
111
|
Object.defineProperty(exports, '__esModule', {
|
|
104
112
|
value: true
|
|
@@ -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",
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
3
12
|
(()=>{
|
|
4
13
|
__webpack_require__.d = (exports1, definition)=>{
|
|
5
14
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
@@ -29,12 +38,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
38
|
mapDatePicker: ()=>mapDatePicker,
|
|
30
39
|
getDateRanges: ()=>getDateRanges
|
|
31
40
|
});
|
|
32
|
-
const client_namespaceObject = require("@
|
|
41
|
+
const client_namespaceObject = require("@tego/client");
|
|
42
|
+
const external_dayjs_namespaceObject = require("dayjs");
|
|
43
|
+
var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
|
|
33
44
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
34
|
-
if (!
|
|
45
|
+
if (!external_dayjs_default().isDayjs(value)) return value;
|
|
35
46
|
if ('local' === timezone) {
|
|
36
47
|
const offset = new Date().getTimezoneOffset();
|
|
37
|
-
return (
|
|
48
|
+
return external_dayjs_default()(toStringByPicker(value, picker, 'gmt')).add(offset, 'minutes').toISOString();
|
|
38
49
|
}
|
|
39
50
|
if ('year' === picker) return value.format('YYYY') + '-01-01T00:00:00.000Z';
|
|
40
51
|
if ('month' === picker) return value.format('YYYY-MM') + '-01T00:00:00.000Z';
|
|
@@ -43,11 +54,11 @@ const toStringByPicker = (value, picker, timezone)=>{
|
|
|
43
54
|
return value.format('YYYY-MM-DDTHH:mm:ss.SSS') + 'Z';
|
|
44
55
|
};
|
|
45
56
|
const toGmtByPicker = (value, picker)=>{
|
|
46
|
-
if (!value || !
|
|
57
|
+
if (!value || !external_dayjs_default().isDayjs(value)) return value;
|
|
47
58
|
return toStringByPicker(value, picker, 'gmt');
|
|
48
59
|
};
|
|
49
60
|
const toLocalByPicker = (value, picker)=>{
|
|
50
|
-
if (!value || !
|
|
61
|
+
if (!value || !external_dayjs_default().isDayjs(value)) return value;
|
|
51
62
|
return toStringByPicker(value, picker, 'local');
|
|
52
63
|
};
|
|
53
64
|
const moment2str = function(value) {
|
|
@@ -106,8 +117,8 @@ function getRangeEnd(value, options) {
|
|
|
106
117
|
if (showTime) return value;
|
|
107
118
|
return value.endOf('day');
|
|
108
119
|
}
|
|
109
|
-
const getStart = (offset, unit)=>(
|
|
110
|
-
const getEnd = (offset, unit)=>(
|
|
120
|
+
const getStart = (offset, unit)=>external_dayjs_default()().add(offset, 'isoWeek' === unit ? 'week' : unit).startOf(unit);
|
|
121
|
+
const getEnd = (offset, unit)=>external_dayjs_default()().add(offset, 'isoWeek' === unit ? 'week' : unit).endOf(unit);
|
|
111
122
|
const getDateRanges = ()=>({
|
|
112
123
|
today: ()=>[
|
|
113
124
|
getStart(0, 'day'),
|
|
@@ -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");
|
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
3
12
|
(()=>{
|
|
4
13
|
__webpack_require__.d = (exports1, definition)=>{
|
|
5
14
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
@@ -30,12 +39,14 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
30
39
|
getDateExact: ()=>getDateExact,
|
|
31
40
|
getDateRanges: ()=>getDateRanges
|
|
32
41
|
});
|
|
33
|
-
const client_namespaceObject = require("@
|
|
42
|
+
const client_namespaceObject = require("@tego/client");
|
|
43
|
+
const external_dayjs_namespaceObject = require("dayjs");
|
|
44
|
+
var external_dayjs_default = /*#__PURE__*/ __webpack_require__.n(external_dayjs_namespaceObject);
|
|
34
45
|
const toStringByPicker = (value, picker, timezone)=>{
|
|
35
|
-
if (!
|
|
46
|
+
if (!external_dayjs_default().isDayjs(value)) return value;
|
|
36
47
|
if ('local' === timezone) {
|
|
37
48
|
const offset = new Date().getTimezoneOffset();
|
|
38
|
-
return (
|
|
49
|
+
return external_dayjs_default()(toStringByPicker(value, picker, 'gmt')).add(offset, 'minutes').toISOString();
|
|
39
50
|
}
|
|
40
51
|
if ('year' === picker) return value.format('YYYY') + '-01-01T00:00:00.000Z';
|
|
41
52
|
if ('month' === picker) return value.format('YYYY-MM') + '-01T00:00:00.000Z';
|
|
@@ -44,11 +55,11 @@ const toStringByPicker = (value, picker, timezone)=>{
|
|
|
44
55
|
return value.format('YYYY-MM-DDTHH:mm:ss.SSS') + 'Z';
|
|
45
56
|
};
|
|
46
57
|
const toGmtByPicker = (value, picker)=>{
|
|
47
|
-
if (!value || !
|
|
58
|
+
if (!value || !external_dayjs_default().isDayjs(value)) return value;
|
|
48
59
|
return toStringByPicker(value, picker, 'gmt');
|
|
49
60
|
};
|
|
50
61
|
const toLocalByPicker = (value, picker)=>{
|
|
51
|
-
if (!value || !
|
|
62
|
+
if (!value || !external_dayjs_default().isDayjs(value)) return value;
|
|
52
63
|
return toStringByPicker(value, picker, 'local');
|
|
53
64
|
};
|
|
54
65
|
const moment2str = function(value) {
|
|
@@ -107,10 +118,10 @@ function getRangeEnd(value, options) {
|
|
|
107
118
|
if (showTime) return value;
|
|
108
119
|
return value.endOf('day');
|
|
109
120
|
}
|
|
110
|
-
const getStart = (offset, unit)=>(
|
|
111
|
-
const getEnd = (offset, unit)=>(
|
|
121
|
+
const getStart = (offset, unit)=>external_dayjs_default()().add(offset, 'isoWeek' === unit ? 'week' : unit).startOf(unit);
|
|
122
|
+
const getEnd = (offset, unit)=>external_dayjs_default()().add(offset, 'isoWeek' === unit ? 'week' : unit).endOf(unit);
|
|
112
123
|
const getDateRanges = ()=>({
|
|
113
|
-
now: ()=>(
|
|
124
|
+
now: ()=>external_dayjs_default()().toISOString(),
|
|
114
125
|
today: ()=>[
|
|
115
126
|
getStart(0, 'day'),
|
|
116
127
|
getEnd(0, 'day')
|
|
@@ -209,17 +220,17 @@ const getDateRanges = ()=>({
|
|
|
209
220
|
]
|
|
210
221
|
});
|
|
211
222
|
const getDateExact = ()=>({
|
|
212
|
-
nowUtc: ()=>(
|
|
213
|
-
nowLocal: ()=>(
|
|
214
|
-
todayUtc: ()=>(
|
|
215
|
-
todayLocal: ()=>(
|
|
216
|
-
todayDate: ()=>(
|
|
217
|
-
yesterdayUtc: ()=>(
|
|
218
|
-
yesterdayLocal: ()=>(
|
|
219
|
-
yesterdayDate: ()=>(
|
|
220
|
-
tomorrowUtc: ()=>(
|
|
221
|
-
tomorrowLocal: ()=>(
|
|
222
|
-
tomorrowDate: ()=>(
|
|
223
|
+
nowUtc: ()=>external_dayjs_default()().toISOString(),
|
|
224
|
+
nowLocal: ()=>external_dayjs_default()().format('YYYY-MM-DD HH:mm:ss'),
|
|
225
|
+
todayUtc: ()=>external_dayjs_default()().startOf('day').utc().toISOString(),
|
|
226
|
+
todayLocal: ()=>external_dayjs_default()().startOf('day').format('YYYY-MM-DD HH:mm:ss'),
|
|
227
|
+
todayDate: ()=>external_dayjs_default()().format('YYYY-MM-DD'),
|
|
228
|
+
yesterdayUtc: ()=>external_dayjs_default()().subtract(1, 'day').startOf('day').utc().toISOString(),
|
|
229
|
+
yesterdayLocal: ()=>external_dayjs_default()().subtract(1, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss'),
|
|
230
|
+
yesterdayDate: ()=>external_dayjs_default()().subtract(1, 'day').format('YYYY-MM-DD'),
|
|
231
|
+
tomorrowUtc: ()=>external_dayjs_default()().add(1, 'day').startOf('day').utc().toISOString(),
|
|
232
|
+
tomorrowLocal: ()=>external_dayjs_default()().add(1, 'day').startOf('day').format('YYYY-MM-DD HH:mm:ss'),
|
|
233
|
+
tomorrowDate: ()=>external_dayjs_default()().add(1, 'day').format('YYYY-MM-DD')
|
|
223
234
|
});
|
|
224
235
|
exports.getDateExact = __webpack_exports__.getDateExact;
|
|
225
236
|
exports.getDateRanges = __webpack_exports__.getDateRanges;
|
|
@@ -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");
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_modules__ = {
|
|
3
|
+
"./DynamicComponent": function(module) {
|
|
4
|
+
module.exports = require("./DynamicComponent.js");
|
|
5
|
+
},
|
|
3
6
|
"./Filter": function(module) {
|
|
4
7
|
module.exports = require("./Filter.js");
|
|
5
8
|
},
|
|
@@ -71,6 +74,12 @@ var __webpack_exports__ = {};
|
|
|
71
74
|
return _useFilterActionProps__WEBPACK_IMPORTED_MODULE_2__[key];
|
|
72
75
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
73
76
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
77
|
+
var _DynamicComponent__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("./DynamicComponent");
|
|
78
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
79
|
+
for(var __WEBPACK_IMPORT_KEY__ in _DynamicComponent__WEBPACK_IMPORTED_MODULE_3__)if ("default" !== __WEBPACK_IMPORT_KEY__) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
80
|
+
return _DynamicComponent__WEBPACK_IMPORTED_MODULE_3__[key];
|
|
81
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
82
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
74
83
|
})();
|
|
75
84
|
for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
76
85
|
Object.defineProperty(exports, '__esModule', {
|
|
@@ -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);
|
|
@@ -17,6 +17,9 @@ var __webpack_modules__ = {
|
|
|
17
17
|
},
|
|
18
18
|
"./Templates": function(module) {
|
|
19
19
|
module.exports = require("./Templates.js");
|
|
20
|
+
},
|
|
21
|
+
"./utils?198b": function(module) {
|
|
22
|
+
module.exports = require("./utils.js");
|
|
20
23
|
}
|
|
21
24
|
};
|
|
22
25
|
var __webpack_module_cache__ = {};
|
|
@@ -93,6 +96,17 @@ var __webpack_exports__ = {};
|
|
|
93
96
|
return _FormField__WEBPACK_IMPORTED_MODULE_5__[key];
|
|
94
97
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
95
98
|
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
99
|
+
var _utils__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("./utils?198b");
|
|
100
|
+
var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
101
|
+
for(var __WEBPACK_IMPORT_KEY__ in _utils__WEBPACK_IMPORTED_MODULE_6__)if ([
|
|
102
|
+
"fetchTemplateData",
|
|
103
|
+
"FormV2",
|
|
104
|
+
"default",
|
|
105
|
+
"DetailsDesigner"
|
|
106
|
+
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
107
|
+
return _utils__WEBPACK_IMPORTED_MODULE_6__[key];
|
|
108
|
+
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
109
|
+
__webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
|
|
96
110
|
_Form__WEBPACK_IMPORTED_MODULE_0__.Form.Designer = _Form_Designer__WEBPACK_IMPORTED_MODULE_1__.FormDesigner;
|
|
97
111
|
_Form__WEBPACK_IMPORTED_MODULE_0__.Form.FilterDesigner = _Form_FilterDesigner__WEBPACK_IMPORTED_MODULE_2__.FilterDesigner;
|
|
98
112
|
_Form__WEBPACK_IMPORTED_MODULE_0__.Form.ReadPrettyDesigner = _Form_Designer__WEBPACK_IMPORTED_MODULE_1__.ReadPrettyFormDesigner;
|
|
@@ -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),
|