Commit Graph

747 Commits

Author SHA1 Message Date
black
42ad77da68
fix: the edit drawer's audit logs block can only get records by this … (#1917)
* chore: rename resource function and add comment

* chore: remove AuditLogsDesigner when create audit logs schema

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-06 20:13:06 +08:00
chenos
e6a2a292b3
feat: upgrade formily (#1880)
* feat: upgrade formily

* fix: upgrade @formily/json-schema

* fix: optimizing performance

* fix: performance code

* refactor: `React.memo` and `observer` component add `displayName` property

* fix: add cache to Schema.compile

* feat: 优化代码

* fix: 修复卡顿最终的问题

* Update SchemaComponentProvider.tsx

* feat: 再次优化代码

* feat: optimized code

---------

Co-authored-by: dream2023 <1098626505@qq.com>
2023-06-06 19:33:04 +08:00
Junyi
36d16bc015
refactor(plugin-fm): change api and allow to select storage (#1250)
* refactor(plugin-fm): change api and allow to select storage

* fix(plugin-fm): fix lint errors and demo actions

* refactor(plugin-fm): refactor action codes

* fix(plugin-fm): fix api in test

* fix(plugin-fm): fix build

* fix(plugin-fm): fix locale

* refactor(plugin-fm): hide storage from api and use sourceField param

* fix(plugin-fm): fix storage select load

* fix: improve code

* fix(plugin-fm): change to attachmentField

* refactor(plugin-fm): change middleware name

* fix(plugin-fm): fix params in test cases

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-06 19:30:42 +08:00
被雨水过滤的空气-Rairn
b33c00be8f
fix: fix default value is invalid in subform (#1989)
* fix: fix default value is invalid in subform

* perf: use useMemo

* fix: change null to {}
2023-06-06 14:42:37 +08:00
Junyi
2c9ce09304
feat(plugin-workflow): manual forms (#1748)
* feat(plugin-workflow): add create record form for manual node

* feat(plugin-workflow): add update form for manual node

* fix(plugin-workflow): fix antd version and menu

* refactor(plugin-workflow): change collection config modal to initializer sub-menu

* test(plugin-workflow): add test case

* fix(plugin-workflow): fix todo components based on forms

* fix(plugin-workflow): fix cycling trigger when create or update

* fix(plugin-workflow): fix transaction in manual processor

* refactor(plugin-workflow): optimize todo list data loading

* fix(plugin-workflow): fix uncommitted manual action effects

* fix(plugin-workflow): fix save multiple forms and only submit one

* chore(plugin-workflow): fix lint

* fix(plugin-workflow): fix lint error

* refactor(plugin-workflow): abstract workflow scoped FormBlockProvider

* fix(plugin-workflow): adjust designable api to use current schema in refresh

* fix(plugin-workflow): fix schema config and support block template

* fix(plugin-workflow): fix lint and build error

* fix(plugin-workflow): adjust components and scope to inner schema component

* fix(plugin-workflow): fix ref template in todo drawer

* fix(plugin-workflow): fix todo form undefined

* fix(plugin-workflow): fix manual form schema

* fix(plugin-workflow): fix manual createdBy/updatedBy user

* fix(plugin-workflow): disable save to template on create form

* fix(plugin-workflow): fix manual form variables

* fix(plugin-workflow): fix FormBlockProvider for default field value

* fix(plugin-workflow): fix manual node variables
2023-06-05 16:52:43 +08:00
Rairn
76e9240d7d chore: fix lint 2023-06-04 19:05:32 +08:00
katherinehhh
60c8d531ef
fix: treeCollection config in detail block (#1975) 2023-06-03 14:08:07 +08:00
chenos
295faf569d
fix(association-field): form.get & set valuesIn field.path (#1972)
* fix: useCreateActionProps

* refactor: code improve

* fix: form.getValuesIn(field.path)

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-06-02 00:55:12 +08:00
katherinehhh
7e30b046d9
fix: useCreateActionProps (#1971) 2023-06-02 00:03:35 +08:00
katherinehhh
1aad355950
fix: adding inherited blocks in relation fields under edited operate should only display themselves (#1967) 2023-06-01 16:21:12 +08:00
katherinehhh
a69e1acbf4
fix(form-item): data scope and sorting rule config should only display in association field (#1964)
* fix: data scope and sorting rule config should not display in normal field

* fix: data scope and sorting rule config should not display in normal field

* fix: allowMultiple should display in association field
2023-06-01 11:30:54 +08:00
katherinehhh
e139646d65
fix: select with color tag value (#1963)
* fix: select with color tag value

* fix: select with color tag value
2023-05-31 22:20:06 +08:00
katherinehhh
ea04d2309e
fix: select toValue (#1962)
* fix: select toValue

* fix: select toValue
2023-05-31 16:55:52 +08:00
katherinehhh
98be397574
fix: select null value (#1961) 2023-05-31 16:00:08 +08:00
chenos
261ca0dbbb fix(association-field): show add new button when no data 2023-05-31 12:27:24 +08:00
Rairn
fe835ad296 perf(Variable): remove duration 2023-05-31 11:36:19 +08:00
katherinehhh
fdb7ab1866
refactor(sub-form):sub-form style (#1959)
* style: sub nester style improve

* style: sub-form style improve

* fix: improve code

* fix: null

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-31 10:43:56 +08:00
Rairn
7bf23964c1 fix(Variable.Input): fix error 2023-05-31 09:29:32 +08:00
chenos
3f4cd86465 fix(association-field): array field move 2023-05-30 10:12:58 +08:00
被雨水过滤的空气-Rairn
f286534752
perf(data-scope): async loading of variable data (#1932)
* refactor: remove useless code

* perf: async loading of user variable data

* perf: async loading children

* perf: add maxDepth

* refactor: use useMemo

* fix: avoid old data
2023-05-29 18:08:21 +08:00
katherinehhh
76ddbf2104
fix: undefined mode (#1950) 2023-05-29 16:27:23 +08:00
Dunqing
6d326f424a
fix(grid-card, list): display title only work on current block (#1942) 2023-05-29 11:22:38 +08:00
katherinehhh
c0f9c8116a
refactor(linkage-rule): linkage rules condition support toMany association fields (#1924)
* refactor: linkage rule support to many association field

* refactor: linkage rule support toMany

* fix:  support toMany association field

* fix:  support toMany association field

* fix: operator support toMany association field

* refactor: useLinkageCollectionFilterOptions
2023-05-29 11:22:04 +08:00
lincode
4296db5859
feat(plugin-manager): better plugin manager experience (#1927) 2023-05-29 11:06:54 +08:00
chenos
d7f21460c6 chore(versions): 😊 publish v0.9.4-alpha.2 2023-05-26 17:05:46 +08:00
chenos
1e870cf5ef fix(association-field): display sub-details by default 2023-05-26 17:01:34 +08:00
chenos
3ab4a3b68f fix(association-field): initialize a [null] if no data 2023-05-26 14:27:32 +08:00
chenos
c3d359925c
fix(association-field): allow dissociate (#1940) 2023-05-26 12:36:09 +08:00
被雨水过滤的空气-Rairn
fa778b31af
fix(data-template): fix title input prevented proper data switching (#1937)
* fix(data-template): fix title input prevented proper data switching

* fix: build error

* fix: clear the previous data before switching
2023-05-26 12:08:26 +08:00
katherinehhh
644b6eccb3
refactor: association select display loading when data is loading (#1925)
* refactor: association select loading

* refactor: association select loading

* refactor: loading
2023-05-26 11:39:16 +08:00
chenos
efbd7c7020
fix(association-field): allow multiple (#1938) 2023-05-26 11:38:03 +08:00
Junyi
17ccdee9ab
fix(client): fix some warnings (#1934)
* fix(client): fix some warnings

* fix(client): fix warning
2023-05-25 18:54:06 -07:00
chenos
9c94840c6b chore(versions): 😊 publish v0.9.4-alpha.1 2023-05-25 22:48:39 +08:00
被雨水过滤的空气-Rairn
e61568ac57
feat(data-template): support to set data scope and title field (#1918)
* refactor: optimize

* feat(Data-template): support to set data scope and title field

* fix: fix error when no template data

* fix: fix error

* fix: operator

* chore: remove id

* fix: filter

* fix: should be global

* fix: submit

* fix: global sync

* fix: title field

* fix: fix filter

* fix: fix first created

* fix: collection

* fix: collection

* fix: collection

* chore: should show N/A

* Revert "chore: should show N/A"

This reverts commit 00c91d77612aea0801fec88b5f3f91e4be999439.

* chore: should show N/A

* chore: remove useless code
2023-05-25 17:09:29 +08:00
被雨水过滤的空气-Rairn
c722ca41d9
feat(data-template): support for unlimited levels of fields selection (#1910)
* refactor: use useMemo

* refactor: use useCallback

* feat(Data-template): change maxDepth from 3 to 10

* feat(Data-template): support for unlimited levels of fields selection

* fix: fix invalid selection

* fix: should be updated when data changes

* feat: parent treeNode and children treeNodes are not associated

* fix: avoid error

* fix: fix error

* chore: remove notification

* fix: parant node should be selected when child is selected

* fix: auto select all ancester nodes
2023-05-25 15:23:32 +08:00
black
948d39bab4
chore: when using association field by picker mode,it's open size can be changed (#1926) 2023-05-25 13:05:00 +08:00
被雨水过滤的空气-Rairn
e787890671
fix(ConfigurationTabs): avoid error (#1782) 2023-05-25 12:24:47 +08:00
katherinehhh
0086037425
fix: tableField query data in add child action (#1876) 2023-05-25 12:23:48 +08:00
被雨水过滤的空气-Rairn
49117afb72
refactor: front-end testing with vitest (#1900)
* refactor: front-end testing with vitest

* fix: fix build failed
2023-05-25 10:40:08 +08:00
李小斐
c603108542
fix: disable popup button in add-modal (#1808)
* fix: disable popup button in add-modal

* fix: disable popup button in form block
2023-05-25 10:33:59 +08:00
katherinehhh
e299f5452c
refactor: initialization when switching field components (#1915)
* fix: toManyNester only display one data

* fix: sub-nester

* fix: initialValue

* fix: [null]

* fix: record picker initValue

* fix: initValue filter

* fix: association select  initialValue filter

* fix: association select  initialValue filter

* fix: [null]

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-24 10:36:29 +08:00
Rairn
a0dd58e7e3 fix(Data-templates): avoid errors and add log 2023-05-23 16:18:01 +08:00
katherinehhh
58fda41513
fix(association-field): only when the new data is successfully created can the data be associated (#1884)
* fix: only when the new data is successfully created can the data be associated

* fix: associate empty object data

* Update index.ts

* fix:  to many nester  cannot be deleted when there is  one data

* fix: code improve

* fix: association field add new button should not drag

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-23 15:48:08 +08:00
xilesun
3b732d6db7 fix(ui): dnd error read properties of null 2023-05-23 11:02:40 +08:00
katherinehhh
d0f2bd96a8
fix: hiding the title of a subform will hide all embedded titles (#1904)
* fix: hiding the title of a subform will hide all embedded titles

* fix: display title not immediately effective
2023-05-23 09:50:20 +08:00
katherinehhh
0318034b7c
fix: updateAssociationValues (#1903) 2023-05-23 09:44:17 +08:00
xilesun
518ca740f8 fix(locale): translation typo 2023-05-22 19:58:55 +08:00
black
db349ccb68
fix: can't set default value when turn on the form field required (#1887)
* fix: can't set default value when turn on the form field required

* fix: can't set default value when turn on the association select field required
2023-05-22 17:22:01 +08:00
被雨水过滤的空气-Rairn
110b00bc01
fix(Data-template): fix bug when deleting fields (#1907)
* chore: add translation

* fix(Data-template): fix bug when deleting fields

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-22 17:17:33 +08:00
YANG QIA
d35f67d2e1
feat(app): add clear cache button (#1909) 2023-05-22 17:16:12 +08:00