@nocobase/client 0.9.3-alpha.1 → 0.9.4-alpha.2
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/hooks/index.js +81 -60
- 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 +1 -3
- package/es/collection-manager/Configuration/ConfigurationTabs.js +7 -6
- package/es/collection-manager/hooks/useCollection.d.ts +1 -1
- package/es/collection-manager/hooks/useCollectionDataSource.js +4 -4
- package/es/collection-manager/interfaces/m2m.js +1 -1
- package/es/collection-manager/interfaces/m2o.js +1 -1
- package/es/collection-manager/interfaces/o2m.js +1 -1
- package/es/collection-manager/interfaces/o2o.js +2 -2
- package/es/collection-manager/templates/expression.js +1 -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 +16 -1
- package/es/locale/en_US.js +17 -2
- package/es/locale/es_ES.d.ts +692 -0
- package/es/locale/es_ES.js +691 -0
- package/es/locale/ja_JP.d.ts +5 -1
- package/es/locale/ja_JP.js +6 -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 +25 -2
- package/es/locale/zh_CN.js +26 -3
- package/es/pm/PluginManagerLink.js +22 -14
- 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 +6 -3
- package/es/schema-component/antd/action/Action.Drawer.js +5 -2
- package/es/schema-component/antd/action/Action.js +2 -2
- package/es/schema-component/antd/action/ActionBar.js +25 -18
- package/es/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -2
- package/es/schema-component/antd/association-field/AssociationFieldProvider.js +62 -9
- package/es/schema-component/antd/association-field/AssociationSelect.js +10 -65
- package/es/schema-component/antd/association-field/Editable.d.ts +1 -1
- package/es/schema-component/antd/association-field/Editable.js +32 -40
- package/es/schema-component/antd/association-field/InternalNester.js +4 -3
- package/es/schema-component/antd/association-field/InternalPicker.js +29 -60
- package/es/schema-component/antd/association-field/InternalViewer.js +9 -12
- package/es/schema-component/antd/association-field/Nester.js +19 -21
- package/es/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
- package/es/schema-component/antd/association-field/ReadPretty.js +9 -25
- 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 +5 -2
- package/es/schema-component/antd/association-field/context.js +1 -1
- package/es/schema-component/antd/association-field/hooks.d.ts +3 -0
- package/es/schema-component/antd/association-field/hooks.js +10 -10
- 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/filter/FilterAction.js +2 -2
- package/es/schema-component/antd/form/Form.js +4 -4
- package/es/schema-component/antd/form-item/FormItem.js +126 -145
- package/es/schema-component/antd/form-item/SchemaSettingOptions.js +3 -3
- 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 +42 -12
- 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/icon-picker/IconPicker.js +2 -2
- package/es/schema-component/antd/index.d.ts +2 -0
- package/es/schema-component/antd/index.js +2 -0
- package/es/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
- 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/remote-select/RemoteSelect.js +12 -10
- package/es/schema-component/antd/select/Select.js +15 -4
- package/es/schema-component/antd/table/Table.Void.Designer.js +1 -0
- 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/variable/Input.js +6 -3
- package/es/schema-component/common/dnd-context/index.js +2 -2
- package/es/schema-component/common/sortable-item/SortableItem.js +3 -4
- package/es/schema-component/core/SchemaComponentProvider.js +2 -2
- 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 +1 -0
- package/es/schema-initializer/components/CreateRecordAction.js +51 -30
- 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/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/index.d.ts +3 -1
- package/es/schema-initializer/items/index.js +4 -2
- package/es/schema-initializer/utils.d.ts +112 -0
- package/es/schema-initializer/utils.js +206 -32
- 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/AsDefaultTemplate.js +1 -1
- package/es/schema-settings/DataTemplates/components/DataTemplateTitle.js +9 -13
- 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/SchemaSettings.d.ts +1 -1
- package/es/schema-settings/SchemaSettings.js +54 -30
- 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/settings-form/SettingsForm.js +2 -2
- package/es/user/CurrentUser.js +120 -12
- 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/hooks/index.js +80 -59
- 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 +1 -3
- package/lib/collection-manager/Configuration/ConfigurationTabs.js +7 -6
- package/lib/collection-manager/hooks/useCollection.d.ts +1 -1
- package/lib/collection-manager/hooks/useCollectionDataSource.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/o2m.js +1 -1
- package/lib/collection-manager/interfaces/o2o.js +2 -2
- package/lib/collection-manager/templates/expression.js +1 -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 +16 -1
- package/lib/locale/en_US.js +17 -2
- package/lib/locale/es_ES.d.ts +692 -0
- package/lib/locale/es_ES.js +698 -0
- package/lib/locale/ja_JP.d.ts +5 -1
- package/lib/locale/ja_JP.js +6 -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 +25 -2
- package/lib/locale/zh_CN.js +26 -3
- package/lib/pm/PluginManagerLink.js +21 -13
- 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 +6 -3
- package/lib/schema-component/antd/action/Action.Drawer.js +5 -2
- package/lib/schema-component/antd/action/Action.js +2 -2
- package/lib/schema-component/antd/action/ActionBar.js +23 -16
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.d.ts +2 -2
- package/lib/schema-component/antd/association-field/AssociationFieldProvider.js +62 -8
- package/lib/schema-component/antd/association-field/AssociationSelect.js +9 -66
- package/lib/schema-component/antd/association-field/Editable.d.ts +1 -1
- package/lib/schema-component/antd/association-field/Editable.js +33 -42
- package/lib/schema-component/antd/association-field/InternalNester.js +2 -2
- package/lib/schema-component/antd/association-field/InternalPicker.js +25 -56
- package/lib/schema-component/antd/association-field/InternalViewer.js +7 -10
- package/lib/schema-component/antd/association-field/Nester.js +19 -21
- package/lib/schema-component/antd/association-field/ReadPretty.d.ts +1 -1
- package/lib/schema-component/antd/association-field/ReadPretty.js +10 -27
- 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 +5 -2
- package/lib/schema-component/antd/association-field/context.js +1 -1
- package/lib/schema-component/antd/association-field/hooks.d.ts +3 -0
- package/lib/schema-component/antd/association-field/hooks.js +10 -10
- 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/filter/FilterAction.js +2 -2
- package/lib/schema-component/antd/form/Form.js +4 -4
- package/lib/schema-component/antd/form-item/FormItem.js +122 -141
- package/lib/schema-component/antd/form-item/SchemaSettingOptions.js +3 -3
- 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 +41 -11
- 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/icon-picker/IconPicker.js +2 -2
- package/lib/schema-component/antd/index.d.ts +2 -0
- package/lib/schema-component/antd/index.js +22 -0
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +2 -2
- 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/remote-select/RemoteSelect.js +11 -9
- package/lib/schema-component/antd/select/Select.js +14 -3
- package/lib/schema-component/antd/table/Table.Void.Designer.js +1 -0
- 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/variable/Input.js +6 -3
- package/lib/schema-component/common/dnd-context/index.js +2 -2
- package/lib/schema-component/common/sortable-item/SortableItem.js +3 -4
- package/lib/schema-component/core/SchemaComponentProvider.js +2 -2
- 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 +1 -0
- package/lib/schema-initializer/components/CreateRecordAction.js +54 -32
- 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/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/index.d.ts +3 -1
- package/lib/schema-initializer/items/index.js +33 -11
- package/lib/schema-initializer/utils.d.ts +112 -0
- package/lib/schema-initializer/utils.js +209 -33
- 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/AsDefaultTemplate.js +1 -1
- package/lib/schema-settings/DataTemplates/components/DataTemplateTitle.js +10 -14
- 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/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/settings-form/SettingsForm.js +2 -2
- package/lib/user/CurrentUser.js +118 -10
- package/package.json +5 -5
- 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,6 +554,9 @@ 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;
|
|
559
562
|
"Sub-details": string;
|
|
@@ -611,5 +614,6 @@ declare const _default: {
|
|
|
611
614
|
'Add template': string;
|
|
612
615
|
'Display data template selector': string;
|
|
613
616
|
'Form data templates': string;
|
|
617
|
+
"Data template": string;
|
|
614
618
|
};
|
|
615
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,6 +554,9 @@ 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": "サブフォーム",
|
|
559
562
|
"Sub-details": "サブリスト",
|
|
@@ -611,5 +614,6 @@ export default {
|
|
|
611
614
|
'Data fields': 'データフィールド',
|
|
612
615
|
'Add template': 'テンプレートを追加',
|
|
613
616
|
'Display data template selector': 'データテンプレートセレクターを表示',
|
|
614
|
-
'Form data templates': 'フォームデータテンプレート'
|
|
617
|
+
'Form data templates': 'フォームデータテンプレート',
|
|
618
|
+
"Data template": "データテンプレート"
|
|
615
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;
|
|
@@ -214,7 +225,6 @@ declare const _default: {
|
|
|
214
225
|
"Edit collection": string;
|
|
215
226
|
"Configure fields": string;
|
|
216
227
|
"Configure columns": string;
|
|
217
|
-
"Please select the records you want to delete": string;
|
|
218
228
|
"Edit field": string;
|
|
219
229
|
Override: string;
|
|
220
230
|
"Override field": string;
|
|
@@ -299,6 +309,10 @@ declare const _default: {
|
|
|
299
309
|
"Display association fields": string;
|
|
300
310
|
"Display field title": string;
|
|
301
311
|
"Field component": string;
|
|
312
|
+
"Allow multiple": string;
|
|
313
|
+
"Allow dissociate": string;
|
|
314
|
+
"Quick upload": string;
|
|
315
|
+
"Select file": string;
|
|
302
316
|
Subtable: string;
|
|
303
317
|
Subform: string;
|
|
304
318
|
"Sub-details": string;
|
|
@@ -520,7 +534,7 @@ declare const _default: {
|
|
|
520
534
|
'Skip required validation': string;
|
|
521
535
|
'Form values': string;
|
|
522
536
|
'Fields values': string;
|
|
523
|
-
'The field has
|
|
537
|
+
'The field has been deleted': string;
|
|
524
538
|
'When submitting the following fields, the saved values are': string;
|
|
525
539
|
'After successful submission': string;
|
|
526
540
|
Then: string;
|
|
@@ -730,5 +744,14 @@ declare const _default: {
|
|
|
730
744
|
'Add template': string;
|
|
731
745
|
'Display data template selector': string;
|
|
732
746
|
'Form data templates': string;
|
|
747
|
+
'Data template': string;
|
|
748
|
+
'Reload application': string;
|
|
749
|
+
'The application is reloading, please do not close the page.': string;
|
|
750
|
+
'Application reloading': string;
|
|
751
|
+
'Reboot application': string;
|
|
752
|
+
"Allows to clear cache, reboot application": string;
|
|
753
|
+
'The will interrupt service, it may take a few seconds to restart. Are you sure to continue?': string;
|
|
754
|
+
Reboot: string;
|
|
755
|
+
'Clear cache': string;
|
|
733
756
|
};
|
|
734
757
|
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": "选择数据源",
|
|
@@ -214,7 +225,6 @@ export default {
|
|
|
214
225
|
"Edit collection": "编辑数据表",
|
|
215
226
|
"Configure fields": "配置字段",
|
|
216
227
|
"Configure columns": "配置字段",
|
|
217
|
-
"Please select the records you want to delete": "请选择要删除的记录",
|
|
218
228
|
"Edit field": "编辑字段",
|
|
219
229
|
"Override": "重写",
|
|
220
230
|
"Override field": "重写字段",
|
|
@@ -299,6 +309,10 @@ export default {
|
|
|
299
309
|
"Display association fields": "显示关联表的字段",
|
|
300
310
|
"Display field title": "显示字段标题",
|
|
301
311
|
"Field component": "字段组件",
|
|
312
|
+
"Allow multiple": "允许添加/关联多条",
|
|
313
|
+
"Allow dissociate": "允许移除已关联记录",
|
|
314
|
+
"Quick upload": "快速上传",
|
|
315
|
+
"Select file": "选择文件",
|
|
302
316
|
"Subtable": "子表格",
|
|
303
317
|
"Subform": "子表单",
|
|
304
318
|
"Sub-details": "子详情",
|
|
@@ -520,7 +534,7 @@ export default {
|
|
|
520
534
|
'Skip required validation': '跳过必填校验',
|
|
521
535
|
'Form values': '表单值',
|
|
522
536
|
'Fields values': '字段值',
|
|
523
|
-
'The field has
|
|
537
|
+
'The field has been deleted': '字段已删除',
|
|
524
538
|
'When submitting the following fields, the saved values are': '提交以下字段时,保存的值为',
|
|
525
539
|
'After successful submission': '提交成功后',
|
|
526
540
|
'Then': '然后',
|
|
@@ -730,5 +744,14 @@ export default {
|
|
|
730
744
|
'Data fields': '数据字段',
|
|
731
745
|
'Add template': '添加模板',
|
|
732
746
|
'Display data template selector': '显示数据模板选择框',
|
|
733
|
-
'Form data templates': '表单数据模板'
|
|
747
|
+
'Form data templates': '表单数据模板',
|
|
748
|
+
'Data template': '数据模板',
|
|
749
|
+
'Reload application': '重载应用',
|
|
750
|
+
'The application is reloading, please do not close the page.': '应用正在重新加载,请勿关闭页面。',
|
|
751
|
+
'Application reloading': '应用重新加载中',
|
|
752
|
+
'Reboot application': '重启应用',
|
|
753
|
+
"Allows to clear cache, reboot application": "允许清除缓存,重启应用",
|
|
754
|
+
'The will interrupt service, it may take a few seconds to restart. Are you sure to continue?': '重启将会中断当前服务,这个过程可能需要一点时间,确定要继续吗?',
|
|
755
|
+
'Reboot': '重启',
|
|
756
|
+
'Clear cache': '清除缓存'
|
|
734
757
|
};
|
|
@@ -1,4 +1,8 @@
|
|
|
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
|
+
function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
|
|
3
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
+
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
|
+
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
2
6
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
3
7
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
8
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -11,7 +15,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
11
15
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
12
16
|
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); }
|
|
13
17
|
import { ApiOutlined, SettingOutlined } from '@ant-design/icons';
|
|
14
|
-
import { Button, Dropdown,
|
|
18
|
+
import { Button, Dropdown, Tooltip } from 'antd';
|
|
15
19
|
import React, { useContext, useState } from 'react';
|
|
16
20
|
import { useTranslation } from 'react-i18next';
|
|
17
21
|
import { useHistory } from 'react-router-dom';
|
|
@@ -66,19 +70,23 @@ export var SettingsCenterDropdown = function SettingsCenterDropdown() {
|
|
|
66
70
|
}
|
|
67
71
|
}, /*#__PURE__*/React.createElement(Dropdown, {
|
|
68
72
|
placement: "bottom",
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
73
|
+
menu: {
|
|
74
|
+
items: [].concat(_toConsumableArray(bookmarkTabs.map(function (tab) {
|
|
75
|
+
return {
|
|
76
|
+
key: "/admin/settings/".concat(tab.path),
|
|
77
|
+
label: compile(tab.title)
|
|
78
|
+
};
|
|
79
|
+
})), [{
|
|
80
|
+
type: 'divider'
|
|
81
|
+
}, {
|
|
82
|
+
key: '/admin/settings',
|
|
83
|
+
label: t('All plugin settings')
|
|
84
|
+
}]),
|
|
85
|
+
onClick: function onClick(_ref) {
|
|
86
|
+
var key = _ref.key;
|
|
87
|
+
history.push(key);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
82
90
|
}, /*#__PURE__*/React.createElement(Button, {
|
|
83
91
|
icon: /*#__PURE__*/React.createElement(SettingOutlined, null)
|
|
84
92
|
})));
|
|
@@ -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;
|
|
@@ -69,6 +69,8 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
69
69
|
var isLinkageAction = linkageAction || isAction;
|
|
70
70
|
var isChildCollectionAction = getChildrenCollections(name).length > 0 && fieldSchema['x-action'] === 'create';
|
|
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: {
|
|
@@ -287,7 +290,7 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
287
290
|
}
|
|
288
291
|
}), isChildCollectionAction && /*#__PURE__*/React.createElement(SchemaSettings.EnableChildCollections, {
|
|
289
292
|
collectionName: name
|
|
290
|
-
}), /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
293
|
+
}), !isDelete && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
291
294
|
removeParentsIfNoChildren: true,
|
|
292
295
|
breakRemoveOn: function breakRemoveOn(s) {
|
|
293
296
|
return s['x-component'] === 'Space' || s['x-component'].endsWith('ActionBar');
|
|
@@ -295,5 +298,5 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
295
298
|
confirm: {
|
|
296
299
|
title: t('Delete action')
|
|
297
300
|
}
|
|
298
|
-
})));
|
|
301
|
+
}))));
|
|
299
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,11 +45,11 @@ 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,
|
|
49
|
-
|
|
52
|
+
open: visible,
|
|
50
53
|
onClose: function onClose() {
|
|
51
54
|
return setVisible(false, true);
|
|
52
55
|
},
|
|
@@ -148,8 +148,8 @@ Action.Popover = observer(function (props) {
|
|
|
148
148
|
setVisible = _useActionContext.setVisible;
|
|
149
149
|
return /*#__PURE__*/React.createElement(Popover, _objectSpread(_objectSpread({}, props), {}, {
|
|
150
150
|
destroyTooltipOnHide: true,
|
|
151
|
-
|
|
152
|
-
|
|
151
|
+
open: visible,
|
|
152
|
+
onOpenChange: function onOpenChange(visible) {
|
|
153
153
|
setVisible(visible);
|
|
154
154
|
},
|
|
155
155
|
content: props.children
|
|
@@ -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
|
});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export declare
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export declare const AssociationFieldProvider: React.MemoExoticComponent<React.FunctionComponent<unknown>>;
|