@nocobase/client 0.7.0-alpha.82 → 0.7.1-alpha.4
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/.umirc.ts +24 -0
- package/es/antd-config-provider/index.js +5 -4
- package/es/api-client/APIClient.d.ts +2 -0
- package/es/api-client/APIClient.js +42 -2
- package/es/application/Application.d.ts +23 -0
- package/es/application/Application.js +176 -0
- package/es/application/index.d.ts +1 -0
- package/es/application/index.js +1 -0
- package/es/block-provider/BlockProvider.js +27 -11
- package/es/block-provider/TableBlockProvider.d.ts +2 -1
- package/es/block-provider/TableBlockProvider.js +90 -23
- package/es/block-provider/TableFieldProvider.d.ts +1 -0
- package/es/block-provider/TableFieldProvider.js +5 -2
- package/es/block-provider/hooks/index.d.ts +3 -0
- package/es/block-provider/hooks/index.js +307 -166
- package/es/collection-manager/CollectionField.js +8 -1
- package/es/collection-manager/Configuration/AddFieldAction.js +53 -24
- package/es/collection-manager/Configuration/AddSubFieldAction.js +3 -2
- package/es/collection-manager/Configuration/ConfigurationTable.js +32 -6
- package/es/collection-manager/Configuration/EditFieldAction.js +44 -15
- package/es/collection-manager/Configuration/EditSubFieldAction.js +3 -2
- package/es/collection-manager/Configuration/components/FieldSummary.d.ts +2 -0
- package/es/collection-manager/Configuration/components/FieldSummary.js +32 -0
- package/es/collection-manager/Configuration/components/index.d.ts +7 -0
- package/es/collection-manager/Configuration/components/index.js +121 -0
- package/es/collection-manager/Configuration/interfaces.js +1 -0
- package/es/collection-manager/Configuration/schemas/collectionFields.js +4 -0
- package/es/collection-manager/Configuration/schemas/collections.js +17 -1
- package/es/collection-manager/hooks/useCollectionManager.d.ts +2 -1
- package/es/collection-manager/hooks/useCollectionManager.js +42 -19
- package/es/collection-manager/index.d.ts +1 -0
- package/es/collection-manager/index.js +1 -0
- package/es/collection-manager/interfaces/attachment.js +1 -1
- package/es/collection-manager/interfaces/chinaRegion.js +2 -2
- package/es/collection-manager/interfaces/components/index.d.ts +6 -0
- package/es/collection-manager/interfaces/components/index.js +30 -0
- package/es/collection-manager/interfaces/datetime.js +10 -1
- package/es/collection-manager/interfaces/formula.d.ts +2 -0
- package/es/collection-manager/interfaces/formula.js +74 -0
- package/es/collection-manager/interfaces/index.d.ts +5 -0
- package/es/collection-manager/interfaces/index.js +6 -1
- package/es/collection-manager/interfaces/linkTo.js +12 -11
- package/es/collection-manager/interfaces/m2m.d.ts +2 -0
- package/es/collection-manager/interfaces/m2m.js +251 -0
- package/es/collection-manager/interfaces/m2o.d.ts +2 -0
- package/es/collection-manager/interfaces/m2o.js +174 -0
- package/es/collection-manager/interfaces/o2m.d.ts +2 -0
- package/es/collection-manager/interfaces/o2m.js +238 -0
- package/es/collection-manager/interfaces/o2o.d.ts +4 -0
- package/es/collection-manager/interfaces/o2o.js +518 -0
- package/es/collection-manager/interfaces/percent.js +7 -7
- package/es/collection-manager/interfaces/phone.js +4 -1
- package/es/collection-manager/interfaces/properties/index.d.ts +1 -0
- package/es/collection-manager/interfaces/properties/index.js +31 -2
- package/es/i18n/i18n.js +6 -6
- package/es/index.d.ts +1 -2
- package/es/index.js +1 -2
- package/es/locale/en_US.d.ts +293 -29
- package/es/locale/en_US.js +297 -34
- package/es/locale/index.d.ts +7 -751
- package/es/locale/index.js +20 -3
- package/es/locale/zh_CN.d.ts +107 -5
- package/es/locale/zh_CN.js +110 -7
- package/es/schema-component/antd/action/Action.Designer.js +34 -15
- package/es/schema-component/antd/action/Action.Drawer.js +1 -1
- package/es/schema-component/antd/action/utils.d.ts +2 -0
- package/es/schema-component/antd/action/utils.js +60 -0
- package/es/schema-component/antd/calendar/Calendar.Designer.js +5 -3
- package/es/schema-component/antd/cascader/Cascader.js +1 -1
- package/es/schema-component/antd/date-picker/ReadPretty.js +15 -5
- package/es/schema-component/antd/date-picker/util.d.ts +13 -1
- package/es/schema-component/antd/date-picker/util.js +110 -3
- package/es/schema-component/antd/filter/FilterItem.js +7 -7
- package/es/schema-component/antd/form-item/FormItem.js +80 -1
- package/es/schema-component/antd/form-v2/Form.Designer.js +20 -9
- package/es/schema-component/antd/form-v2/Form.js +2 -2
- package/es/schema-component/antd/formula-input/Compute.d.ts +3 -0
- package/es/schema-component/antd/formula-input/Compute.js +55 -0
- package/es/schema-component/antd/formula-input/FormulaInput.d.ts +3 -0
- package/es/schema-component/antd/formula-input/FormulaInput.js +173 -0
- package/es/schema-component/antd/formula-input/index.d.ts +1 -0
- package/es/schema-component/antd/formula-input/index.js +7 -0
- package/es/schema-component/antd/g2plot/G2Plot.d.ts +8 -0
- package/es/schema-component/antd/g2plot/G2Plot.js +123 -0
- package/es/schema-component/antd/g2plot/G2PlotDesigner.d.ts +1 -0
- package/es/schema-component/antd/g2plot/G2PlotDesigner.js +127 -0
- package/es/schema-component/antd/g2plot/index.d.ts +1 -0
- package/es/schema-component/antd/g2plot/index.js +1 -0
- package/es/schema-component/antd/grid/Grid.js +3 -3
- package/es/schema-component/antd/index.d.ts +3 -1
- package/es/schema-component/antd/index.js +3 -1
- package/es/schema-component/antd/input/EllipsisWithTooltip.d.ts +8 -1
- package/es/schema-component/antd/input/EllipsisWithTooltip.js +9 -3
- package/es/schema-component/antd/input/ReadPretty.js +5 -3
- package/es/schema-component/antd/kanban/Kanban.Card.Designer.js +1 -1
- package/es/schema-component/antd/kanban/Kanban.Designer.js +5 -3
- package/es/schema-component/antd/markdown/Markdown.d.ts +1 -0
- package/es/schema-component/antd/markdown/Markdown.js +3 -1
- package/es/schema-component/antd/markdown/style.less +4 -0
- package/es/schema-component/antd/percent/Percent.d.ts +2 -0
- package/es/{action-logs/ActionLogBlockInitializer.js → schema-component/antd/percent/Percent.js} +20 -25
- package/es/schema-component/antd/percent/index.d.ts +1 -0
- package/es/schema-component/antd/percent/index.js +1 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +7 -5
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +43 -26
- package/es/schema-component/antd/table-v2/Table.Column.Designer.js +18 -4
- package/es/schema-component/antd/table-v2/Table.js +16 -2
- package/es/schema-component/antd/table-v2/TableBlockDesigner.js +7 -4
- package/es/schema-initializer/SchemaInitializer.js +22 -16
- package/es/schema-initializer/SchemaInitializerProvider.d.ts +1 -0
- package/es/schema-initializer/SchemaInitializerProvider.js +1 -0
- package/es/schema-initializer/buttons/BlockInitializers.d.ts +184 -2
- package/es/schema-initializer/buttons/BlockInitializers.js +108 -2
- package/es/schema-initializer/buttons/CreateFormBlockInitializers.js +1 -1
- package/es/schema-initializer/buttons/FormActionInitializers.d.ts +84 -0
- package/es/schema-initializer/buttons/FormActionInitializers.js +66 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +28 -0
- package/es/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +22 -0
- package/es/schema-initializer/buttons/RecordBlockInitializers.js +70 -5
- package/es/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -1
- package/es/schema-initializer/buttons/TableActionColumnInitializers.js +21 -0
- package/es/schema-initializer/buttons/TableSelectorInitializers.js +1 -1
- package/es/schema-initializer/buttons/chart-config/area.d.ts +11 -0
- package/es/schema-initializer/buttons/chart-config/area.js +179 -0
- package/es/schema-initializer/buttons/chart-config/bar.d.ts +12 -0
- package/es/schema-initializer/buttons/chart-config/bar.js +24 -0
- package/es/schema-initializer/buttons/chart-config/column.d.ts +29 -0
- package/es/schema-initializer/buttons/chart-config/column.js +52 -0
- package/es/schema-initializer/buttons/chart-config/index.d.ts +5 -0
- package/es/schema-initializer/buttons/chart-config/index.js +5 -0
- package/es/schema-initializer/buttons/chart-config/line.d.ts +12 -0
- package/es/schema-initializer/buttons/chart-config/line.js +37 -0
- package/es/schema-initializer/buttons/chart-config/pie.d.ts +22 -0
- package/es/schema-initializer/buttons/chart-config/pie.js +37 -0
- package/es/schema-initializer/items/index.d.ts +5 -0
- package/es/schema-initializer/items/index.js +472 -46
- package/es/schema-initializer/utils.d.ts +6 -3
- package/es/schema-initializer/utils.js +23 -12
- package/es/schema-settings/SchemaSettings.js +114 -29
- package/es/schema-templates/SchemaTemplateManagerProvider.d.ts +1 -1
- package/es/schema-templates/SchemaTemplateManagerProvider.js +1 -0
- package/es/system-settings/SystemSettingsShortcut.js +19 -8
- package/es/user/ChangePassword.js +1 -0
- package/es/user/CurrentUser.js +25 -5
- package/es/user/EditProfile.js +1 -0
- package/es/user/LanguageSettings.js +24 -8
- package/es/user/SigninPage.d.ts +3 -0
- package/es/user/SigninPage.js +2 -4
- package/es/user/SignupPage.d.ts +3 -0
- package/es/user/SignupPage.js +2 -4
- package/es/user/SwitchRole.js +1 -0
- package/es/workflow/ExecutionResourceProvider.js +1 -1
- package/es/workflow/WorkflowCanvas.js +16 -15
- package/es/workflow/calculators.js +12 -6
- package/es/workflow/components/Duration.d.ts +5 -0
- package/es/workflow/components/Duration.js +61 -0
- package/es/workflow/nodes/condition.js +1 -1
- package/es/workflow/nodes/create.d.ts +3 -0
- package/es/workflow/nodes/delay.d.ts +35 -0
- package/es/workflow/nodes/delay.js +37 -0
- package/es/workflow/nodes/destroy.d.ts +3 -0
- package/es/workflow/nodes/index.d.ts +1 -1
- package/es/workflow/nodes/index.js +11 -8
- package/es/workflow/nodes/query.d.ts +3 -0
- package/es/workflow/nodes/update.d.ts +3 -0
- package/es/workflow/schemas/collection.d.ts +3 -0
- package/es/workflow/schemas/collection.js +4 -1
- package/es/workflow/schemas/executions.d.ts +15 -0
- package/es/workflow/schemas/executions.js +26 -1
- package/es/workflow/schemas/workflows.js +2 -2
- package/es/workflow/triggers/collection.d.ts +5 -0
- package/es/workflow/triggers/collection.js +13 -3
- package/es/workflow/triggers/index.d.ts +2 -2
- package/es/workflow/triggers/index.js +23 -11
- package/es/workflow/triggers/schedule/DateFieldsSelect.d.ts +2 -0
- package/es/workflow/triggers/schedule/DateFieldsSelect.js +39 -0
- package/es/workflow/triggers/schedule/EndsByField.d.ts +5 -0
- package/es/workflow/triggers/schedule/EndsByField.js +57 -0
- package/es/workflow/triggers/schedule/OnField.d.ts +5 -0
- package/es/workflow/triggers/schedule/OnField.js +87 -0
- package/es/workflow/triggers/schedule/RepeatField.d.ts +5 -0
- package/es/workflow/triggers/schedule/RepeatField.js +131 -0
- package/es/workflow/triggers/schedule/ScheduleConfig.d.ts +1 -0
- package/es/workflow/triggers/schedule/ScheduleConfig.js +225 -0
- package/es/workflow/triggers/schedule/index.d.ts +25 -0
- package/es/workflow/triggers/schedule/index.js +77 -0
- package/es/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +34 -0
- package/es/workflow/triggers/schedule/locale/Cron.zh-CN.js +37 -0
- package/lib/antd-config-provider/index.js +6 -6
- package/lib/api-client/APIClient.d.ts +2 -0
- package/lib/api-client/APIClient.js +46 -2
- package/lib/application/Application.d.ts +23 -0
- package/lib/application/Application.js +207 -0
- package/lib/application/index.d.ts +1 -0
- package/lib/application/index.js +13 -0
- package/lib/block-provider/BlockProvider.js +26 -10
- package/lib/block-provider/TableBlockProvider.d.ts +2 -1
- package/lib/block-provider/TableBlockProvider.js +94 -20
- package/lib/block-provider/TableFieldProvider.d.ts +1 -0
- package/lib/block-provider/TableFieldProvider.js +7 -3
- package/lib/block-provider/hooks/index.d.ts +3 -0
- package/lib/block-provider/hooks/index.js +316 -167
- package/lib/collection-manager/CollectionField.js +8 -1
- package/lib/collection-manager/Configuration/AddFieldAction.js +54 -24
- package/lib/collection-manager/Configuration/AddSubFieldAction.js +4 -2
- package/lib/collection-manager/Configuration/ConfigurationTable.js +34 -6
- package/lib/collection-manager/Configuration/EditFieldAction.js +44 -14
- package/lib/collection-manager/Configuration/EditSubFieldAction.js +4 -2
- package/lib/collection-manager/Configuration/components/FieldSummary.d.ts +2 -0
- package/lib/collection-manager/Configuration/components/FieldSummary.js +49 -0
- package/lib/collection-manager/Configuration/components/index.d.ts +7 -0
- package/lib/collection-manager/Configuration/components/index.js +142 -0
- package/lib/collection-manager/Configuration/interfaces.js +1 -0
- package/lib/collection-manager/Configuration/schemas/collectionFields.js +4 -0
- package/lib/collection-manager/Configuration/schemas/collections.js +18 -1
- package/lib/collection-manager/hooks/useCollectionManager.d.ts +2 -1
- package/lib/collection-manager/hooks/useCollectionManager.js +43 -20
- package/lib/collection-manager/index.d.ts +1 -0
- package/lib/collection-manager/index.js +28 -0
- package/lib/collection-manager/interfaces/attachment.js +1 -1
- package/lib/collection-manager/interfaces/chinaRegion.js +2 -2
- package/lib/collection-manager/interfaces/components/index.d.ts +6 -0
- package/lib/collection-manager/interfaces/components/index.js +58 -0
- package/lib/collection-manager/interfaces/datetime.js +10 -1
- package/lib/collection-manager/interfaces/formula.d.ts +2 -0
- package/lib/collection-manager/interfaces/formula.js +83 -0
- package/lib/collection-manager/interfaces/index.d.ts +5 -0
- package/lib/collection-manager/interfaces/index.js +65 -0
- package/lib/collection-manager/interfaces/linkTo.js +12 -11
- package/lib/collection-manager/interfaces/m2m.d.ts +2 -0
- package/lib/collection-manager/interfaces/m2m.js +262 -0
- package/lib/collection-manager/interfaces/m2o.d.ts +2 -0
- package/lib/collection-manager/interfaces/m2o.js +184 -0
- package/lib/collection-manager/interfaces/o2m.d.ts +2 -0
- package/lib/collection-manager/interfaces/o2m.js +247 -0
- package/lib/collection-manager/interfaces/o2o.d.ts +4 -0
- package/lib/collection-manager/interfaces/o2o.js +530 -0
- package/lib/collection-manager/interfaces/percent.js +7 -7
- package/lib/collection-manager/interfaces/phone.js +4 -1
- package/lib/collection-manager/interfaces/properties/index.d.ts +1 -0
- package/lib/collection-manager/interfaces/properties/index.js +34 -3
- package/lib/i18n/i18n.js +7 -7
- package/lib/index.d.ts +1 -2
- package/lib/index.js +2 -26
- package/lib/locale/en_US.d.ts +293 -29
- package/lib/locale/en_US.js +297 -34
- package/lib/locale/index.d.ts +7 -751
- package/lib/locale/index.js +26 -7
- package/lib/locale/zh_CN.d.ts +107 -5
- package/lib/locale/zh_CN.js +110 -7
- package/lib/schema-component/antd/action/Action.Designer.js +35 -16
- package/lib/schema-component/antd/action/Action.Drawer.js +1 -1
- package/lib/schema-component/antd/action/utils.d.ts +2 -0
- package/lib/schema-component/antd/action/utils.js +67 -0
- package/lib/schema-component/antd/calendar/Calendar.Designer.js +5 -3
- package/lib/schema-component/antd/cascader/Cascader.js +1 -1
- package/lib/schema-component/antd/date-picker/ReadPretty.js +13 -3
- package/lib/schema-component/antd/date-picker/util.d.ts +13 -1
- package/lib/schema-component/antd/date-picker/util.js +118 -4
- package/lib/schema-component/antd/filter/FilterItem.js +8 -7
- package/lib/schema-component/antd/form-item/FormItem.js +81 -1
- package/lib/schema-component/antd/form-v2/Form.Designer.js +20 -9
- package/lib/schema-component/antd/form-v2/Form.js +3 -3
- package/lib/schema-component/antd/formula-input/Compute.d.ts +3 -0
- package/lib/schema-component/antd/formula-input/Compute.js +79 -0
- package/lib/schema-component/antd/formula-input/FormulaInput.d.ts +3 -0
- package/lib/schema-component/antd/formula-input/FormulaInput.js +197 -0
- package/lib/schema-component/antd/formula-input/index.d.ts +1 -0
- package/lib/schema-component/antd/formula-input/index.js +18 -0
- package/lib/schema-component/antd/g2plot/G2Plot.d.ts +8 -0
- package/lib/schema-component/antd/g2plot/G2Plot.js +148 -0
- package/lib/schema-component/antd/g2plot/G2PlotDesigner.d.ts +1 -0
- package/lib/schema-component/antd/g2plot/G2PlotDesigner.js +145 -0
- package/lib/schema-component/antd/g2plot/index.d.ts +1 -0
- package/lib/schema-component/antd/{chart → g2plot}/index.js +4 -4
- package/lib/schema-component/antd/grid/Grid.js +3 -3
- package/lib/schema-component/antd/index.d.ts +3 -1
- package/lib/schema-component/antd/index.js +39 -13
- package/lib/schema-component/antd/input/EllipsisWithTooltip.d.ts +8 -1
- package/lib/schema-component/antd/input/EllipsisWithTooltip.js +8 -4
- package/lib/schema-component/antd/input/ReadPretty.js +5 -5
- package/lib/schema-component/antd/kanban/Kanban.Card.Designer.js +1 -1
- package/lib/schema-component/antd/kanban/Kanban.Designer.js +5 -3
- package/lib/schema-component/antd/markdown/Markdown.d.ts +1 -0
- package/lib/schema-component/antd/markdown/Markdown.js +4 -1
- package/lib/schema-component/antd/markdown/style.less +4 -0
- package/lib/schema-component/antd/percent/Percent.d.ts +2 -0
- package/lib/{action-logs/ActionLogProvider.js → schema-component/antd/percent/Percent.js} +29 -22
- package/lib/schema-component/antd/percent/index.d.ts +1 -0
- package/lib/{slate → schema-component/antd/percent}/index.js +4 -4
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +7 -5
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +42 -25
- package/lib/schema-component/antd/table-v2/Table.Column.Designer.js +18 -4
- package/lib/schema-component/antd/table-v2/Table.js +16 -2
- package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +7 -4
- package/lib/schema-initializer/SchemaInitializer.js +22 -16
- package/lib/schema-initializer/SchemaInitializerProvider.d.ts +1 -0
- package/lib/schema-initializer/SchemaInitializerProvider.js +3 -1
- package/lib/schema-initializer/buttons/BlockInitializers.d.ts +184 -2
- package/lib/schema-initializer/buttons/BlockInitializers.js +114 -1
- package/lib/schema-initializer/buttons/CreateFormBlockInitializers.js +1 -1
- package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +84 -0
- package/lib/schema-initializer/buttons/FormActionInitializers.js +66 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.d.ts +28 -0
- package/lib/schema-initializer/buttons/ReadPrettyFormActionInitializers.js +22 -0
- package/lib/schema-initializer/buttons/RecordBlockInitializers.js +70 -5
- package/lib/schema-initializer/buttons/RecordFormBlockInitializers.js +1 -1
- package/lib/schema-initializer/buttons/TableActionColumnInitializers.js +21 -0
- package/lib/schema-initializer/buttons/TableSelectorInitializers.js +1 -1
- package/lib/schema-initializer/buttons/chart-config/area.d.ts +11 -0
- package/lib/schema-initializer/buttons/chart-config/area.js +186 -0
- package/lib/schema-initializer/buttons/chart-config/bar.d.ts +12 -0
- package/lib/schema-initializer/buttons/chart-config/bar.js +31 -0
- package/lib/schema-initializer/buttons/chart-config/column.d.ts +29 -0
- package/lib/schema-initializer/buttons/chart-config/column.js +59 -0
- package/lib/schema-initializer/buttons/chart-config/index.d.ts +5 -0
- package/lib/schema-initializer/buttons/chart-config/index.js +70 -0
- package/lib/schema-initializer/buttons/chart-config/line.d.ts +12 -0
- package/lib/schema-initializer/buttons/chart-config/line.js +44 -0
- package/lib/schema-initializer/buttons/chart-config/pie.d.ts +22 -0
- package/lib/schema-initializer/buttons/chart-config/pie.js +44 -0
- package/lib/schema-initializer/items/index.d.ts +5 -0
- package/lib/schema-initializer/items/index.js +488 -47
- package/lib/schema-initializer/utils.d.ts +6 -3
- package/lib/schema-initializer/utils.js +23 -12
- package/lib/schema-settings/SchemaSettings.js +113 -27
- package/lib/schema-templates/SchemaTemplateManagerProvider.d.ts +1 -1
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +1 -0
- package/lib/system-settings/SystemSettingsShortcut.js +23 -8
- package/lib/user/ChangePassword.js +1 -0
- package/lib/user/CurrentUser.js +25 -5
- package/lib/user/EditProfile.js +1 -0
- package/lib/user/LanguageSettings.js +26 -7
- package/lib/user/SigninPage.d.ts +3 -0
- package/lib/user/SigninPage.js +4 -2
- package/lib/user/SignupPage.d.ts +3 -0
- package/lib/user/SignupPage.js +4 -2
- package/lib/user/SwitchRole.js +1 -0
- package/lib/workflow/ExecutionResourceProvider.js +1 -1
- package/lib/workflow/WorkflowCanvas.js +17 -14
- package/lib/workflow/calculators.js +12 -6
- package/lib/workflow/components/Duration.d.ts +5 -0
- package/lib/workflow/components/Duration.js +74 -0
- package/lib/workflow/nodes/condition.js +1 -1
- package/lib/workflow/nodes/create.d.ts +3 -0
- package/lib/workflow/nodes/delay.d.ts +35 -0
- package/lib/workflow/nodes/delay.js +48 -0
- package/lib/workflow/nodes/destroy.d.ts +3 -0
- package/lib/workflow/nodes/index.d.ts +1 -1
- package/lib/workflow/nodes/index.js +15 -11
- package/lib/workflow/nodes/query.d.ts +3 -0
- package/lib/workflow/nodes/update.d.ts +3 -0
- package/lib/workflow/schemas/collection.d.ts +3 -0
- package/lib/workflow/schemas/collection.js +4 -1
- package/lib/workflow/schemas/executions.d.ts +15 -0
- package/lib/workflow/schemas/executions.js +26 -1
- package/lib/workflow/schemas/workflows.js +2 -2
- package/lib/workflow/triggers/collection.d.ts +5 -0
- package/lib/workflow/triggers/collection.js +14 -3
- package/lib/workflow/triggers/index.d.ts +2 -2
- package/lib/workflow/triggers/index.js +32 -18
- package/lib/workflow/triggers/schedule/DateFieldsSelect.d.ts +2 -0
- package/lib/{action-logs/ActionLogBlockInitializer.js → workflow/triggers/schedule/DateFieldsSelect.js} +31 -25
- package/lib/workflow/triggers/schedule/EndsByField.d.ts +5 -0
- package/lib/workflow/triggers/schedule/EndsByField.js +73 -0
- package/lib/workflow/triggers/schedule/OnField.d.ts +5 -0
- package/lib/workflow/triggers/schedule/OnField.js +105 -0
- package/lib/workflow/triggers/schedule/RepeatField.d.ts +5 -0
- package/lib/workflow/triggers/schedule/RepeatField.js +146 -0
- package/lib/workflow/triggers/schedule/ScheduleConfig.d.ts +1 -0
- package/lib/workflow/triggers/schedule/ScheduleConfig.js +250 -0
- package/lib/workflow/triggers/schedule/index.d.ts +25 -0
- package/lib/workflow/triggers/schedule/index.js +94 -0
- package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.d.ts +34 -0
- package/lib/workflow/triggers/schedule/locale/Cron.zh-CN.js +44 -0
- package/package.json +8 -7
- package/es/action-logs/ActionLog.Designer.d.ts +0 -1
- package/es/action-logs/ActionLog.Designer.js +0 -104
- package/es/action-logs/ActionLog.d.ts +0 -7
- package/es/action-logs/ActionLog.js +0 -63
- package/es/action-logs/ActionLogBlockInitializer.d.ts +0 -1
- package/es/action-logs/ActionLogProvider.d.ts +0 -1
- package/es/action-logs/ActionLogProvider.js +0 -24
- package/es/action-logs/index.d.ts +0 -3
- package/es/action-logs/index.js +0 -3
- package/es/action-logs/utils.d.ts +0 -363
- package/es/action-logs/utils.js +0 -313
- package/es/schema-component/antd/chart/Chart.d.ts +0 -1
- package/es/schema-component/antd/chart/Chart.js +0 -4
- package/es/schema-component/antd/chart/index.d.ts +0 -1
- package/es/schema-component/antd/chart/index.js +0 -1
- package/es/slate/RichText.d.ts +0 -1
- package/es/slate/RichText.js +0 -305
- package/es/slate/Slate.d.ts +0 -6
- package/es/slate/Slate.js +0 -40
- package/es/slate/components.d.ts +0 -20
- package/es/slate/components.js +0 -95
- package/es/slate/index.d.ts +0 -1
- package/es/slate/index.js +0 -1
- package/es/slate/index.less +0 -51
- package/es/slate/materialicons.woff2 +0 -0
- package/lib/action-logs/ActionLog.Designer.d.ts +0 -1
- package/lib/action-logs/ActionLog.Designer.js +0 -122
- package/lib/action-logs/ActionLog.d.ts +0 -7
- package/lib/action-logs/ActionLog.js +0 -80
- package/lib/action-logs/ActionLogBlockInitializer.d.ts +0 -1
- package/lib/action-logs/ActionLogProvider.d.ts +0 -1
- package/lib/action-logs/index.d.ts +0 -3
- package/lib/action-logs/index.js +0 -44
- package/lib/action-logs/utils.d.ts +0 -363
- package/lib/action-logs/utils.js +0 -323
- package/lib/schema-component/antd/chart/Chart.d.ts +0 -1
- package/lib/schema-component/antd/chart/Chart.js +0 -16
- package/lib/schema-component/antd/chart/index.d.ts +0 -1
- package/lib/slate/RichText.d.ts +0 -1
- package/lib/slate/RichText.js +0 -340
- package/lib/slate/Slate.d.ts +0 -6
- package/lib/slate/Slate.js +0 -56
- package/lib/slate/components.d.ts +0 -20
- package/lib/slate/components.js +0 -127
- package/lib/slate/index.d.ts +0 -1
- package/lib/slate/index.less +0 -51
- package/lib/slate/materialicons.woff2 +0 -0
- package/src/acl/ACLProvider.tsx +0 -167
- package/src/acl/ACLShortcut.tsx +0 -42
- package/src/acl/Configuration/MenuConfigure.tsx +0 -110
- package/src/acl/Configuration/RoleConfigure.tsx +0 -68
- package/src/acl/Configuration/RoleTable.tsx +0 -70
- package/src/acl/Configuration/RolesResourcesActions.tsx +0 -214
- package/src/acl/Configuration/ScopeSelect.tsx +0 -44
- package/src/acl/Configuration/StrategyActions.tsx +0 -117
- package/src/acl/Configuration/index.tsx +0 -6
- package/src/acl/Configuration/schemas/roleCollections.ts +0 -211
- package/src/acl/Configuration/schemas/roles.ts +0 -357
- package/src/acl/Configuration/schemas/scopes.ts +0 -358
- package/src/acl/Configuration/schemas/useRoleResourceValues.ts +0 -31
- package/src/acl/Configuration/schemas/useSaveRoleResourceAction.ts +0 -23
- package/src/acl/index.md +0 -12
- package/src/acl/index.tsx +0 -3
- package/src/action-logs/ActionLog.Designer.tsx +0 -86
- package/src/action-logs/ActionLog.tsx +0 -58
- package/src/action-logs/ActionLogBlockInitializer.tsx +0 -25
- package/src/action-logs/ActionLogProvider.tsx +0 -20
- package/src/action-logs/demos/demo1.tsx +0 -88
- package/src/action-logs/demos/mockData.ts +0 -285
- package/src/action-logs/index.md +0 -12
- package/src/action-logs/index.ts +0 -3
- package/src/action-logs/utils.ts +0 -303
- package/src/antd-config-provider/demos/demo1.tsx +0 -25
- package/src/antd-config-provider/index.md +0 -12
- package/src/antd-config-provider/index.tsx +0 -35
- package/src/api-client/APIClient.ts +0 -6
- package/src/api-client/APIClientProvider.tsx +0 -12
- package/src/api-client/__tests__/APIClient.test.tsx +0 -26
- package/src/api-client/context.ts +0 -4
- package/src/api-client/demos/demo1.tsx +0 -24
- package/src/api-client/demos/demo2.tsx +0 -23
- package/src/api-client/demos/demo3.tsx +0 -67
- package/src/api-client/hooks/assign.ts +0 -118
- package/src/api-client/hooks/index.ts +0 -4
- package/src/api-client/hooks/useAPIClient.ts +0 -6
- package/src/api-client/hooks/useRequest.ts +0 -63
- package/src/api-client/hooks/useResource.ts +0 -7
- package/src/api-client/index.md +0 -174
- package/src/api-client/index.tsx +0 -3
- package/src/application/__tests__/__snapshots__/compose.test.tsx.snap +0 -77
- package/src/application/__tests__/compose.test.tsx +0 -95
- package/src/application/compose.tsx +0 -18
- package/src/application/demos/demo1/Hello.tsx +0 -20
- package/src/application/demos/demo1/RouteSchemaComponent.tsx +0 -7
- package/src/application/demos/demo1/index.tsx +0 -23
- package/src/application/demos/demo1/routes.ts +0 -29
- package/src/application/demos/demo2/apiClient.ts +0 -10
- package/src/application/demos/demo2/index.tsx +0 -65
- package/src/application/demos/demo2/mock.ts +0 -198
- package/src/application/index.md +0 -14
- package/src/application/index.tsx +0 -1
- package/src/async-data-provider/demos/demo1.tsx +0 -22
- package/src/async-data-provider/demos/demo2.tsx +0 -50
- package/src/async-data-provider/demos/demo3.tsx +0 -85
- package/src/async-data-provider/index.md +0 -155
- package/src/async-data-provider/index.tsx +0 -25
- package/src/block-provider/BlockProvider.tsx +0 -193
- package/src/block-provider/BlockSchemaComponentProvider.tsx +0 -43
- package/src/block-provider/CalendarBlockProvider.tsx +0 -53
- package/src/block-provider/DetailsBlockProvider.tsx +0 -62
- package/src/block-provider/FormBlockProvider.tsx +0 -58
- package/src/block-provider/KanbanBlockProvider.tsx +0 -104
- package/src/block-provider/TableBlockProvider.tsx +0 -123
- package/src/block-provider/TableFieldProvider.tsx +0 -150
- package/src/block-provider/TableSelectorProvider.tsx +0 -100
- package/src/block-provider/hooks/index.ts +0 -333
- package/src/block-provider/index.tsx +0 -10
- package/src/board/Board.tsx +0 -294
- package/src/board/Card.tsx +0 -24
- package/src/board/CardAdder.tsx +0 -24
- package/src/board/CardForm.tsx +0 -44
- package/src/board/Column.tsx +0 -75
- package/src/board/ColumnAdder.tsx +0 -26
- package/src/board/ColumnForm.tsx +0 -27
- package/src/board/DefaultCard.tsx +0 -21
- package/src/board/DefaultColumnHeader.tsx +0 -72
- package/src/board/Kanban.tsx +0 -128
- package/src/board/demos/demo2.tsx +0 -122
- package/src/board/helpers.ts +0 -91
- package/src/board/index.md +0 -14
- package/src/board/index.ts +0 -2
- package/src/board/services.ts +0 -41
- package/src/board/style.less +0 -153
- package/src/board/utils.ts +0 -56
- package/src/board/withDroppable.tsx +0 -19
- package/src/china-region/index.tsx +0 -78
- package/src/collection-manager/CollectionField.tsx +0 -77
- package/src/collection-manager/CollectionFieldProvider.tsx +0 -19
- package/src/collection-manager/CollectionManagerProvider.tsx +0 -61
- package/src/collection-manager/CollectionManagerSchemaComponentProvider.tsx +0 -29
- package/src/collection-manager/CollectionManagerShortcut.tsx +0 -41
- package/src/collection-manager/CollectionProvider.tsx +0 -14
- package/src/collection-manager/Configuration/AddFieldAction.tsx +0 -148
- package/src/collection-manager/Configuration/AddSubFieldAction.tsx +0 -140
- package/src/collection-manager/Configuration/ConfigurationTable.tsx +0 -180
- package/src/collection-manager/Configuration/EditFieldAction.tsx +0 -120
- package/src/collection-manager/Configuration/EditSubFieldAction.tsx +0 -120
- package/src/collection-manager/Configuration/index.tsx +0 -4
- package/src/collection-manager/Configuration/interfaces.tsx +0 -48
- package/src/collection-manager/Configuration/schemas/collectionFields.ts +0 -204
- package/src/collection-manager/Configuration/schemas/collections.ts +0 -279
- package/src/collection-manager/ResourceActionProvider.tsx +0 -127
- package/src/collection-manager/action-hooks.ts +0 -325
- package/src/collection-manager/context.ts +0 -11
- package/src/collection-manager/demos/demo2.tsx +0 -124
- package/src/collection-manager/demos/demo3.tsx +0 -67
- package/src/collection-manager/demos/demo4.tsx +0 -164
- package/src/collection-manager/hooks/index.ts +0 -4
- package/src/collection-manager/hooks/useCollection.ts +0 -18
- package/src/collection-manager/hooks/useCollectionDataSource.ts +0 -17
- package/src/collection-manager/hooks/useCollectionField.ts +0 -24
- package/src/collection-manager/hooks/useCollectionManager.ts +0 -40
- package/src/collection-manager/index.md +0 -145
- package/src/collection-manager/index.tsx +0 -11
- package/src/collection-manager/interfaces/attachment.ts +0 -92
- package/src/collection-manager/interfaces/checkbox.ts +0 -24
- package/src/collection-manager/interfaces/checkboxGroup.ts +0 -27
- package/src/collection-manager/interfaces/chinaRegion.ts +0 -91
- package/src/collection-manager/interfaces/createdAt.ts +0 -30
- package/src/collection-manager/interfaces/createdBy.ts +0 -63
- package/src/collection-manager/interfaces/datetime.ts +0 -30
- package/src/collection-manager/interfaces/email.ts +0 -27
- package/src/collection-manager/interfaces/icon.ts +0 -22
- package/src/collection-manager/interfaces/id.ts +0 -47
- package/src/collection-manager/interfaces/index.ts +0 -27
- package/src/collection-manager/interfaces/input.ts +0 -32
- package/src/collection-manager/interfaces/linkTo.ts +0 -139
- package/src/collection-manager/interfaces/markdown.ts +0 -28
- package/src/collection-manager/interfaces/multipleSelect.ts +0 -31
- package/src/collection-manager/interfaces/number.ts +0 -45
- package/src/collection-manager/interfaces/password.ts +0 -22
- package/src/collection-manager/interfaces/percent.ts +0 -46
- package/src/collection-manager/interfaces/phone.ts +0 -27
- package/src/collection-manager/interfaces/properties/index.ts +0 -277
- package/src/collection-manager/interfaces/properties/operators.ts +0 -127
- package/src/collection-manager/interfaces/radioGroup.ts +0 -27
- package/src/collection-manager/interfaces/richText.ts +0 -29
- package/src/collection-manager/interfaces/select.ts +0 -28
- package/src/collection-manager/interfaces/subTable.ts +0 -209
- package/src/collection-manager/interfaces/textarea.ts +0 -29
- package/src/collection-manager/interfaces/time.ts +0 -42
- package/src/collection-manager/interfaces/types.ts +0 -14
- package/src/collection-manager/interfaces/updatedAt.ts +0 -30
- package/src/collection-manager/interfaces/updatedBy.ts +0 -62
- package/src/collection-manager/sub-table.tsx +0 -273
- package/src/collection-manager/types.ts +0 -38
- package/src/document-title/index.md +0 -21
- package/src/document-title/index.tsx +0 -54
- package/src/file-manager/FileStorageShortcut.tsx +0 -40
- package/src/file-manager/StorageOptions.tsx +0 -106
- package/src/file-manager/index.ts +0 -1
- package/src/file-manager/schemas/storage.ts +0 -348
- package/src/global.less +0 -27
- package/src/i18n/i18n.ts +0 -37
- package/src/i18n/index.md +0 -10
- package/src/i18n/index.ts +0 -1
- package/src/icon/Icon.tsx +0 -61
- package/src/icon/index.md +0 -76
- package/src/icon/index.ts +0 -1
- package/src/index.tsx +0 -30
- package/src/locale/en_US.ts +0 -305
- package/src/locale/index.ts +0 -15
- package/src/locale/zh_CN.ts +0 -512
- package/src/plugin-manager/PluginManager.tsx +0 -122
- package/src/plugin-manager/PluginManagerProvider.tsx +0 -7
- package/src/plugin-manager/context.ts +0 -3
- package/src/plugin-manager/demos/demo1.tsx +0 -34
- package/src/plugin-manager/demos/plugins/index.tsx +0 -5
- package/src/plugin-manager/demos/plugins/plugin1.tsx +0 -16
- package/src/plugin-manager/demos/plugins/plugin2.tsx +0 -65
- package/src/plugin-manager/demos/plugins/plugin3.tsx +0 -17
- package/src/plugin-manager/demos/plugins/plugin4.tsx +0 -65
- package/src/plugin-manager/demos/plugins/plugin5.tsx +0 -17
- package/src/plugin-manager/index.md +0 -59
- package/src/plugin-manager/index.ts +0 -3
- package/src/powered-by/index.tsx +0 -27
- package/src/record-provider/index.md +0 -30
- package/src/record-provider/index.tsx +0 -33
- package/src/route-switch/RouteSwitch.tsx +0 -59
- package/src/route-switch/RouteSwitchProvider.tsx +0 -20
- package/src/route-switch/__tests__/RouteSwitch.test.tsx +0 -33
- package/src/route-switch/__tests__/__snapshots__/RouteSwitch.test.tsx.snap +0 -9
- package/src/route-switch/antd/admin-layout/index.md +0 -27
- package/src/route-switch/antd/admin-layout/index.tsx +0 -206
- package/src/route-switch/antd/auth-layout/index.md +0 -9
- package/src/route-switch/antd/auth-layout/index.tsx +0 -31
- package/src/route-switch/antd/index.ts +0 -4
- package/src/route-switch/antd/route-schema-component/index.tsx +0 -8
- package/src/route-switch/context.ts +0 -9
- package/src/route-switch/demos/demo1.tsx +0 -31
- package/src/route-switch/hooks.ts +0 -23
- package/src/route-switch/index.md +0 -10
- package/src/route-switch/index.tsx +0 -7
- package/src/route-switch/types.ts +0 -34
- package/src/schema-component/antd/AntdSchemaComponentProvider.tsx +0 -10
- package/src/schema-component/antd/action/Action.Container.tsx +0 -26
- package/src/schema-component/antd/action/Action.Designer.tsx +0 -301
- package/src/schema-component/antd/action/Action.Drawer.tsx +0 -105
- package/src/schema-component/antd/action/Action.Link.tsx +0 -8
- package/src/schema-component/antd/action/Action.Modal.tsx +0 -94
- package/src/schema-component/antd/action/Action.Page.tsx +0 -74
- package/src/schema-component/antd/action/Action.Popover.tsx +0 -0
- package/src/schema-component/antd/action/Action.tsx +0 -178
- package/src/schema-component/antd/action/ActionBar.tsx +0 -52
- package/src/schema-component/antd/action/context.tsx +0 -13
- package/src/schema-component/antd/action/demos/demo1.tsx +0 -65
- package/src/schema-component/antd/action/demos/demo2.tsx +0 -66
- package/src/schema-component/antd/action/demos/demo3.tsx +0 -107
- package/src/schema-component/antd/action/demos/demo4.tsx +0 -53
- package/src/schema-component/antd/action/hooks.ts +0 -53
- package/src/schema-component/antd/action/index.md +0 -42
- package/src/schema-component/antd/action/index.tsx +0 -5
- package/src/schema-component/antd/action/types.ts +0 -17
- package/src/schema-component/antd/block-item/BlockItem.tsx +0 -63
- package/src/schema-component/antd/block-item/TestDesigner.tsx +0 -19
- package/src/schema-component/antd/block-item/demos/demo1.tsx +0 -46
- package/src/schema-component/antd/block-item/index.md +0 -12
- package/src/schema-component/antd/block-item/index.tsx +0 -3
- package/src/schema-component/antd/calendar/Calendar.Designer.tsx +0 -142
- package/src/schema-component/antd/calendar/Calendar.tsx +0 -156
- package/src/schema-component/antd/calendar/Event.tsx +0 -6
- package/src/schema-component/antd/calendar/Nav.tsx +0 -19
- package/src/schema-component/antd/calendar/Title.tsx +0 -15
- package/src/schema-component/antd/calendar/Today.tsx +0 -23
- package/src/schema-component/antd/calendar/ViewSelect.tsx +0 -25
- package/src/schema-component/antd/calendar/context.ts +0 -5
- package/src/schema-component/antd/calendar/demos/collections.ts +0 -1321
- package/src/schema-component/antd/calendar/demos/data.ts +0 -131
- package/src/schema-component/antd/calendar/demos/defaultValues.ts +0 -180
- package/src/schema-component/antd/calendar/demos/demo1.tsx +0 -67
- package/src/schema-component/antd/calendar/demos/demo2.tsx +0 -117
- package/src/schema-component/antd/calendar/index.md +0 -18
- package/src/schema-component/antd/calendar/index.ts +0 -21
- package/src/schema-component/antd/calendar/style.less +0 -767
- package/src/schema-component/antd/calendar/types.d.ts +0 -8
- package/src/schema-component/antd/calendar/utils.ts +0 -13
- package/src/schema-component/antd/card-item/CardItem.tsx +0 -13
- package/src/schema-component/antd/card-item/index.md +0 -10
- package/src/schema-component/antd/card-item/index.ts +0 -1
- package/src/schema-component/antd/cascader/Cascader.tsx +0 -99
- package/src/schema-component/antd/cascader/ReadPretty.tsx +0 -35
- package/src/schema-component/antd/cascader/defaultFieldNames.ts +0 -5
- package/src/schema-component/antd/cascader/demos/demo1.tsx +0 -83
- package/src/schema-component/antd/cascader/demos/demo2.tsx +0 -130
- package/src/schema-component/antd/cascader/index.md +0 -37
- package/src/schema-component/antd/cascader/index.ts +0 -1
- package/src/schema-component/antd/chart/Chart.tsx +0 -5
- package/src/schema-component/antd/chart/index.md +0 -8
- package/src/schema-component/antd/chart/index.ts +0 -1
- package/src/schema-component/antd/checkbox/Checkbox.tsx +0 -65
- package/src/schema-component/antd/checkbox/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/checkbox/demos/demo2.tsx +0 -56
- package/src/schema-component/antd/checkbox/index.md +0 -18
- package/src/schema-component/antd/checkbox/index.ts +0 -1
- package/src/schema-component/antd/color-select/ColorSelect.tsx +0 -51
- package/src/schema-component/antd/color-select/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/color-select/index.md +0 -14
- package/src/schema-component/antd/color-select/index.ts +0 -1
- package/src/schema-component/antd/date-picker/DatePicker.tsx +0 -27
- package/src/schema-component/antd/date-picker/ReadPretty.tsx +0 -43
- package/src/schema-component/antd/date-picker/demos/demo1.tsx +0 -49
- package/src/schema-component/antd/date-picker/demos/demo2.tsx +0 -41
- package/src/schema-component/antd/date-picker/index.md +0 -25
- package/src/schema-component/antd/date-picker/index.ts +0 -1
- package/src/schema-component/antd/date-picker/util.ts +0 -42
- package/src/schema-component/antd/filter/DynamicComponent.tsx +0 -56
- package/src/schema-component/antd/filter/Filter.Action.Designer.tsx +0 -120
- package/src/schema-component/antd/filter/Filter.tsx +0 -42
- package/src/schema-component/antd/filter/FilterAction.tsx +0 -121
- package/src/schema-component/antd/filter/FilterGroup.tsx +0 -103
- package/src/schema-component/antd/filter/FilterItem.tsx +0 -57
- package/src/schema-component/antd/filter/FilterItems.tsx +0 -21
- package/src/schema-component/antd/filter/SaveDefaultValue.tsx +0 -43
- package/src/schema-component/antd/filter/context.ts +0 -14
- package/src/schema-component/antd/filter/demos/demo2.tsx +0 -101
- package/src/schema-component/antd/filter/demos/demo3.tsx +0 -180
- package/src/schema-component/antd/filter/demos/demo4.tsx +0 -170
- package/src/schema-component/antd/filter/demos/demo5.tsx +0 -104
- package/src/schema-component/antd/filter/demos/demo6.tsx +0 -105
- package/src/schema-component/antd/filter/index.md +0 -30
- package/src/schema-component/antd/filter/index.ts +0 -3
- package/src/schema-component/antd/filter/style.less +0 -18
- package/src/schema-component/antd/filter/useFilterActionProps.ts +0 -120
- package/src/schema-component/antd/filter/useValues.ts +0 -83
- package/src/schema-component/antd/form/Form.Designer.tsx +0 -19
- package/src/schema-component/antd/form/Form.tsx +0 -125
- package/src/schema-component/antd/form/demos/apiClient.ts +0 -21
- package/src/schema-component/antd/form/demos/demo1.tsx +0 -62
- package/src/schema-component/antd/form/demos/demo2.tsx +0 -61
- package/src/schema-component/antd/form/demos/demo3.tsx +0 -60
- package/src/schema-component/antd/form/demos/demo4.tsx +0 -67
- package/src/schema-component/antd/form/demos/demo5.tsx +0 -106
- package/src/schema-component/antd/form/demos/demo6.tsx +0 -61
- package/src/schema-component/antd/form/demos/demo7.tsx +0 -68
- package/src/schema-component/antd/form/demos/demo8.tsx +0 -85
- package/src/schema-component/antd/form/index.md +0 -54
- package/src/schema-component/antd/form/index.tsx +0 -1
- package/src/schema-component/antd/form-item/FormItem.tsx +0 -213
- package/src/schema-component/antd/form-item/index.md +0 -10
- package/src/schema-component/antd/form-item/index.tsx +0 -1
- package/src/schema-component/antd/form-v2/Form.Designer.tsx +0 -217
- package/src/schema-component/antd/form-v2/Form.tsx +0 -106
- package/src/schema-component/antd/form-v2/demos/collections.ts +0 -1321
- package/src/schema-component/antd/form-v2/demos/demo1.tsx +0 -83
- package/src/schema-component/antd/form-v2/demos/demo2.tsx +0 -103
- package/src/schema-component/antd/form-v2/demos/demo3.tsx +0 -103
- package/src/schema-component/antd/form-v2/index.md +0 -30
- package/src/schema-component/antd/form-v2/index.ts +0 -7
- package/src/schema-component/antd/grid/Block.tsx +0 -13
- package/src/schema-component/antd/grid/Grid.tsx +0 -247
- package/src/schema-component/antd/grid/demos/demo1.tsx +0 -162
- package/src/schema-component/antd/grid/demos/demo2.tsx +0 -73
- package/src/schema-component/antd/grid/demos/demo3.tsx +0 -47
- package/src/schema-component/antd/grid/index.md +0 -14
- package/src/schema-component/antd/grid/index.tsx +0 -3
- package/src/schema-component/antd/icon-picker/IconPicker.tsx +0 -79
- package/src/schema-component/antd/icon-picker/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/icon-picker/index.md +0 -14
- package/src/schema-component/antd/icon-picker/index.ts +0 -1
- package/src/schema-component/antd/index.less +0 -4
- package/src/schema-component/antd/index.ts +0 -35
- package/src/schema-component/antd/input/EllipsisWithTooltip.tsx +0 -47
- package/src/schema-component/antd/input/Input.tsx +0 -39
- package/src/schema-component/antd/input/ReadPretty.tsx +0 -116
- package/src/schema-component/antd/input/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/input/demos/demo2.tsx +0 -66
- package/src/schema-component/antd/input/demos/demo3.tsx +0 -43
- package/src/schema-component/antd/input/index.md +0 -28
- package/src/schema-component/antd/input/index.ts +0 -2
- package/src/schema-component/antd/input/shared.ts +0 -7
- package/src/schema-component/antd/input-number/InputNumber.tsx +0 -8
- package/src/schema-component/antd/input-number/ReadPretty.tsx +0 -21
- package/src/schema-component/antd/input-number/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/input-number/demos/demo2.tsx +0 -49
- package/src/schema-component/antd/input-number/demos/demo3.tsx +0 -51
- package/src/schema-component/antd/input-number/index.md +0 -22
- package/src/schema-component/antd/input-number/index.ts +0 -1
- package/src/schema-component/antd/kanban/Kanban.Card.Designer.tsx +0 -103
- package/src/schema-component/antd/kanban/Kanban.Card.tsx +0 -98
- package/src/schema-component/antd/kanban/Kanban.CardViewer.tsx +0 -5
- package/src/schema-component/antd/kanban/Kanban.Designer.tsx +0 -64
- package/src/schema-component/antd/kanban/Kanban.tsx +0 -146
- package/src/schema-component/antd/kanban/context.ts +0 -4
- package/src/schema-component/antd/kanban/demos/collections.ts +0 -1321
- package/src/schema-component/antd/kanban/demos/data.ts +0 -2145
- package/src/schema-component/antd/kanban/demos/demo1.tsx +0 -92
- package/src/schema-component/antd/kanban/index.less +0 -16
- package/src/schema-component/antd/kanban/index.md +0 -12
- package/src/schema-component/antd/kanban/index.ts +0 -16
- package/src/schema-component/antd/markdown/Markdown.Void.Designer.tsx +0 -26
- package/src/schema-component/antd/markdown/Markdown.Void.tsx +0 -78
- package/src/schema-component/antd/markdown/Markdown.tsx +0 -30
- package/src/schema-component/antd/markdown/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/markdown/demos/demo2.tsx +0 -51
- package/src/schema-component/antd/markdown/index.md +0 -18
- package/src/schema-component/antd/markdown/index.ts +0 -1
- package/src/schema-component/antd/markdown/style.less +0 -12
- package/src/schema-component/antd/markdown/util.ts +0 -16
- package/src/schema-component/antd/menu/Menu.Designer.tsx +0 -342
- package/src/schema-component/antd/menu/Menu.tsx +0 -433
- package/src/schema-component/antd/menu/MenuItemInitializers/index.tsx +0 -229
- package/src/schema-component/antd/menu/demos/demo1.tsx +0 -93
- package/src/schema-component/antd/menu/demos/demo2.tsx +0 -93
- package/src/schema-component/antd/menu/demos/demo3.tsx +0 -118
- package/src/schema-component/antd/menu/index.md +0 -27
- package/src/schema-component/antd/menu/index.ts +0 -4
- package/src/schema-component/antd/menu/util.ts +0 -53
- package/src/schema-component/antd/page/Page.tsx +0 -21
- package/src/schema-component/antd/page/demos/demo1.tsx +0 -31
- package/src/schema-component/antd/page/index.md +0 -12
- package/src/schema-component/antd/page/index.ts +0 -1
- package/src/schema-component/antd/pagination/index.tsx +0 -12
- package/src/schema-component/antd/password/Password.tsx +0 -69
- package/src/schema-component/antd/password/PasswordStrength.tsx +0 -162
- package/src/schema-component/antd/password/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/password/demos/demo2.tsx +0 -45
- package/src/schema-component/antd/password/index.md +0 -24
- package/src/schema-component/antd/password/index.ts +0 -1
- package/src/schema-component/antd/radio/Radio.tsx +0 -47
- package/src/schema-component/antd/radio/demos/demo1.tsx +0 -42
- package/src/schema-component/antd/radio/demos/demo2.tsx +0 -55
- package/src/schema-component/antd/radio/demos/demo3.tsx +0 -56
- package/src/schema-component/antd/radio/index.md +0 -22
- package/src/schema-component/antd/radio/index.ts +0 -1
- package/src/schema-component/antd/record-picker/InputRecordPicker.tsx +0 -112
- package/src/schema-component/antd/record-picker/ReadPrettyRecordPicker.tsx +0 -56
- package/src/schema-component/antd/record-picker/RecordPicker.tsx +0 -9
- package/src/schema-component/antd/record-picker/demos/demo1.tsx +0 -125
- package/src/schema-component/antd/record-picker/index.md +0 -82
- package/src/schema-component/antd/record-picker/index.tsx +0 -8
- package/src/schema-component/antd/record-picker/useFieldNames.ts +0 -7
- package/src/schema-component/antd/rich-text/RichText.tsx +0 -42
- package/src/schema-component/antd/rich-text/demos/demo1.tsx +0 -39
- package/src/schema-component/antd/rich-text/index.md +0 -12
- package/src/schema-component/antd/rich-text/index.ts +0 -1
- package/src/schema-component/antd/rich-text/style.less +0 -950
- package/src/schema-component/antd/select/ReadPretty.tsx +0 -33
- package/src/schema-component/antd/select/Select.tsx +0 -83
- package/src/schema-component/antd/select/demos/demo1.tsx +0 -60
- package/src/schema-component/antd/select/demos/demo2.tsx +0 -64
- package/src/schema-component/antd/select/demos/demo3.tsx +0 -77
- package/src/schema-component/antd/select/index.md +0 -38
- package/src/schema-component/antd/select/index.ts +0 -1
- package/src/schema-component/antd/select/shared.ts +0 -26
- package/src/schema-component/antd/space/index.tsx +0 -18
- package/src/schema-component/antd/table/Table.Array.Designer.tsx +0 -15
- package/src/schema-component/antd/table/Table.Array.tsx +0 -277
- package/src/schema-component/antd/table/Table.Column.ActionBar.tsx +0 -53
- package/src/schema-component/antd/table/Table.Column.Decorator.tsx +0 -59
- package/src/schema-component/antd/table/Table.Column.Designer.tsx +0 -147
- package/src/schema-component/antd/table/Table.Column.tsx +0 -7
- package/src/schema-component/antd/table/Table.Designer.tsx +0 -17
- package/src/schema-component/antd/table/Table.RowActionDesigner.tsx +0 -23
- package/src/schema-component/antd/table/Table.RowSelection.tsx +0 -28
- package/src/schema-component/antd/table/Table.Void.Designer.tsx +0 -208
- package/src/schema-component/antd/table/Table.Void.tsx +0 -118
- package/src/schema-component/antd/table/demos/demo1.tsx +0 -47
- package/src/schema-component/antd/table/demos/demo2.tsx +0 -47
- package/src/schema-component/antd/table/demos/demo3.tsx +0 -47
- package/src/schema-component/antd/table/demos/demo4.tsx +0 -228
- package/src/schema-component/antd/table/index.md +0 -29
- package/src/schema-component/antd/table/index.tsx +0 -27
- package/src/schema-component/antd/table-v2/Table.ActionColumnDesigner.tsx +0 -23
- package/src/schema-component/antd/table-v2/Table.Column.ActionBar.tsx +0 -53
- package/src/schema-component/antd/table-v2/Table.Column.Decorator.tsx +0 -59
- package/src/schema-component/antd/table-v2/Table.Column.Designer.tsx +0 -106
- package/src/schema-component/antd/table-v2/Table.Column.tsx +0 -7
- package/src/schema-component/antd/table-v2/Table.Designer.tsx +0 -17
- package/src/schema-component/antd/table-v2/Table.tsx +0 -283
- package/src/schema-component/antd/table-v2/TableBlockDesigner.tsx +0 -213
- package/src/schema-component/antd/table-v2/TableField.tsx +0 -27
- package/src/schema-component/antd/table-v2/TableSelector.tsx +0 -3
- package/src/schema-component/antd/table-v2/TableSelectorDesigner.tsx +0 -196
- package/src/schema-component/antd/table-v2/demos/collections.ts +0 -1321
- package/src/schema-component/antd/table-v2/demos/data.ts +0 -0
- package/src/schema-component/antd/table-v2/demos/demo1.tsx +0 -220
- package/src/schema-component/antd/table-v2/demos/demo2.tsx +0 -192
- package/src/schema-component/antd/table-v2/index.md +0 -16
- package/src/schema-component/antd/table-v2/index.ts +0 -20
- package/src/schema-component/antd/tabs/Tabs.Designer.tsx +0 -49
- package/src/schema-component/antd/tabs/Tabs.tsx +0 -91
- package/src/schema-component/antd/tabs/demos/demo1.tsx +0 -56
- package/src/schema-component/antd/tabs/index.md +0 -15
- package/src/schema-component/antd/tabs/index.ts +0 -1
- package/src/schema-component/antd/time-picker/ReadPretty.tsx +0 -19
- package/src/schema-component/antd/time-picker/TimePicker.tsx +0 -37
- package/src/schema-component/antd/time-picker/demos/demo1.tsx +0 -41
- package/src/schema-component/antd/time-picker/demos/demo2.tsx +0 -42
- package/src/schema-component/antd/time-picker/index.md +0 -18
- package/src/schema-component/antd/time-picker/index.ts +0 -1
- package/src/schema-component/antd/tree-select/ReadPretty.tsx +0 -56
- package/src/schema-component/antd/tree-select/TreeSelect.tsx +0 -23
- package/src/schema-component/antd/tree-select/demos/demo1.tsx +0 -85
- package/src/schema-component/antd/tree-select/index.md +0 -14
- package/src/schema-component/antd/tree-select/index.ts +0 -1
- package/src/schema-component/antd/upload/ReadPretty.tsx +0 -146
- package/src/schema-component/antd/upload/Upload.tsx +0 -209
- package/src/schema-component/antd/upload/demos/apiClient.ts +0 -43
- package/src/schema-component/antd/upload/demos/demo1.tsx +0 -51
- package/src/schema-component/antd/upload/demos/demo2.tsx +0 -115
- package/src/schema-component/antd/upload/index.md +0 -18
- package/src/schema-component/antd/upload/index.ts +0 -1
- package/src/schema-component/antd/upload/placeholder.ts +0 -62
- package/src/schema-component/antd/upload/shared.ts +0 -227
- package/src/schema-component/antd/upload/style.less +0 -61
- package/src/schema-component/antd/upload/type.d.ts +0 -26
- package/src/schema-component/common/dnd-context/index.md +0 -8
- package/src/schema-component/common/dnd-context/index.tsx +0 -74
- package/src/schema-component/common/index.ts +0 -3
- package/src/schema-component/common/sortable-item/SortableItem.tsx +0 -91
- package/src/schema-component/common/sortable-item/index.md +0 -9
- package/src/schema-component/common/sortable-item/index.ts +0 -1
- package/src/schema-component/context.ts +0 -4
- package/src/schema-component/core/DesignableSwitch.tsx +0 -25
- package/src/schema-component/core/FormProvider.tsx +0 -24
- package/src/schema-component/core/RemoteSchemaComponent.tsx +0 -64
- package/src/schema-component/core/SchemaComponent.tsx +0 -45
- package/src/schema-component/core/SchemaComponentOptions.tsx +0 -16
- package/src/schema-component/core/SchemaComponentProvider.tsx +0 -64
- package/src/schema-component/core/index.tsx +0 -7
- package/src/schema-component/demos/demo1.tsx +0 -83
- package/src/schema-component/demos/demo3.tsx +0 -65
- package/src/schema-component/hooks/__tests__/designable.test.ts +0 -491
- package/src/schema-component/hooks/__tests__/splitWrapSchema.test.ts +0 -87
- package/src/schema-component/hooks/index.ts +0 -8
- package/src/schema-component/hooks/useAttach.ts +0 -21
- package/src/schema-component/hooks/useCompile.ts +0 -13
- package/src/schema-component/hooks/useComponent.ts +0 -14
- package/src/schema-component/hooks/useDesignable.tsx +0 -589
- package/src/schema-component/hooks/useDesigner.ts +0 -11
- package/src/schema-component/hooks/useFieldProps.ts +0 -18
- package/src/schema-component/hooks/useProps.ts +0 -16
- package/src/schema-component/hooks/useSchemaComponentContext.ts +0 -6
- package/src/schema-component/index.md +0 -133
- package/src/schema-component/index.tsx +0 -7
- package/src/schema-component/types.ts +0 -34
- package/src/schema-initializer/SchemaInitializer.tsx +0 -224
- package/src/schema-initializer/SchemaInitializerProvider.tsx +0 -58
- package/src/schema-initializer/buttons/BlockInitializers.tsx +0 -60
- package/src/schema-initializer/buttons/CalendarActionInitializers.tsx +0 -79
- package/src/schema-initializer/buttons/CreateFormBlockInitializers.tsx +0 -42
- package/src/schema-initializer/buttons/CustomFormItemInitializers.tsx +0 -26
- package/src/schema-initializer/buttons/DetailsActionInitializers.tsx +0 -37
- package/src/schema-initializer/buttons/FormActionInitializers.tsx +0 -321
- package/src/schema-initializer/buttons/FormItemInitializers.tsx +0 -44
- package/src/schema-initializer/buttons/KanbanActionInitializers.tsx +0 -35
- package/src/schema-initializer/buttons/KanbanCardFormItemInitializers.tsx +0 -0
- package/src/schema-initializer/buttons/ReadPrettyFormActionInitializers.tsx +0 -119
- package/src/schema-initializer/buttons/ReadPrettyFormItemInitializers.tsx +0 -43
- package/src/schema-initializer/buttons/RecordBlockInitializers.tsx +0 -70
- package/src/schema-initializer/buttons/RecordFormBlockInitializers.tsx +0 -39
- package/src/schema-initializer/buttons/SubTableActionInitializers.tsx +0 -39
- package/src/schema-initializer/buttons/TabPaneInitializers.tsx +0 -106
- package/src/schema-initializer/buttons/TableActionColumnInitializers.tsx +0 -158
- package/src/schema-initializer/buttons/TableActionInitializers.tsx +0 -48
- package/src/schema-initializer/buttons/TableColumnInitializers.tsx +0 -52
- package/src/schema-initializer/buttons/TableSelectorInitializers.tsx +0 -50
- package/src/schema-initializer/buttons/index.ts +0 -18
- package/src/schema-initializer/components/assigned-field/AssignedField.tsx +0 -70
- package/src/schema-initializer/components/assigned-field/index.ts +0 -1
- package/src/schema-initializer/components/index.ts +0 -1
- package/src/schema-initializer/demos/demo1.tsx +0 -123
- package/src/schema-initializer/demos/demo2.tsx +0 -77
- package/src/schema-initializer/demos/demo3.tsx +0 -125
- package/src/schema-initializer/demos/demo4.tsx +0 -130
- package/src/schema-initializer/index.md +0 -121
- package/src/schema-initializer/index.ts +0 -4
- package/src/schema-initializer/items/index.tsx +0 -774
- package/src/schema-initializer/types.ts +0 -73
- package/src/schema-initializer/utils.ts +0 -835
- package/src/schema-settings/GeneralSchemaDesigner.tsx +0 -88
- package/src/schema-settings/SchemaSettings.tsx +0 -572
- package/src/schema-settings/index.ts +0 -3
- package/src/schema-templates/BlockTemplate.tsx +0 -26
- package/src/schema-templates/BlockTemplateDetails.tsx +0 -91
- package/src/schema-templates/BlockTemplatePage.tsx +0 -21
- package/src/schema-templates/SchemaTemplateManagerProvider.tsx +0 -154
- package/src/schema-templates/SchemaTemplateShortcut.tsx +0 -19
- package/src/schema-templates/collections/uiSchemaTemplates.ts +0 -20
- package/src/schema-templates/index.ts +0 -5
- package/src/schema-templates/schemas/uiSchemaTemplates.ts +0 -223
- package/src/settings-form/SettingsForm.tsx +0 -269
- package/src/settings-form/demos/demo1.tsx +0 -133
- package/src/settings-form/index.md +0 -10
- package/src/settings-form/index.ts +0 -1
- package/src/slate/RichText.tsx +0 -258
- package/src/slate/Slate.tsx +0 -32
- package/src/slate/components.tsx +0 -172
- package/src/slate/demos/demo1.tsx +0 -27
- package/src/slate/demos/demo2.tsx +0 -79
- package/src/slate/demos/demo3.tsx +0 -44
- package/src/slate/index.less +0 -51
- package/src/slate/index.md +0 -22
- package/src/slate/index.ts +0 -1
- package/src/slate/materialicons.woff2 +0 -0
- package/src/system-settings/SystemSettingsProvider.tsx +0 -20
- package/src/system-settings/SystemSettingsShortcut.tsx +0 -145
- package/src/system-settings/demos/demo1.tsx +0 -55
- package/src/system-settings/index.md +0 -22
- package/src/system-settings/index.tsx +0 -3
- package/src/user/ChangePassword.tsx +0 -134
- package/src/user/CurrentUser.tsx +0 -55
- package/src/user/CurrentUserProvider.tsx +0 -26
- package/src/user/EditProfile.tsx +0 -119
- package/src/user/LanguageSettings.tsx +0 -44
- package/src/user/SigninPage.tsx +0 -86
- package/src/user/SignupPage.tsx +0 -114
- package/src/user/SwitchRole.tsx +0 -55
- package/src/user/index.md +0 -23
- package/src/user/index.ts +0 -5
- package/src/workflow/ExecutionResourceProvider.tsx +0 -24
- package/src/workflow/WorkflowCanvas.tsx +0 -250
- package/src/workflow/WorkflowLink.tsx +0 -14
- package/src/workflow/WorkflowPage.tsx +0 -47
- package/src/workflow/WorkflowRouteProvider.tsx +0 -12
- package/src/workflow/WorkflowShortcut.tsx +0 -50
- package/src/workflow/calculators.tsx +0 -481
- package/src/workflow/index.tsx +0 -5
- package/src/workflow/nodes/calculation.tsx +0 -34
- package/src/workflow/nodes/condition.tsx +0 -226
- package/src/workflow/nodes/create.tsx +0 -60
- package/src/workflow/nodes/destroy.tsx +0 -31
- package/src/workflow/nodes/index.tsx +0 -269
- package/src/workflow/nodes/parallel.tsx +0 -134
- package/src/workflow/nodes/query.tsx +0 -66
- package/src/workflow/nodes/update.tsx +0 -27
- package/src/workflow/schemas/collection.ts +0 -56
- package/src/workflow/schemas/executions.ts +0 -132
- package/src/workflow/schemas/workflows.ts +0 -323
- package/src/workflow/style.tsx +0 -200
- package/src/workflow/triggers/collection.tsx +0 -102
- package/src/workflow/triggers/index.tsx +0 -135
package/es/locale/index.js
CHANGED
|
@@ -4,13 +4,30 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
+
import antdEnUS from 'antd/lib/locale/en_US';
|
|
8
|
+
import antdZhCN from 'antd/lib/locale/zh_CN';
|
|
7
9
|
import enUS from './en_US';
|
|
8
10
|
import zhCN from './zh_CN';
|
|
9
|
-
export
|
|
11
|
+
export default {
|
|
10
12
|
'en-US': {
|
|
11
|
-
|
|
13
|
+
label: 'English',
|
|
14
|
+
// https://github.com/moment/moment/blob/develop/locale/en.js
|
|
15
|
+
moment: 'en',
|
|
16
|
+
// https://github.com/ant-design/ant-design/tree/master/components/locale/en_US
|
|
17
|
+
antd: antdEnUS,
|
|
18
|
+
resources: {
|
|
19
|
+
client: _objectSpread({}, enUS)
|
|
20
|
+
}
|
|
12
21
|
},
|
|
13
22
|
'zh-CN': {
|
|
14
|
-
|
|
23
|
+
label: '简体中文',
|
|
24
|
+
// https://github.com/moment/moment/blob/develop/locale/zh-cn.js
|
|
25
|
+
moment: 'zh-cn',
|
|
26
|
+
// https://github.com/ant-design/ant-design/tree/master/components/locale/zh_CN
|
|
27
|
+
antd: antdZhCN,
|
|
28
|
+
// i18next
|
|
29
|
+
resources: {
|
|
30
|
+
client: _objectSpread({}, zhCN)
|
|
31
|
+
}
|
|
15
32
|
}
|
|
16
33
|
};
|
package/es/locale/zh_CN.d.ts
CHANGED
|
@@ -58,11 +58,18 @@ declare const _default: {
|
|
|
58
58
|
Media: string;
|
|
59
59
|
Markdown: string;
|
|
60
60
|
Wysiwyg: string;
|
|
61
|
-
|
|
61
|
+
"Chart blocks": string;
|
|
62
62
|
"Column chart": string;
|
|
63
63
|
"Bar chart": string;
|
|
64
64
|
"Line chart": string;
|
|
65
65
|
"Pie chart": string;
|
|
66
|
+
"Area chart": string;
|
|
67
|
+
"Other chart": string;
|
|
68
|
+
"Other blocks": string;
|
|
69
|
+
"In configuration": string;
|
|
70
|
+
"Chart title": string;
|
|
71
|
+
"Chart type": string;
|
|
72
|
+
"Chart config": string;
|
|
66
73
|
Templates: string;
|
|
67
74
|
"Select template": string;
|
|
68
75
|
"Action logs": string;
|
|
@@ -115,6 +122,8 @@ declare const _default: {
|
|
|
115
122
|
Number: string;
|
|
116
123
|
Percent: string;
|
|
117
124
|
Password: string;
|
|
125
|
+
Formula: string;
|
|
126
|
+
"Formula description": string;
|
|
118
127
|
Choices: string;
|
|
119
128
|
Checkbox: string;
|
|
120
129
|
"Single select": string;
|
|
@@ -127,6 +136,7 @@ declare const _default: {
|
|
|
127
136
|
Datetime: string;
|
|
128
137
|
Relation: string;
|
|
129
138
|
"Link to": string;
|
|
139
|
+
"Link to description": string;
|
|
130
140
|
"Sub-table": string;
|
|
131
141
|
"System info": string;
|
|
132
142
|
"Created at": string;
|
|
@@ -145,6 +155,36 @@ declare const _default: {
|
|
|
145
155
|
"Time format": string;
|
|
146
156
|
"12 hour": string;
|
|
147
157
|
"24 hour": string;
|
|
158
|
+
"Relationship type": string;
|
|
159
|
+
"Source collection": string;
|
|
160
|
+
"Source key": string;
|
|
161
|
+
"Target collection": string;
|
|
162
|
+
"Through collection": string;
|
|
163
|
+
"Target key": string;
|
|
164
|
+
"Foreign key": string;
|
|
165
|
+
"One to one": string;
|
|
166
|
+
"One to many": string;
|
|
167
|
+
"Many to one": string;
|
|
168
|
+
"Many to many": string;
|
|
169
|
+
"Foreign key 1": string;
|
|
170
|
+
"Foreign key 2": string;
|
|
171
|
+
"One to one description": string;
|
|
172
|
+
"One to many description": string;
|
|
173
|
+
"Many to one description": string;
|
|
174
|
+
"Many to many description": string;
|
|
175
|
+
"Generated automatically if left blank": string;
|
|
176
|
+
"References fields of associated table": string;
|
|
177
|
+
"Toggles the subfield mode": string;
|
|
178
|
+
"Selector mode": string;
|
|
179
|
+
"Subtable mode": string;
|
|
180
|
+
"Subform mode": string;
|
|
181
|
+
"Edit block title": string;
|
|
182
|
+
"Block title": string;
|
|
183
|
+
Pattern: string;
|
|
184
|
+
Editable: string;
|
|
185
|
+
Readonly: string;
|
|
186
|
+
"Easy-reading": string;
|
|
187
|
+
Sortable: string;
|
|
148
188
|
"Add filter": string;
|
|
149
189
|
"Add filter group": string;
|
|
150
190
|
is: string;
|
|
@@ -224,7 +264,7 @@ declare const _default: {
|
|
|
224
264
|
Title: string;
|
|
225
265
|
"Select view": string;
|
|
226
266
|
Reset: string;
|
|
227
|
-
"
|
|
267
|
+
"Exportable fields": string;
|
|
228
268
|
"Saved successfully": string;
|
|
229
269
|
Nickname: string;
|
|
230
270
|
"Sign in": string;
|
|
@@ -279,6 +319,8 @@ declare const _default: {
|
|
|
279
319
|
"Button title": string;
|
|
280
320
|
"Button icon": string;
|
|
281
321
|
"Submitted successfully": string;
|
|
322
|
+
"Operation succeeded": string;
|
|
323
|
+
"Operation failed": string;
|
|
282
324
|
"Open mode": string;
|
|
283
325
|
'Menu item title': string;
|
|
284
326
|
'Menu item icon': string;
|
|
@@ -321,6 +363,10 @@ declare const _default: {
|
|
|
321
363
|
'\u2264': string;
|
|
322
364
|
'Role UID': string;
|
|
323
365
|
Precision: string;
|
|
366
|
+
'Formula mode': string;
|
|
367
|
+
Expression: string;
|
|
368
|
+
'Input +, -, *, /, ( ) to calculate, input @ to open field variables.': string;
|
|
369
|
+
'Formula error.': string;
|
|
324
370
|
Accept: string;
|
|
325
371
|
'Rich Text': string;
|
|
326
372
|
'Junction collection': string;
|
|
@@ -383,8 +429,8 @@ declare const _default: {
|
|
|
383
429
|
'Trigger type': string;
|
|
384
430
|
Description: string;
|
|
385
431
|
Status: string;
|
|
386
|
-
|
|
387
|
-
|
|
432
|
+
On: string;
|
|
433
|
+
Off: string;
|
|
388
434
|
Version: string;
|
|
389
435
|
'Copy to new version': string;
|
|
390
436
|
'Load failed': string;
|
|
@@ -398,17 +444,45 @@ declare const _default: {
|
|
|
398
444
|
'Changed fields': string;
|
|
399
445
|
'Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.': string;
|
|
400
446
|
'Only triggers when match conditions': string;
|
|
447
|
+
'Schedule event': string;
|
|
448
|
+
'Trigger mode': string;
|
|
449
|
+
'Based on certain date': string;
|
|
450
|
+
'Based on date field of collection': string;
|
|
451
|
+
'Starts on': string;
|
|
452
|
+
'Ends on': string;
|
|
453
|
+
'Exactly at': string;
|
|
454
|
+
'Repeat mode': string;
|
|
455
|
+
'Repeat limit': string;
|
|
456
|
+
'No limit': string;
|
|
457
|
+
Seconds: string;
|
|
458
|
+
Minutes: string;
|
|
459
|
+
Hours: string;
|
|
460
|
+
Days: string;
|
|
461
|
+
Weeks: string;
|
|
462
|
+
Months: string;
|
|
463
|
+
'No repeat': string;
|
|
464
|
+
Every: string;
|
|
465
|
+
'By minute': string;
|
|
466
|
+
'By hour': string;
|
|
467
|
+
'By day': string;
|
|
468
|
+
'By week': string;
|
|
469
|
+
'By month': string;
|
|
470
|
+
'By field': string;
|
|
471
|
+
'By custom date': string;
|
|
472
|
+
Advanced: string;
|
|
473
|
+
'Advanced type': string;
|
|
401
474
|
End: string;
|
|
402
475
|
'Trigger context': string;
|
|
403
476
|
'Node result': string;
|
|
404
477
|
Constant: string;
|
|
405
478
|
Boolean: string;
|
|
406
479
|
String: string;
|
|
480
|
+
Calculator: string;
|
|
407
481
|
Comparison: string;
|
|
408
482
|
'Arithmetic calculation': string;
|
|
409
483
|
'String operation': string;
|
|
410
484
|
'On going': string;
|
|
411
|
-
|
|
485
|
+
Succeeded: string;
|
|
412
486
|
Failed: string;
|
|
413
487
|
Canceled: string;
|
|
414
488
|
'This node contains branches, deleting will also be preformed to them, are you sure?': string;
|
|
@@ -430,6 +504,12 @@ declare const _default: {
|
|
|
430
504
|
'Any succeeded': string;
|
|
431
505
|
'Continue after all branches succeeded': string;
|
|
432
506
|
'Continue after any branch succeeded': string;
|
|
507
|
+
Delay: string;
|
|
508
|
+
Duration: string;
|
|
509
|
+
'End Status': string;
|
|
510
|
+
'Select status': string;
|
|
511
|
+
'Succeed and continue': string;
|
|
512
|
+
'Fail and exit': string;
|
|
433
513
|
'Create record': string;
|
|
434
514
|
'Update record': string;
|
|
435
515
|
'Query record': string;
|
|
@@ -462,5 +542,27 @@ declare const _default: {
|
|
|
462
542
|
'Button background color': string;
|
|
463
543
|
Highlight: string;
|
|
464
544
|
'Danger red': string;
|
|
545
|
+
'Custom request': string;
|
|
546
|
+
'Request settings': string;
|
|
547
|
+
'Request URL': string;
|
|
548
|
+
'Request method': string;
|
|
549
|
+
'Request query parameters': string;
|
|
550
|
+
'Request headers': string;
|
|
551
|
+
'Request body': string;
|
|
552
|
+
'Request success': string;
|
|
553
|
+
'Invalid JSON format': string;
|
|
554
|
+
'After successful request': string;
|
|
555
|
+
'Add exportable field': string;
|
|
556
|
+
"Audit logs": string;
|
|
557
|
+
"Record ID": string;
|
|
558
|
+
User: string;
|
|
559
|
+
Field: string;
|
|
560
|
+
Select: string;
|
|
561
|
+
"Select Field": string;
|
|
562
|
+
"Field value changes": string;
|
|
563
|
+
"One to one (has one)": string;
|
|
564
|
+
"One to one (belongs to)": string;
|
|
565
|
+
"Use the same time zone (GMT) for all users": string;
|
|
566
|
+
"Province/city/area name": string;
|
|
465
567
|
};
|
|
466
568
|
export default _default;
|
package/es/locale/zh_CN.js
CHANGED
|
@@ -58,11 +58,18 @@ export default {
|
|
|
58
58
|
"Media": "多媒体",
|
|
59
59
|
"Markdown": "Markdown",
|
|
60
60
|
"Wysiwyg": "富文本",
|
|
61
|
-
"
|
|
61
|
+
"Chart blocks": "图表区块",
|
|
62
62
|
"Column chart": "柱状图",
|
|
63
63
|
"Bar chart": "条形图",
|
|
64
64
|
"Line chart": "折线图",
|
|
65
65
|
"Pie chart": "饼图",
|
|
66
|
+
"Area chart": "面积图",
|
|
67
|
+
"Other chart": "其他图表",
|
|
68
|
+
"Other blocks": "其他区块",
|
|
69
|
+
"In configuration": "配置中",
|
|
70
|
+
"Chart title": "图表标题",
|
|
71
|
+
"Chart type": "图表类型",
|
|
72
|
+
"Chart config": "图表配置",
|
|
66
73
|
"Templates": "模板",
|
|
67
74
|
"Select template": "选择模板",
|
|
68
75
|
"Action logs": "操作日志",
|
|
@@ -115,6 +122,8 @@ export default {
|
|
|
115
122
|
"Number": "数字",
|
|
116
123
|
"Percent": "百分比",
|
|
117
124
|
"Password": "密码",
|
|
125
|
+
"Formula": "公式",
|
|
126
|
+
"Formula description": "基于同一条记录中的其他字段计算出一个值。",
|
|
118
127
|
"Choices": "选择类型",
|
|
119
128
|
"Checkbox": "勾选",
|
|
120
129
|
"Single select": "下拉菜单(单选)",
|
|
@@ -127,6 +136,7 @@ export default {
|
|
|
127
136
|
"Datetime": "日期",
|
|
128
137
|
"Relation": "关系类型",
|
|
129
138
|
"Link to": "关联",
|
|
139
|
+
"Link to description": "用于快速创建表关系,可兼容大多数普通场景。适合非开发人员使用。作为字段存在时,它是一个下拉选择用于选择目标数据表的数据。创建后,将同时在目标数据表中生成当前数据表的关联字段。",
|
|
130
140
|
"Sub-table": "子表格",
|
|
131
141
|
"System info": "系统信息",
|
|
132
142
|
"Created at": "创建日期",
|
|
@@ -145,6 +155,36 @@ export default {
|
|
|
145
155
|
"Time format": "时间格式",
|
|
146
156
|
"12 hour": "12 小时制",
|
|
147
157
|
"24 hour": "24 小时制",
|
|
158
|
+
"Relationship type": "关联类型",
|
|
159
|
+
"Source collection": "源数据表",
|
|
160
|
+
"Source key": "源数据表字段标识",
|
|
161
|
+
"Target collection": "目标数据表",
|
|
162
|
+
"Through collection": "中间数据表",
|
|
163
|
+
"Target key": "目标数据表字段标识",
|
|
164
|
+
"Foreign key": "外键",
|
|
165
|
+
"One to one": "一对一",
|
|
166
|
+
"One to many": "一对多",
|
|
167
|
+
"Many to one": "多对一",
|
|
168
|
+
"Many to many": "多对多",
|
|
169
|
+
"Foreign key 1": "外键1",
|
|
170
|
+
"Foreign key 2": "外键2",
|
|
171
|
+
"One to one description": "用于创建一对一关系,比如一个用户会有一套个人资料。",
|
|
172
|
+
"One to many description": "用于创建一对多关系,比如一个国家会有多个城市。作为字段存在时,它是一个子表格用于显示目标数据表的数据。创建后,会在目标数据表里自动生成一个多对一字段。",
|
|
173
|
+
"Many to one description": "用于创建多对一关系,比如一个城市只能属于一个国家,一个国家可以有多个城市。作为字段存在时,它是一个下拉选择用于选择目标数据表的数据。创建后,会在目标数据表里自动生成一个多对一字段。",
|
|
174
|
+
"Many to many description": "用于创建多对多关系,比如一个学生会有多个老师,一个老师也会有多个学生。作为字段存在时,它是一个下拉选择用于选择目标数据表的数据。",
|
|
175
|
+
"Generated automatically if left blank": "留空时,自动生成中间表",
|
|
176
|
+
"References fields of associated table": "引用关联表的字段",
|
|
177
|
+
"Toggles the subfield mode": "切换子字段模式",
|
|
178
|
+
"Selector mode": "选择器模式",
|
|
179
|
+
"Subtable mode": "子表格模式",
|
|
180
|
+
"Subform mode": "子表单模式",
|
|
181
|
+
"Edit block title": "编辑区块标题",
|
|
182
|
+
"Block title": "区块标题",
|
|
183
|
+
"Pattern": "模式",
|
|
184
|
+
"Editable": "可编辑",
|
|
185
|
+
"Readonly": "只读(禁止编辑)",
|
|
186
|
+
"Easy-reading": "只读(阅读模式)",
|
|
187
|
+
"Sortable": "可排序",
|
|
148
188
|
"Add filter": "添加筛选条件",
|
|
149
189
|
"Add filter group": "添加筛选分组",
|
|
150
190
|
"is": "等于",
|
|
@@ -210,7 +250,7 @@ export default {
|
|
|
210
250
|
"Custom Title": "自定义标题",
|
|
211
251
|
"Options": "选项",
|
|
212
252
|
"Option value": "选项值",
|
|
213
|
-
"Option label": "
|
|
253
|
+
"Option label": "选项标签",
|
|
214
254
|
"Color": "颜色",
|
|
215
255
|
"Add option": "添加选项",
|
|
216
256
|
"Related collection": "关系表",
|
|
@@ -224,7 +264,7 @@ export default {
|
|
|
224
264
|
"Title": "标题",
|
|
225
265
|
"Select view": "切换视图",
|
|
226
266
|
"Reset": "重置",
|
|
227
|
-
"
|
|
267
|
+
"Exportable fields": "可导出字段",
|
|
228
268
|
"Saved successfully": "保存成功",
|
|
229
269
|
"Nickname": "昵称",
|
|
230
270
|
"Sign in": "登录",
|
|
@@ -279,6 +319,8 @@ export default {
|
|
|
279
319
|
"Button title": "按钮标题",
|
|
280
320
|
"Button icon": "按钮图标",
|
|
281
321
|
"Submitted successfully": "提交成功",
|
|
322
|
+
"Operation succeeded": "操作成功",
|
|
323
|
+
"Operation failed": "操作失败",
|
|
282
324
|
"Open mode": "打开方式",
|
|
283
325
|
'Menu item title': '菜单项名称',
|
|
284
326
|
'Menu item icon': '菜单项图标',
|
|
@@ -321,6 +363,10 @@ export default {
|
|
|
321
363
|
'≤': '≤',
|
|
322
364
|
'Role UID': '角色标识',
|
|
323
365
|
'Precision': '精确度',
|
|
366
|
+
'Formula mode': '计算方式',
|
|
367
|
+
'Expression': '表达式',
|
|
368
|
+
'Input +, -, *, /, ( ) to calculate, input @ to open field variables.': '英文输入+、-、*、/、( ) 进行运算,输入@打开可用字段变量。',
|
|
369
|
+
'Formula error.': '公式验证错误。',
|
|
324
370
|
'Accept': '文件格式',
|
|
325
371
|
'Rich Text': '富文本',
|
|
326
372
|
'Junction collection': '中间表',
|
|
@@ -384,8 +430,8 @@ export default {
|
|
|
384
430
|
'Trigger type': '触发方式',
|
|
385
431
|
'Description': '描述',
|
|
386
432
|
'Status': '状态',
|
|
387
|
-
'
|
|
388
|
-
'
|
|
433
|
+
'On': '启用',
|
|
434
|
+
'Off': '停用',
|
|
389
435
|
'Version': '版本',
|
|
390
436
|
'Copy to new version': '复制到新版本',
|
|
391
437
|
'Load failed': '加载失败',
|
|
@@ -399,17 +445,45 @@ export default {
|
|
|
399
445
|
'Changed fields': '发生变动的字段',
|
|
400
446
|
'Triggered only if one of the selected fields changes. If unselected, it means that it will be triggered when any field changes. When record is added or deleted, any field is considered to have been changed.': '只有被选中的某个字段发生变动时才会触发。如果不选择,则表示任何字段变动时都会触发。新增或删除数据时,任意字段都被认为发生变动。',
|
|
401
447
|
'Only triggers when match conditions': '满足以下条件才触发',
|
|
448
|
+
'Schedule event': '定时任务',
|
|
449
|
+
'Trigger mode': '触发模式',
|
|
450
|
+
'Based on certain date': '自定义时间',
|
|
451
|
+
'Based on date field of collection': '根据数据表时间字段',
|
|
452
|
+
'Starts on': '开始于',
|
|
453
|
+
'Ends on': '结束于',
|
|
454
|
+
'Exactly at': '当时',
|
|
455
|
+
'Repeat mode': '重复模式',
|
|
456
|
+
'Repeat limit': '重复次数',
|
|
457
|
+
'No limit': '不限',
|
|
458
|
+
'Seconds': '秒',
|
|
459
|
+
'Minutes': '分钟',
|
|
460
|
+
'Hours': '小时',
|
|
461
|
+
'Days': '天',
|
|
462
|
+
'Weeks': '周',
|
|
463
|
+
'Months': '月',
|
|
464
|
+
'No repeat': '不重复',
|
|
465
|
+
'Every': '每',
|
|
466
|
+
'By minute': '按分钟',
|
|
467
|
+
'By hour': '按小时',
|
|
468
|
+
'By day': '按天',
|
|
469
|
+
'By week': '按周',
|
|
470
|
+
'By month': '按月',
|
|
471
|
+
'By field': '数据表字段',
|
|
472
|
+
'By custom date': '自定义时间',
|
|
473
|
+
'Advanced': '高级模式',
|
|
474
|
+
'Advanced type': '高级类型',
|
|
402
475
|
'End': '结束',
|
|
403
476
|
'Trigger context': '触发数据',
|
|
404
477
|
'Node result': '节点数据',
|
|
405
478
|
'Constant': '常量',
|
|
406
479
|
'Boolean': '逻辑值',
|
|
407
480
|
'String': '字符串',
|
|
481
|
+
'Calculator': '运算',
|
|
408
482
|
'Comparison': '值比较',
|
|
409
483
|
'Arithmetic calculation': '算术运算',
|
|
410
484
|
'String operation': '字符串',
|
|
411
485
|
'On going': '进行中',
|
|
412
|
-
'
|
|
486
|
+
'Succeeded': '成功',
|
|
413
487
|
'Failed': '失败',
|
|
414
488
|
'Canceled': '已取消',
|
|
415
489
|
'This node contains branches, deleting will also be preformed to them, are you sure?': '节点包含分支,将同时删除其所有分支下的子节点,确定继续?',
|
|
@@ -431,6 +505,12 @@ export default {
|
|
|
431
505
|
'Any succeeded': '任意成功',
|
|
432
506
|
'Continue after all branches succeeded': '全部分支都成功后才能继续',
|
|
433
507
|
'Continue after any branch succeeded': '任意分支成功后就继续',
|
|
508
|
+
'Delay': '延时',
|
|
509
|
+
'Duration': '时长',
|
|
510
|
+
'End Status': '到时状态',
|
|
511
|
+
'Select status': '选择状态',
|
|
512
|
+
'Succeed and continue': '通过并继续',
|
|
513
|
+
'Fail and exit': '失败并退出',
|
|
434
514
|
'Create record': '新增数据',
|
|
435
515
|
'Update record': '更新数据',
|
|
436
516
|
'Query record': '查询数据',
|
|
@@ -462,5 +542,28 @@ export default {
|
|
|
462
542
|
'After clicking the custom button, the following fields of the current record will be saved according to the following form.': '点击当前自定义按钮时,当前数据以下字段将按照以下表单保存。',
|
|
463
543
|
'Button background color': '按钮颜色',
|
|
464
544
|
'Highlight': '高亮',
|
|
465
|
-
'Danger red': '红色'
|
|
545
|
+
'Danger red': '红色',
|
|
546
|
+
'Custom request': '自定义请求',
|
|
547
|
+
'Request settings': '请求设置',
|
|
548
|
+
'Request URL': '请求地址',
|
|
549
|
+
'Request method': '请求方法',
|
|
550
|
+
'Request query parameters': '请求查询参数(JSON格式)',
|
|
551
|
+
'Request headers': '请求头参数(JSON格式)',
|
|
552
|
+
'Request body': '请求体(JSON格式)',
|
|
553
|
+
'Request success': '请求成功',
|
|
554
|
+
'Invalid JSON format': '非法JSON格式',
|
|
555
|
+
'After successful request': '请求成功之后',
|
|
556
|
+
'Add exportable field': '添加可导出字段',
|
|
557
|
+
// 'Custom column title': '自定义列标题',
|
|
558
|
+
"Audit logs": "操作记录",
|
|
559
|
+
"Record ID": "数据 ID",
|
|
560
|
+
"User": "用户",
|
|
561
|
+
"Field": "字段",
|
|
562
|
+
"Select": "选择",
|
|
563
|
+
"Select Field": "选择字段",
|
|
564
|
+
"Field value changes": "变更记录",
|
|
565
|
+
"One to one (has one)": "一对一(has one)",
|
|
566
|
+
"One to one (belongs to)": "一对一(belongs to)",
|
|
567
|
+
"Use the same time zone (GMT) for all users": "所有用户使用同一时区 (格林尼治标准时间)",
|
|
568
|
+
"Province/city/area name": "省市区名称"
|
|
466
569
|
};
|
|
@@ -23,13 +23,13 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
|
|
|
23
23
|
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; }
|
|
24
24
|
|
|
25
25
|
import { useField, useFieldSchema } from '@formily/react';
|
|
26
|
-
import { isValid } from '@formily/shared';
|
|
27
|
-
import { uid } from '@nocobase/utils';
|
|
26
|
+
import { isValid, uid } from '@formily/shared';
|
|
28
27
|
import { Menu } from 'antd';
|
|
29
28
|
import React, { useEffect, useState } from 'react';
|
|
30
29
|
import { useTranslation } from 'react-i18next';
|
|
31
30
|
import { useActionContext, useCompile, useDesignable } from '../..';
|
|
32
31
|
import { GeneralSchemaDesigner, SchemaSettings } from '../../../schema-settings';
|
|
32
|
+
import { requestSettingsSchema } from './utils';
|
|
33
33
|
|
|
34
34
|
var MenuGroup = function MenuGroup(props) {
|
|
35
35
|
var fieldSchema = useFieldSchema();
|
|
@@ -41,10 +41,12 @@ var MenuGroup = function MenuGroup(props) {
|
|
|
41
41
|
var actionTitles = {
|
|
42
42
|
'customize:popup': t('Popup'),
|
|
43
43
|
'customize:update': t('Update record'),
|
|
44
|
-
'customize:save': t('Save record')
|
|
44
|
+
'customize:save': t('Save record'),
|
|
45
|
+
'customize:table:request': t('Custom request'),
|
|
46
|
+
'customize:form:request': t('Custom request')
|
|
45
47
|
};
|
|
46
48
|
|
|
47
|
-
if (!['customize:popup', 'customize:update', 'customize:save'].includes(actionType)) {
|
|
49
|
+
if (!['customize:popup', 'customize:update', 'customize:save', 'customize:table:request', 'customize:form:request'].includes(actionType)) {
|
|
48
50
|
return /*#__PURE__*/React.createElement(React.Fragment, null, props.children);
|
|
49
51
|
}
|
|
50
52
|
|
|
@@ -54,7 +56,7 @@ var MenuGroup = function MenuGroup(props) {
|
|
|
54
56
|
};
|
|
55
57
|
|
|
56
58
|
export var ActionDesigner = function ActionDesigner(props) {
|
|
57
|
-
var _fieldSchema$xCompon, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xAction, _fieldSchema$xAction2, _fieldSchema$xAction3, _fieldSchema$xAction4, _fieldSchema$xAction5, _fieldSchema$xAction6, _fieldSchema$xAction7;
|
|
59
|
+
var _fieldSchema$xCompon, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xAction, _fieldSchema$xAction2, _fieldSchema$xAction3, _fieldSchema$xAction4, _fieldSchema$xAction5, _fieldSchema$xAction6, _fieldSchema$xAction7, _fieldSchema$xAction8, _fieldSchema$xAction9;
|
|
58
60
|
|
|
59
61
|
var modalTip = props.modalTip,
|
|
60
62
|
restProps = _objectWithoutProperties(props, _excluded);
|
|
@@ -193,28 +195,45 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
193
195
|
});
|
|
194
196
|
dn.refresh();
|
|
195
197
|
}
|
|
196
|
-
}), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction4 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction4 === void 0 ? void 0 : _fieldSchema$xAction4.
|
|
198
|
+
}), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction4 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction4 === void 0 ? void 0 : _fieldSchema$xAction4.requestSettings) && /*#__PURE__*/React.createElement(SchemaSettings.ActionModalItem, {
|
|
199
|
+
title: t('Request settings'),
|
|
200
|
+
schema: requestSettingsSchema,
|
|
201
|
+
initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction5 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction5 === void 0 ? void 0 : _fieldSchema$xAction5.requestSettings,
|
|
202
|
+
onSubmit: function onSubmit(requestSettings) {
|
|
203
|
+
var _schema3;
|
|
204
|
+
|
|
205
|
+
fieldSchema['x-action-settings']['requestSettings'] = requestSettings;
|
|
206
|
+
dn.emit('patch', {
|
|
207
|
+
schema: (_schema3 = {}, _defineProperty(_schema3, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema3, 'x-action-settings', fieldSchema['x-action-settings']), _schema3)
|
|
208
|
+
});
|
|
209
|
+
dn.refresh();
|
|
210
|
+
}
|
|
211
|
+
}), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction6 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction6 === void 0 ? void 0 : _fieldSchema$xAction6.skipValidator) && /*#__PURE__*/React.createElement(SchemaSettings.SwitchItem, {
|
|
197
212
|
title: t('Skip required validation'),
|
|
198
|
-
checked: !!(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$
|
|
213
|
+
checked: !!(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction7 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction7 === void 0 ? void 0 : _fieldSchema$xAction7.skipValidator),
|
|
199
214
|
onChange: function onChange(value) {
|
|
200
|
-
var
|
|
215
|
+
var _schema4;
|
|
201
216
|
|
|
202
217
|
fieldSchema['x-action-settings'].skipValidator = value;
|
|
203
218
|
dn.emit('patch', {
|
|
204
|
-
schema: (
|
|
219
|
+
schema: (_schema4 = {}, _defineProperty(_schema4, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema4, 'x-action-settings', _objectSpread({}, fieldSchema['x-action-settings'])), _schema4)
|
|
205
220
|
});
|
|
206
221
|
}
|
|
207
|
-
}), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$
|
|
222
|
+
}), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction8 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction8 === void 0 ? void 0 : _fieldSchema$xAction8['onSuccess']) && /*#__PURE__*/React.createElement(SchemaSettings.ModalItem, {
|
|
208
223
|
title: {
|
|
209
224
|
'customize:save': t('After successful save'),
|
|
210
|
-
'customize:update': t('After successful update')
|
|
225
|
+
'customize:update': t('After successful update'),
|
|
226
|
+
'customize:table:request': t('After successful request'),
|
|
227
|
+
'customize:form:request': t('After successful request')
|
|
211
228
|
}[actionType],
|
|
212
|
-
initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$
|
|
229
|
+
initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction9 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction9 === void 0 ? void 0 : _fieldSchema$xAction9['onSuccess'],
|
|
213
230
|
schema: {
|
|
214
231
|
type: 'object',
|
|
215
232
|
title: {
|
|
216
233
|
'customize:save': t('After successful save'),
|
|
217
|
-
'customize:update': t('After successful update')
|
|
234
|
+
'customize:update': t('After successful update'),
|
|
235
|
+
'customize:table:request': t('After successful request'),
|
|
236
|
+
'customize:form:request': t('After successful request')
|
|
218
237
|
}[actionType],
|
|
219
238
|
properties: {
|
|
220
239
|
successMessage: {
|
|
@@ -268,11 +287,11 @@ export var ActionDesigner = function ActionDesigner(props) {
|
|
|
268
287
|
}
|
|
269
288
|
},
|
|
270
289
|
onSubmit: function onSubmit(onSuccess) {
|
|
271
|
-
var
|
|
290
|
+
var _schema5;
|
|
272
291
|
|
|
273
292
|
fieldSchema['x-action-settings']['onSuccess'] = onSuccess;
|
|
274
293
|
dn.emit('patch', {
|
|
275
|
-
schema: (
|
|
294
|
+
schema: (_schema5 = {}, _defineProperty(_schema5, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema5, 'x-action-settings', fieldSchema['x-action-settings']), _schema5)
|
|
276
295
|
});
|
|
277
296
|
}
|
|
278
297
|
}), /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
@@ -56,7 +56,7 @@ export var ActionDrawer = observer(function (props) {
|
|
|
56
56
|
onClose: function onClose() {
|
|
57
57
|
return setVisible(false, true);
|
|
58
58
|
},
|
|
59
|
-
className: classNames(others.className, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.nb-action-popup {\n .ant-drawer-content {\n background: #f0f2f5;\n }\n }\n &.nb-record-picker-selector {\n .nb-block-item {\n margin-bottom: 24px;\n .general-schema-designer {\n top: -8px;\n bottom: -8px;\n left: -8px;\n right: -8px;\n }\n }\n }\n "])))),
|
|
59
|
+
className: classNames(others.className, css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n &.nb-action-popup {\n .ant-drawer-header {\n display: none;\n }\n .ant-drawer-body {\n padding-top: 14px;\n }\n .ant-drawer-content {\n background: #f0f2f5;\n }\n }\n &.nb-record-picker-selector {\n .nb-block-item {\n margin-bottom: 24px;\n .general-schema-designer {\n top: -8px;\n bottom: -8px;\n left: -8px;\n right: -8px;\n }\n }\n }\n "])))),
|
|
60
60
|
footer: footerSchema && /*#__PURE__*/React.createElement("div", {
|
|
61
61
|
className: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: flex;\n justify-content: flex-end;\n width: 100%;\n .ant-btn {\n margin-right: 8px;\n }\n "])))
|
|
62
62
|
}, /*#__PURE__*/React.createElement(RecursionField, {
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
var validateJSON = {
|
|
2
|
+
validator: "{{(value, rule)=> {\n if (!value) {\n return '';\n }\n try {\n const val = JSON.parse(value);\n if(!isNaN(val)) {\n return false;\n }\n return true;\n } catch(error) {\n console.error(error);\n return false;\n }\n }}}",
|
|
3
|
+
message: '{{t("Invalid JSON format")}}'
|
|
4
|
+
};
|
|
5
|
+
export var requestSettingsSchema = {
|
|
6
|
+
type: 'object',
|
|
7
|
+
properties: {
|
|
8
|
+
url: {
|
|
9
|
+
type: 'string',
|
|
10
|
+
title: '{{t("Request URL")}}',
|
|
11
|
+
required: true,
|
|
12
|
+
'x-decorator': 'FormItem',
|
|
13
|
+
'x-component': 'Input'
|
|
14
|
+
},
|
|
15
|
+
method: {
|
|
16
|
+
type: 'string',
|
|
17
|
+
title: '{{t("Request method")}}',
|
|
18
|
+
'x-decorator': 'FormItem',
|
|
19
|
+
'x-component': 'Select',
|
|
20
|
+
default: 'POST',
|
|
21
|
+
enum: [{
|
|
22
|
+
label: 'POST',
|
|
23
|
+
value: 'POST'
|
|
24
|
+
}, {
|
|
25
|
+
label: 'GET',
|
|
26
|
+
value: 'GET'
|
|
27
|
+
}, {
|
|
28
|
+
label: 'PUT',
|
|
29
|
+
value: 'PUT'
|
|
30
|
+
}, {
|
|
31
|
+
label: 'PATCH',
|
|
32
|
+
value: 'PATCH'
|
|
33
|
+
}, {
|
|
34
|
+
label: 'DELETE',
|
|
35
|
+
value: 'DELETE'
|
|
36
|
+
}]
|
|
37
|
+
},
|
|
38
|
+
headers: {
|
|
39
|
+
type: 'string',
|
|
40
|
+
title: '{{t("Request headers")}}',
|
|
41
|
+
'x-decorator': 'FormItem',
|
|
42
|
+
'x-component': 'Input.TextArea',
|
|
43
|
+
'x-validator': validateJSON
|
|
44
|
+
},
|
|
45
|
+
params: {
|
|
46
|
+
type: 'string',
|
|
47
|
+
title: '{{t("Request query parameters")}}',
|
|
48
|
+
'x-decorator': 'FormItem',
|
|
49
|
+
'x-component': 'Input.TextArea',
|
|
50
|
+
'x-validator': validateJSON
|
|
51
|
+
},
|
|
52
|
+
data: {
|
|
53
|
+
type: 'string',
|
|
54
|
+
title: '{{t("Request body")}}',
|
|
55
|
+
'x-decorator': 'FormItem',
|
|
56
|
+
'x-component': 'Input.TextArea',
|
|
57
|
+
'x-validator': validateJSON
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
@@ -32,7 +32,7 @@ var useOptions = function useOptions() {
|
|
|
32
32
|
};
|
|
33
33
|
|
|
34
34
|
export var CalendarDesigner = function CalendarDesigner() {
|
|
35
|
-
var _fieldSchema$xDecora, _fieldSchema$xDecora$, _fieldSchema$xDecora2;
|
|
35
|
+
var _fieldSchema$xDecora, _fieldSchema$xDecora$, _fieldSchema$xDecora2, _fieldSchema$xDecora3;
|
|
36
36
|
|
|
37
37
|
var field = useField();
|
|
38
38
|
var fieldSchema = useFieldSchema();
|
|
@@ -59,10 +59,11 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
59
59
|
var defaultFilter = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora === void 0 ? void 0 : (_fieldSchema$xDecora$ = _fieldSchema$xDecora.params) === null || _fieldSchema$xDecora$ === void 0 ? void 0 : _fieldSchema$xDecora$.filter) || {};
|
|
60
60
|
var options = useOptions();
|
|
61
61
|
var fieldNames = (fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora2 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora2 === void 0 ? void 0 : _fieldSchema$xDecora2['fieldNames']) || {};
|
|
62
|
+
var defaultResource = fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xDecora3 = fieldSchema['x-decorator-props']) === null || _fieldSchema$xDecora3 === void 0 ? void 0 : _fieldSchema$xDecora3.resource;
|
|
62
63
|
return /*#__PURE__*/React.createElement(GeneralSchemaDesigner, {
|
|
63
64
|
template: template,
|
|
64
65
|
title: title || name
|
|
65
|
-
}, /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
|
|
66
|
+
}, /*#__PURE__*/React.createElement(SchemaSettings.BlockTitleItem, null), /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
|
|
66
67
|
title: t('Title field'),
|
|
67
68
|
value: fieldNames.title,
|
|
68
69
|
options: options,
|
|
@@ -147,7 +148,8 @@ export var CalendarDesigner = function CalendarDesigner() {
|
|
|
147
148
|
}
|
|
148
149
|
}), /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Template, {
|
|
149
150
|
componentName: 'Calendar',
|
|
150
|
-
collectionName: name
|
|
151
|
+
collectionName: name,
|
|
152
|
+
resourceName: defaultResource
|
|
151
153
|
}), /*#__PURE__*/React.createElement(SchemaSettings.Divider, null), /*#__PURE__*/React.createElement(SchemaSettings.Remove, {
|
|
152
154
|
removeParentsIfNoChildren: true,
|
|
153
155
|
breakRemoveOn: {
|