@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
|
@@ -0,0 +1,431 @@
|
|
|
1
|
+
var _templateObject, _templateObject2, _templateObject3, _cycle, _templateObject4, _templateObject5;
|
|
2
|
+
|
|
3
|
+
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
4
|
+
|
|
5
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
6
|
+
|
|
7
|
+
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; }
|
|
8
|
+
|
|
9
|
+
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; }
|
|
10
|
+
|
|
11
|
+
import React, { useContext } from 'react';
|
|
12
|
+
import { Button, Select } from 'antd';
|
|
13
|
+
import { onFieldValueChange } from '@formily/core';
|
|
14
|
+
import { SchemaOptionsContext, useForm, useFormEffects } from '@formily/react';
|
|
15
|
+
import { ArrayTable, FormButtonGroup, FormDrawer, FormLayout, Submit } from '@formily/antd';
|
|
16
|
+
import { useTranslation } from 'react-i18next';
|
|
17
|
+
import { css } from '@emotion/css';
|
|
18
|
+
import { Cron, SchemaComponent, SchemaComponentOptions, useCompile } from '../../schema-component';
|
|
19
|
+
import { defaultProps, operators, unique } from './properties';
|
|
20
|
+
|
|
21
|
+
function RuleTypeSelect(props) {
|
|
22
|
+
var compile = useCompile();
|
|
23
|
+
|
|
24
|
+
var _useForm = useForm(),
|
|
25
|
+
setValuesIn = _useForm.setValuesIn;
|
|
26
|
+
|
|
27
|
+
var index = ArrayTable.useIndex();
|
|
28
|
+
useFormEffects(function () {
|
|
29
|
+
onFieldValueChange("patterns.".concat(index, ".type"), function (field) {
|
|
30
|
+
setValuesIn("patterns.".concat(index, ".options"), {});
|
|
31
|
+
});
|
|
32
|
+
});
|
|
33
|
+
return /*#__PURE__*/React.createElement(Select, _objectSpread({}, props), Object.keys(RuleTypes).map(function (key) {
|
|
34
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
35
|
+
key: key,
|
|
36
|
+
value: key
|
|
37
|
+
}, compile(RuleTypes[key].title));
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function RuleOptions() {
|
|
42
|
+
var _ArrayTable$useRecord = ArrayTable.useRecord(),
|
|
43
|
+
type = _ArrayTable$useRecord.type,
|
|
44
|
+
options = _ArrayTable$useRecord.options;
|
|
45
|
+
|
|
46
|
+
var ruleType = RuleTypes[type];
|
|
47
|
+
var compile = useCompile();
|
|
48
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
49
|
+
className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n gap: 1em;\n flex-wrap: wrap;\n "])))
|
|
50
|
+
}, Object.keys(options).filter(function (key) {
|
|
51
|
+
return typeof options[key] !== 'undefined';
|
|
52
|
+
}).map(function (key) {
|
|
53
|
+
var Component = ruleType.optionRenders[key];
|
|
54
|
+
var title = ruleType.fieldset[key].title;
|
|
55
|
+
return Component ? /*#__PURE__*/React.createElement("dl", {
|
|
56
|
+
key: key,
|
|
57
|
+
className: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n margin: 0;\n padding: 0;\n "])))
|
|
58
|
+
}, /*#__PURE__*/React.createElement("dt", null, compile(title)), /*#__PURE__*/React.createElement("dd", {
|
|
59
|
+
className: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n margin-bottom: 0;\n "])))
|
|
60
|
+
}, /*#__PURE__*/React.createElement(Component, {
|
|
61
|
+
key: key,
|
|
62
|
+
value: options[key]
|
|
63
|
+
}))) : null;
|
|
64
|
+
}));
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
;
|
|
68
|
+
var RuleTypes = {
|
|
69
|
+
string: {
|
|
70
|
+
title: '{{t("Fixed text")}}',
|
|
71
|
+
optionRenders: {
|
|
72
|
+
value: function value() {
|
|
73
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
74
|
+
value: ''
|
|
75
|
+
};
|
|
76
|
+
return /*#__PURE__*/React.createElement("code", null, options.value);
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
fieldset: {
|
|
80
|
+
value: {
|
|
81
|
+
type: 'string',
|
|
82
|
+
title: '{{t("Text content")}}',
|
|
83
|
+
'x-decorator': 'FormItem',
|
|
84
|
+
'x-component': 'Input'
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
integer: {
|
|
89
|
+
title: '{{t("Autoincrement")}}',
|
|
90
|
+
optionRenders: {
|
|
91
|
+
digits: function digits(_ref) {
|
|
92
|
+
var value = _ref.value;
|
|
93
|
+
|
|
94
|
+
var _useTranslation = useTranslation(),
|
|
95
|
+
t = _useTranslation.t;
|
|
96
|
+
|
|
97
|
+
return /*#__PURE__*/React.createElement("span", null, t('{{value}} Digits', {
|
|
98
|
+
value: value
|
|
99
|
+
}));
|
|
100
|
+
},
|
|
101
|
+
start: function start(_ref2) {
|
|
102
|
+
var value = _ref2.value;
|
|
103
|
+
|
|
104
|
+
var _useTranslation2 = useTranslation(),
|
|
105
|
+
t = _useTranslation2.t;
|
|
106
|
+
|
|
107
|
+
return /*#__PURE__*/React.createElement("span", null, t('Starts from {{value}}', {
|
|
108
|
+
value: value
|
|
109
|
+
}));
|
|
110
|
+
},
|
|
111
|
+
cycle: function cycle(_ref3) {
|
|
112
|
+
var value = _ref3.value;
|
|
113
|
+
return /*#__PURE__*/React.createElement(SchemaComponent, {
|
|
114
|
+
schema: {
|
|
115
|
+
type: 'string',
|
|
116
|
+
name: 'cycle',
|
|
117
|
+
'x-component': 'Cron',
|
|
118
|
+
'x-read-pretty': true
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
fieldset: {
|
|
124
|
+
digits: {
|
|
125
|
+
type: 'number',
|
|
126
|
+
title: '{{t("Digits")}}',
|
|
127
|
+
'x-decorator': 'FormItem',
|
|
128
|
+
'x-component': 'InputNumber',
|
|
129
|
+
'x-component-props': {
|
|
130
|
+
min: 1,
|
|
131
|
+
max: 10
|
|
132
|
+
},
|
|
133
|
+
required: true,
|
|
134
|
+
default: 1
|
|
135
|
+
},
|
|
136
|
+
start: {
|
|
137
|
+
type: 'number',
|
|
138
|
+
title: '{{t("Start from")}}',
|
|
139
|
+
'x-decorator': 'FormItem',
|
|
140
|
+
'x-component': 'InputNumber',
|
|
141
|
+
'x-component-props': {
|
|
142
|
+
min: 0
|
|
143
|
+
},
|
|
144
|
+
required: true,
|
|
145
|
+
default: 0
|
|
146
|
+
},
|
|
147
|
+
cycle: (_cycle = {
|
|
148
|
+
type: 'string',
|
|
149
|
+
title: '{{t("Reset cycle")}}',
|
|
150
|
+
'x-decorator': 'FormItem'
|
|
151
|
+
}, _defineProperty(_cycle, 'x-component', function xComponent(_ref4) {
|
|
152
|
+
var value = _ref4.value,
|
|
153
|
+
_onChange = _ref4.onChange;
|
|
154
|
+
var shortValues = [{
|
|
155
|
+
label: '不重置',
|
|
156
|
+
value: 0
|
|
157
|
+
}, {
|
|
158
|
+
label: '每天',
|
|
159
|
+
value: 1,
|
|
160
|
+
cron: '0 0 * * *'
|
|
161
|
+
}, {
|
|
162
|
+
label: '每周一',
|
|
163
|
+
value: 2,
|
|
164
|
+
cron: '0 0 * * 1'
|
|
165
|
+
}, {
|
|
166
|
+
label: '每月',
|
|
167
|
+
value: 3,
|
|
168
|
+
cron: '0 0 1 * *'
|
|
169
|
+
}, {
|
|
170
|
+
label: '每年',
|
|
171
|
+
value: 4,
|
|
172
|
+
cron: '0 0 1 1 *'
|
|
173
|
+
}, {
|
|
174
|
+
label: '自定义',
|
|
175
|
+
value: 5,
|
|
176
|
+
cron: '* * * * *'
|
|
177
|
+
}];
|
|
178
|
+
var option = typeof value === 'undefined' ? shortValues[0] : shortValues.find(function (item) {
|
|
179
|
+
return item.cron == value;
|
|
180
|
+
}) || shortValues[5];
|
|
181
|
+
return /*#__PURE__*/React.createElement("fieldset", null, /*#__PURE__*/React.createElement(Select, {
|
|
182
|
+
value: option.value,
|
|
183
|
+
onChange: function onChange(v) {
|
|
184
|
+
return _onChange(shortValues[v].cron);
|
|
185
|
+
}
|
|
186
|
+
}, shortValues.map(function (item) {
|
|
187
|
+
return /*#__PURE__*/React.createElement(Select.Option, {
|
|
188
|
+
key: item.value,
|
|
189
|
+
value: item.value
|
|
190
|
+
}, item.label);
|
|
191
|
+
})), option.value === 5 ? /*#__PURE__*/React.createElement(Cron, {
|
|
192
|
+
value: value,
|
|
193
|
+
setValue: _onChange,
|
|
194
|
+
clearButton: false
|
|
195
|
+
}) : null);
|
|
196
|
+
}), _defineProperty(_cycle, "default", null), _cycle)
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
date: {
|
|
200
|
+
title: '{{t("Date")}}',
|
|
201
|
+
optionRenders: {
|
|
202
|
+
format: function format() {
|
|
203
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
204
|
+
value: 'YYYYMMDD'
|
|
205
|
+
};
|
|
206
|
+
return /*#__PURE__*/React.createElement("code", null, options.value);
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
};
|
|
211
|
+
|
|
212
|
+
function RuleConfigForm() {
|
|
213
|
+
var _useTranslation3 = useTranslation(),
|
|
214
|
+
t = _useTranslation3.t;
|
|
215
|
+
|
|
216
|
+
var compile = useCompile();
|
|
217
|
+
var schemaOptions = useContext(SchemaOptionsContext);
|
|
218
|
+
var form = useForm();
|
|
219
|
+
|
|
220
|
+
var _ArrayTable$useRecord2 = ArrayTable.useRecord(),
|
|
221
|
+
type = _ArrayTable$useRecord2.type,
|
|
222
|
+
options = _ArrayTable$useRecord2.options;
|
|
223
|
+
|
|
224
|
+
var index = ArrayTable.useIndex();
|
|
225
|
+
var ruleType = RuleTypes[type];
|
|
226
|
+
return (ruleType === null || ruleType === void 0 ? void 0 : ruleType.fieldset) ? /*#__PURE__*/React.createElement(Button, {
|
|
227
|
+
type: "link",
|
|
228
|
+
onClick: function onClick() {
|
|
229
|
+
FormDrawer(compile(ruleType.title), function () {
|
|
230
|
+
return /*#__PURE__*/React.createElement(FormLayout, {
|
|
231
|
+
layout: "vertical"
|
|
232
|
+
}, /*#__PURE__*/React.createElement(SchemaComponentOptions, {
|
|
233
|
+
scope: schemaOptions.scope,
|
|
234
|
+
components: schemaOptions.components
|
|
235
|
+
}, /*#__PURE__*/React.createElement(SchemaComponent, {
|
|
236
|
+
schema: {
|
|
237
|
+
type: 'object',
|
|
238
|
+
'x-component': 'fieldset',
|
|
239
|
+
properties: ruleType.fieldset
|
|
240
|
+
}
|
|
241
|
+
})), /*#__PURE__*/React.createElement(FormDrawer.Footer, null, /*#__PURE__*/React.createElement(FormButtonGroup, {
|
|
242
|
+
className: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n justify-content: flex-end;\n "])))
|
|
243
|
+
}, /*#__PURE__*/React.createElement(Submit, {
|
|
244
|
+
onSubmit: function onSubmit(values) {
|
|
245
|
+
return values;
|
|
246
|
+
}
|
|
247
|
+
}, t('Submit')))));
|
|
248
|
+
}).open({
|
|
249
|
+
initialValues: options
|
|
250
|
+
}).then(function (values) {
|
|
251
|
+
form.setValuesIn("patterns.".concat(index), {
|
|
252
|
+
type: type,
|
|
253
|
+
options: _objectSpread({}, values)
|
|
254
|
+
});
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
}, t('Configure')) : null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export var sequence = {
|
|
261
|
+
name: 'sequence',
|
|
262
|
+
type: 'object',
|
|
263
|
+
group: 'advanced',
|
|
264
|
+
order: 2,
|
|
265
|
+
title: '{{t("Sequence")}}',
|
|
266
|
+
sortable: true,
|
|
267
|
+
default: {
|
|
268
|
+
type: 'sequence',
|
|
269
|
+
uiSchema: {
|
|
270
|
+
type: 'string',
|
|
271
|
+
'x-component': 'Input',
|
|
272
|
+
'x-component-props': {
|
|
273
|
+
readOnly: true,
|
|
274
|
+
disabled: true
|
|
275
|
+
},
|
|
276
|
+
'x-read-pretty': true
|
|
277
|
+
}
|
|
278
|
+
},
|
|
279
|
+
hasDefaultValue: false,
|
|
280
|
+
properties: _objectSpread(_objectSpread({}, defaultProps), {}, {
|
|
281
|
+
unique: unique,
|
|
282
|
+
patterns: {
|
|
283
|
+
type: 'array',
|
|
284
|
+
title: '{{t("Sequence rules")}}',
|
|
285
|
+
required: true,
|
|
286
|
+
'x-decorator': 'FormItem',
|
|
287
|
+
'x-component': 'ArrayTable',
|
|
288
|
+
items: {
|
|
289
|
+
type: 'object',
|
|
290
|
+
properties: {
|
|
291
|
+
sort: {
|
|
292
|
+
type: 'void',
|
|
293
|
+
'x-component': 'ArrayTable.Column',
|
|
294
|
+
'x-component-props': {
|
|
295
|
+
width: 50,
|
|
296
|
+
title: '',
|
|
297
|
+
align: 'center'
|
|
298
|
+
},
|
|
299
|
+
properties: {
|
|
300
|
+
sort: {
|
|
301
|
+
type: 'void',
|
|
302
|
+
'x-component': 'ArrayTable.SortHandle'
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
},
|
|
306
|
+
type: {
|
|
307
|
+
type: 'void',
|
|
308
|
+
'x-component': 'ArrayTable.Column',
|
|
309
|
+
'x-component-props': {
|
|
310
|
+
title: '{{t("Type")}}'
|
|
311
|
+
},
|
|
312
|
+
// 'x-hidden': true,
|
|
313
|
+
properties: {
|
|
314
|
+
type: {
|
|
315
|
+
type: 'string',
|
|
316
|
+
name: 'type',
|
|
317
|
+
required: true,
|
|
318
|
+
'x-decorator': 'FormItem',
|
|
319
|
+
'x-component': RuleTypeSelect
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
options: {
|
|
324
|
+
type: 'void',
|
|
325
|
+
'x-component': 'ArrayTable.Column',
|
|
326
|
+
'x-component-props': {
|
|
327
|
+
title: '{{t("Rule content")}}'
|
|
328
|
+
},
|
|
329
|
+
properties: {
|
|
330
|
+
options: {
|
|
331
|
+
type: 'object',
|
|
332
|
+
name: 'options',
|
|
333
|
+
'x-component': RuleOptions
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
},
|
|
337
|
+
operations: {
|
|
338
|
+
type: 'void',
|
|
339
|
+
'x-component': 'ArrayTable.Column',
|
|
340
|
+
'x-component-props': {
|
|
341
|
+
title: '{{t("Operations")}}',
|
|
342
|
+
dataIndex: 'operations',
|
|
343
|
+
fixed: 'right',
|
|
344
|
+
className: css(_templateObject5 || (_templateObject5 = _taggedTemplateLiteral(["\n > *:not(:last-child){\n margin-right: .5em;\n }\n button{\n padding: 0;\n }\n "])))
|
|
345
|
+
},
|
|
346
|
+
properties: {
|
|
347
|
+
config: {
|
|
348
|
+
type: 'void',
|
|
349
|
+
// 'x-component': 'span',
|
|
350
|
+
properties: {
|
|
351
|
+
options: {
|
|
352
|
+
type: 'object',
|
|
353
|
+
'x-component': RuleConfigForm
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
},
|
|
357
|
+
// configure: {
|
|
358
|
+
// type: 'void',
|
|
359
|
+
// title: '{{t("Configure")}}',
|
|
360
|
+
// 'x-component': 'Action.Link',
|
|
361
|
+
// properties: {
|
|
362
|
+
// drawer: {
|
|
363
|
+
// type: 'void',
|
|
364
|
+
// 'x-component': 'Action.Drawer',
|
|
365
|
+
// 'x-decorator': 'Form',
|
|
366
|
+
// 'x-decorator-props': {
|
|
367
|
+
// useValues: useRowOptions
|
|
368
|
+
// },
|
|
369
|
+
// title: '{{t("Configure")}}',
|
|
370
|
+
// properties: {
|
|
371
|
+
// options: {
|
|
372
|
+
// type: 'void',
|
|
373
|
+
// 'x-component': RuleConfig
|
|
374
|
+
// },
|
|
375
|
+
// actions: {
|
|
376
|
+
// type: 'void',
|
|
377
|
+
// 'x-component': 'Action.Drawer.Footer',
|
|
378
|
+
// properties: {
|
|
379
|
+
// cancel: {
|
|
380
|
+
// title: '{{t("Cancel")}}',
|
|
381
|
+
// 'x-component': 'Action',
|
|
382
|
+
// 'x-component-props': {
|
|
383
|
+
// // useAction: '{{ cm.useCancelAction }}',
|
|
384
|
+
// },
|
|
385
|
+
// },
|
|
386
|
+
// submit: {
|
|
387
|
+
// title: '{{t("Submit")}}',
|
|
388
|
+
// 'x-component': 'Action',
|
|
389
|
+
// 'x-component-props': {
|
|
390
|
+
// type: 'primary',
|
|
391
|
+
// async useAction() {
|
|
392
|
+
// const form = useForm();
|
|
393
|
+
// const ctx = useActionContext();
|
|
394
|
+
// await form.submit();
|
|
395
|
+
// console.log(form);
|
|
396
|
+
// ctx.setVisible(false);
|
|
397
|
+
// }
|
|
398
|
+
// }
|
|
399
|
+
// }
|
|
400
|
+
// }
|
|
401
|
+
// }
|
|
402
|
+
// }
|
|
403
|
+
// },
|
|
404
|
+
// },
|
|
405
|
+
// },
|
|
406
|
+
remove: {
|
|
407
|
+
type: 'void',
|
|
408
|
+
'x-component': 'ArrayTable.Remove'
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
},
|
|
414
|
+
properties: {
|
|
415
|
+
add: {
|
|
416
|
+
type: 'void',
|
|
417
|
+
'x-component': 'ArrayTable.Addition',
|
|
418
|
+
'x-component-props': {
|
|
419
|
+
defaultValue: {
|
|
420
|
+
type: 'integer'
|
|
421
|
+
}
|
|
422
|
+
},
|
|
423
|
+
title: "{{t('Add rule')}}"
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}),
|
|
428
|
+
filterable: {
|
|
429
|
+
operators: operators.string
|
|
430
|
+
}
|
|
431
|
+
};
|
package/es/index.d.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './board';
|
|
|
10
10
|
export * from './china-region';
|
|
11
11
|
export * from './collection-manager';
|
|
12
12
|
export * from './document-title';
|
|
13
|
-
export * from './file-manager';
|
|
14
13
|
export * from './i18n';
|
|
15
14
|
export * from './icon';
|
|
16
15
|
export * from './plugin-manager';
|
package/es/index.js
CHANGED
|
@@ -10,7 +10,6 @@ export * from './board';
|
|
|
10
10
|
export * from './china-region';
|
|
11
11
|
export * from './collection-manager';
|
|
12
12
|
export * from './document-title';
|
|
13
|
-
export * from './file-manager';
|
|
14
13
|
export * from './i18n';
|
|
15
14
|
export * from './icon';
|
|
16
15
|
export * from './plugin-manager';
|
package/es/locale/en_US.d.ts
CHANGED
|
@@ -555,5 +555,6 @@ declare const _default: {
|
|
|
555
555
|
"View all plugins": string;
|
|
556
556
|
Print: string;
|
|
557
557
|
'Single select and radio fields can be used as the grouping field': string;
|
|
558
|
+
'Sign up successfully, and automatically jump to the sign in page': string;
|
|
558
559
|
};
|
|
559
560
|
export default _default;
|
package/es/locale/en_US.js
CHANGED
|
@@ -554,5 +554,6 @@ export default {
|
|
|
554
554
|
"Enabled languages": "Enabled languages",
|
|
555
555
|
"View all plugins": "View all plugins",
|
|
556
556
|
"Print": "Print",
|
|
557
|
-
'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field'
|
|
557
|
+
'Single select and radio fields can be used as the grouping field': 'Single select and radio fields can be used as the grouping field',
|
|
558
|
+
'Sign up successfully, and automatically jump to the sign in page': 'Sign up successfully, and automatically jump to the sign in page'
|
|
558
559
|
};
|
package/es/locale/index.js
CHANGED
|
@@ -5,8 +5,14 @@ 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 antdEnUS from 'antd/lib/locale/en_US';
|
|
8
|
+
import antdJaJP from 'antd/lib/locale/ja_JP';
|
|
9
|
+
import antdRuRU from 'antd/lib/locale/ru_RU';
|
|
10
|
+
import antdTrTR from 'antd/lib/locale/tr_TR';
|
|
8
11
|
import antdZhCN from 'antd/lib/locale/zh_CN';
|
|
9
12
|
import enUS from './en_US';
|
|
13
|
+
import jaJP from './ja_JP';
|
|
14
|
+
import ruRU from './ru_RU';
|
|
15
|
+
import trTR from './tr_TR';
|
|
10
16
|
import zhCN from './zh_CN';
|
|
11
17
|
export default {
|
|
12
18
|
'en-US': {
|
|
@@ -19,6 +25,16 @@ export default {
|
|
|
19
25
|
client: _objectSpread({}, enUS)
|
|
20
26
|
}
|
|
21
27
|
},
|
|
28
|
+
'ja-JP': {
|
|
29
|
+
label: '日本語',
|
|
30
|
+
// https://github.com/moment/moment/blob/develop/locale/ja.js
|
|
31
|
+
moment: 'ja',
|
|
32
|
+
// https://github.com/ant-design/ant-design/tree/master/components/locale/ja_JP
|
|
33
|
+
antd: antdJaJP,
|
|
34
|
+
resources: {
|
|
35
|
+
client: _objectSpread({}, jaJP)
|
|
36
|
+
}
|
|
37
|
+
},
|
|
22
38
|
'zh-CN': {
|
|
23
39
|
label: '简体中文',
|
|
24
40
|
// https://github.com/moment/moment/blob/develop/locale/zh-cn.js
|
|
@@ -29,5 +45,25 @@ export default {
|
|
|
29
45
|
resources: {
|
|
30
46
|
client: _objectSpread({}, zhCN)
|
|
31
47
|
}
|
|
48
|
+
},
|
|
49
|
+
'ru-RU': {
|
|
50
|
+
label: 'Русский',
|
|
51
|
+
// https://github.com/moment/moment/blob/develop/locale/ru.js
|
|
52
|
+
moment: 'ru',
|
|
53
|
+
// https://github.com/ant-design/ant-design/tree/master/components/locale/ru_RU
|
|
54
|
+
antd: antdRuRU,
|
|
55
|
+
resources: {
|
|
56
|
+
client: _objectSpread({}, ruRU)
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
'tr-TR': {
|
|
60
|
+
label: 'Türkçe',
|
|
61
|
+
// https://github.com/moment/moment/blob/develop/locale/tr.js
|
|
62
|
+
moment: 'tr',
|
|
63
|
+
// https://github.com/ant-design/ant-design/tree/master/components/locale/tr_TR
|
|
64
|
+
antd: antdTrTR,
|
|
65
|
+
resources: {
|
|
66
|
+
client: _objectSpread({}, trTR)
|
|
67
|
+
}
|
|
32
68
|
}
|
|
33
69
|
};
|