@nocobase/client 0.7.4-alpha.7 → 0.7.6-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/application/Application.js +1 -3
- package/es/block-provider/TableBlockProvider.js +3 -3
- package/es/collection-manager/Configuration/AddFieldAction.js +38 -41
- package/es/collection-manager/Configuration/ConfigurationTable.js +8 -3
- package/es/collection-manager/Configuration/EditFieldAction.js +64 -41
- package/es/collection-manager/Configuration/schemas/collections.d.ts +2 -0
- package/es/collection-manager/Configuration/schemas/collections.js +23 -1
- package/es/collection-manager/action-hooks.d.ts +5 -0
- package/es/collection-manager/action-hooks.js +14 -1
- package/es/collection-manager/interfaces/email.js +4 -2
- package/es/collection-manager/interfaces/formula.js +1 -1
- package/es/collection-manager/interfaces/index.d.ts +1 -0
- package/es/collection-manager/interfaces/index.js +1 -0
- package/es/collection-manager/interfaces/input.js +4 -2
- package/es/collection-manager/interfaces/integer.js +4 -2
- package/es/collection-manager/interfaces/m2m.js +2 -2
- package/es/collection-manager/interfaces/m2o.js +7 -3
- package/es/collection-manager/interfaces/number.js +3 -2
- package/es/collection-manager/interfaces/o2m.js +8 -4
- package/es/collection-manager/interfaces/o2o.js +19 -6
- package/es/collection-manager/interfaces/password.js +4 -2
- package/es/collection-manager/interfaces/percent.js +2 -1
- package/es/collection-manager/interfaces/phone.js +4 -2
- package/es/collection-manager/interfaces/properties/index.d.ts +7 -0
- package/es/collection-manager/interfaces/properties/index.js +91 -0
- package/es/collection-manager/interfaces/sequence.d.ts +2 -0
- package/es/collection-manager/interfaces/sequence.js +431 -0
- package/es/index.d.ts +0 -1
- package/es/index.js +0 -1
- package/es/locale/en_US.d.ts +1 -0
- package/es/locale/en_US.js +2 -1
- package/es/locale/index.js +36 -0
- package/es/locale/ja_JP.d.ts +590 -0
- package/es/locale/ja_JP.js +591 -0
- package/es/locale/ru_RU.d.ts +560 -0
- package/es/locale/ru_RU.js +559 -0
- package/es/locale/tr_TR.d.ts +560 -0
- package/es/locale/tr_TR.js +559 -0
- package/es/locale/zh_CN.d.ts +30 -0
- package/es/locale/zh_CN.js +34 -4
- package/es/route-switch/antd/admin-layout/index.js +19 -4
- package/es/schema-component/antd/action/Action.js +3 -1
- package/es/schema-component/antd/action/ActionBar.js +8 -1
- package/es/schema-component/antd/cron/Cron.d.ts +6 -0
- package/es/schema-component/antd/cron/Cron.js +49 -0
- package/es/schema-component/antd/cron/index.d.ts +1 -0
- package/es/schema-component/antd/cron/index.js +1 -0
- package/es/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
- package/es/schema-component/antd/cron/locale/zh-CN.js +37 -0
- package/es/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
- package/es/schema-component/antd/filter/useFilterActionProps.d.ts +12 -1
- package/es/schema-component/antd/filter/useFilterActionProps.js +24 -10
- package/es/schema-component/antd/filter/useValues.js +0 -1
- package/es/schema-component/antd/formula-input/Compute.js +1 -1
- package/es/schema-component/antd/grid/Grid.js +134 -25
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/index.js +1 -0
- package/es/schema-component/antd/record-picker/InputRecordPicker.js +4 -2
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +5 -2
- package/es/schema-component/antd/record-picker/util.d.ts +5 -0
- package/es/schema-component/antd/record-picker/util.js +37 -0
- package/es/schema-component/antd/upload/shared.js +6 -2
- package/es/schema-component/common/dnd-context/index.js +30 -4
- package/es/schema-component/hooks/useDesignable.d.ts +2 -2
- package/es/schema-component/hooks/useDesignable.js +130 -26
- package/es/schema-initializer/SchemaInitializer.d.ts +1 -0
- package/es/schema-initializer/SchemaInitializer.js +6 -2
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
- package/es/schema-initializer/buttons/TabPaneInitializers.js +9 -3
- package/es/schema-initializer/items/ActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/ActionInitializer.js +13 -0
- package/es/schema-initializer/items/BlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/BlockInitializer.js +18 -0
- package/es/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/BulkDestroyActionInitializer.js +27 -0
- package/es/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CalendarBlockInitializer.js +124 -0
- package/es/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CollectionFieldInitializer.js +15 -0
- package/es/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateActionInitializer.js +60 -0
- package/es/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateFormBlockInitializer.js +102 -0
- package/es/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CreateSubmitActionInitializer.js +24 -0
- package/es/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/CustomizeActionInitializer.js +11 -0
- package/es/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/DataBlockInitializer.js +88 -0
- package/es/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/DestroyActionInitializer.js +27 -0
- package/es/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/DetailsBlockInitializer.js +55 -0
- package/es/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/FilterActionInitializer.js +24 -0
- package/es/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/FormBlockInitializer.js +30 -0
- package/es/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
- package/es/schema-initializer/items/G2PlotInitializer.js +25 -0
- package/es/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
- package/es/schema-initializer/items/InitializerWithSwitch.js +32 -0
- package/es/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/KanbanBlockInitializer.js +138 -0
- package/es/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/MarkdownBlockInitializer.js +32 -0
- package/es/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/PrintActionInitializer.js +23 -0
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordAssociationBlockInitializer.js +90 -0
- package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +160 -0
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +90 -0
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordAssociationFormBlockInitializer.js +112 -0
- package/es/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordFormBlockInitializer.js +109 -0
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +116 -0
- package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +114 -0
- package/es/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/RefreshActionInitializer.js +23 -0
- package/es/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/SubmitActionInitializer.js +24 -0
- package/es/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
- package/es/schema-initializer/items/TableActionColumnInitializer.js +34 -0
- package/es/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
- package/es/schema-initializer/items/TableBlockInitializer.js +55 -0
- package/es/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
- package/es/schema-initializer/items/TableCollectionFieldInitializer.js +15 -0
- package/es/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
- package/es/schema-initializer/items/TableSelectorInitializer.js +67 -0
- package/es/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/UpdateActionInitializer.js +59 -0
- package/es/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/UpdateSubmitActionInitializer.js +24 -0
- package/es/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
- package/es/schema-initializer/items/ViewActionInitializer.js +58 -0
- package/es/schema-initializer/items/index.d.ts +35 -35
- package/es/schema-initializer/items/index.js +35 -1589
- package/es/schema-initializer/style.less +4 -0
- package/es/schema-templates/SchemaTemplateManagerProvider.js +2 -5
- package/es/system-settings/SystemSettingsShortcut.js +7 -0
- package/es/user/SigninPage.d.ts +11 -2
- package/es/user/SigninPage.js +140 -33
- package/es/user/SignupPage.d.ts +13 -2
- package/es/user/SignupPage.js +57 -11
- package/es/user/VerificationCode.d.ts +7 -0
- package/es/user/VerificationCode.js +129 -0
- package/lib/application/Application.js +1 -4
- package/lib/block-provider/TableBlockProvider.js +3 -3
- package/lib/collection-manager/Configuration/AddFieldAction.js +38 -40
- package/lib/collection-manager/Configuration/ConfigurationTable.js +7 -2
- package/lib/collection-manager/Configuration/EditFieldAction.js +65 -40
- package/lib/collection-manager/Configuration/schemas/collections.d.ts +2 -0
- package/lib/collection-manager/Configuration/schemas/collections.js +24 -1
- package/lib/collection-manager/action-hooks.d.ts +5 -0
- package/lib/collection-manager/action-hooks.js +31 -14
- package/lib/collection-manager/interfaces/email.js +3 -1
- package/lib/collection-manager/interfaces/formula.js +1 -1
- package/lib/collection-manager/interfaces/index.d.ts +1 -0
- package/lib/collection-manager/interfaces/index.js +13 -0
- package/lib/collection-manager/interfaces/input.js +3 -1
- package/lib/collection-manager/interfaces/integer.js +3 -1
- package/lib/collection-manager/interfaces/m2m.js +1 -1
- package/lib/collection-manager/interfaces/m2o.js +6 -2
- package/lib/collection-manager/interfaces/number.js +4 -3
- package/lib/collection-manager/interfaces/o2m.js +7 -3
- package/lib/collection-manager/interfaces/o2o.js +18 -5
- package/lib/collection-manager/interfaces/password.js +3 -1
- package/lib/collection-manager/interfaces/percent.js +1 -0
- package/lib/collection-manager/interfaces/phone.js +3 -1
- package/lib/collection-manager/interfaces/properties/index.d.ts +7 -0
- package/lib/collection-manager/interfaces/properties/index.js +94 -1
- package/lib/collection-manager/interfaces/sequence.d.ts +2 -0
- package/lib/collection-manager/interfaces/sequence.js +455 -0
- package/lib/index.d.ts +0 -1
- package/lib/index.js +0 -13
- package/lib/locale/en_US.d.ts +1 -0
- package/lib/locale/en_US.js +2 -1
- package/lib/locale/index.js +42 -0
- package/lib/locale/ja_JP.d.ts +590 -0
- package/lib/locale/ja_JP.js +598 -0
- package/lib/locale/ru_RU.d.ts +560 -0
- package/lib/locale/ru_RU.js +566 -0
- package/lib/locale/tr_TR.d.ts +560 -0
- package/lib/locale/tr_TR.js +566 -0
- package/lib/locale/zh_CN.d.ts +30 -0
- package/lib/locale/zh_CN.js +34 -4
- package/lib/route-switch/antd/admin-layout/index.js +19 -4
- package/lib/schema-component/antd/action/Action.js +2 -0
- package/lib/schema-component/antd/action/ActionBar.js +9 -1
- package/lib/schema-component/antd/cron/Cron.d.ts +6 -0
- package/lib/schema-component/antd/cron/Cron.js +67 -0
- package/lib/schema-component/antd/cron/index.d.ts +1 -0
- package/lib/{file-manager → schema-component/antd/cron}/index.js +4 -4
- package/lib/schema-component/antd/cron/locale/zh-CN.d.ts +34 -0
- package/lib/schema-component/antd/cron/locale/zh-CN.js +44 -0
- package/lib/schema-component/antd/filter/Filter.Action.Designer.js +1 -0
- package/lib/schema-component/antd/filter/useFilterActionProps.d.ts +12 -1
- package/lib/schema-component/antd/filter/useFilterActionProps.js +34 -11
- package/lib/schema-component/antd/filter/useValues.js +0 -1
- package/lib/schema-component/antd/formula-input/Compute.js +1 -1
- package/lib/schema-component/antd/grid/Grid.js +132 -23
- package/lib/schema-component/antd/index.d.ts +1 -0
- package/lib/schema-component/antd/index.js +13 -0
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +5 -2
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +6 -2
- package/lib/schema-component/antd/record-picker/util.d.ts +5 -0
- package/lib/schema-component/antd/record-picker/util.js +55 -0
- package/lib/schema-component/antd/upload/shared.js +5 -1
- package/lib/schema-component/common/dnd-context/index.js +35 -5
- package/lib/schema-component/hooks/useDesignable.d.ts +2 -2
- package/lib/schema-component/hooks/useDesignable.js +132 -28
- package/lib/schema-initializer/SchemaInitializer.d.ts +1 -0
- package/lib/schema-initializer/SchemaInitializer.js +7 -2
- package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +2 -1
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +13 -4
- package/lib/schema-initializer/items/ActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/ActionInitializer.js +26 -0
- package/lib/schema-initializer/items/BlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/BlockInitializer.js +31 -0
- package/lib/schema-initializer/items/BulkDestroyActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/BulkDestroyActionInitializer.js +40 -0
- package/lib/schema-initializer/items/CalendarBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CalendarBlockInitializer.js +148 -0
- package/lib/schema-initializer/items/CollectionFieldInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CollectionFieldInitializer.js +28 -0
- package/lib/schema-initializer/items/CreateActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateActionInitializer.js +73 -0
- package/lib/schema-initializer/items/CreateFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateFormBlockInitializer.js +120 -0
- package/lib/schema-initializer/items/CreateSubmitActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CreateSubmitActionInitializer.js +37 -0
- package/lib/schema-initializer/items/CustomizeActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/CustomizeActionInitializer.js +24 -0
- package/lib/schema-initializer/items/DataBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/DataBlockInitializer.js +104 -0
- package/lib/schema-initializer/items/DestroyActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/DestroyActionInitializer.js +40 -0
- package/lib/schema-initializer/items/DetailsBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/DetailsBlockInitializer.js +71 -0
- package/lib/schema-initializer/items/FilterActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/FilterActionInitializer.js +37 -0
- package/lib/schema-initializer/items/FormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/FormBlockInitializer.js +45 -0
- package/lib/schema-initializer/items/G2PlotInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/G2PlotInitializer.js +38 -0
- package/lib/schema-initializer/items/InitializerWithSwitch.d.ts +1 -0
- package/lib/schema-initializer/items/InitializerWithSwitch.js +47 -0
- package/lib/schema-initializer/items/KanbanBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/KanbanBlockInitializer.js +163 -0
- package/lib/schema-initializer/items/MarkdownBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/MarkdownBlockInitializer.js +47 -0
- package/lib/schema-initializer/items/PrintActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/PrintActionInitializer.js +36 -0
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordAssociationBlockInitializer.js +107 -0
- package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordAssociationCalendarBlockInitializer.js +185 -0
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordAssociationDetailsBlockInitializer.js +107 -0
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordAssociationFormBlockInitializer.js +128 -0
- package/lib/schema-initializer/items/RecordFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordFormBlockInitializer.js +127 -0
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordReadPrettyAssociationFormBlockInitializer.js +133 -0
- package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RecordReadPrettyFormBlockInitializer.js +132 -0
- package/lib/schema-initializer/items/RefreshActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/RefreshActionInitializer.js +36 -0
- package/lib/schema-initializer/items/SubmitActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/SubmitActionInitializer.js +37 -0
- package/lib/schema-initializer/items/TableActionColumnInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/TableActionColumnInitializer.js +47 -0
- package/lib/schema-initializer/items/TableBlockInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/TableBlockInitializer.js +71 -0
- package/lib/schema-initializer/items/TableCollectionFieldInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/TableCollectionFieldInitializer.js +28 -0
- package/lib/schema-initializer/items/TableSelectorInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/TableSelectorInitializer.js +84 -0
- package/lib/schema-initializer/items/UpdateActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/UpdateActionInitializer.js +72 -0
- package/lib/schema-initializer/items/UpdateSubmitActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/UpdateSubmitActionInitializer.js +37 -0
- package/lib/schema-initializer/items/ViewActionInitializer.d.ts +1 -0
- package/lib/schema-initializer/items/ViewActionInitializer.js +71 -0
- package/lib/schema-initializer/items/index.d.ts +35 -35
- package/lib/schema-initializer/items/index.js +400 -1659
- package/lib/schema-initializer/style.less +4 -0
- package/lib/schema-templates/SchemaTemplateManagerProvider.js +2 -5
- package/lib/system-settings/SystemSettingsShortcut.js +7 -0
- package/lib/user/SigninPage.d.ts +11 -2
- package/lib/user/SigninPage.js +150 -34
- package/lib/user/SignupPage.d.ts +13 -2
- package/lib/user/SignupPage.js +59 -11
- package/lib/user/VerificationCode.d.ts +7 -0
- package/lib/user/VerificationCode.js +148 -0
- package/package.json +6 -4
- package/es/file-manager/FileStorageShortcut.d.ts +0 -1
- package/es/file-manager/FileStorageShortcut.js +0 -61
- package/es/file-manager/StorageOptions.d.ts +0 -2
- package/es/file-manager/StorageOptions.js +0 -121
- package/es/file-manager/index.d.ts +0 -1
- package/es/file-manager/index.js +0 -1
- package/es/file-manager/schemas/storage.d.ts +0 -2
- package/es/file-manager/schemas/storage.js +0 -349
- package/lib/file-manager/FileStorageShortcut.d.ts +0 -1
- package/lib/file-manager/FileStorageShortcut.js +0 -85
- package/lib/file-manager/StorageOptions.d.ts +0 -2
- package/lib/file-manager/StorageOptions.js +0 -138
- package/lib/file-manager/index.d.ts +0 -1
- package/lib/file-manager/schemas/storage.d.ts +0 -2
- package/lib/file-manager/schemas/storage.js +0 -360
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
1
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
6
|
|
|
3
7
|
import { cloneDeep } from 'lodash';
|
|
4
|
-
import { recordPickerSelector, recordPickerViewer, relationshipType } from './properties';
|
|
8
|
+
import { recordPickerSelector, recordPickerViewer, relationshipType, reverseFieldProperties } from './properties';
|
|
5
9
|
export var o2m = {
|
|
6
10
|
name: 'o2m',
|
|
7
11
|
type: 'object',
|
|
@@ -89,7 +93,7 @@ export var o2m = {
|
|
|
89
93
|
};
|
|
90
94
|
} else {
|
|
91
95
|
schema['x-component'] = 'CollectionField';
|
|
92
|
-
schema.type = '
|
|
96
|
+
schema.type = 'array';
|
|
93
97
|
|
|
94
98
|
if (block === 'Form') {
|
|
95
99
|
schema['properties'] = {
|
|
@@ -123,7 +127,7 @@ export var o2m = {
|
|
|
123
127
|
schema['x-component-props']['ellipsis'] = true;
|
|
124
128
|
}
|
|
125
129
|
},
|
|
126
|
-
properties: {
|
|
130
|
+
properties: _objectSpread({
|
|
127
131
|
'uiSchema.title': {
|
|
128
132
|
type: 'string',
|
|
129
133
|
title: '{{t("Field display name")}}',
|
|
@@ -244,7 +248,7 @@ export var o2m = {
|
|
|
244
248
|
}
|
|
245
249
|
}
|
|
246
250
|
}
|
|
247
|
-
},
|
|
251
|
+
}, reverseFieldProperties),
|
|
248
252
|
filterable: {
|
|
249
253
|
nested: true,
|
|
250
254
|
children: [// {
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
1
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
6
|
|
|
3
7
|
import { cloneDeep } from 'lodash';
|
|
4
|
-
import { recordPickerSelector, recordPickerViewer, relationshipType } from './properties';
|
|
8
|
+
import { recordPickerSelector, recordPickerViewer, relationshipType, reverseFieldProperties } from './properties';
|
|
5
9
|
|
|
6
10
|
var internalSchameInitialize = function internalSchameInitialize(schema, _ref) {
|
|
7
11
|
var field = _ref.field,
|
|
@@ -218,6 +222,15 @@ export var o2o = {
|
|
|
218
222
|
}
|
|
219
223
|
}
|
|
220
224
|
}
|
|
225
|
+
},
|
|
226
|
+
'reverseField.name': {
|
|
227
|
+
type: 'string',
|
|
228
|
+
title: '{{t("Inverse field name")}}',
|
|
229
|
+
// required: true,
|
|
230
|
+
'x-hidden': '{{ !createOnly }}',
|
|
231
|
+
'x-decorator': 'FormItem',
|
|
232
|
+
'x-component': 'Input',
|
|
233
|
+
description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
|
|
221
234
|
}
|
|
222
235
|
},
|
|
223
236
|
filterable: {
|
|
@@ -297,7 +310,7 @@ export var oho = {
|
|
|
297
310
|
schema['x-component-props']['ellipsis'] = true;
|
|
298
311
|
}
|
|
299
312
|
},
|
|
300
|
-
properties: {
|
|
313
|
+
properties: _objectSpread({
|
|
301
314
|
'uiSchema.title': {
|
|
302
315
|
type: 'string',
|
|
303
316
|
title: '{{t("Field display name")}}',
|
|
@@ -390,7 +403,7 @@ export var oho = {
|
|
|
390
403
|
}
|
|
391
404
|
}
|
|
392
405
|
}
|
|
393
|
-
},
|
|
406
|
+
}, reverseFieldProperties),
|
|
394
407
|
filterable: {
|
|
395
408
|
nested: true,
|
|
396
409
|
children: [// {
|
|
@@ -441,7 +454,7 @@ export var obo = {
|
|
|
441
454
|
'x-component': 'RecordPicker',
|
|
442
455
|
'x-component-props': {
|
|
443
456
|
// mode: 'tags',
|
|
444
|
-
multiple:
|
|
457
|
+
multiple: false,
|
|
445
458
|
fieldNames: {
|
|
446
459
|
label: 'id',
|
|
447
460
|
value: 'id'
|
|
@@ -467,7 +480,7 @@ export var obo = {
|
|
|
467
480
|
schema['x-component-props']['ellipsis'] = true;
|
|
468
481
|
}
|
|
469
482
|
},
|
|
470
|
-
properties: {
|
|
483
|
+
properties: _objectSpread({
|
|
471
484
|
'uiSchema.title': {
|
|
472
485
|
type: 'string',
|
|
473
486
|
title: '{{t("Field display name")}}',
|
|
@@ -561,7 +574,7 @@ export var obo = {
|
|
|
561
574
|
}
|
|
562
575
|
}
|
|
563
576
|
}
|
|
564
|
-
},
|
|
577
|
+
}, reverseFieldProperties),
|
|
565
578
|
filterable: {
|
|
566
579
|
nested: true,
|
|
567
580
|
children: [// {
|
|
@@ -5,7 +5,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
7
|
import { i18n } from '../../i18n';
|
|
8
|
-
import { defaultProps } from './properties';
|
|
8
|
+
import { defaultProps, unique } from './properties';
|
|
9
9
|
export var password = {
|
|
10
10
|
name: 'password',
|
|
11
11
|
type: 'object',
|
|
@@ -23,7 +23,9 @@ export var password = {
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
hasDefaultValue: true,
|
|
26
|
-
properties: _objectSpread({}, defaultProps),
|
|
26
|
+
properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
27
|
+
unique: unique
|
|
28
|
+
}),
|
|
27
29
|
validateSchema: function validateSchema(fieldSchema) {
|
|
28
30
|
return {
|
|
29
31
|
max: {
|
|
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import { defaultProps, operators } from './properties';
|
|
7
|
+
import { defaultProps, operators, unique } from './properties';
|
|
8
8
|
import { i18n } from '../../i18n';
|
|
9
9
|
import { registerValidateRules } from '@formily/core';
|
|
10
10
|
registerValidateRules({
|
|
@@ -71,6 +71,7 @@ export var percent = {
|
|
|
71
71
|
},
|
|
72
72
|
hasDefaultValue: true,
|
|
73
73
|
properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
74
|
+
unique: unique,
|
|
74
75
|
'uiSchema.x-component-props.step': {
|
|
75
76
|
type: 'string',
|
|
76
77
|
title: '{{t("Precision")}}',
|
|
@@ -4,7 +4,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import { defaultProps, operators } from './properties';
|
|
7
|
+
import { defaultProps, operators, unique } from './properties';
|
|
8
8
|
export var phone = {
|
|
9
9
|
name: 'phone',
|
|
10
10
|
type: 'object',
|
|
@@ -26,7 +26,9 @@ export var phone = {
|
|
|
26
26
|
}
|
|
27
27
|
},
|
|
28
28
|
hasDefaultValue: true,
|
|
29
|
-
properties: _objectSpread({}, defaultProps),
|
|
29
|
+
properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
30
|
+
unique: unique
|
|
31
|
+
}),
|
|
30
32
|
filterable: {
|
|
31
33
|
operators: operators.string
|
|
32
34
|
}
|
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { ISchema } from '@formily/react';
|
|
2
2
|
export * as operators from './operators';
|
|
3
3
|
export declare const type: ISchema;
|
|
4
|
+
export declare const unique: {
|
|
5
|
+
type: string;
|
|
6
|
+
'x-content': string;
|
|
7
|
+
'x-decorator': string;
|
|
8
|
+
'x-component': string;
|
|
9
|
+
};
|
|
4
10
|
export declare const relationshipType: ISchema;
|
|
11
|
+
export declare const reverseFieldProperties: Record<string, ISchema>;
|
|
5
12
|
export declare const dateTimeProps: {
|
|
6
13
|
[key: string]: ISchema;
|
|
7
14
|
};
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
2
|
+
|
|
3
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
+
|
|
5
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
|
|
1
7
|
import { uid } from '@formily/shared';
|
|
2
8
|
import * as _operators from './operators';
|
|
3
9
|
export { _operators as operators };
|
|
@@ -23,6 +29,9 @@ export var type = {
|
|
|
23
29
|
}, {
|
|
24
30
|
label: 'Float',
|
|
25
31
|
value: 'float'
|
|
32
|
+
}, {
|
|
33
|
+
label: 'Double',
|
|
34
|
+
value: 'double'
|
|
26
35
|
}, {
|
|
27
36
|
label: 'Decimal',
|
|
28
37
|
value: 'decimal'
|
|
@@ -58,6 +67,12 @@ export var type = {
|
|
|
58
67
|
value: 'belongsToMany'
|
|
59
68
|
}]
|
|
60
69
|
};
|
|
70
|
+
export var unique = {
|
|
71
|
+
type: 'boolean',
|
|
72
|
+
'x-content': '{{t("Unique")}}',
|
|
73
|
+
'x-decorator': 'FormItem',
|
|
74
|
+
'x-component': 'Checkbox'
|
|
75
|
+
};
|
|
61
76
|
export var relationshipType = {
|
|
62
77
|
type: 'string',
|
|
63
78
|
title: '{{t("Relationship type")}}',
|
|
@@ -79,6 +94,82 @@ export var relationshipType = {
|
|
|
79
94
|
value: 'belongsToMany'
|
|
80
95
|
}]
|
|
81
96
|
};
|
|
97
|
+
export var reverseFieldProperties = {
|
|
98
|
+
reverse: {
|
|
99
|
+
type: 'void',
|
|
100
|
+
'x-component': 'div',
|
|
101
|
+
'x-hidden': '{{ !showReverseFieldConfig }}',
|
|
102
|
+
properties: {
|
|
103
|
+
autoCreateReverseField: {
|
|
104
|
+
type: 'boolean',
|
|
105
|
+
default: true,
|
|
106
|
+
'x-decorator': 'FormItem',
|
|
107
|
+
'x-component': 'Checkbox',
|
|
108
|
+
'x-content': '{{t("Create inverse field in the target collection")}}',
|
|
109
|
+
'x-reactions': [{
|
|
110
|
+
target: 'reverseField.type',
|
|
111
|
+
when: '{{!!$self.value}}',
|
|
112
|
+
fulfill: {
|
|
113
|
+
state: {
|
|
114
|
+
hidden: false
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
otherwise: {
|
|
118
|
+
state: {
|
|
119
|
+
hidden: true
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
}, {
|
|
123
|
+
target: 'reverseField.uiSchema.title',
|
|
124
|
+
when: '{{!!$self.value}}',
|
|
125
|
+
fulfill: {
|
|
126
|
+
state: {
|
|
127
|
+
hidden: false
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
otherwise: {
|
|
131
|
+
state: {
|
|
132
|
+
hidden: true
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
}, {
|
|
136
|
+
target: 'reverseField.name',
|
|
137
|
+
when: '{{!!$self.value}}',
|
|
138
|
+
fulfill: {
|
|
139
|
+
state: {
|
|
140
|
+
hidden: false
|
|
141
|
+
}
|
|
142
|
+
},
|
|
143
|
+
otherwise: {
|
|
144
|
+
state: {
|
|
145
|
+
hidden: true
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
}]
|
|
149
|
+
},
|
|
150
|
+
'reverseField.type': _objectSpread(_objectSpread({}, relationshipType), {}, {
|
|
151
|
+
title: '{{t("Inverse relationship type")}}'
|
|
152
|
+
}),
|
|
153
|
+
'reverseField.uiSchema.title': {
|
|
154
|
+
type: 'string',
|
|
155
|
+
title: '{{t("Inverse field display name")}}',
|
|
156
|
+
default: '{{record.title}}',
|
|
157
|
+
required: true,
|
|
158
|
+
'x-decorator': 'FormItem',
|
|
159
|
+
'x-component': 'Input'
|
|
160
|
+
},
|
|
161
|
+
'reverseField.name': {
|
|
162
|
+
type: 'string',
|
|
163
|
+
title: '{{t("Inverse field name")}}',
|
|
164
|
+
required: true,
|
|
165
|
+
'x-decorator': 'FormItem',
|
|
166
|
+
'x-component': 'Input',
|
|
167
|
+
'x-validator': 'uid',
|
|
168
|
+
description: "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}"
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
};
|
|
82
173
|
export var dateTimeProps = {
|
|
83
174
|
'uiSchema.x-component-props.dateFormat': {
|
|
84
175
|
type: 'string',
|