Commit Graph

547 Commits

Author SHA1 Message Date
katherinehhh
b015fb769a
style: linkage rule style improve (#1625) 2023-03-31 14:15:32 +08:00
chenos
f5890175a7 test: ci 2023-03-31 00:13:58 +08:00
被雨水过滤的空气-Rairn
098140d511
feat(parse-variables): support to parse variables in filter params (#1558)
* fix: add field linkage on setting default datetime

* fix: fix dateonly timezone problem

* fix: improve test

* docs(DatePicker): add demos

* fix(DatePicker): should return the beginning of a second

* feat(DatePicker): support non-UTC

* refactor: rename

* fix(RangePicker): get correct end date

* test(mapDatePicker): add test

* test(mapRangePicker): add test

* feat(Filter): use non-UTC to filter

* feat(FilterBlock): use non-UTC to filter

* feat: add '$dateBetween' operator in datetime

* feat: use RangePicker on toggled to 'dateBetween' operator

* feat: set ranges for RangePicker

* feat: backend support to parse 'dateBetween' operator

* fix: fix build error

* fix: adaptive content width

* feat: support to use var on data scope

* feat: add parse-variables plugin

* feat: support to parse variables

* feat: support only to set system variables

* test: rename

* feat: cover all

* fix: fix build error

* feat(RangePicker): extend more shortcut keys

* feat(parse-variables): support more date var

* feat: support user variables

* feat: disable unmatched options

* fix: use component name to filter option

* fix: fix build error

* feat: remove some operator of id

* chore: remove useless operators

* fix: built in plugin

* refactor: move to core from plugin

* refactor: remove code of plugin

* refactor: remove useless code

* fix: should after acl

* Update server.ts

* fix: compatible with old version

* feat: test cases

* refactor: rename to 'is between'

* refactor: parse filter

* fix: improve code

* feat: test cases

* fix: fix error

* fix: improve parse date

* fix: date variables

* fix: day range

* fix: test error

* fix: typo

* fix: test error

* feat: $user variable

* fix: toDate

* fix: fix the value range of shortcuts

* feat: add quarter and test

* feat: support to use user's association fields to filter

* refactor: use maxDepth

* refactor: remove useless code

* fix: make AssociationSelect.Designer to support variables

* fix: getField

* fix: parse utc

* fix: remove only

* fix: filter by ctx.db.getFieldByPath

* fix: avoid error

* fix: add translation

* fix(RangePicker): can be set to empty

* feat(utils): add hasEmptyValue

* fix: should not save empty

* fix: last few days should include today

* fix: limit user variable type to display

* fix: parse filter error

* fix: empty

* test: [skip ci]

* fix: remove ';'

* feat: improve code

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-30 23:49:57 +08:00
katherinehhh
c2885ee1d6
fix(linkage rules) : support naming, enabling and disabling, copying, and assigning null values (#1511)
* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* feat: detailed operations support linkage rules

* fix: button linkage failed during page change of detail block

* fix: button linkage failed during page change of detail block

* fix: linkage values not suport formula

* fix: linkage value suport empty

* fix:  checkbox value  linkage failed

* refactor: using evaluators package

* refactor: using evaluators package

* refactor: linkage field

* fix: relation field is limited to one level

* fix: relation field is limited to one level

* fix: linkage local

* feat: support copy linkage rules

* feat:  support naming linkage rules

* feat:  support naming linkage rules

* style: style improve

* fix: missing operation when copying linkage

* feat: linkage rules support disabling and enabling

* fix: linkage rule update is not updated immediately

* feat: action support linkage enabled

* feat: action support linkage enabled

* feat: action support linkage enabled

* fix: linkage rules title update exception

* feat: action support linkage enabled

* fix: linkage rules copy failed

* fix: linkage rules copy failed

* fix: linkage rules copy failed

* fix: linkage rules copy failed

* refactor: code improve

* refactor: code improve

* fix: linkage rules copy failed

* fix: linkage rules copy failed

* fix: the first input is cleared

* refactor: code improve

* refactor: code improve

* refactor: delete redundant variables

* fix: action modal automatically closes

* fix: action automatically closes

* fix: action automatically closes

* fix: details block chang  page  action linkage failed

* fix: details block chang  page  action linkage failed

* feat: syntax references

* feat: syntax references

* fix: current time

* fix: current time

* fix: action linkage

* fix: formulajs tyy catch

* fix: multi-level linkage

* chore: linkage support

* chore: linkage support

* chore: linkage code improve

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-30 23:40:18 +08:00
katherinehhh
99ee409fce
fix: history add new button does not support enabling child collection (#1536)
* fix:  history add new button does not support enabling child collection

* fix:  history add new button does not support enabling child collection
2023-03-30 17:46:39 +08:00
katherinehhh
e7d0e49b8e
fix/(linkages-action): detail block actions does not support linkage rules (#1504)
* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* feat: detailed operations support linkage rules

* fix: button linkage failed during page change of detail block

* fix: button linkage failed during page change of detail block

* fix: action automatically closes

* fix: action automatically closes

* fix: details block chang  page  action linkage failed

* fix: details block chang  page  action linkage failed

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-30 17:31:55 +08:00
Dunqing
35d34bb427
fix: avoid fixedblock height working in popup (#1621)
* fix: designer item should return null

* fix: avoid fixedblock height working in popup
2023-03-30 15:33:05 +08:00
Dunqing
6b47597256
fix: when the page has FixedBlock, the table of popup is not displayed (#1619)
* fix: when the page has FixedBlock, the table of popup is not displayed

* feat: improve disable link

* docs: update

* feat: improve fixedblock design item
2023-03-30 12:33:57 +08:00
Dunqing
0853915f23
feat: association-filter-improve (#1606)
* feat: snapshot-i18n fix

* feat: association-filter-improve

add data scope for association filter
add default sort for association filter

* feat(association-filter-improve): close association-filter filter fix

* feat(association-filter-improve): refresh on table refresh

* feat(association-filter-improve): refresh on table refresh

* feat(association-filter-improve): remove field filter fixed

* feat(association-filter-improve): filter fix

* fix: missing props

* refactor: re design

* fix: data scope not work

* feat: support sorting rule

* feat: support configure default collapse

* fix: multiple association item will not work

* fix: ts error

* fix: ts error

---------

Co-authored-by: anuoua <anuoua@gmail.com>
2023-03-30 09:00:56 +08:00
Dunqing
920aab949a
fix(Table): cannot display table data (#1617)
* fix(Table): cannot display table data

* fix: revert logic

* fix: revert pagination

* fix: improve logic
2023-03-30 08:54:39 +08:00
Dunqing
5752edd5d5
feat(table): hidden pagination when only one page is available (#1614)
* feat(table): hidden pagination when only one page is available

* feat: remove console

* fix(table): add new button for edit button color does not work

* fix: don't support edit type and icon in Link

* feat: danger property first

* fix: reset shadow of danger button

* perf: remove unused logic
2023-03-29 17:56:05 +08:00
Dunqing
6747331529
refactor: improve FixedBlock performance (#1593)
* refactor:  improve FixedBlock performance

* fix: style

* fix: fixedBlock not work when the page have many blocks

* refactor: improve performance
2023-03-29 17:11:20 +08:00
Dunqing
e6326460b0
fix(collection-manager): infinite recursion (#1608)
* fix(collection-manager): infinite recursion

* fix: ts error
2023-03-29 17:06:33 +08:00
Dunqing
e5ee716702
feat: improve the non-link ui of association data (#1602) 2023-03-29 16:52:00 +08:00
Dunqing
bb9b72e0d7
feat(Kanban): the card support open mode (#1601) 2023-03-29 16:45:21 +08:00
katherinehhh
de4beb57a0
fix: enable child collections remain after deleting a child collection (#1610) 2023-03-28 23:58:21 +08:00
Rairn
a6fc04503d fix(Filter-form): avoid infinit loop 2023-03-27 20:09:34 +08:00
chenos
4604e45573 fix: cannot read properties of undefined (reading 'title') 2023-03-27 13:05:14 +08:00
Italo A. G
726b08e87a
Translation pt-BR (Brazilian Portuguese) (#1591)
* feat: portuguese brazil translations

* feat: add pt-BR languate to the plugins

* feat: add pt-BR languate to the plugins
2023-03-23 22:53:33 +08:00
katherinehhh
ef3a2c52d8
fix: role permission add new scope display blank (#1592) 2023-03-23 22:52:41 +08:00
Rairn
972e05bac0 feat(Markdown): add inline highlighting 2023-03-23 12:26:36 +08:00
Dunqing
2d5822dfa6
fix(FixedBlock): avoid kanban triggering programmatic scrolling (#1406)
* fix(FixedBlock): avoid kanban triggering programmatic scrolling

* fix: kanban
2023-03-23 12:19:41 +08:00
katherinehhh
0a25426f31
fix: repeat request categories when switching between graph interface and collection&fields (#1590) 2023-03-23 12:18:52 +08:00
chenos
81948f4f2c fix(tree-collection): cannot read properties of undefined (reading 'addChild') 2023-03-21 18:09:09 +08:00
Dunqing
0d36caf1c0
fix: collectionFieldsOptions cannot get all fields (#1588) 2023-03-21 16:56:05 +08:00
chenos
01294d3c83 fix(collection-manager): remove __parent 2023-03-21 09:58:12 +08:00
Rairn
2f66334996 fix(Filter-blocks): disable highlight when no connected blocks 2023-03-20 18:21:18 +08:00
Rairn
815768c91d fix(Filter-blocks): should remove option when deleting block 2023-03-20 18:00:07 +08:00
被雨水过滤的空气-Rairn
070c9c21ec
feat(filter-blocks): support filter-blocks (#1505)
* refactor: audit log (#1516)

* refactor: audit-log

* refactor: audit-log fix view action

* refactor: audit-log view fix

* refactor(audit-log): collection field fix

* refactor: audit-log view field fix

* refactor(audit-log): support fixedBlock

* refactor(audit-log): i18n fix

* feat(filter-blocks): support form-block

* feat(filter-blocks): add FilterProvider

* feat: filter data blocks

* perf: use useMemo

* refactor: rename

* feat: collect filter params

* refactor: rename

* refactor: remove useless code

* feat: add 'Connect data blocks' option

* feat: support 'x-filter-targets' to save data-blocks

* refactor: extract Form.FilterFormDesigner

* feat: extract FormItem.FilterFormDesigner

* refactor: extract common editing options

* feat: support to set operator

* feat: use operator created by user

* fix: improve loading

* fix: merge prev params

* feat: support reset

* refactor: rename

* chore: left a TODO

* feat: add Table.FilterDesigner

* feat: support filter-table

* refactor: reduce code

* feat: handle click event of table row

* feat: support to connect association collection

* feat: support Collapse

* feat: show empty

* refactor: optimize readability

* fix: keep state as latest

* fix: highlight row on selected

* feat: highlight data block on hover

* fix: avoid misuse

* chore: reduce code

* fix(Table): support to cancel select

* fix(Collapse): merge multiple filter params

* chore: make to pass CI

* feat: merge all filter params

* refactor: remove useless code

* fix: undefined

* fix(Form): fix bug with association fields

* chore: fix typo

* fix: use title

* chore: avoid infinite loops

* test: cancel comments

* fix: make ci normal

* fix: filter down non-association fields

* fix: fix page crash

* fix: use correct operator

* fix: avoid infinte loops

* style: optimize style on hover

* fix: avoid crash

* chore: optimize empty description

* fix: avoid targetKey empty

* refactor: use getTargetKey instead

* fix: filter out unfilterable fields

* refactor: avoid to invoke hook multiple times

* refactor: reduce the judgment conditions of component

* fix: group fields in the right way

* fix: fix error of type

* fix: fix error on no FilterBlockProvider

* fix(Table): fix fexed-block bug

* chore: reduce gap

* fix(Form): use AssociationSelect by default

* fix: remove g2plot blocks

* fix(Form): remove 'Display association fields'

* fix(Table): use radio

* fix(Table): no need Actions

* fix: fix template problem

* fix(Table): keep only 'filter' and 'refresh'

* fix: use collection name as identifier for data blocks

* fix: make sure all fields are editable

* fix(Form): remove custom actions

* fix(Details): display empty component on no data

* feat(Form): support association fields

* refactor: rename

* feat(Form): support for deep-level association fields

* Revert "fix(Table): keep only 'filter' and 'refresh'"

This reverts commit 61a1d101a7d15223cfd3523adb33567fff545568.

* Revert "fix(Table): no need Actions"

This reverts commit 8314629e92fb3b5b7ec1c97904a42c76c43e4d4a.

* Revert "fix(Table): use radio"

This reverts commit c6f009740e1835f9762653a721ff64f52d0994cf.

* feat(Table): highlight row on selected

* feat: support to cacel highlight

* fix: type error

* feat: remove Table from filter list

* fix(Table): highlight rows problem

* refactor: remove usless code

* refactor(Collapse): detach from Table

* fix(Table): highlighting row problem

* fix: translate problem

* fix(Collapse): fix error of useProps

* fix(Table): avoid undefined

* Update Details.tsx

* Update DetailsBlockProvider.tsx

* refactor: rename target.name to target.uid

* fix: add translate

* style: add padding

---------

Co-authored-by: anuoua <anuoua@gmail.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-20 17:40:16 +08:00
chenos
4427c70087
feat: compact theme (#1574)
* feat: compact theme

* fix: theme

* fix: styling

* fix: margin

* feat: improve

* fix: remove console.log
2023-03-19 23:40:11 +08:00
chenos
75c338b0f1 fix(markdown): empty text 2023-03-19 12:59:48 +08:00
Dunqing
3cce8f75e5
feat: support cron field (#1421)
* feat(calendar): replace cron component with CronSet

* fix: same exported

* fix: type incorrect

* fix: locale

* feat: upgrade react-js-cron and update some text

* fix: cron path

* fix: edge case

* feat: support FixedBlock
2023-03-19 10:55:05 +08:00
被雨水过滤的空气-Rairn
9ada0e37d6
fix(Calendar): ensur to get correct gridInitializer when adding a new… (#1425)
* fix(Calendar): ensur to get correct gridInitializer when adding a new tab (#1241)

* perf: use useMemo
2023-03-19 10:52:56 +08:00
被雨水过滤的空气-Rairn
c68caf105e
feat(markdown): support mermaid and better style (#1583)
* feat(markdown): support Mermaid and better style

* fix: img width

* fix: build problem

* feat: dynamic import

* feat: loading

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-19 08:18:50 +08:00
chenos
05ed569d21 fix(tree-collection): onDelete: CASCADE 2023-03-17 15:28:53 +08:00
chenos
fb0cdb704f fix(client): cannot read properties of undefined 2023-03-17 12:27:35 +08:00
chenos
a9e5e14429
feat: tree collection (#1561)
* feat: adjacency list

* fix: error

* feat: collection extender

* Revert "feat: collection extender"

This reverts commit a942eee769.

* fix: registerBuiltInListeners

* chore: getAllNodeIds

# Conflicts:
#	packages/plugins/acl/src/server.ts

* fix: get list data tree ids

# Conflicts:
#	packages/plugins/acl/src/__tests__/list-action.test.ts

* feat: suport add child

* feat: demo3

* feat: suport add child

* feat: support add child

* feat: support add child

* fix: tree true

* feat: suport expend and collapse

* feat: support expend and collapse

* feat: support expend and collapse

* feat:  table block of the selector supports tree table

* feat: expand and collapse are only displayed in the tree table

* fix: when the tree table is closed and opened, it needs to be refreshed to take effect

* fix: test

* refactor: add child is hidden when the tree table is closed

* refactor: tree table filter the children field

* refactor: tree table filter the children field

* refactor: tree table filter the children field

* refactor: expand and collapse button does not support modify name and icon

* refactor: parent cannot be modified when adding child

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: expand and collapse button hide when treetable is closed

* refactor: filter out the node itself when selecting parent

* refactor: filter out the node itself when selecting parent

* refactor:  tree collection locale

* refactor:  tree collection locale

* fix: parameter exception when creating data selector

* fix: translation

* refactor:  tree collection locale

* feat: data selector Support tree table

* fix: failed to uncheck when multiple data selectors are selected

* fix: open or disabled the tree table, and add child does not respond immediately

* feat: data selector Support tree table

* fix: can not hide add child button

* fix: improve code

* fix: tree table

* fix: dynamic children column

---------

Co-authored-by: Chareice <chareice@live.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-03-17 09:20:56 +08:00
chenos
cd2340ecd0 fix(select-component): invalid mode 2023-03-16 14:42:41 +08:00
Dunqing
46c736d7d3
feat(plugin-map): add map block (#1486)
* feat(plugin-map): add MapBlock

* feat: improve implementation to better support multiple fields

* feat: support click overlay

* fix: the width of select is not 100%

* fix: repeat MapBlock

* fix: loss initializer

* feat: support selected marker in map

* feat: support select point use box

* fix: fixedBlock not work

* fix: template not work

* feat: improve ui

* feat: improve selecting

* feat: update ui

* feat: improve map readpretty

* feat: support marker field
2023-03-16 12:12:14 +08:00
chenos
3cf06be893
fix(record-picker): supports adding sub-collection records (#1573)
* fix:  inherited collection block is not displayed when adding  form from the data selector

* fix: judge whether the record is null logical error

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-03-15 23:18:49 +08:00
chenos
9e7e6a6051 fix: history.pushState 2023-03-15 16:16:04 +08:00
Rairn
8b205ec8b0 fix: fix DatePicker can't use problem 2023-03-14 18:05:10 +08:00
Rairn
9c60402153 fix(filter): fix can't filter boolean type problem 2023-03-14 01:13:18 +08:00
Rairn
9a1794a932 fix: avoid infinite loop 2023-03-14 00:31:15 +08:00
anuoua
7313307210
feat: record picker support to enable links (#1515)
* feat: link-tag-switch

* feat(link-tag-switch): add interface

* feat(link-tag-switch): i18n fix

* feat(link-tag-switch): fix link enable

* feat(link-tag-switch): cr fix

* fix: error

* fix: skip test

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-12 17:16:17 +08:00
chenos
89284bb175 fix: icons are not clickable 2023-03-11 12:21:05 +08:00
Rairn
bc25467027 refactor: hook name should start with 'use' 2023-03-11 11:55:58 +08:00
Rairn
fe652bf6e8 fix(AssociationFilter): avoid undefined 2023-03-11 11:05:57 +08:00
chenos
186da56bdc fix(collection-manager): filter out empty 2023-03-11 09:42:00 +08:00
ChengLei Shao
0832a56868
feat: multiple apps (#1540)
* chore: skip yarn install in pm command

* feat: dump sub app by sub app name

* feat: dump & restore by sub app

* chore: enable application name to edit

* chore: field belongsTo uiSchema

* test: drop schema

* feat: uiSchema migrator

* fix: test

* fix: remove uiSchema

* fix: rerun migration

* chore: migrate fieldsHistory uiSchema

* fix: set uiSchema options

* chore: transaction params

* fix: sql error in mysql

* fix: sql compatibility

* feat: collection group api

* chore: restore & dump action template

* chore: tmp commit

* chore: collectionGroupAction

* feat: dumpableCollection api

* refactor: dump command

* fix: remove uiSchemaUid

* chore: get uiSchemaUid from tmp field

* feat: return dumped file url in dumper.dump

* feat: dump api

* refactor: collection groyoup

* chore: comment

* feat: restore command force option

* feat: dump with collection groups

* refactor: restore command

* feat: restore http api

* fix: test

* fix: test

* fix: restore test

* chore: volta pin

* fix: sub app load collection options

* fix: stop sub app

* feat: add stopped status to application to prevent duplicate application stop

* chore: tmp commit

* test: upgrade

* feat: pass upgrade event to sub app

* fix: app manager client

* fix: remove stopped status

* fix: emit beforeStop event

* feat: support dump & restore subApp through api

* chore: dumpable collections api

* refactor: getTableNameWithSchema

* fix: schema name

* feat:  cname

* refactor: collection 同步实现方式

* refactor: move collection group manager to database

* fix: test

* fix: remove uiSchema

* fix: uiSchema

* fix: remove settings

* chore: plugin enable & disable event

* feat: modal warning

* fix: users_jobs namespace

* fix: rolesUischemas namespace

* fix: am snippet

* feat: beforeSubAppInstall event

* fix: improve NOCOBASE_LOCALE_KEY & NOCOBASE_ROLE_KEY

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-10 19:16:00 +08:00