@nocobase/client 0.9.2-alpha.4 → 0.9.4-alpha.1
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/acl/ACLProvider.js +2 -2
- package/es/acl/Configuration/RoleConfigure.js +15 -8
- package/es/api-client/APIClient.d.ts +2 -0
- package/es/api-client/APIClient.js +11 -0
- package/es/block-provider/BlockProvider.js +58 -17
- package/es/block-provider/DetailsBlockProvider.js +13 -1
- package/es/block-provider/FormBlockProvider.js +30 -13
- package/es/block-provider/hooks/index.d.ts +10 -0
- package/es/block-provider/hooks/index.js +521 -283
- package/es/collection-manager/CollectionField.js +3 -3
- package/es/collection-manager/CollectionFieldProvider.js +2 -1
- package/es/collection-manager/Configuration/AddFieldAction.js +3 -3
- package/es/collection-manager/Configuration/CollectionFields.d.ts +1 -1
- package/es/collection-manager/Configuration/CollectionFields.js +2 -5
- package/es/collection-manager/Configuration/ConfigurationTabs.js +7 -6
- package/es/collection-manager/Configuration/EditFieldAction.js +0 -1
- package/es/collection-manager/Configuration/OverridingCollectionField.js +0 -1
- package/es/collection-manager/action-hooks.d.ts +1 -1
- package/es/collection-manager/action-hooks.js +18 -7
- package/es/collection-manager/hooks/useCollection.d.ts +1 -1
- package/es/collection-manager/hooks/useCollectionDataSource.js +4 -4
- package/es/collection-manager/interfaces/createdBy.js +1 -1
- package/es/collection-manager/interfaces/linkTo.js +3 -39
- package/es/collection-manager/interfaces/m2m.js +4 -38
- package/es/collection-manager/interfaces/m2o.js +4 -38
- package/es/collection-manager/interfaces/o2m.js +4 -68
- package/es/collection-manager/interfaces/o2o.js +25 -119
- package/es/collection-manager/interfaces/updatedBy.js +1 -1
- package/es/collection-manager/templates/expression.js +1 -1
- package/es/collection-manager/templates/tree.js +2 -2
- package/es/filter-provider/FilterProvider.js +3 -1
- package/es/filter-provider/utils.js +1 -1
- package/es/index.d.ts +1 -0
- package/es/index.js +1 -0
- package/es/locale/en_US.d.ts +19 -1
- package/es/locale/en_US.js +22 -4
- package/es/locale/es_ES.d.ts +692 -0
- package/es/locale/es_ES.js +691 -0
- package/es/locale/ja_JP.d.ts +8 -1
- package/es/locale/ja_JP.js +9 -2
- package/es/locale/pt_BR.d.ts +5 -1
- package/es/locale/pt_BR.js +6 -2
- package/es/locale/ru_RU.d.ts +5 -1
- package/es/locale/ru_RU.js +6 -2
- package/es/locale/tr_TR.d.ts +5 -1
- package/es/locale/tr_TR.js +6 -2
- package/es/locale/zh_CN.d.ts +27 -1
- package/es/locale/zh_CN.js +28 -2
- package/es/record-provider/index.d.ts +4 -0
- package/es/record-provider/index.js +3 -0
- package/es/schema-component/antd/action/Action.Designer.js +10 -8
- package/es/schema-component/antd/action/Action.Drawer.js +4 -1
- package/es/schema-component/antd/action/ActionBar.js +25 -18
- package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -0
- package/es/schema-component/antd/association-field/AssociationFieldProvider.js +30 -0
- package/es/schema-component/antd/association-field/AssociationSelect.d.ts +14 -0
- package/es/schema-component/antd/association-field/AssociationSelect.js +63 -0
- package/es/schema-component/antd/association-field/Editable.d.ts +2 -0
- package/es/schema-component/antd/association-field/Editable.js +112 -0
- package/es/schema-component/antd/association-field/FileManager.d.ts +4 -0
- package/es/schema-component/antd/association-field/FileManager.js +243 -0
- package/es/schema-component/antd/association-field/InternalNester.d.ts +1 -0
- package/es/schema-component/antd/association-field/InternalNester.js +29 -0
- package/es/schema-component/antd/association-field/InternalPicker.d.ts +2 -0
- package/es/schema-component/antd/association-field/InternalPicker.js +236 -0
- package/es/schema-component/antd/association-field/InternalSubTable.d.ts +1 -0
- package/es/schema-component/antd/association-field/InternalSubTable.js +28 -0
- package/es/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
- package/es/schema-component/antd/association-field/InternalViewer.js +112 -0
- package/es/schema-component/antd/association-field/Nester.d.ts +1 -0
- package/es/schema-component/antd/association-field/Nester.js +71 -0
- package/es/schema-component/antd/association-field/ReadPretty.d.ts +2 -0
- package/es/schema-component/antd/association-field/ReadPretty.js +22 -0
- package/es/schema-component/antd/association-field/SubTable.d.ts +1 -0
- package/es/schema-component/antd/association-field/SubTable.js +25 -0
- package/es/schema-component/antd/association-field/components/CreateRecordAction.d.ts +2 -0
- package/es/schema-component/antd/association-field/components/CreateRecordAction.js +61 -0
- package/es/schema-component/antd/association-field/context.d.ts +8 -0
- package/es/schema-component/antd/association-field/context.js +2 -0
- package/es/schema-component/antd/association-field/hooks.d.ts +9 -0
- package/es/schema-component/antd/association-field/hooks.js +96 -0
- package/es/schema-component/antd/association-field/index.d.ts +1 -0
- package/es/schema-component/antd/association-field/index.js +14 -0
- package/es/schema-component/antd/association-field/schema.d.ts +142 -0
- package/es/schema-component/antd/association-field/schema.js +141 -0
- package/es/schema-component/antd/association-field/util.d.ts +8 -0
- package/es/schema-component/antd/association-field/util.js +84 -0
- package/es/schema-component/antd/association-filter/AssociationFilter.Item.js +3 -3
- package/es/schema-component/antd/association-select/AssociationSelect.js +49 -231
- package/es/schema-component/antd/association-select/useServiceOptions.js +2 -2
- package/es/schema-component/antd/collection-select/CollectionSelect.js +5 -0
- package/es/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -0
- package/es/schema-component/antd/expand-action/Expand.Action.Design.js +112 -0
- package/es/schema-component/antd/expand-action/Expand.Action.d.ts +1 -0
- package/es/schema-component/antd/expand-action/Expand.Action.js +40 -0
- package/es/schema-component/antd/expand-action/index.d.ts +1 -0
- package/es/schema-component/antd/expand-action/index.js +5 -0
- package/es/schema-component/antd/filter/Filter.Action.Designer.js +10 -12
- package/es/schema-component/antd/filter/FilterItem.js +1 -1
- package/es/schema-component/antd/filter/useOperators.d.ts +1 -1
- package/es/schema-component/antd/form/Form.js +4 -4
- package/es/schema-component/antd/form-item/FormItem.d.ts +2 -1
- package/es/schema-component/antd/form-item/FormItem.js +263 -168
- package/es/schema-component/antd/form-item/SchemaSettingOptions.js +39 -61
- package/es/schema-component/antd/form-v2/Form.Designer.js +1 -0
- package/es/schema-component/antd/form-v2/Templates.d.ts +20 -0
- package/es/schema-component/antd/form-v2/Templates.js +40 -12
- package/es/schema-component/antd/form-v2/utils.js +3 -1
- package/es/schema-component/antd/gantt/components/other/tooltip.js +1 -1
- package/es/schema-component/antd/grid/Grid.js +34 -24
- package/es/schema-component/antd/grid-card/GridCard.Decorator.d.ts +5 -0
- package/es/schema-component/antd/grid-card/GridCard.Decorator.js +65 -0
- package/es/schema-component/antd/grid-card/GridCard.Designer.d.ts +1 -0
- package/es/schema-component/antd/grid-card/GridCard.Designer.js +243 -0
- package/es/schema-component/antd/grid-card/GridCard.Item.d.ts +1 -0
- package/es/schema-component/antd/grid-card/GridCard.Item.js +18 -0
- package/es/schema-component/antd/grid-card/GridCard.d.ts +8 -0
- package/es/schema-component/antd/grid-card/GridCard.js +103 -0
- package/es/schema-component/antd/grid-card/hooks.d.ts +4 -0
- package/es/schema-component/antd/grid-card/hooks.js +9 -0
- package/es/schema-component/antd/grid-card/index.d.ts +1 -0
- package/es/schema-component/antd/grid-card/index.js +1 -0
- package/es/schema-component/antd/grid-card/options.d.ts +20 -0
- package/es/schema-component/antd/grid-card/options.js +20 -0
- package/es/schema-component/antd/index.d.ts +5 -1
- package/es/schema-component/antd/index.js +5 -1
- package/es/schema-component/antd/list/List.Decorator.d.ts +5 -0
- package/es/schema-component/antd/list/List.Decorator.js +59 -0
- package/es/schema-component/antd/list/List.Designer.d.ts +1 -0
- package/es/schema-component/antd/list/List.Designer.js +205 -0
- package/es/schema-component/antd/list/List.Item.d.ts +1 -0
- package/es/schema-component/antd/list/List.Item.js +15 -0
- package/es/schema-component/antd/list/List.d.ts +8 -0
- package/es/schema-component/antd/list/List.js +83 -0
- package/es/schema-component/antd/list/hooks.d.ts +4 -0
- package/es/schema-component/antd/list/hooks.js +9 -0
- package/es/schema-component/antd/list/index.d.ts +1 -0
- package/es/schema-component/antd/list/index.js +1 -0
- package/es/schema-component/antd/menu/Menu.js +6 -3
- package/es/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +32 -12
- package/es/schema-component/antd/remote-select/RemoteSelect.js +23 -23
- package/es/schema-component/antd/select/Select.js +2 -0
- package/es/schema-component/antd/table/Table.Void.Designer.js +1 -0
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +18 -9
- package/es/schema-component/antd/table-v2/Table.Index.d.ts +1 -0
- package/es/schema-component/antd/table-v2/Table.Index.js +6 -0
- package/es/schema-component/antd/table-v2/Table.js +9 -5
- package/es/schema-component/antd/table-v2/TableBlockDesigner.js +2 -1
- package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +1 -0
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +22 -0
- package/es/schema-component/antd/table-v2/hooks/useUserVariable.js +65 -0
- package/es/schema-component/antd/table-v2/index.js +3 -1
- package/es/schema-component/antd/table-v2/utils.js +1 -1
- package/es/schema-component/antd/variable/Input.js +11 -8
- package/es/schema-component/antd/variable/TextArea.js +2 -5
- package/es/schema-component/common/dnd-context/index.js +3 -2
- package/es/schema-component/common/sortable-item/SortableItem.js +4 -1
- package/es/schema-component/common/utils/uitls.js +1 -1
- package/es/schema-component/core/SchemaComponentProvider.js +2 -2
- package/es/schema-component/hooks/index.d.ts +1 -0
- package/es/schema-component/hooks/index.js +2 -1
- package/es/schema-component/hooks/useFieldModeOptions.d.ts +4 -0
- package/es/schema-component/hooks/useFieldModeOptions.js +105 -0
- package/es/schema-initializer/SchemaInitializerProvider.d.ts +1 -0
- package/es/schema-initializer/SchemaInitializerProvider.js +23 -10
- package/es/schema-initializer/buttons/BlockInitializers.js +10 -0
- package/es/schema-initializer/buttons/CustomFormItemInitializers.js +4 -2
- package/es/schema-initializer/buttons/FormActionInitializers.d.ts +0 -116
- package/es/schema-initializer/buttons/FormActionInitializers.js +106 -100
- package/es/schema-initializer/buttons/GanttActionInitializers.d.ts +0 -19
- package/es/schema-initializer/buttons/GridCardActionInitializers.d.ts +195 -0
- package/es/schema-initializer/buttons/GridCardActionInitializers.js +278 -0
- package/es/schema-initializer/buttons/ListActionInitializers.d.ts +195 -0
- package/es/schema-initializer/buttons/ListActionInitializers.js +278 -0
- package/es/schema-initializer/buttons/TableActionColumnInitializers.js +1 -1
- package/es/schema-initializer/buttons/TableActionInitializers.d.ts +0 -20
- package/es/schema-initializer/buttons/TableActionInitializers.js +29 -35
- package/es/schema-initializer/buttons/TableColumnInitializers.js +4 -1
- package/es/schema-initializer/buttons/index.d.ts +3 -0
- package/es/schema-initializer/buttons/index.js +3 -0
- package/es/schema-initializer/components/BulkEditField.js +7 -5
- package/es/schema-initializer/components/CreateRecordAction.d.ts +2 -1
- package/es/schema-initializer/components/CreateRecordAction.js +55 -33
- package/es/schema-initializer/components/DeletedField.d.ts +1 -0
- package/es/schema-initializer/components/DeletedField.js +11 -0
- package/es/schema-initializer/components/assigned-field/AssignedField.js +35 -23
- package/es/schema-initializer/items/ExpandActionInitializer.d.ts +0 -1
- package/es/schema-initializer/items/ExpandActionInitializer.js +9 -34
- package/es/schema-initializer/items/GridCardBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/GridCardBlockInitializer.js +47 -0
- package/es/schema-initializer/items/ListBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/ListBlockInitializer.js +47 -0
- package/es/schema-initializer/items/SelectActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/SelectActionInitializer.js +65 -0
- package/es/schema-initializer/items/index.d.ts +3 -0
- package/es/schema-initializer/items/index.js +3 -0
- package/es/schema-initializer/utils.d.ts +112 -0
- package/es/schema-initializer/utils.js +224 -38
- package/es/schema-items/GeneralSchemaItems.d.ts +4 -0
- package/es/schema-items/GeneralSchemaItems.js +148 -0
- package/es/schema-items/index.d.ts +1 -0
- package/es/schema-items/index.js +2 -1
- package/es/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -0
- package/es/schema-settings/DataTemplates/FormDataTemplates.js +117 -42
- package/es/schema-settings/DataTemplates/components/Designer.d.ts +7 -0
- package/es/schema-settings/DataTemplates/components/Designer.js +179 -0
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +6 -1
- package/es/schema-settings/DataTemplates/hooks/useCollectionState.js +204 -96
- package/es/schema-settings/GeneralSchemaDesigner.js +19 -15
- package/es/schema-settings/LinkageRules/FilterDynamicComponent.js +1 -1
- package/es/schema-settings/LinkageRules/Variables.d.ts +1 -1
- package/es/schema-settings/LinkageRules/Variables.js +7 -4
- package/es/schema-settings/SchemaSettings.d.ts +1 -1
- package/es/schema-settings/SchemaSettings.js +53 -29
- package/es/schema-settings/VariableInput/hooks/useUserVariable.js +1 -1
- package/es/schema-settings/hooks/useIsShowMultipleSwitch.d.ts +4 -0
- package/es/schema-settings/hooks/useIsShowMultipleSwitch.js +18 -0
- package/es/schema-templates/BlockTemplateDetails.js +1 -1
- package/es/user/CurrentUser.js +118 -10
- package/lib/acl/ACLProvider.js +2 -2
- package/lib/acl/Configuration/RoleConfigure.js +15 -8
- package/lib/api-client/APIClient.d.ts +2 -0
- package/lib/api-client/APIClient.js +11 -0
- package/lib/block-provider/BlockProvider.js +57 -16
- package/lib/block-provider/DetailsBlockProvider.js +13 -1
- package/lib/block-provider/FormBlockProvider.js +31 -15
- package/lib/block-provider/hooks/index.d.ts +10 -0
- package/lib/block-provider/hooks/index.js +531 -290
- package/lib/collection-manager/CollectionField.js +3 -3
- package/lib/collection-manager/CollectionFieldProvider.js +2 -1
- package/lib/collection-manager/Configuration/AddFieldAction.js +2 -2
- package/lib/collection-manager/Configuration/CollectionFields.d.ts +1 -1
- package/lib/collection-manager/Configuration/CollectionFields.js +2 -5
- package/lib/collection-manager/Configuration/ConfigurationTabs.js +7 -6
- package/lib/collection-manager/Configuration/EditFieldAction.js +0 -1
- package/lib/collection-manager/Configuration/OverridingCollectionField.js +0 -1
- package/lib/collection-manager/action-hooks.d.ts +1 -1
- package/lib/collection-manager/action-hooks.js +18 -7
- package/lib/collection-manager/hooks/useCollection.d.ts +1 -1
- package/lib/collection-manager/hooks/useCollectionDataSource.js +4 -4
- package/lib/collection-manager/interfaces/createdBy.js +1 -1
- package/lib/collection-manager/interfaces/linkTo.js +2 -38
- package/lib/collection-manager/interfaces/m2m.js +3 -37
- package/lib/collection-manager/interfaces/m2o.js +3 -37
- package/lib/collection-manager/interfaces/o2m.js +6 -70
- package/lib/collection-manager/interfaces/o2o.js +30 -124
- package/lib/collection-manager/interfaces/updatedBy.js +1 -1
- package/lib/collection-manager/templates/expression.js +1 -1
- package/lib/collection-manager/templates/tree.js +2 -2
- package/lib/filter-provider/FilterProvider.js +3 -1
- package/lib/filter-provider/utils.js +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.js +11 -0
- package/lib/locale/en_US.d.ts +19 -1
- package/lib/locale/en_US.js +22 -4
- package/lib/locale/es_ES.d.ts +692 -0
- package/lib/locale/es_ES.js +698 -0
- package/lib/locale/ja_JP.d.ts +8 -1
- package/lib/locale/ja_JP.js +9 -2
- package/lib/locale/pt_BR.d.ts +5 -1
- package/lib/locale/pt_BR.js +6 -2
- package/lib/locale/ru_RU.d.ts +5 -1
- package/lib/locale/ru_RU.js +6 -2
- package/lib/locale/tr_TR.d.ts +5 -1
- package/lib/locale/tr_TR.js +6 -2
- package/lib/locale/zh_CN.d.ts +27 -1
- package/lib/locale/zh_CN.js +28 -2
- package/lib/record-provider/index.d.ts +4 -0
- package/lib/record-provider/index.js +5 -1
- package/lib/schema-component/antd/action/Action.Designer.js +10 -8
- package/lib/schema-component/antd/action/Action.Drawer.js +4 -1
- package/lib/schema-component/antd/action/ActionBar.js +23 -16
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -0
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +40 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.d.ts +14 -0
- package/lib/schema-component/antd/association-field/AssociationSelect.js +72 -0
- package/lib/schema-component/antd/association-field/Editable.d.ts +2 -0
- package/lib/schema-component/antd/association-field/Editable.js +121 -0
- package/lib/schema-component/antd/association-field/FileManager.d.ts +4 -0
- package/lib/schema-component/antd/association-field/FileManager.js +253 -0
- package/lib/schema-component/antd/association-field/InternalNester.d.ts +1 -0
- package/lib/schema-component/antd/association-field/InternalNester.js +39 -0
- package/lib/schema-component/antd/association-field/InternalPicker.d.ts +2 -0
- package/lib/schema-component/antd/association-field/InternalPicker.js +246 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.d.ts +1 -0
- package/lib/schema-component/antd/association-field/InternalSubTable.js +39 -0
- package/lib/schema-component/antd/association-field/InternalViewer.d.ts +2 -0
- package/lib/schema-component/antd/association-field/InternalViewer.js +123 -0
- package/lib/schema-component/antd/association-field/Nester.d.ts +1 -0
- package/lib/schema-component/antd/association-field/Nester.js +80 -0
- package/lib/schema-component/antd/association-field/ReadPretty.d.ts +2 -0
- package/lib/schema-component/antd/association-field/ReadPretty.js +30 -0
- package/lib/schema-component/antd/association-field/SubTable.d.ts +1 -0
- package/lib/schema-component/antd/association-field/SubTable.js +33 -0
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.d.ts +2 -0
- package/lib/schema-component/antd/association-field/components/CreateRecordAction.js +71 -0
- package/lib/schema-component/antd/association-field/context.d.ts +8 -0
- package/lib/schema-component/antd/association-field/context.js +9 -0
- package/lib/schema-component/antd/association-field/hooks.d.ts +9 -0
- package/lib/schema-component/antd/association-field/hooks.js +107 -0
- package/lib/schema-component/antd/association-field/index.d.ts +1 -0
- package/lib/schema-component/antd/association-field/index.js +21 -0
- package/lib/schema-component/antd/association-field/schema.d.ts +142 -0
- package/lib/schema-component/antd/association-field/schema.js +148 -0
- package/lib/schema-component/antd/association-field/util.d.ts +8 -0
- package/lib/schema-component/antd/association-field/util.js +98 -0
- package/lib/schema-component/antd/association-filter/AssociationFilter.Item.js +3 -3
- package/lib/schema-component/antd/association-select/AssociationSelect.js +49 -231
- package/lib/schema-component/antd/association-select/useServiceOptions.js +2 -2
- package/lib/schema-component/antd/collection-select/CollectionSelect.js +5 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.Design.js +120 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/Expand.Action.js +48 -0
- package/lib/schema-component/antd/expand-action/index.d.ts +1 -0
- package/lib/schema-component/antd/expand-action/index.js +12 -0
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +10 -12
- package/lib/schema-component/antd/filter/FilterItem.js +1 -1
- package/lib/schema-component/antd/filter/useOperators.d.ts +1 -1
- package/lib/schema-component/antd/form/Form.js +4 -4
- package/lib/schema-component/antd/form-item/FormItem.d.ts +2 -1
- package/lib/schema-component/antd/form-item/FormItem.js +258 -162
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +37 -59
- package/lib/schema-component/antd/form-v2/Form.Designer.js +1 -0
- package/lib/schema-component/antd/form-v2/Templates.d.ts +20 -0
- package/lib/schema-component/antd/form-v2/Templates.js +39 -11
- package/lib/schema-component/antd/form-v2/utils.js +3 -1
- package/lib/schema-component/antd/gantt/components/other/tooltip.js +1 -1
- package/lib/schema-component/antd/grid/Grid.js +33 -23
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.d.ts +5 -0
- package/lib/schema-component/antd/grid-card/GridCard.Decorator.js +77 -0
- package/lib/schema-component/antd/grid-card/GridCard.Designer.d.ts +1 -0
- package/lib/schema-component/antd/grid-card/GridCard.Designer.js +253 -0
- package/lib/schema-component/antd/grid-card/GridCard.Item.d.ts +1 -0
- package/lib/schema-component/antd/grid-card/GridCard.Item.js +26 -0
- package/lib/schema-component/antd/grid-card/GridCard.d.ts +8 -0
- package/lib/schema-component/antd/grid-card/GridCard.js +112 -0
- package/lib/schema-component/antd/grid-card/hooks.d.ts +4 -0
- package/lib/schema-component/antd/grid-card/hooks.js +16 -0
- package/lib/schema-component/antd/grid-card/index.d.ts +1 -0
- package/lib/schema-component/antd/grid-card/index.js +16 -0
- package/lib/schema-component/antd/grid-card/options.d.ts +20 -0
- package/lib/schema-component/antd/grid-card/options.js +31 -0
- package/lib/schema-component/antd/index.d.ts +5 -1
- package/lib/schema-component/antd/index.js +55 -11
- package/lib/schema-component/antd/list/List.Decorator.d.ts +5 -0
- package/lib/schema-component/antd/list/List.Decorator.js +71 -0
- package/lib/schema-component/antd/list/List.Designer.d.ts +1 -0
- package/lib/schema-component/antd/list/List.Designer.js +213 -0
- package/lib/schema-component/antd/list/List.Item.d.ts +1 -0
- package/lib/schema-component/antd/list/List.Item.js +23 -0
- package/lib/schema-component/antd/list/List.d.ts +8 -0
- package/lib/schema-component/antd/list/List.js +92 -0
- package/lib/schema-component/antd/list/hooks.d.ts +4 -0
- package/lib/schema-component/antd/list/hooks.js +16 -0
- package/lib/schema-component/antd/list/index.d.ts +1 -0
- package/lib/schema-component/antd/list/index.js +16 -0
- package/lib/schema-component/antd/menu/Menu.js +6 -3
- package/lib/schema-component/antd/record-picker/InputRecordPicker.d.ts +1 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +34 -13
- package/lib/schema-component/antd/remote-select/RemoteSelect.js +22 -22
- package/lib/schema-component/antd/select/Select.js +2 -0
- package/lib/schema-component/antd/table/Table.Void.Designer.js +1 -0
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +18 -9
- package/lib/schema-component/antd/table-v2/Table.Index.d.ts +1 -0
- package/lib/schema-component/antd/table-v2/Table.Index.js +14 -0
- package/lib/schema-component/antd/table-v2/Table.js +9 -5
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -1
- package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +1 -0
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.d.ts +22 -0
- package/lib/schema-component/antd/table-v2/hooks/useUserVariable.js +73 -0
- package/lib/schema-component/antd/table-v2/index.js +3 -1
- package/lib/schema-component/antd/table-v2/utils.js +1 -1
- package/lib/schema-component/antd/variable/Input.js +11 -8
- package/lib/schema-component/antd/variable/TextArea.js +2 -5
- package/lib/schema-component/common/dnd-context/index.js +3 -2
- package/lib/schema-component/common/sortable-item/SortableItem.js +4 -1
- package/lib/schema-component/common/utils/uitls.js +1 -1
- package/lib/schema-component/core/SchemaComponentProvider.js +2 -2
- package/lib/schema-component/hooks/index.d.ts +1 -0
- package/lib/schema-component/hooks/index.js +11 -0
- package/lib/schema-component/hooks/useFieldModeOptions.d.ts +4 -0
- package/lib/schema-component/hooks/useFieldModeOptions.js +112 -0
- package/lib/schema-initializer/SchemaInitializerProvider.d.ts +1 -0
- package/lib/schema-initializer/SchemaInitializerProvider.js +22 -9
- package/lib/schema-initializer/buttons/BlockInitializers.js +10 -0
- package/lib/schema-initializer/buttons/CustomFormItemInitializers.js +4 -2
- package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +0 -116
- package/lib/schema-initializer/buttons/FormActionInitializers.js +106 -100
- package/lib/schema-initializer/buttons/GanttActionInitializers.d.ts +0 -19
- package/lib/schema-initializer/buttons/GridCardActionInitializers.d.ts +195 -0
- package/lib/schema-initializer/buttons/GridCardActionInitializers.js +285 -0
- package/lib/schema-initializer/buttons/ListActionInitializers.d.ts +195 -0
- package/lib/schema-initializer/buttons/ListActionInitializers.js +285 -0
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +1 -1
- package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +0 -20
- package/lib/schema-initializer/buttons/TableActionInitializers.js +29 -35
- package/lib/schema-initializer/buttons/TableColumnInitializers.js +4 -1
- package/lib/schema-initializer/buttons/index.d.ts +3 -0
- package/lib/schema-initializer/buttons/index.js +22 -0
- package/lib/schema-initializer/components/BulkEditField.js +7 -5
- package/lib/schema-initializer/components/CreateRecordAction.d.ts +2 -1
- package/lib/schema-initializer/components/CreateRecordAction.js +58 -35
- package/lib/schema-initializer/components/DeletedField.d.ts +1 -0
- package/lib/schema-initializer/components/DeletedField.js +19 -0
- package/lib/schema-initializer/components/assigned-field/AssignedField.js +34 -22
- package/lib/schema-initializer/items/ExpandActionInitializer.d.ts +0 -1
- package/lib/schema-initializer/items/ExpandActionInitializer.js +11 -37
- package/lib/schema-initializer/items/GridCardBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/GridCardBlockInitializer.js +55 -0
- package/lib/schema-initializer/items/ListBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/ListBlockInitializer.js +55 -0
- package/lib/schema-initializer/items/SelectActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/SelectActionInitializer.js +73 -0
- package/lib/schema-initializer/items/index.d.ts +3 -0
- package/lib/schema-initializer/items/index.js +33 -0
- package/lib/schema-initializer/utils.d.ts +112 -0
- package/lib/schema-initializer/utils.js +227 -39
- package/lib/schema-items/GeneralSchemaItems.d.ts +4 -0
- package/lib/schema-items/GeneralSchemaItems.js +156 -0
- package/lib/schema-items/index.d.ts +1 -0
- package/lib/schema-items/index.js +11 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.d.ts +1 -0
- package/lib/schema-settings/DataTemplates/FormDataTemplates.js +119 -41
- package/lib/schema-settings/DataTemplates/components/Designer.d.ts +7 -0
- package/lib/schema-settings/DataTemplates/components/Designer.js +188 -0
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.d.ts +6 -1
- package/lib/schema-settings/DataTemplates/hooks/useCollectionState.js +204 -95
- package/lib/schema-settings/GeneralSchemaDesigner.js +21 -15
- package/lib/schema-settings/LinkageRules/FilterDynamicComponent.js +1 -1
- package/lib/schema-settings/LinkageRules/Variables.d.ts +1 -1
- package/lib/schema-settings/LinkageRules/Variables.js +7 -4
- package/lib/schema-settings/SchemaSettings.d.ts +1 -1
- package/lib/schema-settings/SchemaSettings.js +53 -29
- package/lib/schema-settings/VariableInput/hooks/useUserVariable.js +1 -1
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.d.ts +4 -0
- package/lib/schema-settings/hooks/useIsShowMultipleSwitch.js +24 -0
- package/lib/user/CurrentUser.js +116 -8
- package/package.json +5 -6
- package/tsconfig.json +8 -0
package/es/locale/ja_JP.d.ts
CHANGED
|
@@ -421,7 +421,7 @@ declare const _default: {
|
|
|
421
421
|
"Skip required validation": string;
|
|
422
422
|
"Form values": string;
|
|
423
423
|
"Fields values": string;
|
|
424
|
-
'The field has
|
|
424
|
+
'The field has been deleted': string;
|
|
425
425
|
"When submitting the following fields, the saved values are": string;
|
|
426
426
|
"After successful submission": string;
|
|
427
427
|
Then: string;
|
|
@@ -554,8 +554,14 @@ declare const _default: {
|
|
|
554
554
|
"Edit block title": string;
|
|
555
555
|
"Province/city/area name": string;
|
|
556
556
|
"Field component": string;
|
|
557
|
+
"Allow multiple": string;
|
|
558
|
+
"Quick upload": string;
|
|
559
|
+
"Select file": string;
|
|
557
560
|
Subtable: string;
|
|
558
561
|
Subform: string;
|
|
562
|
+
"Sub-details": string;
|
|
563
|
+
"Field mode": string;
|
|
564
|
+
"Allow add new data": string;
|
|
559
565
|
"Regular expression": string;
|
|
560
566
|
"Enabled languages": string;
|
|
561
567
|
"View all plugins": string;
|
|
@@ -608,5 +614,6 @@ declare const _default: {
|
|
|
608
614
|
'Add template': string;
|
|
609
615
|
'Display data template selector': string;
|
|
610
616
|
'Form data templates': string;
|
|
617
|
+
"Data template": string;
|
|
611
618
|
};
|
|
612
619
|
export default _default;
|
package/es/locale/ja_JP.js
CHANGED
|
@@ -421,7 +421,7 @@ export default {
|
|
|
421
421
|
"Skip required validation": "必須のバリデーションをスキップ",
|
|
422
422
|
"Form values": "フォームの値",
|
|
423
423
|
"Fields values": "フィールドの値",
|
|
424
|
-
'The field has
|
|
424
|
+
'The field has been deleted': 'フィールドが削除されました',
|
|
425
425
|
"When submitting the following fields, the saved values are": "次のフィールドを送信すると、保存された値は",
|
|
426
426
|
"After successful submission": "送信が成功した後",
|
|
427
427
|
"Then": "その後",
|
|
@@ -554,8 +554,14 @@ export default {
|
|
|
554
554
|
"Edit block title": "ブロックタイトルを編集",
|
|
555
555
|
"Province/city/area name": "Province/city/area name",
|
|
556
556
|
"Field component": "フィールドコンポーネント",
|
|
557
|
+
"Allow multiple": "複数選択を許可する",
|
|
558
|
+
"Quick upload": "クイックアップロード",
|
|
559
|
+
"Select file": "ファイルを選択",
|
|
557
560
|
"Subtable": "サブテーブル",
|
|
558
561
|
"Subform": "サブフォーム",
|
|
562
|
+
"Sub-details": "サブリスト",
|
|
563
|
+
"Field mode": "フィールドコンポーネント",
|
|
564
|
+
"Allow add new data": "データの追加を許可",
|
|
559
565
|
"Regular expression": "正規表現",
|
|
560
566
|
"Enabled languages": "利用可能な言語",
|
|
561
567
|
"View all plugins": "すべてのプラグラインを見る",
|
|
@@ -608,5 +614,6 @@ export default {
|
|
|
608
614
|
'Data fields': 'データフィールド',
|
|
609
615
|
'Add template': 'テンプレートを追加',
|
|
610
616
|
'Display data template selector': 'データテンプレートセレクターを表示',
|
|
611
|
-
'Form data templates': 'フォームデータテンプレート'
|
|
617
|
+
'Form data templates': 'フォームデータテンプレート',
|
|
618
|
+
"Data template": "データテンプレート"
|
|
612
619
|
};
|
package/es/locale/pt_BR.d.ts
CHANGED
|
@@ -240,6 +240,9 @@ declare const _default: {
|
|
|
240
240
|
"Display association fields": string;
|
|
241
241
|
"Display field title": string;
|
|
242
242
|
"Field component": string;
|
|
243
|
+
"Quick upload": string;
|
|
244
|
+
"Select file": string;
|
|
245
|
+
"Allow multiple": string;
|
|
243
246
|
Subtable: string;
|
|
244
247
|
Subform: string;
|
|
245
248
|
"Record picker": string;
|
|
@@ -458,7 +461,7 @@ declare const _default: {
|
|
|
458
461
|
"Skip required validation": string;
|
|
459
462
|
"Form values": string;
|
|
460
463
|
"Fields values": string;
|
|
461
|
-
'The field has
|
|
464
|
+
'The field has been deleted': string;
|
|
462
465
|
"When submitting the following fields, the saved values are": string;
|
|
463
466
|
"After successful submission": string;
|
|
464
467
|
Then: string;
|
|
@@ -662,5 +665,6 @@ declare const _default: {
|
|
|
662
665
|
'Add template': string;
|
|
663
666
|
'Display data template selector': string;
|
|
664
667
|
'Form data templates': string;
|
|
668
|
+
"Data template": string;
|
|
665
669
|
};
|
|
666
670
|
export default _default;
|
package/es/locale/pt_BR.js
CHANGED
|
@@ -240,6 +240,9 @@ export default {
|
|
|
240
240
|
"Display association fields": "Exibir campos de associação",
|
|
241
241
|
"Display field title": "Exibir título do campo",
|
|
242
242
|
"Field component": "Componente de campo",
|
|
243
|
+
"Quick upload": "Upload rápido",
|
|
244
|
+
"Select file": "Selecionar arquivo",
|
|
245
|
+
"Allow multiple": "Permitir múltiplos",
|
|
243
246
|
"Subtable": "Subtabela",
|
|
244
247
|
"Subform": "Subformulário",
|
|
245
248
|
"Record picker": "Selecionador de registros",
|
|
@@ -458,7 +461,7 @@ export default {
|
|
|
458
461
|
"Skip required validation": "Ignorar validação obrigatória",
|
|
459
462
|
"Form values": "Valores do formulário",
|
|
460
463
|
"Fields values": "campo removido",
|
|
461
|
-
'The field has
|
|
464
|
+
'The field has been deleted': 'O campo foi excluído',
|
|
462
465
|
"When submitting the following fields, the saved values are": "Ao enviar os seguintes campos, os valores salvos são",
|
|
463
466
|
"After successful submission": "Depois do envio bem-sucedido",
|
|
464
467
|
"Then": "Então",
|
|
@@ -661,5 +664,6 @@ export default {
|
|
|
661
664
|
'Data fields': 'Campos de dados',
|
|
662
665
|
'Add template': 'Adicionar modelo',
|
|
663
666
|
'Display data template selector': 'Exibir seletor de modelo de dados',
|
|
664
|
-
'Form data templates': 'Modelos de dados do formulário'
|
|
667
|
+
'Form data templates': 'Modelos de dados do formulário',
|
|
668
|
+
"Data template": "Modelo de dados"
|
|
665
669
|
};
|
package/es/locale/ru_RU.d.ts
CHANGED
|
@@ -363,7 +363,7 @@ declare const _default: {
|
|
|
363
363
|
"Skip required validation": string;
|
|
364
364
|
"Form values": string;
|
|
365
365
|
"Fields values": string;
|
|
366
|
-
'The field has
|
|
366
|
+
'The field has been deleted': string;
|
|
367
367
|
"When submitting the following fields, the saved values are": string;
|
|
368
368
|
"After successful submission": string;
|
|
369
369
|
Then: string;
|
|
@@ -492,6 +492,9 @@ declare const _default: {
|
|
|
492
492
|
"Edit block title": string;
|
|
493
493
|
"Province/city/area name": string;
|
|
494
494
|
"Field component": string;
|
|
495
|
+
"Allow multiple": string;
|
|
496
|
+
"Quick upload": string;
|
|
497
|
+
"Select file": string;
|
|
495
498
|
Subtable: string;
|
|
496
499
|
Subform: string;
|
|
497
500
|
"Regular expression": string;
|
|
@@ -516,5 +519,6 @@ declare const _default: {
|
|
|
516
519
|
'Add template': string;
|
|
517
520
|
'Display data template selector': string;
|
|
518
521
|
'Form data templates': string;
|
|
522
|
+
"Data template": string;
|
|
519
523
|
};
|
|
520
524
|
export default _default;
|
package/es/locale/ru_RU.js
CHANGED
|
@@ -363,7 +363,7 @@ export default {
|
|
|
363
363
|
"Skip required validation": "Пропустить обязатеьную проверку",
|
|
364
364
|
"Form values": "Значения формы",
|
|
365
365
|
"Fields values": "Значения полей",
|
|
366
|
-
'The field has
|
|
366
|
+
'The field has been deleted': 'Поле было удалено',
|
|
367
367
|
"When submitting the following fields, the saved values are": "При отправке следующих полей, сохраненные значения такие",
|
|
368
368
|
"After successful submission": "После удачной отправки",
|
|
369
369
|
"Then": "Затем",
|
|
@@ -492,6 +492,9 @@ export default {
|
|
|
492
492
|
"Edit block title": "Изменить заголовок блока",
|
|
493
493
|
"Province/city/area name": "Имя области/города/района",
|
|
494
494
|
"Field component": "Компонент поля",
|
|
495
|
+
"Allow multiple": "Разрешить множественный выбор",
|
|
496
|
+
"Quick upload": "Быстрая загрузка",
|
|
497
|
+
"Select file": "Выбрать файл",
|
|
495
498
|
"Subtable": "Подтаблица",
|
|
496
499
|
"Subform": "Подформа",
|
|
497
500
|
"Regular expression": "Образец",
|
|
@@ -515,5 +518,6 @@ export default {
|
|
|
515
518
|
'Data fields': "Поля данных",
|
|
516
519
|
'Add template': "Добавить шаблон",
|
|
517
520
|
'Display data template selector': "Отображать селектор шаблона данных",
|
|
518
|
-
'Form data templates': "Шаблоны данных формы"
|
|
521
|
+
'Form data templates': "Шаблоны данных формы",
|
|
522
|
+
"Data template": "Шаблон данных"
|
|
519
523
|
};
|
package/es/locale/tr_TR.d.ts
CHANGED
|
@@ -362,7 +362,7 @@ declare const _default: {
|
|
|
362
362
|
"Skip required validation": string;
|
|
363
363
|
"Form values": string;
|
|
364
364
|
"Fields values": string;
|
|
365
|
-
'The field has
|
|
365
|
+
'The field has been deleted': string;
|
|
366
366
|
"When submitting the following fields, the saved values are": string;
|
|
367
367
|
"After successful submission": string;
|
|
368
368
|
Then: string;
|
|
@@ -491,6 +491,9 @@ declare const _default: {
|
|
|
491
491
|
operater: string;
|
|
492
492
|
"Province/city/area name": string;
|
|
493
493
|
"Field component": string;
|
|
494
|
+
"Allow multiple": string;
|
|
495
|
+
"Quick upload": string;
|
|
496
|
+
"Select file": string;
|
|
494
497
|
Subtable: string;
|
|
495
498
|
Subform: string;
|
|
496
499
|
"Regular expression": string;
|
|
@@ -515,5 +518,6 @@ declare const _default: {
|
|
|
515
518
|
'Add template': string;
|
|
516
519
|
'Display data template selector': string;
|
|
517
520
|
'Form data templates': string;
|
|
521
|
+
"Data template": string;
|
|
518
522
|
};
|
|
519
523
|
export default _default;
|
package/es/locale/tr_TR.js
CHANGED
|
@@ -362,7 +362,7 @@ export default {
|
|
|
362
362
|
"Skip required validation": "Zorunlu alan kontrollerini atla",
|
|
363
363
|
"Form values": "Form değerleri",
|
|
364
364
|
"Fields values": "Alanların değerleri",
|
|
365
|
-
'The field has
|
|
365
|
+
'The field has been deleted': 'Alan silindi',
|
|
366
366
|
"When submitting the following fields, the saved values are": "Aşağıdaki alanlar gönderilirken kaydedilen değerler",
|
|
367
367
|
"After successful submission": "Başarılı gönderimden sonra",
|
|
368
368
|
"Then": "Then",
|
|
@@ -491,6 +491,9 @@ export default {
|
|
|
491
491
|
"operater": "operatör",
|
|
492
492
|
"Province/city/area name": "Semt/şehir/bölge adı",
|
|
493
493
|
"Field component": "Alan bileşeni",
|
|
494
|
+
"Allow multiple": "Birden çok izin ver",
|
|
495
|
+
"Quick upload": "Hızlı yükleme",
|
|
496
|
+
"Select file": "Dosya seç",
|
|
494
497
|
"Subtable": "Alttablo",
|
|
495
498
|
"Subform": "Altform",
|
|
496
499
|
"Regular expression": "Model(Pattern)",
|
|
@@ -514,5 +517,6 @@ export default {
|
|
|
514
517
|
'Data fields': 'Veri alanları',
|
|
515
518
|
'Add template': 'Şablon ekle',
|
|
516
519
|
'Display data template selector': 'Veri şablonu seçicisini görüntüle',
|
|
517
|
-
'Form data templates': 'Form veri şablonları'
|
|
520
|
+
'Form data templates': 'Form veri şablonları',
|
|
521
|
+
"Data template": "Veri şablonu"
|
|
518
522
|
};
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -120,6 +120,17 @@ declare const _default: {
|
|
|
120
120
|
"Filter blocks": string;
|
|
121
121
|
Table: string;
|
|
122
122
|
Form: string;
|
|
123
|
+
List: string;
|
|
124
|
+
"Grid Card": string;
|
|
125
|
+
"Screen size": string;
|
|
126
|
+
pixels: string;
|
|
127
|
+
"Display title": string;
|
|
128
|
+
'Set the count of columns displayed in a row': string;
|
|
129
|
+
Column: string;
|
|
130
|
+
'Phone device': string;
|
|
131
|
+
'Tablet device': string;
|
|
132
|
+
'Desktop device': string;
|
|
133
|
+
'Large screen device': string;
|
|
123
134
|
"Table OID(Inheritance)": string;
|
|
124
135
|
Collapse: string;
|
|
125
136
|
"Select data source": string;
|
|
@@ -298,13 +309,19 @@ declare const _default: {
|
|
|
298
309
|
"Display association fields": string;
|
|
299
310
|
"Display field title": string;
|
|
300
311
|
"Field component": string;
|
|
312
|
+
"Allow multiple": string;
|
|
313
|
+
"Quick upload": string;
|
|
314
|
+
"Select file": string;
|
|
301
315
|
Subtable: string;
|
|
302
316
|
Subform: string;
|
|
317
|
+
"Sub-details": string;
|
|
303
318
|
"Record picker": string;
|
|
304
319
|
"Toggles the subfield mode": string;
|
|
305
320
|
"Selector mode": string;
|
|
306
321
|
"Subtable mode": string;
|
|
307
322
|
"Subform mode": string;
|
|
323
|
+
"Field mode": string;
|
|
324
|
+
"Allow add new data": string;
|
|
308
325
|
"Edit block title": string;
|
|
309
326
|
"Block title": string;
|
|
310
327
|
Pattern: string;
|
|
@@ -516,7 +533,7 @@ declare const _default: {
|
|
|
516
533
|
'Skip required validation': string;
|
|
517
534
|
'Form values': string;
|
|
518
535
|
'Fields values': string;
|
|
519
|
-
'The field has
|
|
536
|
+
'The field has been deleted': string;
|
|
520
537
|
'When submitting the following fields, the saved values are': string;
|
|
521
538
|
'After successful submission': string;
|
|
522
539
|
Then: string;
|
|
@@ -726,5 +743,14 @@ declare const _default: {
|
|
|
726
743
|
'Add template': string;
|
|
727
744
|
'Display data template selector': string;
|
|
728
745
|
'Form data templates': string;
|
|
746
|
+
'Data template': string;
|
|
747
|
+
'Reload application': string;
|
|
748
|
+
'The application is reloading, please do not close the page.': string;
|
|
749
|
+
'Application reloading': string;
|
|
750
|
+
'Reboot application': string;
|
|
751
|
+
"Allows to clear cache, reboot application": string;
|
|
752
|
+
'The will interrupt service, it may take a few seconds to restart. Are you sure to continue?': string;
|
|
753
|
+
Reboot: string;
|
|
754
|
+
'Clear cache': string;
|
|
729
755
|
};
|
|
730
756
|
export default _default;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -120,6 +120,17 @@ export default {
|
|
|
120
120
|
"Filter blocks": "筛选区块",
|
|
121
121
|
"Table": "表格",
|
|
122
122
|
"Form": "表单",
|
|
123
|
+
"List": "列表",
|
|
124
|
+
"Grid Card": "网格卡片",
|
|
125
|
+
"Screen size": "屏幕尺寸",
|
|
126
|
+
"pixels": "像素",
|
|
127
|
+
"Display title": "显示标题",
|
|
128
|
+
'Set the count of columns displayed in a row': "设置一行展示的列数",
|
|
129
|
+
'Column': '列',
|
|
130
|
+
'Phone device': '手机设备',
|
|
131
|
+
'Tablet device': '平板设备',
|
|
132
|
+
'Desktop device': '电脑设备',
|
|
133
|
+
'Large screen device': '大屏幕设备',
|
|
123
134
|
"Table OID(Inheritance)": "数据表 OID(继承)",
|
|
124
135
|
"Collapse": "折叠面板",
|
|
125
136
|
"Select data source": "选择数据源",
|
|
@@ -298,13 +309,19 @@ export default {
|
|
|
298
309
|
"Display association fields": "显示关联表的字段",
|
|
299
310
|
"Display field title": "显示字段标题",
|
|
300
311
|
"Field component": "字段组件",
|
|
312
|
+
"Allow multiple": "允许多选",
|
|
313
|
+
"Quick upload": "快速上传",
|
|
314
|
+
"Select file": "选择文件",
|
|
301
315
|
"Subtable": "子表格",
|
|
302
316
|
"Subform": "子表单",
|
|
317
|
+
"Sub-details": "子详情",
|
|
303
318
|
"Record picker": "数据选择器",
|
|
304
319
|
"Toggles the subfield mode": "切换子字段模式",
|
|
305
320
|
"Selector mode": "选择器模式",
|
|
306
321
|
"Subtable mode": "子表格模式",
|
|
307
322
|
"Subform mode": "子表单模式",
|
|
323
|
+
"Field mode": "字段组件",
|
|
324
|
+
"Allow add new data": "允许添加数据",
|
|
308
325
|
"Edit block title": "编辑区块标题",
|
|
309
326
|
"Block title": "区块标题",
|
|
310
327
|
"Pattern": "模式",
|
|
@@ -516,7 +533,7 @@ export default {
|
|
|
516
533
|
'Skip required validation': '跳过必填校验',
|
|
517
534
|
'Form values': '表单值',
|
|
518
535
|
'Fields values': '字段值',
|
|
519
|
-
'The field has
|
|
536
|
+
'The field has been deleted': '字段已删除',
|
|
520
537
|
'When submitting the following fields, the saved values are': '提交以下字段时,保存的值为',
|
|
521
538
|
'After successful submission': '提交成功后',
|
|
522
539
|
'Then': '然后',
|
|
@@ -726,5 +743,14 @@ export default {
|
|
|
726
743
|
'Data fields': '数据字段',
|
|
727
744
|
'Add template': '添加模板',
|
|
728
745
|
'Display data template selector': '显示数据模板选择框',
|
|
729
|
-
'Form data templates': '表单数据模板'
|
|
746
|
+
'Form data templates': '表单数据模板',
|
|
747
|
+
'Data template': '数据模板',
|
|
748
|
+
'Reload application': '重载应用',
|
|
749
|
+
'The application is reloading, please do not close the page.': '应用正在重新加载,请勿关闭页面。',
|
|
750
|
+
'Application reloading': '应用重新加载中',
|
|
751
|
+
'Reboot application': '重启应用',
|
|
752
|
+
"Allows to clear cache, reboot application": "允许清除缓存,重启应用",
|
|
753
|
+
'The will interrupt service, it may take a few seconds to restart. Are you sure to continue?': '重启将会中断当前服务,这个过程可能需要一点时间,确定要继续吗?',
|
|
754
|
+
'Reboot': '重启',
|
|
755
|
+
'Clear cache': '清除缓存'
|
|
730
756
|
};
|
|
@@ -5,6 +5,10 @@ export declare const RecordProvider: React.FC<{
|
|
|
5
5
|
record: any;
|
|
6
6
|
parent?: any;
|
|
7
7
|
}>;
|
|
8
|
+
export declare const RecordSimpleProvider: React.FC<{
|
|
9
|
+
value: Record<string, any>;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}>;
|
|
8
12
|
export declare const RecordIndexProvider: React.FC<{
|
|
9
13
|
index: any;
|
|
10
14
|
}>;
|
|
@@ -20,6 +20,9 @@ export var RecordProvider = function RecordProvider(props) {
|
|
|
20
20
|
value: value
|
|
21
21
|
}, children);
|
|
22
22
|
};
|
|
23
|
+
export var RecordSimpleProvider = function RecordSimpleProvider(props) {
|
|
24
|
+
return /*#__PURE__*/React.createElement(RecordContext.Provider, _objectSpread({}, props));
|
|
25
|
+
};
|
|
23
26
|
export var RecordIndexProvider = function RecordIndexProvider(props) {
|
|
24
27
|
var index = props.index,
|
|
25
28
|
children = props.children;
|
|
@@ -58,6 +58,7 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
58
58
|
dn = _useDesignable.dn;
|
|
59
59
|
var _useTranslation2 = useTranslation(),
|
|
60
60
|
t = _useTranslation2.t;
|
|
61
|
+
var isAction = useLinkageAction();
|
|
61
62
|
var isPopupAction = ['create', 'update', 'view', 'customize:popup'].includes(fieldSchema['x-action'] || '');
|
|
62
63
|
var isUpdateModePopupAction = ['customize:bulkUpdate', 'customize:bulkEdit'].includes(fieldSchema['x-action']);
|
|
63
64
|
var _useState = useState(),
|
|
@@ -65,10 +66,11 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
65
66
|
initialSchema = _useState2[0],
|
|
66
67
|
setInitialSchema = _useState2[1];
|
|
67
68
|
var actionType = (_fieldSchema$xAction = fieldSchema['x-action']) !== null && _fieldSchema$xAction !== void 0 ? _fieldSchema$xAction : '';
|
|
68
|
-
var isLinkageAction = linkageAction ||
|
|
69
|
+
var isLinkageAction = linkageAction || isAction;
|
|
69
70
|
var isChildCollectionAction = getChildrenCollections(name).length > 0 && fieldSchema['x-action'] === 'create';
|
|
70
|
-
var isSupportEditButton = fieldSchema['x-action'] !== 'expandAll';
|
|
71
71
|
var isLink = fieldSchema['x-component'] === 'Action.Link';
|
|
72
|
+
var isDelete = (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.parent['x-component']) === 'CollectionField';
|
|
73
|
+
var isDraggable = (fieldSchema === null || fieldSchema === void 0 ? void 0 : fieldSchema.parent['x-component']) !== 'CollectionField';
|
|
72
74
|
useEffect(function () {
|
|
73
75
|
var schemaUid = uid();
|
|
74
76
|
var schema = {
|
|
@@ -84,7 +86,8 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
84
86
|
'customize:save': t('After clicking the custom button, the following fields of the current record will be saved according to the following form.')
|
|
85
87
|
};
|
|
86
88
|
return /*#__PURE__*/React.createElement(GeneralSchemaDesigner, _objectSpread(_objectSpread({}, restProps), {}, {
|
|
87
|
-
disableInitializer: true
|
|
89
|
+
disableInitializer: true,
|
|
90
|
+
draggable: isDraggable
|
|
88
91
|
}), /*#__PURE__*/React.createElement(MenuGroup, null, /*#__PURE__*/React.createElement(SchemaSettings.ModalItem, {
|
|
89
92
|
title: t('Edit button'),
|
|
90
93
|
schema: {
|
|
@@ -96,8 +99,7 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
96
99
|
'x-component': 'Input',
|
|
97
100
|
title: t('Button title'),
|
|
98
101
|
default: fieldSchema.title,
|
|
99
|
-
'x-component-props': {}
|
|
100
|
-
'x-visible': isSupportEditButton
|
|
102
|
+
'x-component-props': {}
|
|
101
103
|
// description: `原字段标题:${collectionField?.uiSchema?.title}`,
|
|
102
104
|
},
|
|
103
105
|
|
|
@@ -107,7 +109,7 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
107
109
|
title: t('Button icon'),
|
|
108
110
|
default: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon.icon,
|
|
109
111
|
'x-component-props': {},
|
|
110
|
-
'x-visible':
|
|
112
|
+
'x-visible': !isLink
|
|
111
113
|
// description: `原字段标题:${collectionField?.uiSchema?.title}`,
|
|
112
114
|
},
|
|
113
115
|
|
|
@@ -288,7 +290,7 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
288
290
|
}
|
|
289
291
|
}), isChildCollectionAction && /*#__PURE__*/React.createElement(SchemaSettings.EnableChildCollections, {
|
|
290
292
|
collectionName: name
|
|
291
|
-
}), /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
293
|
+
}), !isDelete && [/*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
292
294
|
removeParentsIfNoChildren: true,
|
|
293
295
|
breakRemoveOn: function breakRemoveOn(s) {
|
|
294
296
|
return s['x-component'] === 'Space' || s['x-component'].endsWith('ActionBar');
|
|
@@ -296,5 +298,5 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
296
298
|
confirm: {
|
|
297
299
|
title: t('Delete action')
|
|
298
300
|
}
|
|
299
|
-
})));
|
|
301
|
+
})]));
|
|
300
302
|
};
|
|
@@ -19,6 +19,7 @@ import { useTranslation } from 'react-i18next';
|
|
|
19
19
|
import { useActionContext } from './hooks';
|
|
20
20
|
var openSizeWidthMap = new Map([['small', '30%'], ['middle', '50%'], ['large', '70%']]);
|
|
21
21
|
export var ActionDrawer = observer(function (props) {
|
|
22
|
+
var _schema$parent, _schema$parent$xComp;
|
|
22
23
|
var _props$footerNodeName = props.footerNodeName,
|
|
23
24
|
footerNodeName = _props$footerNodeName === void 0 ? 'Action.Drawer.Footer' : _props$footerNodeName,
|
|
24
25
|
others = _objectWithoutProperties(props, _excluded);
|
|
@@ -31,6 +32,8 @@ export var ActionDrawer = observer(function (props) {
|
|
|
31
32
|
openSize = _useActionContext$ope === void 0 ? 'middle' : _useActionContext$ope;
|
|
32
33
|
var schema = useFieldSchema();
|
|
33
34
|
var field = useField();
|
|
35
|
+
var openSizeFromParent = (_schema$parent = schema.parent) === null || _schema$parent === void 0 ? void 0 : (_schema$parent$xComp = _schema$parent['x-component-props']) === null || _schema$parent$xComp === void 0 ? void 0 : _schema$parent$xComp['openSize'];
|
|
36
|
+
var finalOpenSize = openSizeFromParent || openSize;
|
|
34
37
|
var footerSchema = schema.reduceProperties(function (buf, s) {
|
|
35
38
|
if (s['x-component'] === footerNodeName) {
|
|
36
39
|
return s;
|
|
@@ -42,7 +45,7 @@ export var ActionDrawer = observer(function (props) {
|
|
|
42
45
|
e.stopPropagation();
|
|
43
46
|
}
|
|
44
47
|
}, /*#__PURE__*/React.createElement(Drawer, _objectSpread(_objectSpread({
|
|
45
|
-
width: openSizeWidthMap.get(
|
|
48
|
+
width: openSizeWidthMap.get(finalOpenSize),
|
|
46
49
|
title: field.title
|
|
47
50
|
}, others), {}, {
|
|
48
51
|
destroyOnClose: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
2
|
var _templateObject;
|
|
3
|
-
var _excluded = ["layout", "style"];
|
|
3
|
+
var _excluded = ["layout", "style", "spaceProps"];
|
|
4
4
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
5
5
|
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
6
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
@@ -9,43 +9,48 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
9
9
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
10
10
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11
11
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
12
|
-
import { css } from '@emotion/css';
|
|
12
|
+
import { css, cx } from '@emotion/css';
|
|
13
13
|
import { observer, RecursionField, useFieldSchema } from '@formily/react';
|
|
14
14
|
import { Space } from 'antd';
|
|
15
15
|
import React from 'react';
|
|
16
16
|
import { useSchemaInitializer } from '../../../schema-initializer';
|
|
17
17
|
import { DndContext } from '../../common';
|
|
18
|
-
import { useDesignable } from '../../hooks';
|
|
18
|
+
import { useDesignable, useProps } from '../../hooks';
|
|
19
19
|
export var ActionBar = observer(function (props) {
|
|
20
20
|
var _fieldSchema$properti;
|
|
21
|
-
var
|
|
22
|
-
layout =
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
var _useProps = useProps(props),
|
|
22
|
+
_useProps$layout = _useProps.layout,
|
|
23
|
+
layout = _useProps$layout === void 0 ? 'tow-columns' : _useProps$layout,
|
|
24
|
+
style = _useProps.style,
|
|
25
|
+
spaceProps = _useProps.spaceProps,
|
|
26
|
+
others = _objectWithoutProperties(_useProps, _excluded);
|
|
25
27
|
var fieldSchema = useFieldSchema();
|
|
26
28
|
var _useSchemaInitializer = useSchemaInitializer(fieldSchema['x-initializer']),
|
|
27
|
-
|
|
29
|
+
InitializerComponent = _useSchemaInitializer.InitializerComponent;
|
|
28
30
|
var _useDesignable = useDesignable(),
|
|
29
31
|
designable = _useDesignable.designable;
|
|
30
32
|
if (layout === 'one-column') {
|
|
31
|
-
return /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
33
|
+
return /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement("div", _objectSpread(_objectSpread({
|
|
32
34
|
style: _objectSpread({
|
|
33
|
-
display: 'flex'
|
|
35
|
+
display: 'flex',
|
|
36
|
+
alignItems: 'center'
|
|
34
37
|
}, style)
|
|
35
|
-
}, others),
|
|
38
|
+
}, others), {}, {
|
|
39
|
+
className: cx(others.className, 'nb-action-bar')
|
|
40
|
+
}), props.children && /*#__PURE__*/React.createElement("div", {
|
|
36
41
|
style: {
|
|
37
42
|
marginRight: 8
|
|
38
43
|
}
|
|
39
|
-
}, /*#__PURE__*/React.createElement(Space,
|
|
44
|
+
}, /*#__PURE__*/React.createElement(Space, _objectSpread({}, spaceProps), fieldSchema.mapProperties(function (schema, key) {
|
|
40
45
|
return /*#__PURE__*/React.createElement(RecursionField, {
|
|
41
46
|
key: key,
|
|
42
47
|
name: key,
|
|
43
48
|
schema: schema
|
|
44
49
|
});
|
|
45
|
-
}))),
|
|
50
|
+
}))), /*#__PURE__*/React.createElement(InitializerComponent, null)));
|
|
46
51
|
}
|
|
47
52
|
var hasActions = Object.keys((_fieldSchema$properti = fieldSchema.properties) !== null && _fieldSchema$properti !== void 0 ? _fieldSchema$properti : {}).length > 0;
|
|
48
|
-
return /*#__PURE__*/React.createElement("div", _objectSpread({
|
|
53
|
+
return /*#__PURE__*/React.createElement("div", _objectSpread(_objectSpread({
|
|
49
54
|
style: !designable && !hasActions ? undefined : _objectSpread({
|
|
50
55
|
display: 'flex',
|
|
51
56
|
justifyContent: 'space-between',
|
|
@@ -53,7 +58,9 @@ export var ActionBar = observer(function (props) {
|
|
|
53
58
|
overflowX: 'auto',
|
|
54
59
|
flexShrink: 0
|
|
55
60
|
}, style)
|
|
56
|
-
}, others),
|
|
61
|
+
}, others), {}, {
|
|
62
|
+
className: cx(others.className, 'nb-action-bar')
|
|
63
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
57
64
|
className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-space:last-child {\n margin-left: 8px;\n }\n "]))),
|
|
58
65
|
style: {
|
|
59
66
|
display: 'flex',
|
|
@@ -61,7 +68,7 @@ export var ActionBar = observer(function (props) {
|
|
|
61
68
|
alignItems: 'center',
|
|
62
69
|
width: '100%'
|
|
63
70
|
}
|
|
64
|
-
}, /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(Space,
|
|
71
|
+
}, /*#__PURE__*/React.createElement(DndContext, null, /*#__PURE__*/React.createElement(Space, _objectSpread({}, spaceProps), fieldSchema.mapProperties(function (schema, key) {
|
|
65
72
|
if (schema['x-align'] !== 'left') {
|
|
66
73
|
return null;
|
|
67
74
|
}
|
|
@@ -70,7 +77,7 @@ export var ActionBar = observer(function (props) {
|
|
|
70
77
|
name: key,
|
|
71
78
|
schema: schema
|
|
72
79
|
});
|
|
73
|
-
})), /*#__PURE__*/React.createElement(Space,
|
|
80
|
+
})), /*#__PURE__*/React.createElement(Space, _objectSpread({}, spaceProps), fieldSchema.mapProperties(function (schema, key) {
|
|
74
81
|
if (schema['x-align'] === 'left') {
|
|
75
82
|
return null;
|
|
76
83
|
}
|
|
@@ -79,5 +86,5 @@ export var ActionBar = observer(function (props) {
|
|
|
79
86
|
name: key,
|
|
80
87
|
schema: schema
|
|
81
88
|
});
|
|
82
|
-
})))),
|
|
89
|
+
})))), /*#__PURE__*/React.createElement(InitializerComponent, null));
|
|
83
90
|
});
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { observer, useField, useFieldSchema } from '@formily/react';
|
|
2
|
+
import React, { useMemo } from 'react';
|
|
3
|
+
import { useCollectionManager } from '../../../collection-manager';
|
|
4
|
+
import { AssociationFieldContext } from './context';
|
|
5
|
+
export var AssociationFieldProvider = observer(function (props) {
|
|
6
|
+
var _fieldSchema$xCompon2;
|
|
7
|
+
var field = useField();
|
|
8
|
+
var _useCollectionManager = useCollectionManager(),
|
|
9
|
+
getCollectionJoinField = _useCollectionManager.getCollectionJoinField,
|
|
10
|
+
getCollection = _useCollectionManager.getCollection;
|
|
11
|
+
var fieldSchema = useFieldSchema();
|
|
12
|
+
var collectionField = useMemo(function () {
|
|
13
|
+
return getCollectionJoinField(fieldSchema['x-collection-field']);
|
|
14
|
+
}, [fieldSchema['x-collection-field'], fieldSchema.name]);
|
|
15
|
+
var isFileCollection = useMemo(function () {
|
|
16
|
+
var _getCollection;
|
|
17
|
+
return ((_getCollection = getCollection(collectionField === null || collectionField === void 0 ? void 0 : collectionField.target)) === null || _getCollection === void 0 ? void 0 : _getCollection.template) === 'file';
|
|
18
|
+
}, [fieldSchema['x-collection-field']]);
|
|
19
|
+
var currentMode = useMemo(function () {
|
|
20
|
+
var _fieldSchema$xCompon;
|
|
21
|
+
return ((_fieldSchema$xCompon = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon === void 0 ? void 0 : _fieldSchema$xCompon.mode) || (isFileCollection ? 'FileManager' : 'Select');
|
|
22
|
+
}, [(_fieldSchema$xCompon2 = fieldSchema['x-component-props']) === null || _fieldSchema$xCompon2 === void 0 ? void 0 : _fieldSchema$xCompon2.mode]);
|
|
23
|
+
return collectionField ? /*#__PURE__*/React.createElement(AssociationFieldContext.Provider, {
|
|
24
|
+
value: {
|
|
25
|
+
options: collectionField,
|
|
26
|
+
field: field,
|
|
27
|
+
currentMode: currentMode
|
|
28
|
+
}
|
|
29
|
+
}, props.children) : null;
|
|
30
|
+
});
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RemoteSelectProps } from '../remote-select';
|
|
3
|
+
export declare type AssociationSelectProps<P = any> = RemoteSelectProps<P> & {
|
|
4
|
+
action?: string;
|
|
5
|
+
multiple?: boolean;
|
|
6
|
+
};
|
|
7
|
+
interface AssociationSelectInterface {
|
|
8
|
+
(props: any): React.ReactElement;
|
|
9
|
+
Designer: React.FC;
|
|
10
|
+
FilterDesigner: React.FC;
|
|
11
|
+
}
|
|
12
|
+
export declare const AssociationSelect: AssociationSelectInterface;
|
|
13
|
+
export declare const AssociationSelectReadPretty: React.ForwardRefExoticComponent<Pick<Partial<any>, string | number | symbol> & React.RefAttributes<unknown>>;
|
|
14
|
+
export {};
|