Commit Graph

3022 Commits

Author SHA1 Message Date
chenos
bdcbe7392f
chore(deps): bump formily from 2.2.24 to 2.2.26 (#2088)
* chore(deps): bump formily from 2.2.24 to 2.2.25

* chore(deps): bump formily from 2.2.25 to 2.2.26

* chore: update yarn.lock

---------

Co-authored-by: Rairn <958414905@qq.com>
2023-06-23 07:55:44 +08:00
katherinehhh
87e37757b3
fix(sub-table): allows configuration of "Display association fields" (#2073) 2023-06-23 00:10:39 +08:00
katherinehhh
ccfc9b8625
style: enable child collection modal style improve (#2100) 2023-06-22 22:03:42 +08:00
katherinehhh
cb52b80cf0
feat: data scope support variables for association fields (#2049)
* feat: association field support data scope

* refactor: association data scope

* refactor: association data scope local

* refactor: association data scope

* refactor: association data scope  code improve

* refactor: code improve

* fix: useFormVariable

* fix: useFormVariable

* chore: useFormVariable

* chore: useFormVariable

* chore: useFormVariable

* chore: useFormVariable

* refactor: locale improve

* refactor: locale improve

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-22 20:19:34 +08:00
被雨水过滤的空气-Rairn
6eed9ac2bb
refactor: fix warning of antd 4.x (#1998)
* refactor: fix warning by codemod

* refactor: fix warning of Dropdown

* perf: use memo

* refactor: resolve SchemaInitializer

* refactor: fix lint

* refactor: remove SettingsForm

* refactor: resolve SchemaInitializer

* refactor: fix lint

* refactor: move useMenuItem to root dir

* chore: fix conflicts

* refactor: resolve SchemaSetting

* refactor: fix lint

* test: fix failed

* chore: upgrade Vite

* fix: fix style

* refactor: fix lint

* refactor: extract component

* refactor: resovle Menu

* refactor: resolve Tabs

* refactor(getPopupContainer): should return the unique div

* refactor(Drawer): change style to rootStyle and className to rootClassName

* chore: update yarn.lock

* fix: fix T-432

* fix: fix T-338

* fix: fix T-490

* fix: collection fields

* fix: fix style

* fix: fix T-500

* fix: fix SettingMenu error (close T-516)

* fix: fix tanslation of Map (T-506)

* style: fix style (T-508)

* fix: fix schemaSetting switch of mobile (T-517)

* fix: fix T-518

* fix: fix T-524

* fix: fix T-507

* perf: optimize SchemaInitializer.Button

* perf: optimize SchemaSettings

* fix: fix serch of SchemaInitializer (T-547)

* chore: change delay

* fix: fix button style (T-548)

* fix: fix scroll bar

* fix: update yarn.lock

* fix: fix build error

* fix: should update sideMenu when change it

* fix: fix build error

* chore: mouseEnterDelay

* fix: fix group menu can not selected
2023-06-22 19:51:16 +08:00
Junyi
5fc5428d03
fix(plugin-workflow): fix job button style (#2098) 2023-06-21 08:03:54 -07:00
Dunqing
b80aaacb38
fix(mobile-client): fix multiple bugs and do some improvement (#2072) 2023-06-21 22:26:15 +08:00
Junyi
6254fceb04
fix(plugin-verification): fix duplication of installation (#2097) 2023-06-21 06:59:19 -07:00
katherinehhh
1006a66a6f
fix: incomplete field list for assigned fields (#2093) 2023-06-21 18:29:14 +08:00
dream2023
dae191691c fix: useAdminSchemaUid redeclaration 2023-06-21 17:49:45 +08:00
jack zhang
d7ed43b86d
fix: add useAdminSchemaUid (#2092)
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-21 16:40:21 +08:00
chenos
daa48302df fix(acl): change route.uiSchemaUid to useAdminSchemaUid 2023-06-21 16:37:56 +08:00
Junyi
6a589543f9
refactor(db): add batch logic to update for better performance (#2070)
* refactor(db): add batch logic to update for better performance

* test(plugin-workflow): fix test cases

* fix(db): treat belongsTo field in update values as foreignKey

* fix(db): also handle object with id for belongsTo field

* fix(db): avoid 0 as falsy

* fix(db): fix test case
2023-06-21 16:37:06 +08:00
katherinehhh
c240228a69
fix: unable to load data from chinaRegion during the first configuation (#2089)
Close T-607
2023-06-21 16:00:39 +08:00
chenos
64070b81b9
refactor: migrate adminSchemaUid & mobileSchemaUid to system settings (#2084)
* refactor: migrate adminSchemaUid & mobileSchemaUid to system settings

* fix: error
2023-06-21 11:02:49 +08:00
Junyi
56e6d0c3b1
fix(plugin-workflow): fix occasional error on enter workflow page (#2086) 2023-06-20 19:53:31 -07:00
chenos
5672ffc9fa feat: update docs 2023-06-20 18:05:06 +08:00
jack zhang
acafe0f386
fix: mobile docs style (#2083) 2023-06-20 17:11:18 +08:00
chenos
cc376673a9 chore: update changelog 2023-06-20 11:52:44 +08:00
chenos
0b06e2cd69 chore(versions): 😊 publish v0.10.0-alpha.2 2023-06-20 11:51:16 +08:00
jack zhang
d76e8fb87f
refactor: upgrade umi, react and react-router-dom (#1921)
* refactor: update umi version 3.x to version 4.x

* refactor: update react-router-dom version to 6.x

* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`

* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct

* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`

* refactor(react-router-dom): replace `useHistory` to `useNavigate`

* refactor(react-router-dom): replace `useRouteMatch` to `useParams`

* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug

* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code

* refactor(react-router-dom): update `Route` types and docs

* refactor(react-router-dom): optimize RouteSwitch code

* refactor(react-router-dom): `useLocation` no generics type

* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`

* refactor(react-router-dom): fix `<RouteSwitch />`  `props.routes` as an array is not handled

* chore: upgrade `dumi` and refactor docs

* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`

* refactor(dumi): upgraded dumi under `packages/core/client`

* refactor(dumi): delete `packages/core/dumi-theme-nocobase`

* refactor(dumi): degrade `react`  & replace `dumi-theme-antd` to `dumi-theme-nocobase`

* refactor(dumi): solve conflicts between multiple dumi applications

* fix: login page error in react 17

* refactor(dumi): remove less resolutions

* refactor(dumi): umi add `msfu: true` config

* fix: merge bug

* fix: self code review

* fix: code reivew and test bug

* refactor: upgrade react to 18

* refactor: degrade react types to 17

* chore: fix ci error

* fix: support routerBase & fix workflow page params

* fix(doc): menu externel link

* fix: build error

* fix: delete

* fix: vitest error

* fix: react-router new code replace

* fix: vitest markdown error

* fix: title is none when refresh

* fix: merge error

* fix: sidebar width is wrong

* fix: useProps error

* fix: side-menu-width

* fix: menu selectId is wrong & useProps is string

* fix: menu selected first default & side menu hide when change

* fix: test error & v0.10 change log

* fix: new compnent doc modify

* fix: set umi `fastRefresh=false`

* refactor: application v2

* fix: improve code

* fix: bug

* fix: page = 0 error

* fix: workflow navigate error

* feat: plugin manager

* fix: afterAdd

* feat: update docs

* feat: update docs

* fix: page tab change not work

* fix: login redirect query param doesn't work

* fix: bug and doc

* feat: update docs

* fix: ci error

* fix: merge main

* feat: update docs

* feat: update docs

* feat: update docs

* chore(versions): 😊 publish v0.10.0-alpha.1

* fix: translations

* chore: backend node test max old space size

* docs: add useSearchParams

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2023-06-20 11:48:02 +08:00
ChengLei Shao
d8ad98e2f7
fix(collection-manager): share collection when COLLECTION_MANAGER_SCHEMA not set (#2081)
* fix: share collection when COLLECTION_MANAGER_SCHEMA not set

* fix: test
2023-06-20 11:28:54 +08:00
xilesun
c9f51ca416 fix(oidc): field map bug 2023-06-19 21:53:33 +08:00
Junyi
0606637a73
fix(plugin-formula): fix formula field effect and read-pretty component (#2076) 2023-06-19 06:47:29 -07:00
Zhou
44549fdfee
Update README.zh-CN.md 2023-06-19 21:32:16 +08:00
xilesun
f99bedfab4 docs(oidc): add README 2023-06-19 21:13:03 +08:00
katherinehhh
bcad6c89dc
fix: file collection field should default to preview as the title field (#2059)
* fix: after selecting files for multiple association fields, the selected files should not be removed

* fix:  file collection field should default to preview as the title field

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-19 20:48:20 +08:00
Junyi
331d6d57b2
fix(client): remove incorrect onchange in json component (#2079) 2023-06-19 18:58:38 +08:00
Junyi
a3805e3b02
fix(client): fix onchange mistake (#2075) 2023-06-18 21:34:08 -07:00
Junyi
ebdbc2dae3
fix(client): fix locale (#2074) 2023-06-18 21:01:14 -07:00
被雨水过滤的空气-Rairn
e506c1781e
fix(Varaible): fix option is disabled (#2043)
* perf: use useMemo

* refactor: extract className

* refactor: fix lint warning

* fix: fix can not be selected

* refactor: reduces count of compile runs

* fix: fix T-494

* fix: should disable options that no children

* fix: fix T-496
2023-06-18 14:31:53 +08:00
katherinehhh
50865d76bc
fix: rowSelection undefined (#2071) 2023-06-18 14:22:46 +08:00
Dunqing
6d0f5c1fe0 fix(mobile-client): the JsBridge is not work 2023-06-18 10:30:27 +08:00
Dunqing
21efc5c66c fix(mobile-client): fix navigate is incorrect 2023-06-17 22:55:55 +08:00
chenos
106f9d90f5 fix(file-manager): only allow logged-in users to upload files 2023-06-17 21:53:49 +08:00
katherinehhh
e3045a2f9a
fix: association field cannot enable link in table column (#2066)
* fix: association field cannot enable link in table column

* refactor: code improve
2023-06-17 09:01:35 +08:00
Junyi
e5bab3249a
refactor(plugin-workflow): manual collection block migration (#2064)
* refactor(plugin-workflow): change all collection node initializer in manual config

* refactor(plugin-workflow): clean code

* fix(plugin-workflow): fix custom form field in manual config

* refactor(plugin-workflow): add migration

* fix(plugin-workflow): fix custom form block migration

* fix(plugin-workflow): fix detail read-pretty for association fields
2023-06-15 23:06:47 -07:00
katherinehhh
4faf64f905
refactor(association-field): support sub table (#1862)
* fix: association select support data scope and sort setting

* fix: appends on demand loading

* fix: asociationSelect support multiple

* fix: recordPicker -> AssociationField

* fix: add migration

* fix: audit logs not show assication data

* fix: flattenNestedList

* refactor: file manager field mode

* refactor: field mode refactor

* fix: subtable action

* fix: subtable appends

* refactor: code improve

* fix: nester add new

* feat: sub table

* fix: data scope not effect immediately

* fix: association add new

* fix: association field failed to  add new and mutual influence

* style: style improve

* style: style improve

* refactor: updateAssociationValues

* refactor: form init values

* refactor: select options

* fix: form initialValues

* fix: record picker values

* fix: field value change when field mode change

* fix: select data scope

* feat: add migration

* fix: table column enable link

* fix: table column enable link

* refactor: locale improve

* fix: migration

* fix: mutiple config

* fix: readPretty enable link

* fix: appends on demand

* fix: enable link style

* refactor: locale improve

* refactor: locale improve

* feat: sub-form migration

* fix: skip migration

* fix: translation

* fix: skip migration

* fix: getLabelFormatValue

* fix: error TS2339: Property 'find' does not exist on type 'string | SchemaEnum<any>'

* refactor: remove the logic code for converting old record picker

* refactor: locale

* refactor: association field support sub-table

* refactor: locale

* fix: sub-table should not support add new

* refactor: code improve

* refactor: locale

* fix: compatibility history Subtable

* fix: getNesterAppends filter bug

* refactor: useFieldModeOptions

* refactor: subTable

* fix: associationSelect

* fix: associationSelect

* fix: associationSelect

* fix: getAssociationAppends

* fix: sub-form collection context

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* fix: sub-table

* fix: appends

* fix: sub-table-appends

* fix: undefine id

* fix: sub-table appends

* refactor: sub-table

* refactor: sub-table supoort delete

* fix: sub-table-appends

* refactor: sub table initvvalue

* fix: sub-table-appends

* fix:  association field appends

* fix:  association field appends

* fix:  association field appends

* style: style improve

* style: style improve

* refactor: textArear Markdown RichText

* style: style improve

* fix: title field

* refactor: code improve

* fix: system fields are not allowed to be edited

* refactor: subtable does not support inline operations

* refactor: jons edit in table

* refactor: sequence readOnly in table

* refactor: json readOnly in table

* fix: sub-table appends

* fix: runWhenParamsChanged

* fix: runWhenParamsChanged

* fix: sub-table appends

* fix: sub-table appends

* refactor: sub-table

* style: checkbox group intable

* style: delete button style improve

* fix: json edit in table

* fix: sub-table appends

* style: upload file in table column

* refactor: map edit in table

* refactor: map edit in table

* refactor: map field display in sub-table

* fix: support mutiple row

* refactor: sub-table

* refactor: sub-table not support sortable

* fix: sub-table appends

* fix: sub-table appends

* chore: useAssociationNames

* refactor: code improve

* refactor: support blocktemplate

* refactor: support blocktemplate

* fix: subtable

* fix: subtable initValue

* refactor: useAssociationNames in block template

* fix: cross hierarchical association field layout

* fix: normal field of association field should be append

* style: upload field in table

* refactor: sub table should not row selection

* style: checkboxGroup and radioGroup display in sub-table

* refactor: locale

* refactor: code improve

* refactor: quickEdit in sub-table

* refactor: quickEdit

* refactor: quickEdit

* refactor: quickEdit

* refactor: quickEdit

* style: quickEdit style improve

* style: quickEdit style improve

* style: quickEdit style improve

* refactor: sub-table support required config

* refactor: cell validate

* refactor: cell validate

* refactor: cell required validate

* refactor: cell required validate

* refactor: sub-table display when readPretty

* refactor: sub-table required

* refactor: sub-table required

* refactor: sub-table required

* refactor: sub-table initialValue

* refactor: table

* refactor: sub-tble field  required

* refactor: sub-table style improve

* refactor: sub-table attachemnt

* refactor: code improve

* test: tableV2 snap

* fix: subtable drag

* test: tableV2 snap

* refactor: checkbox group and radio group in sub-table

* refactor: sub-table required style

* style: markdown style in sub-table

* refactor: markdown display in sub-table

* refactor: json field display in sub-table

* refactor: code improve

* style: style improve

* style: style improve

* refactor: inserView when designable

* refactor:  china-region load data when dropdown click

* refactor: code improve

* refactor: code improve

* refactor: display loading when the form is first loaded

* refactor: display loading when the form is first loaded

* fix: verification exception when deleting sub table rows

* refactor: sub-table code improve

* refactor: sub-table code improve

* fix: json error feedback

* refactor: code improve

* fix: json onchange

* fix:  sub table data did not change when switching data templates

* test: variable test

* test: variable test

* refactor: data template

* refactor: code improve

* refactor: code improve

* fix: upload readpretty

* fix: attach upload in sub-tabl

* fix: remove small

* fix: attach upload in sub-table

* refactor: association fields should not display in sub-table

* fix: dropdownMatchSelectWidth

* refactor: association fields should not display in sub-table

* refactor: selectFile is false in sub-table

* refactor: attacattachment in sub-table

* refactor: attacattachment in sub-table

* fix: selector style

* refactor: quick edit component

* fix: zindex

* style: style improve

* style: style improve

* feat: styling

* fix: style

* fix: style

* refactor: quickEdit getContainer

* refactor: quickEdit

* refactor: quickEdit

* fix: improve code

* refactor: code improve

* refactor: code improve

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-16 12:07:43 +08:00
被雨水过滤的空气-Rairn
457afe3e06
fix: avoid error (#2060) 2023-06-15 08:26:04 -07:00
被雨水过滤的空气-Rairn
d0632d73fd
fix(Data-template): fix field cannot be expanded (#2057)
* fix(Data-template): fix field cannot be expanded

* fix: fix build errors
2023-06-15 22:14:23 +08:00
katherinehhh
d79951e209
fix(file-manager): do not delete the selected records 2023-06-15 19:09:10 +08:00
katherinehhh
70890f2f50
feat(association field):quick add new (#1953)
* refactor: association select support quieck add

* chore: tmp commit

* refactor: association select support quick add

* feat: firstOrCreate

* refactor: locale

* refactor: create api

* chore: firstOrCreate

* feat: updateOrCreate

* chore: test

* refactor: save mode edit in add new form

* feat: values to filter

* refactor: loacle improve

* refactor: loacle improve

* refactor: loacle improve

* feat: firstOrCreate http api

* refactor: code improve

* fix: build error

* refactor: local

* refactor: locale improve

* refactor: useCollectionFieldsOptions

* fix: code imprtove

* refactor: code improve

* refactor: dropdown open

* refactor: add new mode

* refactor: add new mode code improve

* refactor: add new mode code improve

* refactor: add new mode code improve

---------

Co-authored-by: chareice <chareice@live.com>
2023-06-15 16:40:42 +08:00
katherinehhh
7abfbe7be4
fix: duplicate action locale (#2052) 2023-06-15 16:04:27 +08:00
被雨水过滤的空气-Rairn
74b8687071
fix: fix default value of optional field (#2053)
* fix: fix default value of optional field

* fix: fix can not save default value
2023-06-15 14:38:52 +08:00
chenos
c89d7f980f fix: performance optimizations 2023-06-15 11:27:11 +08:00
katherinehhh
c4816c6963
refactor: List block and GridCard block style improve (#1988)
* refactor: list block and gridCard style improve

* style: style improve

* style: gridCard style improve

* style: list style improve

* style: style improve

* style: style improve

* style: style improve

* style: style improve
2023-06-14 20:14:57 +08:00
YANG QIA
8b9c0fa979
fix: block disappears when dragged over its parent (#2048) 2023-06-14 20:11:17 +08:00
jack zhang
8b64a559e4
fix: form performance (#2047)
* fix: form performance

* fix: refresh when the targetKeyValue change

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-14 19:29:29 +08:00
katherinehhh
b64ce6a2b3
fix: default value for multiple select cannot be set (#2031) 2023-06-14 10:56:45 +08:00
Dunqing
3332a488ca
fix: display on the PC side of moblie access is incomplete (#2039)
* fix: display on the PC side of moblie access is incomplete

* fix: need refresh should work

* fix: again

* fix: keep 0.1
2023-06-14 10:41:07 +08:00