@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
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export declare const BlockInitializer: (props: any) => JSX.Element;
|
|
2
|
+
export declare const G2PlotInitializer: (props: any) => JSX.Element;
|
|
2
3
|
export declare const CustomizeActionInitializer: (props: any) => JSX.Element;
|
|
3
4
|
export declare const InitializerWithSwitch: (props: any) => JSX.Element;
|
|
4
5
|
export declare const ActionInitializer: (props: any) => JSX.Element;
|
|
@@ -21,6 +22,10 @@ export declare const UpdateSubmitActionInitializer: (props: any) => JSX.Element;
|
|
|
21
22
|
export declare const CreateFormBlockInitializer: (props: any) => JSX.Element;
|
|
22
23
|
export declare const RecordFormBlockInitializer: (props: any) => JSX.Element;
|
|
23
24
|
export declare const RecordReadPrettyFormBlockInitializer: (props: any) => JSX.Element;
|
|
25
|
+
export declare const RecordAssociationFormBlockInitializer: (props: any) => JSX.Element;
|
|
26
|
+
export declare const RecordReadPrettyAssociationFormBlockInitializer: (props: any) => JSX.Element;
|
|
27
|
+
export declare const RecordAssociationDetailsBlockInitializer: (props: any) => JSX.Element;
|
|
28
|
+
export declare const RecordAssociationCalendarBlockInitializer: (props: any) => JSX.Element;
|
|
24
29
|
export declare const RecordAssociationBlockInitializer: (props: any) => JSX.Element;
|
|
25
30
|
export declare const TableActionColumnInitializer: (props: any) => JSX.Element;
|
|
26
31
|
export declare const TableCollectionFieldInitializer: (props: any) => JSX.Element;
|
|
@@ -5,7 +5,7 @@ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" =
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.ViewActionInitializer = exports.UpdateSubmitActionInitializer = exports.UpdateActionInitializer = exports.TableSelectorInitializer = exports.TableCollectionFieldInitializer = exports.TableBlockInitializer = exports.TableActionColumnInitializer = exports.SubmitActionInitializer = exports.RecordReadPrettyFormBlockInitializer = exports.RecordFormBlockInitializer = exports.RecordAssociationBlockInitializer = exports.MarkdownBlockInitializer = exports.KanbanBlockInitializer = exports.InitializerWithSwitch = exports.FormBlockInitializer = exports.FilterActionInitializer = exports.DetailsBlockInitializer = exports.DestroyActionInitializer = exports.DataBlockInitializer = exports.CustomizeActionInitializer = exports.CreateSubmitActionInitializer = exports.CreateFormBlockInitializer = exports.CreateActionInitializer = exports.CollectionFieldInitializer = exports.CalendarBlockInitializer = exports.BulkDestroyActionInitializer = exports.BlockInitializer = exports.ActionInitializer = void 0;
|
|
8
|
+
exports.ViewActionInitializer = exports.UpdateSubmitActionInitializer = exports.UpdateActionInitializer = exports.TableSelectorInitializer = exports.TableCollectionFieldInitializer = exports.TableBlockInitializer = exports.TableActionColumnInitializer = exports.SubmitActionInitializer = exports.RecordReadPrettyFormBlockInitializer = exports.RecordReadPrettyAssociationFormBlockInitializer = exports.RecordFormBlockInitializer = exports.RecordAssociationFormBlockInitializer = exports.RecordAssociationDetailsBlockInitializer = exports.RecordAssociationCalendarBlockInitializer = exports.RecordAssociationBlockInitializer = exports.MarkdownBlockInitializer = exports.KanbanBlockInitializer = exports.InitializerWithSwitch = exports.G2PlotInitializer = exports.FormBlockInitializer = exports.FilterActionInitializer = exports.DetailsBlockInitializer = exports.DestroyActionInitializer = exports.DataBlockInitializer = exports.CustomizeActionInitializer = exports.CreateSubmitActionInitializer = exports.CreateFormBlockInitializer = exports.CreateActionInitializer = exports.CollectionFieldInitializer = exports.CalendarBlockInitializer = exports.BulkDestroyActionInitializer = exports.BlockInitializer = exports.ActionInitializer = void 0;
|
|
9
9
|
|
|
10
10
|
var _icons = require("@ant-design/icons");
|
|
11
11
|
|
|
@@ -33,12 +33,17 @@ var _SchemaInitializer = require("../SchemaInitializer");
|
|
|
33
33
|
|
|
34
34
|
var _utils = require("../utils");
|
|
35
35
|
|
|
36
|
-
var _excluded = ["
|
|
37
|
-
_excluded2 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
36
|
+
var _excluded = ["item", "insert"],
|
|
37
|
+
_excluded2 = ["templateWrap", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
38
38
|
_excluded3 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
39
39
|
_excluded4 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
40
|
-
_excluded5 = ["
|
|
41
|
-
_excluded6 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"]
|
|
40
|
+
_excluded5 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
41
|
+
_excluded6 = ["item", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
42
|
+
_excluded7 = ["item", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
43
|
+
_excluded8 = ["item", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
44
|
+
_excluded9 = ["item", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
45
|
+
_excluded10 = ["item", "onCreateBlockSchema", "componentType", "createBlockSchema", "insert"],
|
|
46
|
+
_excluded11 = ["onCreateBlockSchema", "componentType", "createBlockSchema", "insert"];
|
|
42
47
|
|
|
43
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
44
49
|
|
|
@@ -71,6 +76,20 @@ var BlockInitializer = function BlockInitializer(props) {
|
|
|
71
76
|
|
|
72
77
|
exports.BlockInitializer = BlockInitializer;
|
|
73
78
|
|
|
79
|
+
var G2PlotInitializer = function G2PlotInitializer(props) {
|
|
80
|
+
var item = props.item,
|
|
81
|
+
insert = props.insert,
|
|
82
|
+
others = _objectWithoutProperties(props, _excluded);
|
|
83
|
+
|
|
84
|
+
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({}, others), {}, {
|
|
85
|
+
onClick: function onClick() {
|
|
86
|
+
insert(_objectSpread({}, item.schema));
|
|
87
|
+
}
|
|
88
|
+
}));
|
|
89
|
+
};
|
|
90
|
+
|
|
91
|
+
exports.G2PlotInitializer = G2PlotInitializer;
|
|
92
|
+
|
|
74
93
|
var CustomizeActionInitializer = function CustomizeActionInitializer(props) {
|
|
75
94
|
return /*#__PURE__*/_react2.default.createElement(BlockInitializer, _objectSpread({}, props));
|
|
76
95
|
};
|
|
@@ -122,7 +141,7 @@ var DataBlockInitializer = function DataBlockInitializer(props) {
|
|
|
122
141
|
componentType = props.componentType,
|
|
123
142
|
createBlockSchema = props.createBlockSchema,
|
|
124
143
|
insert = props.insert,
|
|
125
|
-
others = _objectWithoutProperties(props,
|
|
144
|
+
others = _objectWithoutProperties(props, _excluded2);
|
|
126
145
|
|
|
127
146
|
var _useSchemaTemplateMan = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
128
147
|
getTemplateSchemaByMode = _useSchemaTemplateMan.getTemplateSchemaByMode;
|
|
@@ -588,11 +607,28 @@ var CreateActionInitializer = function CreateActionInitializer(props) {
|
|
|
588
607
|
className: 'nb-action-popup'
|
|
589
608
|
},
|
|
590
609
|
properties: {
|
|
591
|
-
|
|
610
|
+
tabs: {
|
|
592
611
|
type: 'void',
|
|
593
|
-
'x-component': '
|
|
594
|
-
'x-
|
|
595
|
-
|
|
612
|
+
'x-component': 'Tabs',
|
|
613
|
+
'x-component-props': {},
|
|
614
|
+
'x-initializer': 'TabPaneInitializers',
|
|
615
|
+
properties: {
|
|
616
|
+
tab1: {
|
|
617
|
+
type: 'void',
|
|
618
|
+
title: '{{t("Add new")}}',
|
|
619
|
+
'x-component': 'Tabs.TabPane',
|
|
620
|
+
'x-designer': 'Tabs.Designer',
|
|
621
|
+
'x-component-props': {},
|
|
622
|
+
properties: {
|
|
623
|
+
grid: {
|
|
624
|
+
type: 'void',
|
|
625
|
+
'x-component': 'Grid',
|
|
626
|
+
'x-initializer': 'CreateFormBlockInitializers',
|
|
627
|
+
properties: {}
|
|
628
|
+
}
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
}
|
|
596
632
|
}
|
|
597
633
|
}
|
|
598
634
|
}
|
|
@@ -818,7 +854,7 @@ var CreateFormBlockInitializer = function CreateFormBlockInitializer(props) {
|
|
|
818
854
|
componentType = props.componentType,
|
|
819
855
|
createBlockSchema = props.createBlockSchema,
|
|
820
856
|
insert = props.insert,
|
|
821
|
-
others = _objectWithoutProperties(props,
|
|
857
|
+
others = _objectWithoutProperties(props, _excluded3);
|
|
822
858
|
|
|
823
859
|
var _useSchemaTemplateMan2 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
824
860
|
getTemplateSchemaByMode = _useSchemaTemplateMan2.getTemplateSchemaByMode;
|
|
@@ -900,7 +936,7 @@ var RecordFormBlockInitializer = function RecordFormBlockInitializer(props) {
|
|
|
900
936
|
componentType = props.componentType,
|
|
901
937
|
createBlockSchema = props.createBlockSchema,
|
|
902
938
|
insert = props.insert,
|
|
903
|
-
others = _objectWithoutProperties(props,
|
|
939
|
+
others = _objectWithoutProperties(props, _excluded4);
|
|
904
940
|
|
|
905
941
|
var _useSchemaTemplateMan3 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
906
942
|
getTemplateSchemaByMode = _useSchemaTemplateMan3.getTemplateSchemaByMode;
|
|
@@ -988,7 +1024,7 @@ var RecordReadPrettyFormBlockInitializer = function RecordReadPrettyFormBlockIni
|
|
|
988
1024
|
componentType = props.componentType,
|
|
989
1025
|
createBlockSchema = props.createBlockSchema,
|
|
990
1026
|
insert = props.insert,
|
|
991
|
-
others = _objectWithoutProperties(props,
|
|
1027
|
+
others = _objectWithoutProperties(props, _excluded5);
|
|
992
1028
|
|
|
993
1029
|
var _useSchemaTemplateMan4 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
994
1030
|
getTemplateSchemaByMode = _useSchemaTemplateMan4.getTemplateSchemaByMode;
|
|
@@ -998,6 +1034,7 @@ var RecordReadPrettyFormBlockInitializer = function RecordReadPrettyFormBlockIni
|
|
|
998
1034
|
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
999
1035
|
icon: /*#__PURE__*/_react2.default.createElement(_icons.FormOutlined, null)
|
|
1000
1036
|
}, others), {}, {
|
|
1037
|
+
key: '123',
|
|
1001
1038
|
onClick: function () {
|
|
1002
1039
|
var _onClick4 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee8(_ref9) {
|
|
1003
1040
|
var item, s, blockSchema;
|
|
@@ -1069,47 +1106,81 @@ var RecordReadPrettyFormBlockInitializer = function RecordReadPrettyFormBlockIni
|
|
|
1069
1106
|
|
|
1070
1107
|
exports.RecordReadPrettyFormBlockInitializer = RecordReadPrettyFormBlockInitializer;
|
|
1071
1108
|
|
|
1072
|
-
var
|
|
1109
|
+
var RecordAssociationFormBlockInitializer = function RecordAssociationFormBlockInitializer(props) {
|
|
1073
1110
|
var item = props.item,
|
|
1074
1111
|
onCreateBlockSchema = props.onCreateBlockSchema,
|
|
1075
1112
|
componentType = props.componentType,
|
|
1076
1113
|
createBlockSchema = props.createBlockSchema,
|
|
1077
1114
|
insert = props.insert,
|
|
1078
|
-
others = _objectWithoutProperties(props,
|
|
1115
|
+
others = _objectWithoutProperties(props, _excluded6);
|
|
1079
1116
|
|
|
1080
1117
|
var _useSchemaTemplateMan5 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1081
1118
|
getTemplateSchemaByMode = _useSchemaTemplateMan5.getTemplateSchemaByMode;
|
|
1082
1119
|
|
|
1083
|
-
var
|
|
1084
|
-
|
|
1085
|
-
|
|
1120
|
+
var field = item.field;
|
|
1121
|
+
var collection = field.target;
|
|
1122
|
+
var resource = "".concat(field.collectionName, ".").concat(field.name);
|
|
1086
1123
|
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1087
|
-
icon: /*#__PURE__*/_react2.default.createElement(_icons.
|
|
1124
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.FormOutlined, null)
|
|
1088
1125
|
}, others), {}, {
|
|
1089
1126
|
onClick: function () {
|
|
1090
1127
|
var _onClick5 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee9(_ref10) {
|
|
1091
|
-
var item,
|
|
1128
|
+
var item, action, actionInitializers, s, blockSchema;
|
|
1092
1129
|
return regeneratorRuntime.wrap(function _callee9$(_context9) {
|
|
1093
1130
|
while (1) {
|
|
1094
1131
|
switch (_context9.prev = _context9.next) {
|
|
1095
1132
|
case 0:
|
|
1096
1133
|
item = _ref10.item;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
collection = getCollection(field.target);
|
|
1100
|
-
insert((0, _utils.createTableBlockSchema)({
|
|
1101
|
-
rowKey: collection.filterTargetKey,
|
|
1102
|
-
collection: field.target,
|
|
1103
|
-
resource: "".concat(field.collectionName, ".").concat(field.name),
|
|
1104
|
-
association: "".concat(field.collectionName, ".").concat(field.name)
|
|
1105
|
-
})); // if (item.template) {
|
|
1106
|
-
// const s = await getTemplateSchemaByMode(item);
|
|
1107
|
-
// insert(s);
|
|
1108
|
-
// } else {
|
|
1109
|
-
// insert(createTableBlockSchema({ collection: item.name }));
|
|
1110
|
-
// }
|
|
1134
|
+
action = ['hasOne', 'belongsTo'].includes(field.type) ? 'get' : null;
|
|
1135
|
+
actionInitializers = ['hasOne', 'belongsTo'].includes(field.type) ? 'UpdateFormActionInitializers' : 'CreateFormActionInitializers';
|
|
1111
1136
|
|
|
1112
|
-
|
|
1137
|
+
if (!item.template) {
|
|
1138
|
+
_context9.next = 10;
|
|
1139
|
+
break;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
_context9.next = 6;
|
|
1143
|
+
return getTemplateSchemaByMode(item);
|
|
1144
|
+
|
|
1145
|
+
case 6:
|
|
1146
|
+
s = _context9.sent;
|
|
1147
|
+
|
|
1148
|
+
if (item.template.componentName === 'FormItem') {
|
|
1149
|
+
blockSchema = (0, _utils.createFormBlockSchema)({
|
|
1150
|
+
collection: collection,
|
|
1151
|
+
resource: resource,
|
|
1152
|
+
association: resource,
|
|
1153
|
+
action: action,
|
|
1154
|
+
useSourceId: '{{ useSourceIdFromParentRecord }}',
|
|
1155
|
+
useParams: '{{ useParamsFromRecord }}',
|
|
1156
|
+
actionInitializers: actionInitializers,
|
|
1157
|
+
template: s
|
|
1158
|
+
});
|
|
1159
|
+
|
|
1160
|
+
if (item.mode === 'reference') {
|
|
1161
|
+
blockSchema['x-template-key'] = item.template.key;
|
|
1162
|
+
}
|
|
1163
|
+
|
|
1164
|
+
insert(blockSchema);
|
|
1165
|
+
} else {
|
|
1166
|
+
insert(s);
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
_context9.next = 11;
|
|
1170
|
+
break;
|
|
1171
|
+
|
|
1172
|
+
case 10:
|
|
1173
|
+
insert((0, _utils.createFormBlockSchema)({
|
|
1174
|
+
collection: collection,
|
|
1175
|
+
resource: resource,
|
|
1176
|
+
association: resource,
|
|
1177
|
+
action: action,
|
|
1178
|
+
useSourceId: '{{ useSourceIdFromParentRecord }}',
|
|
1179
|
+
useParams: '{{ useParamsFromRecord }}',
|
|
1180
|
+
actionInitializers: actionInitializers
|
|
1181
|
+
}));
|
|
1182
|
+
|
|
1183
|
+
case 11:
|
|
1113
1184
|
case "end":
|
|
1114
1185
|
return _context9.stop();
|
|
1115
1186
|
}
|
|
@@ -1122,7 +1193,377 @@ var RecordAssociationBlockInitializer = function RecordAssociationBlockInitializ
|
|
|
1122
1193
|
}
|
|
1123
1194
|
|
|
1124
1195
|
return onClick;
|
|
1125
|
-
}()
|
|
1196
|
+
}(),
|
|
1197
|
+
items: (0, _utils.useRecordCollectionDataSourceItems)('FormItem', item, collection, resource)
|
|
1198
|
+
}));
|
|
1199
|
+
};
|
|
1200
|
+
|
|
1201
|
+
exports.RecordAssociationFormBlockInitializer = RecordAssociationFormBlockInitializer;
|
|
1202
|
+
|
|
1203
|
+
var RecordReadPrettyAssociationFormBlockInitializer = function RecordReadPrettyAssociationFormBlockInitializer(props) {
|
|
1204
|
+
var item = props.item,
|
|
1205
|
+
onCreateBlockSchema = props.onCreateBlockSchema,
|
|
1206
|
+
componentType = props.componentType,
|
|
1207
|
+
createBlockSchema = props.createBlockSchema,
|
|
1208
|
+
insert = props.insert,
|
|
1209
|
+
others = _objectWithoutProperties(props, _excluded7);
|
|
1210
|
+
|
|
1211
|
+
var _useSchemaTemplateMan6 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1212
|
+
getTemplateSchemaByMode = _useSchemaTemplateMan6.getTemplateSchemaByMode;
|
|
1213
|
+
|
|
1214
|
+
var field = item.field;
|
|
1215
|
+
var collection = field.target;
|
|
1216
|
+
var resource = "".concat(field.collectionName, ".").concat(field.name);
|
|
1217
|
+
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1218
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.FormOutlined, null)
|
|
1219
|
+
}, others), {}, {
|
|
1220
|
+
onClick: function () {
|
|
1221
|
+
var _onClick6 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee10(_ref11) {
|
|
1222
|
+
var item, s, blockSchema;
|
|
1223
|
+
return regeneratorRuntime.wrap(function _callee10$(_context10) {
|
|
1224
|
+
while (1) {
|
|
1225
|
+
switch (_context10.prev = _context10.next) {
|
|
1226
|
+
case 0:
|
|
1227
|
+
item = _ref11.item;
|
|
1228
|
+
|
|
1229
|
+
if (!item.template) {
|
|
1230
|
+
_context10.next = 8;
|
|
1231
|
+
break;
|
|
1232
|
+
}
|
|
1233
|
+
|
|
1234
|
+
_context10.next = 4;
|
|
1235
|
+
return getTemplateSchemaByMode(item);
|
|
1236
|
+
|
|
1237
|
+
case 4:
|
|
1238
|
+
s = _context10.sent;
|
|
1239
|
+
|
|
1240
|
+
if (item.template.componentName === 'ReadPrettyFormItem') {
|
|
1241
|
+
blockSchema = (0, _utils.createReadPrettyFormBlockSchema)({
|
|
1242
|
+
collection: collection,
|
|
1243
|
+
resource: resource,
|
|
1244
|
+
association: resource,
|
|
1245
|
+
action: 'get',
|
|
1246
|
+
useSourceId: '{{ useSourceIdFromParentRecord }}',
|
|
1247
|
+
useParams: '{{ useParamsFromRecord }}',
|
|
1248
|
+
template: s
|
|
1249
|
+
});
|
|
1250
|
+
|
|
1251
|
+
if (item.mode === 'reference') {
|
|
1252
|
+
blockSchema['x-template-key'] = item.template.key;
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
insert(blockSchema);
|
|
1256
|
+
} else {
|
|
1257
|
+
insert(s);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
_context10.next = 9;
|
|
1261
|
+
break;
|
|
1262
|
+
|
|
1263
|
+
case 8:
|
|
1264
|
+
insert((0, _utils.createReadPrettyFormBlockSchema)({
|
|
1265
|
+
collection: collection,
|
|
1266
|
+
resource: resource,
|
|
1267
|
+
association: resource,
|
|
1268
|
+
action: 'get',
|
|
1269
|
+
useSourceId: '{{ useSourceIdFromParentRecord }}',
|
|
1270
|
+
useParams: '{{ useParamsFromRecord }}'
|
|
1271
|
+
}));
|
|
1272
|
+
|
|
1273
|
+
case 9:
|
|
1274
|
+
case "end":
|
|
1275
|
+
return _context10.stop();
|
|
1276
|
+
}
|
|
1277
|
+
}
|
|
1278
|
+
}, _callee10);
|
|
1279
|
+
}));
|
|
1280
|
+
|
|
1281
|
+
function onClick(_x10) {
|
|
1282
|
+
return _onClick6.apply(this, arguments);
|
|
1283
|
+
}
|
|
1284
|
+
|
|
1285
|
+
return onClick;
|
|
1286
|
+
}(),
|
|
1287
|
+
items: (0, _utils.useRecordCollectionDataSourceItems)('ReadPrettyFormItem', item, collection, resource)
|
|
1288
|
+
}));
|
|
1289
|
+
};
|
|
1290
|
+
|
|
1291
|
+
exports.RecordReadPrettyAssociationFormBlockInitializer = RecordReadPrettyAssociationFormBlockInitializer;
|
|
1292
|
+
|
|
1293
|
+
var RecordAssociationDetailsBlockInitializer = function RecordAssociationDetailsBlockInitializer(props) {
|
|
1294
|
+
var item = props.item,
|
|
1295
|
+
onCreateBlockSchema = props.onCreateBlockSchema,
|
|
1296
|
+
componentType = props.componentType,
|
|
1297
|
+
createBlockSchema = props.createBlockSchema,
|
|
1298
|
+
insert = props.insert,
|
|
1299
|
+
others = _objectWithoutProperties(props, _excluded8);
|
|
1300
|
+
|
|
1301
|
+
var _useSchemaTemplateMan7 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1302
|
+
getTemplateSchemaByMode = _useSchemaTemplateMan7.getTemplateSchemaByMode;
|
|
1303
|
+
|
|
1304
|
+
var _useCollectionManager5 = (0, _collectionManager.useCollectionManager)(),
|
|
1305
|
+
getCollection = _useCollectionManager5.getCollection;
|
|
1306
|
+
|
|
1307
|
+
var field = item.field;
|
|
1308
|
+
var collection = getCollection(field.target);
|
|
1309
|
+
var resource = "".concat(field.collectionName, ".").concat(field.name);
|
|
1310
|
+
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1311
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.FormOutlined, null)
|
|
1312
|
+
}, others), {}, {
|
|
1313
|
+
onClick: function () {
|
|
1314
|
+
var _onClick7 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee11(_ref12) {
|
|
1315
|
+
var item, s;
|
|
1316
|
+
return regeneratorRuntime.wrap(function _callee11$(_context11) {
|
|
1317
|
+
while (1) {
|
|
1318
|
+
switch (_context11.prev = _context11.next) {
|
|
1319
|
+
case 0:
|
|
1320
|
+
item = _ref12.item;
|
|
1321
|
+
|
|
1322
|
+
if (!item.template) {
|
|
1323
|
+
_context11.next = 8;
|
|
1324
|
+
break;
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
_context11.next = 4;
|
|
1328
|
+
return getTemplateSchemaByMode(item);
|
|
1329
|
+
|
|
1330
|
+
case 4:
|
|
1331
|
+
s = _context11.sent;
|
|
1332
|
+
insert(s);
|
|
1333
|
+
_context11.next = 9;
|
|
1334
|
+
break;
|
|
1335
|
+
|
|
1336
|
+
case 8:
|
|
1337
|
+
insert((0, _utils.createDetailsBlockSchema)({
|
|
1338
|
+
collection: field.target,
|
|
1339
|
+
resource: resource,
|
|
1340
|
+
association: resource,
|
|
1341
|
+
rowKey: collection.filterTargetKey || 'id'
|
|
1342
|
+
}));
|
|
1343
|
+
|
|
1344
|
+
case 9:
|
|
1345
|
+
case "end":
|
|
1346
|
+
return _context11.stop();
|
|
1347
|
+
}
|
|
1348
|
+
}
|
|
1349
|
+
}, _callee11);
|
|
1350
|
+
}));
|
|
1351
|
+
|
|
1352
|
+
function onClick(_x11) {
|
|
1353
|
+
return _onClick7.apply(this, arguments);
|
|
1354
|
+
}
|
|
1355
|
+
|
|
1356
|
+
return onClick;
|
|
1357
|
+
}(),
|
|
1358
|
+
items: (0, _utils.useRecordCollectionDataSourceItems)('Details', item, field.target, resource)
|
|
1359
|
+
}));
|
|
1360
|
+
};
|
|
1361
|
+
|
|
1362
|
+
exports.RecordAssociationDetailsBlockInitializer = RecordAssociationDetailsBlockInitializer;
|
|
1363
|
+
|
|
1364
|
+
var RecordAssociationCalendarBlockInitializer = function RecordAssociationCalendarBlockInitializer(props) {
|
|
1365
|
+
var item = props.item,
|
|
1366
|
+
onCreateBlockSchema = props.onCreateBlockSchema,
|
|
1367
|
+
componentType = props.componentType,
|
|
1368
|
+
createBlockSchema = props.createBlockSchema,
|
|
1369
|
+
insert = props.insert,
|
|
1370
|
+
others = _objectWithoutProperties(props, _excluded9);
|
|
1371
|
+
|
|
1372
|
+
var _useSchemaTemplateMan8 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1373
|
+
getTemplateSchemaByMode = _useSchemaTemplateMan8.getTemplateSchemaByMode;
|
|
1374
|
+
|
|
1375
|
+
var _useTranslation4 = (0, _reactI18next.useTranslation)(),
|
|
1376
|
+
t = _useTranslation4.t;
|
|
1377
|
+
|
|
1378
|
+
var options = (0, _react2.useContext)(_react.SchemaOptionsContext);
|
|
1379
|
+
|
|
1380
|
+
var _useCollectionManager6 = (0, _collectionManager.useCollectionManager)(),
|
|
1381
|
+
getCollection = _useCollectionManager6.getCollection;
|
|
1382
|
+
|
|
1383
|
+
var field = item.field;
|
|
1384
|
+
var collection = getCollection(field.target);
|
|
1385
|
+
var resource = "".concat(field.collectionName, ".").concat(field.name);
|
|
1386
|
+
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1387
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.TableOutlined, null)
|
|
1388
|
+
}, others), {}, {
|
|
1389
|
+
onClick: function () {
|
|
1390
|
+
var _onClick8 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee12(_ref13) {
|
|
1391
|
+
var item, s, _collection$fields5, _collection$fields5$f, _collection$fields6, _collection$fields6$f, stringFields, dateFields, values;
|
|
1392
|
+
|
|
1393
|
+
return regeneratorRuntime.wrap(function _callee12$(_context12) {
|
|
1394
|
+
while (1) {
|
|
1395
|
+
switch (_context12.prev = _context12.next) {
|
|
1396
|
+
case 0:
|
|
1397
|
+
item = _ref13.item;
|
|
1398
|
+
|
|
1399
|
+
if (!item.template) {
|
|
1400
|
+
_context12.next = 8;
|
|
1401
|
+
break;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
_context12.next = 4;
|
|
1405
|
+
return getTemplateSchemaByMode(item);
|
|
1406
|
+
|
|
1407
|
+
case 4:
|
|
1408
|
+
s = _context12.sent;
|
|
1409
|
+
insert(s);
|
|
1410
|
+
_context12.next = 14;
|
|
1411
|
+
break;
|
|
1412
|
+
|
|
1413
|
+
case 8:
|
|
1414
|
+
stringFields = collection === null || collection === void 0 ? void 0 : (_collection$fields5 = collection.fields) === null || _collection$fields5 === void 0 ? void 0 : (_collection$fields5$f = _collection$fields5.filter(function (field) {
|
|
1415
|
+
return field.type === 'string';
|
|
1416
|
+
})) === null || _collection$fields5$f === void 0 ? void 0 : _collection$fields5$f.map(function (field) {
|
|
1417
|
+
var _field$uiSchema4;
|
|
1418
|
+
|
|
1419
|
+
return {
|
|
1420
|
+
label: field === null || field === void 0 ? void 0 : (_field$uiSchema4 = field.uiSchema) === null || _field$uiSchema4 === void 0 ? void 0 : _field$uiSchema4.title,
|
|
1421
|
+
value: field.name
|
|
1422
|
+
};
|
|
1423
|
+
});
|
|
1424
|
+
dateFields = collection === null || collection === void 0 ? void 0 : (_collection$fields6 = collection.fields) === null || _collection$fields6 === void 0 ? void 0 : (_collection$fields6$f = _collection$fields6.filter(function (field) {
|
|
1425
|
+
return field.type === 'date';
|
|
1426
|
+
})) === null || _collection$fields6$f === void 0 ? void 0 : _collection$fields6$f.map(function (field) {
|
|
1427
|
+
var _field$uiSchema5;
|
|
1428
|
+
|
|
1429
|
+
return {
|
|
1430
|
+
label: field === null || field === void 0 ? void 0 : (_field$uiSchema5 = field.uiSchema) === null || _field$uiSchema5 === void 0 ? void 0 : _field$uiSchema5.title,
|
|
1431
|
+
value: field.name
|
|
1432
|
+
};
|
|
1433
|
+
});
|
|
1434
|
+
_context12.next = 12;
|
|
1435
|
+
return (0, _antd.FormDialog)(t('Create calendar block'), function () {
|
|
1436
|
+
return /*#__PURE__*/_react2.default.createElement(_schemaComponent.SchemaComponentOptions, {
|
|
1437
|
+
scope: options.scope,
|
|
1438
|
+
components: _objectSpread({}, options.components)
|
|
1439
|
+
}, /*#__PURE__*/_react2.default.createElement(_antd.FormLayout, {
|
|
1440
|
+
layout: 'vertical'
|
|
1441
|
+
}, /*#__PURE__*/_react2.default.createElement(_schemaComponent.SchemaComponent, {
|
|
1442
|
+
schema: {
|
|
1443
|
+
properties: {
|
|
1444
|
+
title: {
|
|
1445
|
+
title: t('Title field'),
|
|
1446
|
+
enum: stringFields,
|
|
1447
|
+
required: true,
|
|
1448
|
+
'x-component': 'Select',
|
|
1449
|
+
'x-decorator': 'FormItem'
|
|
1450
|
+
},
|
|
1451
|
+
start: {
|
|
1452
|
+
title: t('Start date field'),
|
|
1453
|
+
enum: dateFields,
|
|
1454
|
+
required: true,
|
|
1455
|
+
default: 'createdAt',
|
|
1456
|
+
'x-component': 'Select',
|
|
1457
|
+
'x-decorator': 'FormItem'
|
|
1458
|
+
},
|
|
1459
|
+
end: {
|
|
1460
|
+
title: t('End date field'),
|
|
1461
|
+
enum: dateFields,
|
|
1462
|
+
'x-component': 'Select',
|
|
1463
|
+
'x-decorator': 'FormItem'
|
|
1464
|
+
}
|
|
1465
|
+
}
|
|
1466
|
+
}
|
|
1467
|
+
})));
|
|
1468
|
+
}).open({
|
|
1469
|
+
initialValues: {}
|
|
1470
|
+
});
|
|
1471
|
+
|
|
1472
|
+
case 12:
|
|
1473
|
+
values = _context12.sent;
|
|
1474
|
+
insert((0, _utils.createCalendarBlockSchema)({
|
|
1475
|
+
collection: field.target,
|
|
1476
|
+
resource: resource,
|
|
1477
|
+
association: resource,
|
|
1478
|
+
fieldNames: _objectSpread({}, values)
|
|
1479
|
+
}));
|
|
1480
|
+
|
|
1481
|
+
case 14:
|
|
1482
|
+
case "end":
|
|
1483
|
+
return _context12.stop();
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
}, _callee12);
|
|
1487
|
+
}));
|
|
1488
|
+
|
|
1489
|
+
function onClick(_x12) {
|
|
1490
|
+
return _onClick8.apply(this, arguments);
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
return onClick;
|
|
1494
|
+
}(),
|
|
1495
|
+
items: (0, _utils.useRecordCollectionDataSourceItems)('Calendar', item, field.target, resource)
|
|
1496
|
+
}));
|
|
1497
|
+
};
|
|
1498
|
+
|
|
1499
|
+
exports.RecordAssociationCalendarBlockInitializer = RecordAssociationCalendarBlockInitializer;
|
|
1500
|
+
|
|
1501
|
+
var RecordAssociationBlockInitializer = function RecordAssociationBlockInitializer(props) {
|
|
1502
|
+
var item = props.item,
|
|
1503
|
+
onCreateBlockSchema = props.onCreateBlockSchema,
|
|
1504
|
+
componentType = props.componentType,
|
|
1505
|
+
createBlockSchema = props.createBlockSchema,
|
|
1506
|
+
insert = props.insert,
|
|
1507
|
+
others = _objectWithoutProperties(props, _excluded10);
|
|
1508
|
+
|
|
1509
|
+
var _useSchemaTemplateMan9 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1510
|
+
getTemplateSchemaByMode = _useSchemaTemplateMan9.getTemplateSchemaByMode;
|
|
1511
|
+
|
|
1512
|
+
var _useCollectionManager7 = (0, _collectionManager.useCollectionManager)(),
|
|
1513
|
+
getCollection = _useCollectionManager7.getCollection;
|
|
1514
|
+
|
|
1515
|
+
var field = item.field;
|
|
1516
|
+
var collection = getCollection(field.target);
|
|
1517
|
+
var resource = "".concat(field.collectionName, ".").concat(field.name);
|
|
1518
|
+
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1519
|
+
icon: /*#__PURE__*/_react2.default.createElement(_icons.TableOutlined, null)
|
|
1520
|
+
}, others), {}, {
|
|
1521
|
+
onClick: function () {
|
|
1522
|
+
var _onClick9 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee13(_ref14) {
|
|
1523
|
+
var item, s;
|
|
1524
|
+
return regeneratorRuntime.wrap(function _callee13$(_context13) {
|
|
1525
|
+
while (1) {
|
|
1526
|
+
switch (_context13.prev = _context13.next) {
|
|
1527
|
+
case 0:
|
|
1528
|
+
item = _ref14.item;
|
|
1529
|
+
|
|
1530
|
+
if (!item.template) {
|
|
1531
|
+
_context13.next = 8;
|
|
1532
|
+
break;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
_context13.next = 4;
|
|
1536
|
+
return getTemplateSchemaByMode(item);
|
|
1537
|
+
|
|
1538
|
+
case 4:
|
|
1539
|
+
s = _context13.sent;
|
|
1540
|
+
insert(s);
|
|
1541
|
+
_context13.next = 9;
|
|
1542
|
+
break;
|
|
1543
|
+
|
|
1544
|
+
case 8:
|
|
1545
|
+
insert((0, _utils.createTableBlockSchema)({
|
|
1546
|
+
rowKey: collection.filterTargetKey,
|
|
1547
|
+
collection: field.target,
|
|
1548
|
+
resource: resource,
|
|
1549
|
+
association: resource
|
|
1550
|
+
}));
|
|
1551
|
+
|
|
1552
|
+
case 9:
|
|
1553
|
+
case "end":
|
|
1554
|
+
return _context13.stop();
|
|
1555
|
+
}
|
|
1556
|
+
}
|
|
1557
|
+
}, _callee13);
|
|
1558
|
+
}));
|
|
1559
|
+
|
|
1560
|
+
function onClick(_x13) {
|
|
1561
|
+
return _onClick9.apply(this, arguments);
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
return onClick;
|
|
1565
|
+
}(),
|
|
1566
|
+
items: (0, _utils.useRecordCollectionDataSourceItems)('Table', item, field.target, resource)
|
|
1126
1567
|
}));
|
|
1127
1568
|
};
|
|
1128
1569
|
|
|
@@ -1182,23 +1623,23 @@ var TableSelectorInitializer = function TableSelectorInitializer(props) {
|
|
|
1182
1623
|
componentType = props.componentType,
|
|
1183
1624
|
createBlockSchema = props.createBlockSchema,
|
|
1184
1625
|
insert = props.insert,
|
|
1185
|
-
others = _objectWithoutProperties(props,
|
|
1626
|
+
others = _objectWithoutProperties(props, _excluded11);
|
|
1186
1627
|
|
|
1187
|
-
var
|
|
1188
|
-
getTemplateSchemaByMode =
|
|
1628
|
+
var _useSchemaTemplateMan10 = (0, _schemaTemplates.useSchemaTemplateManager)(),
|
|
1629
|
+
getTemplateSchemaByMode = _useSchemaTemplateMan10.getTemplateSchemaByMode;
|
|
1189
1630
|
|
|
1190
1631
|
var collection = (0, _collectionManager.useCollection)();
|
|
1191
1632
|
return /*#__PURE__*/_react2.default.createElement(_SchemaInitializer.SchemaInitializer.Item, _objectSpread(_objectSpread({
|
|
1192
1633
|
icon: /*#__PURE__*/_react2.default.createElement(_icons.FormOutlined, null)
|
|
1193
1634
|
}, others), {}, {
|
|
1194
1635
|
onClick: function () {
|
|
1195
|
-
var
|
|
1636
|
+
var _onClick10 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee14(_ref15) {
|
|
1196
1637
|
var item, field;
|
|
1197
|
-
return regeneratorRuntime.wrap(function
|
|
1638
|
+
return regeneratorRuntime.wrap(function _callee14$(_context14) {
|
|
1198
1639
|
while (1) {
|
|
1199
|
-
switch (
|
|
1640
|
+
switch (_context14.prev = _context14.next) {
|
|
1200
1641
|
case 0:
|
|
1201
|
-
item =
|
|
1642
|
+
item = _ref15.item;
|
|
1202
1643
|
field = item.field;
|
|
1203
1644
|
insert((0, _utils.createTableSelectorSchema)({
|
|
1204
1645
|
rowKey: collection.filterTargetKey,
|
|
@@ -1208,14 +1649,14 @@ var TableSelectorInitializer = function TableSelectorInitializer(props) {
|
|
|
1208
1649
|
|
|
1209
1650
|
case 3:
|
|
1210
1651
|
case "end":
|
|
1211
|
-
return
|
|
1652
|
+
return _context14.stop();
|
|
1212
1653
|
}
|
|
1213
1654
|
}
|
|
1214
|
-
},
|
|
1655
|
+
}, _callee14);
|
|
1215
1656
|
}));
|
|
1216
1657
|
|
|
1217
|
-
function onClick(
|
|
1218
|
-
return
|
|
1658
|
+
function onClick(_x14) {
|
|
1659
|
+
return _onClick10.apply(this, arguments);
|
|
1219
1660
|
}
|
|
1220
1661
|
|
|
1221
1662
|
return onClick;
|