Commit Graph

413 Commits

Author SHA1 Message Date
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
e08a8735b1 fix: beforeSubAppLoad emit to async 2023-02-24 10:44:23 +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
Junyi
a19a18b1f7
fix(plugin-workflow): fix customized job status (#1484) 2023-02-22 18:01:43 +08:00
Junyi
a18918576b
fix(plugin-workflow): fix condition config param (#1483) 2023-02-22 17:35:22 +08:00
Junyi
33f6bb4c63
fix(plugin-workflow): fix migration (#1479)
* fix(plugin-workflow): fix migration

* fix(plugin-workflow): fix migration

* fix(plugin-workflow): change migration name to trigger
2023-02-22 13:20:17 +08:00
Junyi
944f327212
fix(plugin-workflow): fix migration on table prefix (#1478)
* fix(plugin-workflow): fix migration on table prefix

* fix(plugin-workflow): fix migration version check

* fix: ci

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-22 12:05:59 +08:00
chenos
dcc29892e6 fix: remove plugins after migration 2023-02-22 11:29:15 +08:00
chenos
6f23174389 fix: version check error 2023-02-22 10:32:53 +08:00
chenos
a66793282f fix: migration error 2023-02-22 10:18:14 +08:00
chenos
d25c1b8072
fix(formula-field): rename Plugin.ts to plugin.ts 2023-02-22 09:39:51 +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
68062b969b
fix(plugin-workflow): fix migration for calculation (#1476) 2023-02-20 23:40:15 +08:00
Junyi
1705b10b98
fix(plugin-workflow): fix schedule trigger number type repeat (#1475) 2023-02-20 21:48:15 +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
Chareice
01663da7ec fix: install user error 2023-02-19 16:20:14 +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
52ed4f488a fix(ui-schema-storage): when the collection is deleted, the block template is also deleted 2023-02-18 11:20:29 +08:00
chenos
4ec19e9c0c fix(map): ellipsis with tooltip 2023-02-18 11:10:26 +08:00
ChengLei Shao
43e52843fa
fix: add schema (#1464)
* fix: add schema

* chore: format
2023-02-18 09:27:54 +08:00
chenos
5805b69455 feat(db): field value parser 2023-02-16 23:56:00 +08:00
Chareice
0ac351bbd2 chore: plugins 2023-02-16 22:02:03 +08:00
chenos
a6aec25343
refactor: export plugin (#1460)
* refactor: export plugin

* fix: improve code
2023-02-16 16:48:00 +08:00
ChengLei Shao
542175f454 feat: beforeSubAppLoad event 2023-02-16 01:46:23 +00:00
ChengLei Shao
6b40c92d49 Merge branch 'main' into fix/pg-schema-with-inherit 2023-02-15 15:08:06 +00:00
Chareice
897cede160 fix: inherited collection test 2023-02-15 17:08:35 +08:00
chenos
b1b3e523c2 fix(map): cannot read properties of undefined (reading 'title') 2023-02-15 15:58:09 +08:00
chenos
1b5f3a38cf fix: skip migration test case 2023-02-15 15:23:04 +08:00
chenos
50a4da84d2 fix: skip test 2023-02-15 14:27:47 +08:00
chenos
d08c7833ee fix: collection categories need to be sorted 2023-02-15 14:22:37 +08:00
Chareice
d232a7bb50 fix: test table name 2023-02-15 12:13:32 +08:00
Chareice
05243d03ca fix: test 2023-02-15 11:55:53 +08:00
chenos
83bca97db0 fix: optimize import performance 2023-02-15 11:37:19 +08:00
Chareice
f03bcf716d Merge branch 'main' into fix/pg-schema-with-inherit 2023-02-15 10:43:28 +08:00
Chareice
d3fb665e61 fix: test 2023-02-15 10:10:44 +08:00
Chareice
1575364736 chore: test 2023-02-15 00:18:48 +08:00
Chareice
130fe22704 fix: schema test 2023-02-14 21:34:23 +08:00
Chareice
ee3db22c8a fix: update to bigint test 2023-02-14 20:15:32 +08:00
Chareice
1589d11e82 feat: collection add schema table name method 2023-02-14 20:04:49 +08:00
Chareice
f1c269cb57 fix: test 2023-02-14 17:57:29 +08:00
Chareice
899a7f7141 Merge branch 'main' into fix/pg-schema-with-inherit 2023-02-14 15:32:49 +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
CraK
176bd6e7ac
chore: fix build plugin error (#1454)
* chore: fix build plugin error

* Update evaluate.ts

* Update package.json

* chore: update formulajs@3.1.7 → 4.2.0

* Update evaluate.ts

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-02-14 15:27:49 +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
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
2cfdfd2084
fix(snapshot-field): remove depth limit (#1450) 2023-02-13 09:55:04 +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