Commit Graph

943 Commits

Author SHA1 Message Date
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
chenos
c43930fa7c fix: field path 2023-03-23 14:05:53 +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
ChengLei Shao
ca95edf295
refactor: multi-app (#1578)
* feat: compact theme

* fix: theme

* fix: styling

* fix: margin

* feat: improve

* fix: remove console.log

* test: enable plugin test

* refactor: multi app

* test: lazy load sync plugin

* test: lazy load test

* fix: beforeGetApplication Event

* feat: loadFromDatabase options in traverseSubApps

* fix: test

* fix: multi app manager test

* chore: test

* test: should upgrade sub apps when main app upgrade

* feat: plugin require check

* chore: yarn.lock

* fix: sql typo

* feat: share collections

* fix: record name

* test: belongs to many repository

* fix: belongs to many with targetKey alias

* fix: extend collection error

* fix: transaction error

* feat: collection graph

* fix: update options in collection

* chore: collections graph

* chore: export uitls

* feat: connected nodes method in collections graph

* feat: exclude params in connected nodes

* chore: sub app collection list params

* fix: collections graph

* feat: syncToApps migration

* fix:  translation

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-19 23:40:42 +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
Chareice
18a75e096c chore: disable hooks in sort update 2023-03-17 15:02:58 +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
ChengLei Shao
e86e40b93a
fix: app manager reload (#1565)
* fix: app manager reload

* chore: plugin test order
2023-03-14 13:10:15 +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
Junyi
243f9e2448
docs(client): add variable docs (#1556) 2023-03-10 17:42:15 +08:00
chenos
bc5156d458 chore(versions): 😊 publish v0.9.1-alpha.2 2023-03-09 12:45:30 +08:00
Junyi
060ccd04e7
fix(plugin-workflow): fix module import (#1550) (#1552)
* fix(plugin-workflow): fix module import (#1550)

* fix(plugin-workflow): fix module import
2023-03-08 23:00:44 +08:00
ChengLei Shao
c86b91c586
chore: relation repository response when source model not found (#1546)
* chore: relation repository response when source model not found

* fix: test

* fix: test

* fix: test
2023-03-07 22:10:51 +08:00
Junyi
313217a671
fix(plugin-workflow): fix assignees config component in manual node (#1547) 2023-03-07 19:24:02 +08:00
ChengLei Shao
db6d572638
feat: stopped state in application (#1543) 2023-03-06 21:19:49 +08:00
chenos
cb74a9c08b
fix: set form.disabled only when disabled 2023-03-06 16:08:52 +08:00
ChengLei Shao
a214c7b2aa
fix: belongs to many through table with custom schema (#1539) 2023-03-05 17:43:04 +08:00
ChengLei Shao
d1fb3c92d8
test: with collection_manager_schema env (#1532)
* test: with collection_manager_schema env

* fix: remove collection

* fix: collection test

* fix: collection exist in db with custom schema

* fix: inherited with custom collection schema

* fix: build error

* fix: sync unique index & database logger
2023-03-05 14:45:56 +08:00
ChengLei Shao
104be20c60
fix: filter by association field with underscored (#1537)
* fix: filter by association field with underscored

* fix: test
2023-03-05 14:29:40 +08:00
chenos
3904aa7c11 fix: add new blocks 2023-03-05 11:59:08 +08:00
chenos
5769925757 fix: details block is not displayed 2023-03-05 07:51:22 +08:00
Frozen FIsh
b276ce1258
feat: add chart plugin (#1477)
* feat: add pie schema template

* chore: refactor

* chore: update

* chore: init server

* feat: add pie schema template

* chore: add chart utils

* chore: update

* chore: update

* chore: update

* chore: update

* feat: mvp

* chore: update

* chore: test

* feat: example

* fix: templates map error

* chore: update

* feat: add ChartBlockEngineDesigner.tsx

* chore: clean code

* chore: update templates

* chore: init bat template

* chore: update chart block engine

* feat: add chart block engine designer

* chore: update chart block initializer

* chore: update pie template

* chore: update

* feat: split sql

* chore: update

* chore: clean

* feat: support bar

* chore: add bar template

* chore: clean code

* chore: clean code

* fix: chart block initializer title

* chore: update

* fix: use title

* chore: update

* fix: bugs

* chore: clean code

* chore: update pie template

* chore: update ChartBlockInitializer.tsx

* chore: update

* feat: support chart config

* chore: add local plugin

* feat: add column template

* feat: add column chart action

* feat: add line chart template

* feat: add line action

* feat: add area template

* feat: add area action

* chore: update pie template

* chore: update

* chore: update dep

* fix: export missing utils

* chore: update dep

* chore: update dep

* chore: update pie template

* fix(charts): sql table capitalization

* fix(charts): improve sql compatibility

* fix: support choices type

* chore: update

* chore: clean code

* chore: get collection fields in chart engine

* feat(demo): chart block initializer

* fix: hello block

* chore: init data analyse plugin

* chore: add data-analyse plugin

* chore: init plugin

* chore: update

* chore: export schema initializers

* feat: add data analyse block

* chore: update data analyse block initializer

* chore: rename plugin name

* chore: update

* chore: update enum

* chore: update add block

* feat: add pie schema template

* chore: refactor

* chore: update

* chore: init server

* feat: add pie schema template

* chore: add chart utils

* chore: update

* chore: update

* chore: update

* chore: update

* feat: mvp

* chore: update

* chore: test

* feat: example

* fix: templates map error

* chore: update

* feat: add ChartBlockEngineDesigner.tsx

* chore: clean code

* chore: update templates

* chore: init bat template

* chore: update chart block engine

* feat: add chart block engine designer

* chore: update chart block initializer

* chore: update pie template

* chore: update

* feat: split sql

* chore: update

* chore: clean

* feat: support bar

* chore: add bar template

* chore: clean code

* chore: clean code

* fix: chart block initializer title

* chore: update

* fix: use title

* chore: update

* fix: bugs

* chore: clean code

* chore: update pie template

* chore: update ChartBlockInitializer.tsx

* chore: update

* feat: support chart config

* chore: add local plugin

* feat: add column template

* feat: add column chart action

* feat: add line chart template

* feat: add line action

* feat: add area template

* feat: add area action

* chore: update pie template

* chore: update

* chore: update dep

* fix: export missing utils

* chore: update dep

* chore: update dep

* chore: update pie template

* fix(charts): sql table capitalization

* fix(charts): improve sql compatibility

* fix: support choices type

* chore: update

* chore: clean code

* chore: get collection fields in chart engine

* chore: init dataset plugin

* chore: init dataset designer

* chore: init dataset block initializer

* chore: update

* chore: update

* chore: update deps

* chore: add tests

* chore: update utils

* chore: init plugin

* feat: add datasets client

* chore: update tests

* chore: update datastructures

* chore: update

* feat: add DataSetBlockInitializer

* chore: use dataset initializer

* chore: update deps

* chore: update

* chore: update pie template

* chore: update ChartBlockInitializer

* chore: update ChartBlockEngine

* chore: remove mdg file

* chore: update ChartBlockEngine

* chore: update

* chore: update g2plot

* chore: update template

* chore: update pie handler

* chore: update DataSetPreviewTable

* chore: update ChartBlockEngine

* chore: update ChartBlockEngineDesigner

* chore: remove useless files

* chore: update ChartBlockInitializer

* chore: update template

* chore: feat area template

* chore: update tests

* chore: update local plugins

* chore: update deps

* chore: update templates

* chore: update template

* feat: add CustomSelect

* chore: update select component

* fix: seriesField color error

* chore: update template

* chore: update

* fix: bar

* chore: update templates & clean code

* chore: update templates

* feat: add FunnelTemplate

* feat: charts queries

* fix: data shift

* feat: add ChartQueryMetadataProvider

* chore: update

* chore: remove dataset

* chore: update

* chore: update

* chore: clean code

* fix: delete query query list wrong behavior

* fix: delete all queries query list behavior

* chore: add empty occupancy

* chore: update description

* chore: update chart icon

* chore: update funnel template

* chore: update template title

* chore: add references

* chore: update dialog height

* fix: scatter template

* chore: update popup description

* refactor: schema level

* refactor: charts schema

* chore: remove console

* chore: remove console

* fix: error message

* chore: remove console

* chore: update DataSetPreviewTable

* feat: chart icons

* feat: update i18n

* feat: update i18n

* chore: update i18n

* chore: update i18n

* chore: update i18n

* feat: add tittle

* chore: update icons

* chore: update i18n

* chore: update i18n

* chore: update i18n

* chore: update i18n

* chore: update i18n

* fix: improve code

* chore: update i18n

* chore: update i18n

* fix: chart icon

* feat: quick add query (#1527)

* feat: quick add query

* feat: query

* chore: remove useless files

* fix: json5 validator error

* chore: update

* chore: update style

* chore: lint

* feat: improve code

* feat: sql validation

* refactor: clean code

* Update utils.ts

* chore: format code

* chore: remove useless file

* chore: update

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-04 19:36:58 +08:00
katherinehhh
555378c342
feat: support add new in block for inheritance collection (#1518)
* feat: support adding inherited child collection in blocks

* feat: support adding inherited child collection in blocks

* refactor: create form block display on demand when using

* feat:  support  add new  in-block for  inheritance collection

* fix: action open mode support configuration when adding

* feat: support the configuration of detail and form for inherited collections in block (#1521)

* feat: support the configuration of detail and form for inherited collections in the block

* fix: form and detail is not support current collection

* fix: inherited blocks within blocks only display their own

* style: style improve

* style: style improve

* refactor: detail and form block to determine whether there are inherited collection

* fix: repeated display of child collection

* feat:   add new for  inherited collection, judge the permissions

* feat: support child collection add new configure

* style: style improve

* style: style improve

* fix: child collectio repeatable configuration adding new

* style: style improve

* style: style improve
2023-03-04 18:54:25 +08:00
Junyi
37998d03ad
refactor(plugin-workflow): change canvas card and adjust styles (#1529)
* refactor(plugin-workflow): optimize workflow canvas

* feat(plugin-workflow): allow click on node card to open config and adjust styles

* fix(plugin-workflow): fix collection trigger linkages
2023-03-04 00:19:11 +08:00
ChengLei Shao
4d44e31b31
fix: test with nocobase plugin (#1525) 2023-03-03 13:54:37 +08:00
ChengLei Shao
1a84396691
fix: remove field when collection has difference schema with database (#1524) 2023-03-03 11:05:57 +08:00
chenos
946c8f25a3 chore(versions): 😊 publish v0.9.1-alpha.1 2023-03-03 09:34:06 +08:00
chenos
07ec115904
refactor: audit logs block (#1517)
* 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

* refactor(audit-log): fixedTable and drag issue

* refactor(audit-log): remove template support

* refactor(audit-log): drag fix

* refactor(audit-log): disableTemplate & DndContext

---------

Co-authored-by: anuoua <anuoua@gmail.com>
2023-03-03 00:16:26 +08:00
chenos
e913af7f32
fix: improve translation 2023-03-02 11:36:26 +08:00
Junyi
ac039ad0e2
fix(evaluators): fix preprocessing and add test cases (#1519)
* fix(evaluators): fix preprocessing and add test cases

* fix(plugin-workflow): fix calculation test case
2023-03-01 07:55:53 -08:00
chenos
1e329bc2d2 fix: undefined length 2023-03-01 21:46:34 +08:00
ChengLei Shao
9048b2a58b
feat: collection manager schema env (#1506)
* feat: database manager schema env support

* feat: skip db2cm collection in custom schema

* fix: test

* test: through table custom schema

* chore: fields hooks

* chore: reload through collection on autoCreate

* fix: test error

* fix: skip test case

* chore: children test

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-03-01 17:55:37 +08:00
Junyi
acc5656490
fix(client): fix checkbox unchecked display (#1508)
* fix(client): fix checkbox unchecked display

* fix(client): revert global option back
2023-02-28 07:58:10 -08:00
Junyi
e752686c7e
feat(plugin-formula): calculation with snapshot field (#1498)
* feat(plugin-formula): calculation with snapshot field

* fix(plugin-snapshot): fix appends calcualtion

* fix(plugin-snapshot): fix appends calcualtion

* fix(plugin-snapshot): fix appends calcualtion
2023-02-28 17:55:58 +08:00
Dunqing
15d067120d
fix(association-select): filter without data scope not work (#1509)
* fix(association-select): filter without data scope not work

* fix: update

* fix: use merge filter

* refactor: better logic

* fix: option has hidden

* fix: hidden, disabled

* fix: update

* fix: merge filter doesn't handle array
2023-02-27 18:52:03 +08:00
ChengLei Shao
ecf618783e
feat: fallback sort field init to createdAt field (#1507)
* feat: fallback sort field init to createdAt field when primary key not exists

* chore: set belongsToMany through autoCreated table to sortable false
2023-02-27 13:59:17 +08:00
Dunqing
68fcadf092
fix(association-select): data is incorrect when use data scope (#1491)
* fix(association-select): data is incorrect when use data scope

* fix: update

* feat: improve RemoteSelect performance

* feat: use value instated of options when options is empty

* fix: data scope not work

* fix: loading not work

* feat: prepare database method (#1492)

* fix: environment variables (#1490)

* fix: beforeSubAppLoad emit to async

* feat: support custom plugin deployment in dockerfile (#1494)

* fix: collection importer has incorrect reference (#1495)

* fix: collection importer has incorrect reference

* test: reimport test

* fix: export collectionTemplates

* feat: form/button linkage rules (#1456)

* feat(plugin-workflow): add prompt node

* feat(plugin-workflow): useValueGetter for all instructions and triggers

* feat(plugin-workflow): add workflow block initializer

* refactor(plugin-workflow): change prompt node type to manual

* feat(plugin-workflow): add ModeConfig component for mode

* feat(plugin-workflow): add todo drawer

* feat(plugin-workflow): add block value provider

* feat(plugin-workflow): improve todo block and drawer

* fix(plugin-workflow): fix instruction name in test cases

* fix(plugin-workflow): fix test cases

* refactor(plugin-workflow): change param type of collection field initializer

* feat(plugin-workflow): add filter types for getters

* fix(plugin-workflow): fix assignees variable

* fix(plugin-workflow): filter todo by exist workflow

* fix(plugin-workflow): fix duplicated save action in manual config

* fix(plugin-workflow): fix transaction

* feat(plugin-workflow): destroy workflow will be cascaded

* fix(plugin-workflow): fix merge

* fix(plugin-workflow): fix locale

* fix(plugin-workflow): allow open ui view when executed

* fix(plugin-workflow): change todo table filter

* feat(plugin-workflow): use formula for calculation

* fix(plugin-workflow): fix variable template regexp

* fix(plugin-workflow): fix sub-options logic with types

* refactor(plugin-workflow): drop useless component

* fix(plugin-workflow): fix manual node action button

* feat(plugin-workflow): add new variable input component

* refactor(plugin-workflow): change all variable to new component

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix functions init

* fix(plugin-workflow): change jsonb to json for stable order

* fix(plugin-workflow): fix duplicated field name when initialize

* fix(plugin-workflow): fix manual result in manual block

* test(plugin-workflow): log field initializer props

* fix(plugin-workflow): fix nullable arguments

* test(plugin-workflow): test initializer fields schema

* fix: observer

* fix(plugin-workflow): adjust hints

* fix(plugin-workflow): fix locale and cursor in variable input

* refactor(plugin-workflow): change status keys

* fix(plugin-workflow): fix parallel instruction

* feat: linkage rules

* refactor: linkage rules

* refactor: linkage rules update

* refactor: linkage rules button

* refactor(linakge rules): suport value action

* refactor(linakge rules): suport value action

* fix(workflow test): workflow test

* refactor(linakge rules): action linkage only for detail form

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  linkageAction

* refactor(linakge rules):  linkageAction

* refactor(linakge rules): field value  linkageAction

* refactor(linakge rules): local

* refactor(linakge rules): local

* fix(linakge rules): value property

* fix(linakge rules): value property

* fix(linakge rules): value property

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse form fields

* fix(linakge rules): conditionAnalyse form fields

* fix(linakge rules): conditionAnalyse operators

* fix(linakge rules): form button linkage

* fix(linakge rules): form button linkage

* fix(linakge rules): select component suport pattern

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(action): action desginer suport linkage

* refactor: formula calculation assignment

* refactor: formula calculation assignment

* style: unified component disable style

* feat: richText suport disabled

* feat: condiction suport varible

* feat: condiction suport varible

* refactor: variableInput

* refactor: condiction scope

* refactor: multi level linkage

* fix: empry value linkage

* refactor: components using core schema-component

* fix: fix template reference linkage

* refactor: evalute foumala

* fix: mutual linkage fix

* refactor: variables suport obo&oho

* style: style improve

* style: style improve

* style: style improve

* feat: variables suport m2o

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* fix: actions path

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
Co-authored-by: chenos <chenlinxh@gmail.com>

* fix: support mysql lower_case_table_names=1

* fix(linkageRules): support empty condiction (#1496)

* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* Update zh_CN.ts (#1481)

Co-authored-by: chenos <chenlinxh@gmail.com>

* fix(remote-select): remove fields parameter

* Update actions.md

* fix: filter

---------

Co-authored-by: ChengLei Shao <chareice@live.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <shunai.tang@hand-china.com>
Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
Co-authored-by: justwho <rov7@qq.com>
Co-authored-by: Pearl C <63629092+pearl-cao@users.noreply.github.com>
2023-02-27 09:14:14 +08:00
chenos
750081e6aa
feat: dialect version accessors (#1502) 2023-02-26 11:58:45 +08:00
ChengLei Shao
dfbdbc741d
fix: collection schema updated but model _schema not change (#1500)
* fix: collection schema updated but model _schema not change

* test: schema changed
2023-02-26 08:04:29 +08:00
chenos
727a0b2dbd fix(remote-select): remove fields parameter 2023-02-25 18:19:25 +08:00
justwho
4e81a26805
Update zh_CN.ts (#1481)
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-25 17:53:45 +08:00
katherinehhh
e7e1436422
fix(linkageRules): support empty condiction (#1496)
* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty

* fix: condiction suport empty
2023-02-25 15:18:54 +08:00
chenos
9d1b10d635 fix: support mysql lower_case_table_names=1 2023-02-25 00:54:45 +08:00
katherinehhh
94e38e453a
feat: form/button linkage rules (#1456)
* feat(plugin-workflow): add prompt node

* feat(plugin-workflow): useValueGetter for all instructions and triggers

* feat(plugin-workflow): add workflow block initializer

* refactor(plugin-workflow): change prompt node type to manual

* feat(plugin-workflow): add ModeConfig component for mode

* feat(plugin-workflow): add todo drawer

* feat(plugin-workflow): add block value provider

* feat(plugin-workflow): improve todo block and drawer

* fix(plugin-workflow): fix instruction name in test cases

* fix(plugin-workflow): fix test cases

* refactor(plugin-workflow): change param type of collection field initializer

* feat(plugin-workflow): add filter types for getters

* fix(plugin-workflow): fix assignees variable

* fix(plugin-workflow): filter todo by exist workflow

* fix(plugin-workflow): fix duplicated save action in manual config

* fix(plugin-workflow): fix transaction

* feat(plugin-workflow): destroy workflow will be cascaded

* fix(plugin-workflow): fix merge

* fix(plugin-workflow): fix locale

* fix(plugin-workflow): allow open ui view when executed

* fix(plugin-workflow): change todo table filter

* feat(plugin-workflow): use formula for calculation

* fix(plugin-workflow): fix variable template regexp

* fix(plugin-workflow): fix sub-options logic with types

* refactor(plugin-workflow): drop useless component

* fix(plugin-workflow): fix manual node action button

* feat(plugin-workflow): add new variable input component

* refactor(plugin-workflow): change all variable to new component

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix functions init

* fix(plugin-workflow): change jsonb to json for stable order

* fix(plugin-workflow): fix duplicated field name when initialize

* fix(plugin-workflow): fix manual result in manual block

* test(plugin-workflow): log field initializer props

* fix(plugin-workflow): fix nullable arguments

* test(plugin-workflow): test initializer fields schema

* fix: observer

* fix(plugin-workflow): adjust hints

* fix(plugin-workflow): fix locale and cursor in variable input

* refactor(plugin-workflow): change status keys

* fix(plugin-workflow): fix parallel instruction

* feat: linkage rules

* refactor: linkage rules

* refactor: linkage rules update

* refactor: linkage rules button

* refactor(linakge rules): suport value action

* refactor(linakge rules): suport value action

* fix(workflow test): workflow test

* refactor(linakge rules): action linkage only for detail form

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  logic calculation

* refactor(linakge rules):  linkageAction

* refactor(linakge rules):  linkageAction

* refactor(linakge rules): field value  linkageAction

* refactor(linakge rules): local

* refactor(linakge rules): local

* fix(linakge rules): value property

* fix(linakge rules): value property

* fix(linakge rules): value property

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse

* fix(linakge rules): conditionAnalyse form fields

* fix(linakge rules): conditionAnalyse form fields

* fix(linakge rules): conditionAnalyse operators

* fix(linakge rules): form button linkage

* fix(linakge rules): form button linkage

* fix(linakge rules): select component suport pattern

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(linakge rules):  component suport field patter for disabled

* fix(action): action desginer suport linkage

* refactor: formula calculation assignment

* refactor: formula calculation assignment

* style: unified component disable style

* feat: richText suport disabled

* feat: condiction suport varible

* feat: condiction suport varible

* refactor: variableInput

* refactor: condiction scope

* refactor: multi level linkage

* fix: empry value linkage

* refactor: components using core schema-component

* fix: fix template reference linkage

* refactor: evalute foumala

* fix: mutual linkage fix

* refactor: variables suport obo&oho

* style: style improve

* style: style improve

* style: style improve

* feat: variables suport m2o

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* fix: actions path

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

* refactor: code improve

---------

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: Junyi <mytharcher@users.noreply.github.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-25 00:40:51 +08:00
Chareice
8e11e4d561 fix: export collectionTemplates 2023-02-24 20:49:04 +08:00
ChengLei Shao
c9572fc9f6
fix: collection importer has incorrect reference (#1495)
* fix: collection importer has incorrect reference

* test: reimport test
2023-02-24 17:50:08 +08:00
ChengLei Shao
856b6efa77
feat: prepare database method (#1492) 2023-02-23 20:14:50 +08:00
chenos
fa0951171a fix(association-select): data scope 2023-02-23 16:23:25 +08:00
ChengLei Shao
e18bccd00a
Fix/multiple schema query (#1488)
* fix: describeTableQuery in multiple schema database

* fix: beforeUpdateCollection position
2023-02-23 14:13:32 +08:00
chenos
e0736f8aed
fix: string violation (#1487)
* fix: string violation

* feat: add test cases
2023-02-23 12:46:50 +08:00
Junyi
86d9eaf2fb
refactor(plugin-workflow): migrate evaluators (#1485)
* fix(plugin-formula): fix locale

* refactor(client): migrate variable component

* refactor(plugin-workflow): use core evaluators

* refactor(plugin-workflow): migrate calculation engines to evaluators
2023-02-22 23:45:03 +08:00
chenos
4a7b32b5e7 fix(record-picker): get label from value 2023-02-22 18:10:40 +08:00
chenos
8113748f26 fix: dynamic component switching error 2023-02-21 22:08:26 +08:00
Junyi
139ca9a635
refactor(plugin-formula): combine 2 formula field type into 1 (#1457)
* fix: observer

* refactor(plugin-formula): merge 2 formula field type

* fix(plugin-formula): fix types

* fix(plugin-formula): fix type

* fix(plugin-formula): fix formulajs version

* fix(plugin-formula): change to VariableInput to avoid range error

* test(plugin-formula): add test

* fix(plugin-formula): fix test case

* fix(plugin-formula): fix test case

* fix(plugin-formula): fix test case

* refactor(plugin-formula): move components into plugin

* fix(plugin-formula): fix migration

* fix(plugin-formula): revert legacy component to fix build

* fix(plugin-formula): fix test case

* fix(plugin-formula): fix test case

* fix(plugin-formula): fix read-pretty component

* fix(plugin-formula): fix formula result component

* feat(plugin-formula): add checkbox display X

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-21 20:12:21 +08:00
Junyi
4fbad75ea9
Feat(plugin-workflow) manual instruction (#1339)
* feat(plugin-workflow): add prompt node

* feat(plugin-workflow): useValueGetter for all instructions and triggers

* feat(plugin-workflow): add workflow block initializer

* refactor(plugin-workflow): change prompt node type to manual

* feat(plugin-workflow): add ModeConfig component for mode

* feat(plugin-workflow): add todo drawer

* feat(plugin-workflow): add block value provider

* feat(plugin-workflow): improve todo block and drawer

* fix(plugin-workflow): fix instruction name in test cases

* fix(plugin-workflow): fix test cases

* refactor(plugin-workflow): change param type of collection field initializer

* feat(plugin-workflow): add filter types for getters

* fix(plugin-workflow): fix assignees variable

* fix(plugin-workflow): filter todo by exist workflow

* fix(plugin-workflow): fix duplicated save action in manual config

* fix(plugin-workflow): fix transaction

* feat(plugin-workflow): destroy workflow will be cascaded

* fix(plugin-workflow): fix merge

* fix(plugin-workflow): fix locale

* fix(plugin-workflow): allow open ui view when executed

* fix(plugin-workflow): change todo table filter

* feat(plugin-workflow): use formula for calculation

* fix(plugin-workflow): fix variable template regexp

* fix(plugin-workflow): fix sub-options logic with types

* refactor(plugin-workflow): drop useless component

* fix(plugin-workflow): fix manual node action button

* feat(plugin-workflow): add new variable input component

* refactor(plugin-workflow): change all variable to new component

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix functions init

* fix(plugin-workflow): change jsonb to json for stable order

* fix(plugin-workflow): fix duplicated field name when initialize

* fix(plugin-workflow): fix manual result in manual block

* test(plugin-workflow): log field initializer props

* fix(plugin-workflow): fix nullable arguments

* test(plugin-workflow): test initializer fields schema

* fix: observer

* fix(plugin-workflow): adjust hints

* fix(plugin-workflow): fix locale and cursor in variable input

* refactor(plugin-workflow): change status keys

* fix(plugin-workflow): fix parallel instruction

* fix(plugin-workflow): fix calculation migration

* fix(plugin-workflow): move tasks native filter to server

* fix(plugin-workflow): fix manual options for variable

* fix(plugin-workflow): fix conflict

* fix(plugin-workflow): fix some bugs

* fix(plugin-workflow): fix todo list filter and locale

* fix(plugin-workflow): fix update action of workflow

* refactor(plugin-workflow): add legacy condition calculation as basic engine

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix condition basic calculation

* fix(plugin-workflow): fix type

* fix(plugin-workflow): fix migration

* fix(plugin-workflow): fix evaluators and scope

* fix(plugin-workflow): remove disabled type select in schema config

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

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-20 11:52:06 +08:00
chenos
5421686504
feat: support for importing attachments (#1466) 2023-02-19 17:35:23 +08:00
ChengLei Shao
24fb25754f
fix: column not exists error after destory relation field (#1465)
* test: field not exists

* fix: create association field after other association field destroyed
2023-02-19 11:55:25 +08:00
chenos
cf71111b0a fix: association value submitted on demand 2023-02-18 14:52:52 +08:00
chenos
780f2d556e feat: default value of block template title 2023-02-18 11:09:55 +08:00
ChengLei Shao
43e52843fa
fix: add schema (#1464)
* fix: add schema

* chore: format
2023-02-18 09:27:54 +08:00
Dunqing
92185ec57c
fix: avoid o2o, o2m can select the data already selected (#1462)
* fix: avoid o2o, o2m can select the data already selected

* fix: o2m
2023-02-17 18:25:14 +08:00
chenos
a0e85cda22
feat: add test cases (#1463) 2023-02-17 18:15:35 +08:00
chenos
5805b69455 feat(db): field value parser 2023-02-16 23:56:00 +08:00
justwho
74b93f58fd
feat: update zh_CN.ts (#1458) 2023-02-16 21:03:31 +08:00
chenos
a6aec25343
refactor: export plugin (#1460)
* refactor: export plugin

* fix: improve code
2023-02-16 16:48:00 +08:00
ChengLei Shao
89c1d39b6b
Fix/pg schema with inherit (#1446)
* fix: pg schema in sync runner

* fix: restore with pg schema

* chore: databse utils

* fix: test

* Update nocobase-test.yml

* fix: test

* chore: db schema test options

* feat: collection add schema table name method

* fix: update to bigint test

* fix: schema test

* chore: show constraints query path

* chore: show constraints query path

* Update nocobase-test.yml

* chore: test

* fix: test

* fix: test

* fix: test table name

* fix: inherited collection test
2023-02-16 10:53:04 +08:00
chenos
05740672a0
feat: multiple apps admin (#1431)
* fix: dynamic routerBase

* fix: start sub app with empty options

* chore: sync options

* fix: sub app create database

* fix: test

* fix: deps

* feat: register app db creator

* feat: default db creator

* feat: app options factory

* chore: api name

* fix: test

* fix: running sub app

* fix: beforeGetApplication hook

* fix: mysql test

* fix: appManager get selector

* chore: callback

---------

Co-authored-by: Chareice <chareice@live.com>
2023-02-14 15:30:58 +08:00
ChengLei Shao
0e0eb6432e
feat: provide the underscored option for the database (#1366)
* feat: underscored options

* feat: underscored using hook

* feat: database underscored options

* feat: underscored env

* fix: collectionExistsInDb

* fix: test

* fix: nocobase install

* fix: test

* fix: belongsTo association

* fix: test of underscored

* chore: console.log

* fix: list action test

* fix: dump test

* chore: snakeCase algo

* fix: underscored field create

* fix: underscored env

* fix(acl): custom appends merge strategy (#1416)

* Update index.md

* fix(plugin-workflow): use promise to request (#1426)

* Update index.md

* Update collection.md

* Update index.md

* Update index.md

* Update collection.md

* Update field.md

* Update repository.md

* Update has-one-repository.md

* Update has-many-repository.md

* Update belongs-to-many-repository.md

* Update index.md

* chore: translate 'Add tab' in page header (#1424)

* fix: test

* fix: workflow test

* fix: underscored with inherits

* fix: underscored test

* fix:  process.env.DB_UNDERSCORED

* fix: process.env.DB_UNDERSCORED === 'true'

* fix: test

* fix: pg test

* fix: underscored table name

* feat: tableName & fieldName conflict check

* fix: test

* fix: underscored index

* fix: update field unique index

* fix: sync default value

* fix: collection manager create field

* chore: field sync

* fix: pg test

* chore: test

* fix: test

* chore: default constraint name

* chore: syncUniqueIndex

* feat: field destory before check

* feat: field type check

* fix: test

* fix: test

* fix: improve

* fix: should destroy when fields refer to the same field

* fix: acl meta with underscored

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-13 21:38:47 +08:00
Frozen FIsh
00acbfb9b0
Revert "fix(table): make filed overflow behavior right (#1392)" (#1452)
This reverts commit 7fda978fe8.
2023-02-13 16:22:43 +08:00
katherinehhh
7591a0e8ea
fix(collection category): zh_cn locale defect (#1451) 2023-02-13 15:11:11 +08:00
chenos
e5e503fe87
feat: add namespace and duplicator parameters for collection options (#1449)
* feat: add namespace and duplicator parameters for collection options

* fix: duplicator:getDict
2023-02-13 09:57:03 +08:00
anuoua
6c837ee08c
feat: association snapshot (#1438)
* feat: snapshota

* feat: snapshota i18n & bugs

* feat: snapshota association value fix

* feat: snapshota remove require true

* feat: snapshota params.values null fix

* feat: snapshota i18n

* feat: snapshota CR fix

* feat: snapshota field change fix

* feat: snapshota magicstring fix

* feat: snapshota field del fix

* feat: snapshota CR fix

* feat: snapshota tag fix

* feat: snapshota depth < 3

* fix: improve code

* feat: snapshota test

* feat: snapshota remove disabled

* fix: disabled isOverride

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-12 14:43:48 +08:00
被雨水过滤的空气-Rairn
7fda978fe8
fix(table): make filed overflow behavior right (#1392)
* fix(Table): fix overflow issue on td element (#1392)

* chore(table): update style
2023-02-11 23:34:38 +08:00
chenos
2dc9c5c444
fix: error:0308010C:digital envelope routines::unsupported (#1447)
* fix: error:0308010C:digital envelope routines::unsupported

* fix: process.env.UNSET_NODE_OPTIONS
2023-02-10 11:16:36 +08:00
katherinehhh
f8a11cbbf0
feat: collection categories (#1327)
* feat: collection categories

* feat: collection category

* feat: collection category

* feat: collection category belongsToMany

* feat: collection category

* feat: collection category

* feat: collection category

* feat: collection category local

* feat: collection category

* feat: collection category collection

* feat: collection category code improve

* feat: collection category code improve

* feat: collection category column

* feat: collection category color

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: collection category refresh

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: collection category improve

* feat: graph collection show category color

* feat: graph collection show category color

* feat: graph collection category style improve

* fix: change the variable names to camel case

* fix: category

* fix: collectionCategory

* fix: field options

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-10 09:15:37 +08:00
SemmyWong
d79143e3ed
fix: node.js 17+, add openssl-legacy-provider (#1434)
* fix: node upgrade 17+, add openssl-legacy-provider

* fix: node upgrade 17+, add openssl-legacy-provider

* fix: param NODE_OPTIONS_OPENSSL_LEGACY_PROVIDER change to NODE_OPTIONS
2023-02-09 17:04:32 +08:00
ChengLei Shao
1b63403811
feat: pg schema support (#1439)
* chore: pg schema test

* test: collection schema

* fix: test

* feat: create schema if not exist in sync method

* fix: test
2023-02-08 22:08:25 +08:00
Junyi
88c35a086a
fix(i18n): set key and ns separator default to false (#1432) 2023-02-06 19:57:40 -08:00
被雨水过滤的空气-Rairn
8657710997
chore: translate 'Add tab' in page header (#1424) 2023-02-05 13:25:18 +08:00
chenos
a57c4f53f9
fix(acl): custom appends merge strategy (#1416) 2023-02-02 16:34:53 +08:00
Dunqing
4e3a276202
fix(FixedBlock): using both association filters and FixedBlock does not show the complete table (#1405) 2023-02-01 12:55:57 +08:00
Dunqing
65a579384a
feat(calendar): startDate and endDate support the use of association fields (#1397)
* feat(calendar): startDate and endDate support the use of association fields

* feat: improve association type
2023-02-01 12:55:46 +08:00
chenos
733e1ff60b fix: acl field whitelist 2023-01-31 15:54:41 +08:00
katherinehhh
ddb174db1b
fix: foreign keys are editable when adding fields (#1404) 2023-01-30 10:58:14 +08:00
anuoua
911caa1e37
fix: navbar_ui style (#1398) 2023-01-30 10:35:25 +08:00
ChengLei Shao
bab10c928b
fix: inherit startup sort (#1402) 2023-01-29 15:46:53 +08:00
katherinehhh
0d30366aba
feat: fix through collections inherits filter (#1394)
* feat: fix  through collections inherits filter

* feat:  foreignkey disabled when collectionfield override
2023-01-29 00:11:45 +08:00
chenos
1272523b12 fix: missing context 2023-01-28 19:07:04 +08:00
Junyi
bf6bf00047
Fix(plugin-sequence): support sequence field in m2m through table (#1383)
* fix(plugin-sequence): support sequence field in m2m through table

* fix(plugin-sequence): fix update last sequence

* fix(plugin-sequence): fix hooks
2023-01-18 22:54:08 +08:00
chenos
3b7143a282 feat: collection titleField 2023-01-18 16:55:03 +08:00
chenos
d4d8d747b8
fix: through collection individual hooks (#1378) 2023-01-17 12:32:28 +08:00
chenos
47158e0282
fix: through collection records should not be reset (#1377)
* fix: through collection records should not be reset

* fix: test error
2023-01-17 09:44:53 +08:00
Junyi
00efb38438
feat(client): add form disabled context (#1374)
* feat(client): add form disabled context

* fix: improve code

* fix: improve code

* fix: form-v2 disabled

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-01-16 23:01:28 +08:00
Junyi
51ce0afc06
Fix(plugin-workflow): request node (#1367)
* fix(plugin-workflow): fix json data

* refactor(plugin-workflow): change ejs to json-templates in request

* feat(plugin-workflow): add variable insert button to json input

* fix(plugin-workflow): fix main locales

* fix(plugin-workflow): fix params in request

* fix(plugin-workflow): fix types

* feat(plugin-workflow): add ejs migration
2023-01-15 12:56:04 +08:00
chenos
332010a036 feat: draggable page tabs 2023-01-15 09:43:03 +08:00
chenos
daa91e95a6 chore(versions): 😊 publish v0.9.0-alpha.2 2023-01-14 12:07:20 +08:00
chenos
f33c63ac01 fix: filter error 2023-01-14 10:31:22 +08:00
chenos
cc47041519
feat: load multiple languages dynamically (#1355)
* feat: load multiple languages dynamically

* fix: map locale

* fix: antd

* fix: locale

* fix: th

* fix: cronstrue locales

* fix: improve code

* fix: defaults
2023-01-13 10:55:04 +08:00
chenos
3e90bc9d7e fix: improve filter strategy 2023-01-12 14:28:47 +08:00
chenos
013f0916a5 chore(versions): 😊 publish v0.9.0-alpha.1 2023-01-11 12:08:24 +08:00
chenos
8d30bee757
feat: change license (#1350) 2023-01-11 11:58:47 +08:00
chenos
618a65deec fix: skip field validation when fields are hidden 2023-01-10 14:54:04 +08:00
chenos
61621a9759 fix: click the edit button to report an error 2023-01-10 12:16:29 +08:00
chenos
1dc4142da2 fix: typeError: Cannot read properties of undefined (reading 'find') 2023-01-10 10:48:50 +08:00
chenos
452ecb5fc7
feat: formula plugin (#1344)
* fix: transaction cannot be rolled back because it has been finished with state: rollback

* fix(plugin-system-settings): convert array to json

* fix(collection-manager): o2m is array type

* fix: missing RefreshActionInitializer

* fix(collection-manger): incorrect scope key parameter

* fix: can't access pages without permission via url (#826)

* feat(database): add sequence field type (#779)

* feat(database): add serialString field type

* feat(database): add serial string type field ui (skip ci)

* test(feat/database): test field options

* docs: demo

* fix(database): fix array table field behavior

* fix(database): fix serial type interface ui

* fix(database): add match logic for patterns changes

* fix(database): fix serial type query last bug in mysql

* refactor(database): refactor last record logic

* chore: revert modification on unnecessary file

* refactor(database): rename serialString type to sequence

Co-authored-by: chenos <chenlinxh@gmail.com>

* added Russian translation (#840)

* Russian translation

* Add files via upload

Add RU locale into index.ts
Bugs fixed in the ru_RU.ts

* Update index.ts

Correct lines 4 and 8

* feat: update option must have filter or filterByTk (#847)

* feat: update option must have filter or filterByTk

* fix: typo

* fix: typo

* feat(core/cache): support cache (#876)

* feat(core/cache): support cache

* build(create-nocobase-app): remove --cache-store-package cli option

* perf(core/cache): modify default cache config and remove unnecessary logic code

* fix: slow join query issued by appends field in find method of repository  (#845)

* fix: slow join query issue by appends field in repository.find

* feat: handle appending query in multiple relation repository

* feat: handle appending query in single relation repository

Co-authored-by: chenos <chenlinxh@gmail.com>

* fix: sort parameter is missing (#849)

* fix: 审计日志翻页sort丢失

* fix: 审计日志翻页sort丢失

* fix: 审计日志翻页sort丢失

Co-authored-by: 唐小爱 <tangxiaoai@192.168.0.103>

* fix(formula): support integer and fix NaN error (#879)

* fix(formula): support integer and fix NaN error

* style(formula-input): remove debugger

* fix(database): fix the index name too long error

* feat(collection-manager): inverse fields can be configured (#883)

* feat: inverse field

* feat: improve code

* feat: translations

* fix: required

* fix: run test by jest (#891)

* fix: unable to submit form during file upload (#892)

* fix(client/block-select-collection): fix select collection menu view error (#889)

* fix(client/block-select-collection): fix too many collection menu view error

* fix(client/relate-collection-field-menu): fix relate collection field menu view too long error

* fix(client/record-picker): support record-picker show format DataPicker (#888)

* fix(client/record-picker): support record-picker show format DataPicker

* fix(client/record-picker): undefined judgment and when change field's label refresh format in time

* feat: improve signin and signup page components

* feat(plugin-workflow): add concat calculator (#894)

* fix: single relation repository appends query issue (#901)

* fix: appends merge includes (#905)

* fix: build error

* fix(client): tab pane initializers for create form block

* fix: version judgment is not accurate

* fix: sync collection field default value (#907)

* feat: limit database identifier (#908)

* fix: cannot read properties of undefined (reading 'target')

* fix: appends merge now using primary key (#911)

* fix: appends merge now using primary key

* chore: console.log

* fix: unbind on error throwing (#914)

* feat: create with array of values (#912)

* feat: create with array of values

* chore: console.log

* chore: debug

* fix(client/route-switch): skip sub routes

* Feat: plugin workflow collection field (#919)

* feat(plugin-workflow): use Collectionfield component to render form

* fix(plugin-workflow): fix association types value assigning in nodes

* fix: missing menuItemGroupCss

* fix: multiple = false

* chore(versions): 😊 publish v0.7.5-alpha.1 (#920)

* fix(plugin-workflow): temp disable validation of collection field in node (#928)

* fix(plugin-workflow): fix schedule infinitely trigger when repeat not set (#926)

* Feat/plugin workflow collection field (#934)

* feat(plugin-workflow): support association constant simple input

* fix(plugin-workflow): remove useless code

* fix(plugin-workflow): add req context to processor (#936)

* fix(plugin-workflow): avoid revision with ghost nodes (#941)

* fix(plugin-workflow): fix collection fieldset component (#942)

* feat(useSignup): customize success message

* feat: changed with associations (#943)

* feat: changed with associations

* fix: test error

* fix: test error

* fix: test

* fix(plugin-workflow): fix schedule trigger bug (#949)

* fix(plugin-workflow): skip time based test (#951)

* fix(plugin-workflow): test changedWithAssociations() (#950)

* fix(plugin-workflow): test changedWithAssociations()

* fix: toChangedWithAssociations

* fix(plugin-workflow): add test cases

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: docker optimizing (#948)

* chore: feat/docker-optimizing
* feat: docker nginx gzip config

* feat: ui schema cache (#877)

* feat(core/cache): support cache

* perf(plugins/ui-schema-storage): cache schema

* refactor(plugins/ui-schema-storage): handle schema cache in repository level, not in action

* fix(plugins/ui-schema-storage): jsonSchema use s_ + x-uid and properties use p_ + x-uid cache

prevent jsonSchema and properties cache override each other

* test(plugins/ui-schema-storage): add ui_schema repository with cache test

* build(create-nocobase-app): remove create-nocobase cli's cache-store-package option

* test(plugins/ui-schema-storage): add ui_schema repository with cache test with readFromCache false

* fix(plugins/ui-schema-storage): repository insertAdjacent and patch method clear cache fix

Co-authored-by: chenos <chenlinxh@gmail.com>

* feat: add filter action to collection table (#953)

* feat: 数据表支持筛选

* feat: 数据表支持筛选

* feat: 数据表支持筛选

* feat: 数据表支持筛选

* fix: format code

Co-authored-by: chenos <chenlinxh@gmail.com>

* fix: default value of VERDACCIO_URL

* feat: add Dockerfile.official

* refactor(plugin-file-manager): move client code into plugin folder and enable path config (#913)

* Turkish language (#939)

* Türkçe dil dosyası eklendi. Turkish language added

* Türkçe dil düzenlemesi. Turkish language edit.

* fix: cannot find name 'antdTrTR'

* chore(versions): 😊 publish v0.7.6-alpha.2 (#954)

* Turkish readme (#955)

* Türkçe dil dosyası eklendi. Turkish language added

* Türkçe Açıklama sayfası. Turkish readme file added

* Turkish language link added

* turkish language link added

* fix: update readme

* fix(plugin-workflow): fix constant schedule trigger time (#956)

* feat: push ali docker registry (#957)

* feat: push ali docker registry

* fix: add VERDACCIO_URL

* fix: env

* fix: add VERDACCIO_URL to env

* fix: update VERDACCIO_URL

* fix: arg VERDACCIO_URL

* fix: update Dockerfile.official

* fix: build-args

* fix: network: host

* fix: ci

* fix: verdaccio:10104

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* Update branch-docker-ci.yml

* feat: push acr

Co-authored-by: ChengLei Shao <chareice@live.com>

* feat: api service

* fix: api services

* feat(file-manager): support tencent cos (#958)

* feat: support tencent cos

* feat: normalize

* chore: update env example

* test: add cos

* Revert "feat: normalize"

This reverts commit 371880013c.

* feat: normalize

* feat: tengxun to tencent

* chore: fix missing deps

* fix: locale

* fix: locale cos

* fix(database/formula-field): when formula's field caculate result is 0 it alse will be save (#962)

* fix: lerna ERR! EUNCOMMIT  M yarn.lock

* fix: driver-opts: network=host

* fix(ci): add verdaccio service

* chore(versions): 😊 publish v0.7.7-alpha.1 (#963)

* fix(plugin-workflow): fix workflow update action (#964)

* fix(ci): yarn config set network-timeout 600000

* fix: empty logic operator filter (#961)

* chore: fix incorrect deps (#970)

* feat: support show lunar day (#972)

* feat: support show lunar day

* fix: update yarn.lock

* fix: types error

Co-authored-by: Dunqing <dengqing0821@gmail.com>

* fix(ci): remove platforms

* chore: improve ci (#976)

* test: ci

* fix: ci error

* fix: on pull_request

* fix: paths

* fix: paths 'packages/**'

* feat: support show lunar day in week and day (#977)

Co-authored-by: qing <qing@imideMacBook-Air.local>

* fix(client/formula): set cursor focus on input (#959)

* fix(client/formula): set cursor focus on input

* fix(client/formula): when formula field name has contains the other one will case FormulaError

refactor partial implementation

* fix(client/table-selector-provider): make data range config effective (#960)

* fix(client/table-selector-provider): make data range config effective

* fix(client/table-selector): fix when save data range config filter lose

* fix(client/upload): fix upload mutiple files always uploading status (#974)

* Update README.md

* Update README.zh-CN.md

* Update README.tr-TR.md

* feat(calendar): support for add/remove repeats events (#988)

* feat(calendar): support for adding repeats

* feat: support delete events

* fix: has many same x-action

* feat: update better logic

* fix: exclude is not an array

* fix: handle parse cron error

* feat: support every_week, every_month, every_year

* fix(calendar): events cannot support moment (#1017)

* fix(calendar): events cannot support moment

* fix: avoid manipulating raw values

* feat: add excel function field (#906)

* feat: add excel function field

* fix: translations

* fix: documentation

* chore: remove console log

* chore: moved generation of parser to helper function; feat: added GET_DEEP function

* chore: improve tokenisation for when there are similar names;

* chore: move helper to utils

* fix: import from @nocobase/utils/client

* feat: integration as a plugin

* fix: remove excel function interface

* fix: locale

* fix: error

* refactor: formula plugin

* fix: improve code

* feat: update docs

* fix: error

* fix: update deps

* fix: remove formula

* fix:  bigint & test

* fix: result

* fix: double data type

* fix: maximum call stack size exceeded

* fix: improve code

* fix: improve code

* feat(cli): quickstart

* Revert "feat(cli): quickstart"

This reverts commit 99ad54afb6.

* fix: precision

* fix: migration

Co-authored-by: Michael DeGiovanni <m.degiovanni@gmail.com>
2023-01-10 09:48:46 +08:00
chenos
3091d25b5e fix(acl): map snippet & translation 2023-01-09 22:03:57 +08:00
chenos
31794d3c1b feat: improve translation 2023-01-09 18:33:02 +08:00
chenos
fd71d57bdf fix: add filter operator "is not current logged-in user" 2023-01-09 10:59:26 +08:00
ChengLei Shao
a614bc7de8
feat: acl optimization (#1136)
* fix: sort field with table dose not have primary key

* feat: fixed params merger

* chore(plugins/acl): fixed params

* chore(plugins/acl): allowConfigure of collections

* chore(plugins/china-region): disable actions other than list

* chore(plugins/collection-manager): allowConfigure permission

* chore(plugins/file-manager): acl fixed params

* chore: acl fixed params

* chore: rolesResourcesScopes onDelete cascade

* fix: install error

* chore: test

* fix: root user fixed params

* fix: role resource scope onDelete

* chore: test

* chore: test

* fix: acl

* chore: disable index.html cache

* chore: disable index.html cache

* test: destory user role

* test: destory throught table

* fix: test

* fix: test

* chore: add rolesUsers to fixed params

* feat: permission logging

* feat: permission logging

* fix: test

* fix: test

* chore: disable grant target action

* fix: appends with fields

* fix: get action params

* fix: associationActions

* chore: change AssociationField using relation type

* chore: typo

* refactor: allow to skip

* fix: prettier

* chore: attachments association action

* fix: allowConfigure condition

* fix: deprecated allow

* fix: please use skip instead

* feat: table column aclcheck

* chore: test

* feat: throw error when detory no permission record

* chore: test

* chore: acl test

* feat: field acl

* chore: after action middleware

* fix: destory permission check

* chore: middleware use

* fix: test

* feat: filter match

* feat: subform/subtable field acl check

* feat: action permision by scope

* feat: action permision by scope

* feat: list action with allowedActions

* chore: all allowed action

* fix: pk error

* fix: merge error

* fix: create query sql

* fix: skip permission

* fix: scope with association field

* feat: action acl fix

* feat: action acl fix

* fix: update submodule

* Feat: setting center permission (#1214)

* feat: add setting center permissions

* feat: setting center permissions backlist

* feat: setting center permissions BLACKLIST

* feat: setting center permissions blacklist

* feat: setting center permissions blacklist

* feat: setting center permission

* feat: configure plugin tab expand

Co-authored-by: chenos <chenlinxh@gmail.com>

* Feat :field acl (#1211)

Co-authored-by: chenos <chenlinxh@gmail.com>

* fix: build error

* test: acl snippet

* feat: set field

* fix: test

* fix: build error

* fix: utils Dependency cycles

* feat: general permissions

* feat: delete pluginTabBlacklist

* fix: test

* feat: snippetManager allow method

* feat: acl role snippetAllowed method

* feat: array field repository

* feat:  ArrayFieldRepository

* fix: test

* fix: ci

* fix: ci error

* fix: add set parse

* test: array field repository

* chore: addSnippetPatten

* fix: start

* feat: sync role snippets

* feat: snippets check

* feat: snippets check

* chore: acl role snippet api

* fix: test

* fix: test

* refactor: acl role snippets

* chore: registerACLSettingSnippet

* chore: default snippets

* feat: snippets match

* feat: snippets check

* feat: snippets check

* feat: pm permision check

* feat: pm permision check

* feat: snippet pattern match

* feat: pluginManagerToolbar check

* feat: pluginManagerToolbar check

* chore: snippets default value

* feat: set role snippets migration

* chore: snippets

* feat: acl local

* feat: acl local

* feat: bookmask fix

* feat: plugin-manger & ui-editor snippet

* feat: set allowConfigure to false when upgrade to snippets

* feat: destory action acl fix

* feat: destory action acl fix

* fix: association resource params merge

* fix: ui editor snippet

* feat:  action acl fix

* chore: move list meta middleware into plugins/acl

* fix: test

* feat:  action acl fix

* feat: action acl check fix

* feat: plugins toolbar fix

* feat: gitmodules

* fix: subproject

* chore: add avaiableActions to snippet

* chore: change plugin-manager snippet

* feat: configure action acl fix

* feat: plugin tab acl check fix

* chore: roles snippets

* fix: add actions to snippet

* feat: allowconfigure fix

* fix: count with filterBy

* fix: build error

* feat: get action with allowedActions

* feat: acl route check fix

* feat:  aclActionProvider fix

* feat: actionscpe fix

* feat: actionname alias

* feat: setting center fix

* feat: acl provider fix

* fix: role collection

* feat: associate resource  acl

* feat: associate resource  acl

* feat: redirect to 403

* feat: route redirct

* feat:  acl scope check by record

* fix: fields  appends fix

* fix: fields  appends fix

* fix: fields  appends fix

* fix: allowedActions  fix

* fix:  menu items

* fix: rename

* fix: improve code

* fix: improve code

* fix: improve code

* fix: ctx?.data?.data

* fix: styling

* fix: allowAll after ignore scope

* chore: allowConfigure condition

* fix: collections.fields:*

* fix: acl test

* fix: update submodule

* fix: acl test

* fix: acl snippet

* fix: updates

* fix: only load history for logged-in users

* fix: this.app.acl.registerSnippet

* fix: downloadXlsxTemplate

* fix: 404

* feat: allowedAction in association list response

* fix: listData get

* fix: test

* fix: x-collection-field

* fix: update record error

* fix: calendar template

* test: allow manager

* fix: fetch action step

* fix: update submodule

* fix: refresh

* fix: refresh

* fix: rolesResourcesScopes

* test: snippets

* fix: snippets

* fix: test

* fix: omit filter.createdById

* fix: improve code

* fix: collections path

* fix: test error

* fix: upgrade error

* fix: errors

* fix: read allowed actions error

* fix: kanban error

* fix: error

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-01-09 07:35:48 +08:00
ChengLei Shao
6b0ed79f51
feat: duplicator plugin (#1265)
* chore: dump plugin

* chore: rename plugin

* chore: add duplicator into preset

* chore: tmp commit

* feat: restore & dump action

* feat: collection dump & restore

* feat: collection dump & restore

* fix: dump with json type

* fix: dump uischema

* chore: tmp commit

* chore: tmp commit

* feat: restore custom collections

* chore: code

* fix: build

* chore: tmp commit

* fix: pm.generateClientFile

* feat: dump with user plugins

* feat: restore ignore collection

* feat: ignore user with rolesUsers

* chore: client plugins

* refactor: restore insert sql

* chore: code format

* feat: restore with sequelize insert query

* fix: restore json field

* fix: json restore

* refactor: dumper

* refactor: restorer

* chore: dump file name

* chore: dump file name

* chore: dump message

* fix: restore with jsonb fields

* feat: field data writer

* chore: code

* feat: collection group manager

* feat: duplicator client

* feat: duplicator panel

* chore: disable duplicator ui

* feat: dump with inquirer

* chore: dumper

* chore: collection group manager

* feat: restore with inquirer

* chore: comment

* chore: inquirer page size

* feat: warning before restore

* feat: sync postgres sequence id after import collection

* chore: restore checked

* feat: dump with through table

* feat: restore with through table

* feat: restore with sequence field

* chore: graph collection manager collection group

* fix: dump with no column tables

* fix: dump empty table

* fix: force remove workdir

* chore: disable throw error when sync empty table

* feat: support map field restore

* fix: restore from pg dumped file

* fix: dump with logic field

* chore: console.log

* chore: collection group

* chore: handle import collection error

* fix: dump migrations table

* feat: display custom collection title

* fix: restore collection title display

* fix: dump iframe html

* fix: dump with postgres inhertitance

* fix: dump sql

* chore: export snapshot field

* fix: import with sequences

* fix: import sequences

* fix: storage

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-01-08 12:45:02 +08:00
Dunqing
f6769341bd
fix: FixedBlock does not disappear when the current tab is deleted (#1324)
* fix: fixed block does not disappear when the current tab is deleted

* fix: using template and fixedBlock together causes props to conflict

* fix: reference templates do not work properly
2023-01-07 23:31:09 +08:00
Dunqing
6246d152b0
feat(Select): should compile title and label (#1332) 2023-01-07 09:30:19 +08:00
anuoua
550db03615
fix: improve filter (#1333)
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-01-06 15:53:24 +08:00
chenos
85a032f87c fix: only load history for logged-in users 2023-01-06 11:54:54 +08:00
chenos
2cba502f60 fix: load collections history only admin pages 2023-01-06 08:47:43 +08:00
chenos
d062c8fd99
chore(versions): 😊 publish v0.8.1-alpha.4 (#1331) 2023-01-05 23:22:18 +08:00
chenos
4ecd2ee40d chore(versions): 😊 publish v0.8.1-alpha.2 2023-01-05 18:29:47 +08:00
anuoua
346af57b55
fix: filter removeNullConditions (#1329) 2023-01-05 12:46:18 +08:00
anuoua
72e9533b7d
fix: snapshot display fix (#1328) 2023-01-05 12:45:06 +08:00
anuoua
6febdb041a
feat: snapshot field plugin (#1253)
* feat: snapshort init

* feat: snapshot update yarn.lock

* feat: snapshot add to preset

* feat: snapshot add field fix

* feat: snapshot remove Table Column SnapshotField

* feat: snapshot field label fix

* feat: snapshot request error fix

* feat: snapshot 二级关联数据打开

* feat: snapshot batch edit fix

* feat: snapshot 2 level draw fix

* feat: snapshot translate

* feat: snapshot global historyCollection provider

* feat: snapshot install initial

* feat: snapshot refreshCH

* feat: snapshot add transaction

* feat: snapshot default collecitonField

* feat: snapshot build fix

* feat: snapshot useSnapshotFieldTargetCollectionKey

* feat: snapshot batch update

* feat: snapshot linkto support

* feat: snapshot use getRepository

* feat: snapshot recreate fix

* feat: snapshot collectionKey to collectionName & rebuild collection

* feat: snapshot remove SnapshotHistoryCollectionProvider & collectionName

* feat: snapshot use historyCollections in inherit table

* feat: snapshot fix TableSelectorBlock appends

* feat: snapshot kanban fix

* feat: snapshot snapshot association field fix

* feat: snapshot add CollectionFieldProvider fallback

* feat: snapshot AssociationSelect fix

* feat: snapshot TableField fix
2023-01-04 19:27:37 +08:00
chenos
a44b778098 fix: form.values 2023-01-04 18:38:58 +08:00
katherinehhh
ebc103c8ff
feat: configure fields style fix (#1322) 2023-01-04 18:35:35 +08:00
chenos
fb8a4de8cc fix: move assign to utils package 2023-01-03 15:27:22 +08:00
chenos
9d618315ae
fix(database): filter match (#1319)
Co-authored-by: Chareice <chareice@live.com>
2023-01-03 13:38:20 +08:00
chenos
43db2b641b
fix: action merge params (#1321)
Co-authored-by: Chareice <chareice@live.com>
2023-01-03 13:26:50 +08:00
ChengLei Shao
d317fa056a
chore: set belongs to many on delete to cascade (#1311) 2023-01-01 23:15:08 +08:00
ChengLei Shao
38b5974b90
fix: disable filterByTk options in destory method when collection has no primary key or has composite primary key (#1313)
* chore: tmp commit

* feat: filterByTk options with no primary key table

* chore: support filterTargetKey options

* chore: test
2023-01-01 23:14:48 +08:00
Frozen FIsh
1b0946bb8a
fix: warning: Each child in a list should have a unique "key" prop. 2023-01-01 09:17:55 +08:00
ChengLei Shao
33377c7d3a
fix: slow find with include in mysql (#1304)
* fix: slow find with include in mysql

* fix: test

* fix: test

* chore: console.log

* chore: test
2022-12-31 22:35:12 +08:00
ChengLei Shao
d0c7a1e39b
fix: create inherits with table name contains upper case (#1308) 2022-12-31 19:16:49 +08:00
chenos
d5ae819b81 fix(client): load data on demand 2022-12-31 15:12:22 +08:00
chenos
cbfd057c6d fix: missing collections 2022-12-31 14:58:59 +08:00
chenos
f5c1a07f20
fix: upgrade error (#1303) 2022-12-31 10:54:20 +08:00
anuoua
b80aec9733
fix: association filter (#1301)
* fix: pageSize 200 & not a function

* fix: filter params wrong
2022-12-30 20:04:04 +08:00
anuoua
07a01fc507
fix: pageSize 200 & not a function (#1299) 2022-12-30 16:24:17 +08:00
Junyi
7bfd8ea05b
refactor(client): make tab initializer more common (#1298)
* refactor(client): make tab initializer more common

* fix(client): revert index logic

* fix:  improve code

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-30 13:57:28 +08:00
Dunqing
71bfd78c6b
fix(Select): title field and clear button not work (#1296)
* fix: add fieldNames to refreshDeps

* fix: clear not work

* fix: missing title in non-designer
2022-12-29 22:28:35 +08:00
chenos
60d669bd24 feat(demos): action bar Initializer example 2022-12-26 13:45:04 +08:00
chenos
4d9299f04d feat(demos): form drawer example 2022-12-26 12:46:33 +08:00
katherinehhh
a299849613
feat: antd->4.2.8 (#1231)
* feat: antd->4.2.8

* fix(plugin-workflow): dependencies

* feat: menu item key fix

* feat: dorpdown menu visible fix

* fix: update yarn.lock

* fix: only hide the first level

* fix: onVisibleChange

* fix: eventKey

* fix: setVisible(false)

Co-authored-by: mytharcher <mytharcher@gmail.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-26 11:52:59 +08:00
anuoua
a69074ead4
feat: association filter (#1274)
* feat: association filter

* feat: association filter update

* feat: association filter remove unused designer

* feat: feat: association filter lowercase fix

* feat: feat: association filter lowercase fix

* feat: feat: association filter configure field fix

* feat: association field remove AssociationFieldsFilter.Designer

* feat: association field fixed layout

* feat: associate filter multiple to simple

* feat: association field "title" to "id"

* feat: associaion filter interface limit

* feat: association filter move to association-filter folder

* feat: association filter change style

* fix: card item error

* fix: add RenderChildrenWithAssociationFilter

* feat: association-filter fix style

* feat: associate filter fix filter params

* feat: assocition filter layout fix

* feat: association filter change schema

* feat: association filter rename

* feat: association filter rename

* feat: association filter break layout fix

* feat: association filter fix table layout

* feat: association filter fix ActionBar style

* feat: association filter fix ActionBar style

* feat: association filter bug fix

* feat: association filter change valueKey

* feat: association filter remove collectionFieldKey

* feat: improve code

* feat: association filter style fix

* feat: association filter custom title

* feat: association filter max height overscroll

* feat: association filter add linkTo & i18n

* feat: association filter ellipsis;

* feat: association fields add linkTo

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-26 11:35:35 +08:00
Dunqing
07c373956c
chore: upgrade sequelize version to to latest (#1234)
* chore: upgrade sequelize version to to latest

* fix: type error

* chore: type ModelCtor to ModelStatic

* feat: update sequelize version of the map plugin

* chore: update lock

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: chareice <chareice@live.com>
2022-12-24 16:30:01 +08:00
SemmyWong
6d1a4425f2
feat: add iframe-block plugin (#1281)
* feat: iframe-block plugin done

* refactor: iframe html filed type changed

* refactor: remove built-in actions in the ACL

* refactor: use built-in resource action

* fix: add iframe-block in built-in plugins

* refactor: remove id collection schema

* fix: fix iframe-block permission

* fix: fix iframe-block permission

* fix: improve code

* fix: src

* fix: bug

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-24 16:29:20 +08:00
Dunqing
98bad0c8ea
feat: update page size to 200 and limit fields (#1282)
* feat: update page size to 200 and limit fields

* fix: override

* fix: avoid fieldNames not exist

* feat: filter falsely fields
2022-12-23 18:57:50 +08:00
Dunqing
bfc83372c6
fix: prevent horizontal scroll of menus (#1279) 2022-12-23 15:07:37 +08:00
chenos
6935b21808 fix: type string 2022-12-22 21:59:02 +08:00
chenos
20710b40ea feat: form context provider 2022-12-22 21:37:17 +08:00
chenos
faa7d819a1 feat(client/demos): custom field item initializer 2022-12-22 21:26:32 +08:00
chenos
d2275455be fix(client/demos): gird x-initializer 2022-12-22 20:01:28 +08:00
chenos
5ec50d32bb fix: only hide the first level 2022-12-22 10:46:04 +08:00
lyf-coder
d875e0f372
fix(client/kanban): fix kanban card default active all fields bug (#1270)
* fix(client/kanban): fix kanban card default active all fields bug

* fix(client/kanban): fix when drag field also drag card bug
2022-12-21 22:10:54 +08:00
Dunqing
3e2a884a3e
fix: cannot delete event in calendar (#1277)
* fix: calendar cannot delete event

* feat: close detail after delete event

* fix: make sure the DeleteEvent button only appears in the calendar details
2022-12-21 21:13:35 +08:00
Dunqing
ee7185c51c
fix(AssociationSelect): missing field title in details (#1275)
* fix: missing title in default

* fix: detail

* refactor: avoid nullish
2022-12-21 17:29:13 +08:00
Dunqing
b27e82edf8
fix: menu cannot scroll (#1276) 2022-12-21 15:59:50 +08:00
Dunqing
c731abf82c
feat: support fixed block (#1267)
* feat: support fixed block

* feat: update locale

* fix: fix block not work in non-designer

* feat: improve padding

* feat: update scroll

* fix: the page effect is not normal when deleting fixed blocks

* feat: recalculate table scroll when resize

* fix: avoid scrolling effect when dragging the Kanban column

* feat: improve scroll size

* fix: column size

* fix: unused

* fix: configure action in designable

* fix: has page title

* fix: optimize

* fix: optimize

* feat: avoid fixed block

* fix: action column width

* fix: optimize

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-20 21:43:27 +08:00
Dunqing
940f5f0152
feat : support fixed menu and header (#1260)
* feat: support fixed menu and header

* revert: power by

* fix: designer not work

* fix: cannot scroll

* feat: fixed menu in center

* fix: cannot scroll

* fix: unused
2022-12-18 16:49:50 +08:00
ChengLei Shao
6a0b38b7a2
fix: destroy field in parent table (#1263) 2022-12-18 15:45:34 +08:00
lyf-coder
aa868e798d
refactor(client/popup): text: 'Set popup size' changed to 'Popup size' (#1262)
* refactor(client/popup): text: 'Set popup size' changed to 'Popup size'

* refactor(client/popup): text: '设置弹窗尺寸' changed to '弹窗尺寸'
2022-12-18 12:19:18 +08:00
chenos
a403e22439 fix: hide add tab button 2022-12-18 09:44:01 +08:00
chenos
28fadf945d fix: designable 2022-12-18 09:41:20 +08:00
chenos
ef860d7556
feat: page tabs (#1261)
* feat: page tabs

* feat: hide page title

* fix: style
2022-12-18 09:20:56 +08:00
chenos
9285a8b6a2 fix: nocobase upgrade error 2022-12-17 10:35:10 +08:00
Dunqing
dda6692e58
fix: isOverride cannot work (#1257) 2022-12-16 18:19:51 +08:00
Junyi
e3e352ffeb
refactor(sequence-field): move to plugin and use table to record (#1209)
* refactor(sequence-field): move to plugin and use table to record

* fix(database): skip test case which not in core

* fix(plugin-sequence): add migration

* fix(plugin-sequence): fix types

* test(plugin-sequence): fix test cases

* fix(plugin-sequence): fix configuration ui

* fix(plugin-sequence): fix merge

* fix(plugin-sequence): fix schema and error message
2022-12-16 01:04:22 -08:00
chenos
5b81c4d07c fix: plugin upgrade 2022-12-14 22:33:15 +08:00
Dunqing
a593720c81
feat: add map plugin (#1229)
* feat: add map plugin

* feat: update

* feat: add Map.Designer

* feat: support polygon and clear canvas

* feat: improve and support linestring

* feat: map type default

* feat: support group order

* feat: support register group

* feat: improve named and logic

* fix: rename

* feat: better

* refactor: move to use postgresSQL supported type

* feat: support circle

* feat: support mysql

* chore: @nocobase/plugin-map

* fix: some error in postgres

* fix: line lose

* fix: accessKey or securityCode is incorrect

* fix: improve

* fix: shake screen in modal

* feat: support serviceHOST

* feat: improve

* feat: support view map in detail

* feat: support patten in details

* fix: something went wrong in edit mode

* fix: field name incorrectly

* feat: support sqlite

* feat: support circle in mysql

* feat: support map configuration

* feat: support map configuration

* fix: remove unused div

* feat: support show map in details

* fix: disabled in details

* fix: unused

* feat: improve readpretty

* fix: schemaInitialize

* feat: improve alert and search

* fix: mysql polygon not work

* test: add fields test

* test: improve

* test: update

* fix: test error

* feat: improve search and support zoom

* fix: if success should reset err message

* feat: add isOverride to confirm

* feat: improve
2022-12-14 21:45:43 +08:00
chenos
63581688e9 fix(client): cannot read properties of undefined (reading 'interface') (#1245) 2022-12-14 17:27:50 +08:00
chenos
26e27c814b feat(collection-manager): more options 2022-12-14 16:38:08 +08:00
chenos
d2fa623158 feat(collection-manager): drag-and-drop sorting 2022-12-14 12:12:44 +08:00
ChengLei Shao
393ada2bc5
feat: set field (#1237)
* feat: set field

* feat: array field repository

* feat:  ArrayFieldRepository

* fix: add set parse

* test: array field repository

* chore: update submodule

* chore: field bind & unbind

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-12-13 18:02:03 +08:00
chareice
0d2b1caa7c fix: collections load order 2022-12-12 18:50:53 +08:00
lyf-coder
4d90bc87a5
feat(client/popup): support set drawer and modal popup size (#1224) 2022-12-12 08:39:21 +08:00
Junyi
41f8e6a285
fix(plugin-file-manager): fix local serve middleware (#1226) 2022-12-09 18:15:42 -08:00
chenos
0480b57db5
feat: iframe block (#1225) 2022-12-09 23:29:54 +08:00
chenos
0ddd73cf3b fix(record-picker): show N/A when no value 2022-12-09 10:42:30 +08:00
Dunqing
29e83515b9
fix: field component options appears in non-association interface (#1220) 2022-12-08 19:08:24 +08:00
chenos
36f7389b22 fix: calendar component optimization 2022-12-06 12:24:54 +08:00
chenos
01a0ed8420 fix(client/calendar): remove loading (#1201) 2022-12-06 11:40:00 +08:00
chenos
b96cdea2fc
feat(cli): quickstart (#1204) 2022-12-05 22:19:22 +08:00
Junyi
e5f5a2a0c5
fix(plugin-cm): fix interfaces injection and getter (#1196) 2022-12-05 12:39:51 +08:00
Junyi
d1a6aeec76
fix(i18n): move back key to global (#1195) 2022-12-04 18:58:16 -08:00
chenos
e5a9721674 fix(acl): add x-acl-action to action schema 2022-12-03 13:51:55 +08:00
chenos
6b253755a1 fix: print button without permission 2022-12-03 10:28:21 +08:00
chenos
4830a1c034 fix: blocks should not be displayed after templates are removed 2022-12-03 10:18:18 +08:00
katherinehhh
7d32886bb0
feat(menu): when a group is selected, the submenu items are also selected together (#1152) 2022-12-02 22:43:51 +08:00
chenos
34a900820b feat(database): provide friendly error message #1185 2022-12-02 22:22:11 +08:00
chenos
e94074c3f3 fix: field permissions include inherited fields 2022-12-02 21:40:32 +08:00
chenos
49709458bb fix: refresh button without permission 2022-12-02 21:39:42 +08:00
katherinehhh
dd91aee89d
feat: export blob type error (#1170) 2022-12-02 16:11:49 +08:00
chenos
c64e32945e
fix: yarn start error in windows system (#1177)
* feat: add .env.test.example

* fix: yarn start error in windows system
2022-12-02 14:23:07 +08:00
chenos
e73695fd1e fix: yarn dev error in windows system 2022-12-01 23:44:02 +08:00
katherinehhh
d668aa0d92
feat: configurable the scope of target collections (#1165)
* feat: collection template support availableTargetCollections

* feat: add targetScope

* feat: code opmization

* feat: custom-collection-template improve

* feat: useAsyncDataSource fix

* feat: useAsyncDataSource fix
2022-12-01 14:24:35 +08:00
chenos
1f431dc2d6 fix(database): id is not generated when custom primary key 2022-12-01 10:00:46 +08:00
chenos
34c9ec123e fix(server): empty data wrapping 2022-12-01 09:58:11 +08:00
chenos
6799c9615d fix: restore useValuesFromRecord 2022-11-30 11:45:32 +08:00
ChengLei Shao
dea9655573
fix: transaction error (#1162) 2022-11-30 11:37:59 +08:00
chenos
7cfa939f63 fix(database): cannot read properties of null (reading 'constructor') 2022-11-30 10:57:41 +08:00
ChengLei Shao
1764b53a9b
fix: create inherits with empty table (#1160)
* chore: test

* feat: patch to queryInterface.describeTable

* test: add field to empty collection

* fix: create inherits with parent dose not have id field

* fix: test

* fix: test
2022-11-30 10:00:46 +08:00
anuoua
1ac0032e5c
feat: oidc (#1126)
* feat: oidc

* feat: oidc remove comments

* feat: oidc add shared type

* feat: oidc add id_token sign alg

* feat: oidc i18n & batch delete

* feat: oidc i18n

* feat: oidc import fix

* feat: oidc saml list fix

* feat: oidc i18n move to plugin

* feat: oidc cr fix

* feat: oidc cr fix

* feat: oidc cr fix

* feat: oidc fix nonce value

* feat: oidc page extension fix

* feat: oidc remove canceltoken

Co-authored-by: chenos <chenlinxh@gmail.com>
2022-11-29 23:18:21 +08:00
ChengLei Shao
78fe77e2cf
feat: belongs to many on delete (#1158) 2022-11-29 18:27:41 +08:00
katherinehhh
4085ed0db7
Feat/collection templates (#1124)
* feat: add collection templates

* feat:  collection templates

* feat:  collection templates

* feat:  collection templates

* feat:  collection templates

* feat: collection templates

* feat: calendar collection template

* feat: no id does not support sorting

* feat: collection template edit

* feat: collectiom templates code improve

* feat: collection template supports configurable field interface

* feat: collection template supports configurable field interface

* feat: establish relation field when there is no id

* feat: collection templates

* feat: collection templates locale

* feat: calendar collection

* feat: calendar collection default fields

* feat: code optimization

* feat: code optimization

* feat: code optimization

* feat: collectin template fix

* feat: add sample-custom-collection-template

* feat: code optimization

* feat: code optimization

* feat: code optimization

* feat: code optimization

* feat: import code

* feat: collection template local

* feat: code opimization

* feat: code opimization

* feat: code opimization

* feat: code opimization

* feat: code opimization

* feat: collection template local

* feat: collection template local

* fix(collection-manager): exclude reverse parameters when overriding

* feat: update docs

* feat: disabled

* feat: improve code

* feat: update submodule

* feat: submodules: true

* fix: token

* fix: with ssh-key

* fix: update dockerfile

* fix: ci

* fix: ci

* fix: ci

* fix: ci

* fix: --no-verify-access

* fix: ci

* fix: ci

* fix: ci

* fix: missing env

* fix: env

Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: chareice <chareice@live.com>
2022-11-29 11:31:30 +08:00
ChengLei Shao
f7f58bfe99
Fix/action 404 (#1157)
* fix: 404 response

* test: 200 response
2022-11-28 17:31:05 +08:00
ChengLei Shao
3be27c262f
fix: 404 response (#1156) 2022-11-28 17:27:12 +08:00
Junyi
7b5277fb2a
Feat: plugin verification config (#1129)
* feat(plugin-verification): add client config

* feat(plugin-verification): add config ui

* fix(plugin-verification): fix schema

* refactor(plugin-verification): add default for verification providers

* fix(plugin-users): fix initVerification in lifecycle

* fix(plugin-users): fix initVerification in lifecycle

* fix(plugin-verification): fix locale and default provider

* fix(plugin-verification): fix test case

* fix(plugin-verification): fix locale
2022-11-28 00:41:58 -08:00
chenos
a0910f0e2e fix(collection-manager): exclude reverse parameters when overriding 2022-11-28 13:46:40 +08:00
Dunqing
0b6fed79d3
feat: support use select field (#1105)
* feat: add RemoteSelect

* feat: match

* feat: support use select field

* fix: revert no need code

* fix: remove console

* feat: reuse select

* feat: support multiple value and labelInValue

* fix: incorrect import

* fix: missing title in RemoteSelect

* feat: add association-select

* fix: edit

* feat: support sort

* feat: support filter

* fix: break

* fix: loss of filter data after closing the drawer

* fix: multiple not support in select

* fix: some bugs in multiple

* feat: support select in o2m,o2o

* feat: support more association field

* feat: improve

* fix: remove unused files

* feat: make o2m also support pattern

* fix: missing value on edit
2022-11-28 10:08:01 +08:00
Junyi
4a113774bd
fix(plugin-workflow): fix trigger context getters (#1149) 2022-11-27 06:54:47 -08:00
ChengLei Shao
1ebb70e4c5
fix/inherits issues(#1146)
* chore: sync inherits command

* fix: inherit field type conflit

* fix: merge

* fix: test

* fix: test

* chore: app command

* chore: create inheritance map

* fix: test

* fix: test

* fix: test
2022-11-26 09:24:53 +08:00
chenos
998afa2450 fix(demos): action page 2022-11-25 15:58:06 +08:00
katherinehhh
9fc634ecf2
feat: option readPretty optimization (#1138)
* feat: option readPretty optimization

* feat: option readPretty optimization

* feat: getCurrentOptions fix
2022-11-25 12:56:36 +08:00
chenos
1213baae82 fix: hide through collections 2022-11-25 09:41:40 +08:00
chenos
c106565c59 fix(user): reset form values after submission 2022-11-25 09:33:20 +08:00
ChengLei Shao
945c64304a
fix: create empty collection (#1141)
* fix: create empty collection

* chore: comment

* chore: sqlite support

* chore: mysql support

* fix: collection api

* fix: error message
2022-11-24 18:16:01 +08:00
chareice
78402c394b fix: association not found error 2022-11-24 18:03:10 +08:00
Junyi
9aba8016fe
fix(client): fix no key warning in menu (#1140) 2022-11-24 00:14:10 -08:00
chenos
70afa8c7e2 fix(upload-component): open attachment link in new tab 2022-11-24 15:38:43 +08:00
chenos
71120ab3c4 fix(database): cannot read properties of undefined (reading 'findField') 2022-11-24 15:36:51 +08:00
katherinehhh
a8cabbab56
fix: x-collection-field (#1134) 2022-11-24 09:40:45 +08:00
chenos
cbea13260e
feat: update many (#1135) 2022-11-24 00:24:27 +08:00
chenos
6f4f601ba8 fix(select-component): remove filter sort 2022-11-23 17:08:23 +08:00
Dunqing
d25276a23b
fix: incorrect repeat of calendar (#1131) 2022-11-23 12:15:42 +08:00