Commit Graph

976 Commits

Author SHA1 Message Date
YANG QIA
16ad19b18d
feat(bi): filter block for charts (#2851)
* refactor:  SchemaInitializer

* feat: render

* feat: finish BlockInitializers

* feat: finish TableActionInitializers

* refactor: new SchemaInitializerV2

* feat: support useChildren

* feat: finish TableColumnInitializers

* refactor: tableActionColumnInitializers

* fix: bug

* refactor: xx

* docs: schemaInitializer demo1

* docs: schema-initializer demo2

* feat: demo3

* docs: schema-initializer

* fix: form

* feat(bi): filter block for charts

* refactor: schema-initializer

* fix: bug

* feat: add filter block in chart block

* refactor: schema initializer

* refactor: rename

* fix: delete SchemaInitializerProvider

* refactor: props `insert` to hooks `useSchemaInitializerV2`

* fix: bug

* refactor: improve code & style

* feat: add expand/collapse button

* fix: filter & reset bug

* fix: configure data conflict

* refactor: delete `SchemaInitializer.Button`

* refactor: delete old SchemaInitializer

* feat: support for adding custom filter field

* fix: bug

* fix: workflow

* fix: docs

* feat: support for editing operator of collection field

* fix: bug

* fix: bug

* feat: support for editing options of custom fields

* feat: style

* fix: remove v2

* feat: init chart with filter

* fix: visible

* fix: bug

* fix: item hook

* feat: support for setting default value

* feat: item hook

* feat: support for filtering by associate fields

* fix: bug of associate field

* fix: get field bug

* fix: bug of adding filter block

* fix: bug of empty filter

* fix: filter parse issues

* fix: add search DataBlockInitializer

* fix: build bug

* fix: fix bug and improve

* fix: bug

* fix: variable

* fix: hook dependencies

* fix: style bug

* fix: style bug

* fix: test bug

* fix: test bug

* fix: rerender bug

* fix: remove menu select

* fix: bug

* chore: add aria-label for SchemaInitializerButton

* refactor: rename name to camel case

* fix: menu height bug

* fix: build errors

* fix: build errors

* fix: bug

* fix: bug

* fix: performance

* fix: fix T-2388, T-2384

* test: add test for header

* fix: sidebar is not refresh (T-2422)

* feat(e2e): support to add group page and link page

* chore: make sure the page is configurable when using page.goto

* test: add tests for menu initializer

* fix: imporve  code

* fix: fix T-2383

* fix: variables

* fix: variables

* fix: fix T-2441

* chore: fix build error

* chore: optimize locator of menu item

* refactor: rename testid for select

* feat: select source field for custom field, fix T-2416

* fix: bug

* test: make tests passing

* fix: make tests passing

* chore: upgrade vitest to v0.34.6

* chore: increase timeout of e2e

* feat: core

* fix: revert schema initializer demos

* test: menu, page tabs, page grid, table column

* fix: schema button interface

* fix: fix T-2386

* feat: refactor: page tab settings

* feat: page settings

* fix: dumirc

* fix: export CSSVariableProvider

* feat: lazy render

* fix: fix T-2473, T-2474

* fix: fix T-2476

* fix: fix T-2472

* fix: form-item

* fix: general schema desinger

* feat: filter form item settings

* fix: fix T-2484, T-2482

* refactor: form-v2 schema settings

* refactor: form-v1 schema settings

* refactor: action schema settings

* fix: dependency

* fix: action bug

* fix: form-item bug

* fix: types error

* docs: schema settings  doc

* docs: schema settings

* feat: schema setting  item add name

* fix: visible lazy render bug

* fix: revert form item filter

* fix: test bug

* fix: test JSON.parse bug

* fix: test bug

* fix: improve styling

* fix: styling

* fix: cleanup

* fix: token.borderRadiusSM

* fix: bug

* test: add tests

* fix: style bug

* fix: add chart performance

* feat: add SchemaDesignerContext

* fix: bug

* fix: test bug

* style: create record action style improve

* fix: make test passing

* chore: mack tests passing

* chore: make tests passing

* test: fix tests

* style: style revert

* fix: bug

* fix: data selector

* fix: fix tests

* fix: fix tests

* fix: delete PluginManagerContext

* refactor: improve router and add SchemaComponentProvider & CSSVariableProvider to MainComponent

* fix: add dn and field builtin to SchemaSettingWrapper

* feat: update docs

* refactor: application providers

* fix: test bug

* fix: fix tests

* chore: make test passing

* feat: update docs

* chore: rename collection name

* feat: update docs

* chore: skip weird test

* fix: blockInitializers media to otherBlocks

* fix: cancel to skip test

* fix: bug

* test: add test

* refactor: migrate to small files

* test: add tests for form block settings

* chore: format

* fix: add chart scroll bug

* refactor: action designer improve

* refactor: formitem designer schemaSetting

* feat: schemaSettingsManager and schemaInitializerManager addItem and removeItem

* test: add tests for color field in creating block

* test: add tests for email field in creating block

* test: make tests passing

* perf: reduce fields number

* fix: sub menu bug

* chore: update filter hook

* chore: fix association fields

* fix: build

* chore: use `default` instead of `componentProps.defaultValue`

* chore: remove chinaRegion in custom field components

* fix: menu height

* fix: duplicate keys warning

* fix: variable issues

* fix: filter bug

* fix: operator bug

---------

Co-authored-by: Your Name <1098626505@qq.com>
Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-12-05 20:45:18 +08:00
chenos
1757a96b51 chore(versions): 😊 publish v0.17.0-alpha.1 2023-12-04 14:58:09 +08:00
jack zhang
bf1a19426a
refactor: new schema initializer and schema settings (#2802)
* fix: form

* refactor: schema-initializer

* fix: bug

* refactor: schema initializer

* refactor: rename

* fix: delete SchemaInitializerProvider

* refactor: props `insert` to hooks `useSchemaInitializerV2`

* fix: bug

* refactor: delete `SchemaInitializer.Button`

* refactor: delete old SchemaInitializer

* fix: bug

* fix: workflow

* fix: docs

* fix: bug

* fix: bug

* feat: style

* fix: remove v2

* fix: visible

* fix: bug

* fix: item hook

* feat: item hook

* fix: add search DataBlockInitializer

* fix: build bug

* fix: style bug

* fix: style bug

* fix: test bug

* fix: test bug

* fix: rerender bug

* fix: remove menu select

* fix: bug

* chore: add aria-label for SchemaInitializerButton

* refactor: rename name to camel case

* fix: menu height bug

* fix: build errors

* fix: build errors

* fix: bug

* fix: bug

* fix: performance

* test: add test for header

* fix: sidebar is not refresh (T-2422)

* feat(e2e): support to add group page and link page

* chore: make sure the page is configurable when using page.goto

* test: add tests for menu initializer

* fix: imporve  code

* chore: fix build error

* chore: optimize locator of menu item

* refactor: rename testid for select

* test: make tests passing

* fix: make tests passing

* chore: upgrade vitest to v0.34.6

* chore: increase timeout of e2e

* feat: core

* fix: revert schema initializer demos

* test: menu, page tabs, page grid, table column

* fix: schema button interface

* feat: refactor: page tab settings

* feat: page settings

* fix: dumirc

* fix: export CSSVariableProvider

* feat: lazy render

* fix: form-item

* fix: general schema desinger

* feat: filter form item settings

* refactor: form-v2 schema settings

* refactor: form-v1 schema settings

* refactor: action schema settings

* fix: action bug

* fix: form-item bug

* fix: types error

* docs: schema settings  doc

* docs: schema settings

* feat: schema setting  item add name

* fix: visible lazy render bug

* fix: revert form item filter

* fix: test bug

* fix: test JSON.parse bug

* fix: test bug

* fix: improve styling

* fix: styling

* fix: cleanup

* fix: token.borderRadiusSM

* fix: bug

* test: add tests

* fix: style bug

* fix: add chart performance

* feat: add SchemaDesignerContext

* fix: bug

* fix: test bug

* style: create record action style improve

* fix: make test passing

* chore: mack tests passing

* chore: make tests passing

* test: fix tests

* style: style revert

* fix: bug

* fix: data selector

* fix: fix tests

* fix: fix tests

* fix: delete PluginManagerContext

* refactor: improve router and add SchemaComponentProvider & CSSVariableProvider to MainComponent

* fix: add dn and field builtin to SchemaSettingWrapper

* feat: update docs

* refactor: application providers

* fix: test bug

* fix: fix tests

* chore: make test passing

* feat: update docs

* chore: rename collection name

* feat: update docs

* chore: skip weird test

* fix: blockInitializers media to otherBlocks

* fix: cancel to skip test

* fix: bug

* test: add test

* refactor: migrate to small files

* test: add tests for form block settings

* chore: format

* fix: add chart scroll bug

* refactor: action designer improve

* refactor: formitem designer schemaSetting

* feat: schemaSettingsManager and schemaInitializerManager addItem and removeItem

* test: add tests for color field in creating block

* test: add tests for email field in creating block

* test: make tests passing

* perf: reduce fields number

* fix: sub menu bug

* test: add tests basic in editing form

* test: add tests basic in details form

* fix: improve code

* test: make tests passing

* test(plugin-mock-collections): add color for enum options

* refactor: improve code

* fix: bug

* fix: bug

* refactor: convert parameters to destructured object

* test: add tests choices

* test: add tests media

* test: add tests for datetime in creating form

* feat(plugin-mock-collection): generate faker time

* test: add tests for datetime in editing form

* test: add tests for datetime in details form

* fix: bug

* feat: improve code

* test: add tests for relation fields

* fix: rename SchemaSettings

* fix: type bug

* refactor: useDesinger()

* fix: bug

* fix: bug

* fix: build tip

* fix: designableState

* fix: bug

* fix: designable

* fix: designable

* test: add tests for relation fields

* test: add tests for relation fields

* test: add tests for relation fields

* feat: client api doc

* test: add tests for relation fields

* test: avoid errors

* test: make tests passing

* fix: bug

* test: make tests passing

* test: add tests for advanced fields

* test: increase e2e timeout-minutes to 60

* fix: bug

* fix: improve code

* feat: add schema initailizer component  demos

* test: make tests passing

* fix: schema settings demos

* feat: shallowMerge & deepMerge

* test: reduce number of tests

* test: make tests passing

* feat: updates

* fix: add Initializer Internal

* demos:  useSchemaSettingsRender

* test: make tests passing

* test: make tests passing

* fix: improve docs

* fix: bug

* chore: upgrade dumi theme

* test: make tests passing

* test: add tests for linkage rules

* test: add test for form data templates

* test: add tests for default value

* test: reduce number of tests

* fix: dn.deepMerge

* fix: bug

* fix: bug

* fix: toolbar

* fix: docs ssr

* test: add tests for system fields

* test: add tests for actions

* fix:  bug

* test: add tests for lazy loading of variables

* test: make testing more stable

* fix: update docs

* fix: bug

---------

Co-authored-by: Rain <958414905@qq.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-12-04 14:56:46 +08:00
xilesun
9d644304c1 chore(versions): 😊 publish v0.16.0-alpha.6 2023-12-04 11:01:24 +08:00
Junyi
9bf3be222a
fix(plugin-workflow): fix condition branch node finding logic (fix #3082) (#3128) 2023-12-01 21:32:43 -08:00
chenos
7adb162cc8 feat(test): add quickstart 2023-12-02 09:40:22 +08:00
katherinehhh
52c83cadb3
refactor: url& sequence support availableType as string (#3126) 2023-12-01 16:38:34 +08:00
chenos
bfeaf456b9 feat: improve mock records 2023-12-01 13:54:24 +08:00
YANG QIA
cb7f1d7aa9
chore(users): remove deprecated code (#3122)
* chore: remove deprecated code in user plugin

* chore: update

* fix: test

* fix: test
2023-12-01 13:23:41 +08:00
chenos
8977420eec chore(versions): 😊 publish v0.16.0-alpha.5 2023-11-30 12:41:50 +08:00
katherinehhh
300d8f4eb3
refactor: map field support connect as remote table field (#3114) 2023-11-30 10:22:30 +08:00
ChengLei Shao
79d2647c51
chore: sync collection after set collection fields (#3112) 2023-11-29 14:09:22 +08:00
Junyi
bd6fbcd319
fix(plugin-workflow): fix form event parse variables (#3106) 2023-11-28 04:58:15 -08:00
ChengLei Shao
d2d885b2a6
chore: view primary key (#3107) 2023-11-28 19:45:38 +08:00
katherinehhh
0cf045d142
fix: association data params missing appends (#3103)
* fix: association data params missing appends

* refactor: code improve
2023-11-28 11:12:42 +08:00
Dunqing
7b66def487
fix(plugin-api-doc): non-main application crashes (#3100) 2023-11-27 20:42:29 +08:00
YANG QIA
6819366049
fix(bi): fix T-2643 (#3101) 2023-11-27 16:24:47 +08:00
Junyi
d574c8c7ce
fix(plugin-workflow): fix schedule trigger (#3096)
* fix(plugin-workflow): fix schedule trigger

* fix(plugin-workflow): fix increment bug based on dialect
2023-11-25 23:07:50 -08:00
ChengLei Shao
fd454d78b3
test: load through collection with primaryKeys (#3093) 2023-11-25 19:52:42 +08:00
chenos
ffb300d357 chore(versions): 😊 publish v0.16.0-alpha.4 2023-11-24 23:15:10 +08:00
Junyi
2630f25e51
refactor(plugin-workflow): show header of manual drawer (#3085) 2023-11-23 19:28:36 -08:00
被雨水过滤的空气-Rain
771ebaaaec
fix: should load association data in subform (#3083) 2023-11-23 21:05:07 +08:00
Dunqing
cc40849c59
fix(plugin-mobile-client): page content disappears when tab is disabled (#3059)
* fix(plugin-mobile-client): page content disappears when tab is disabled

* feat: make sure include tabs schema
2023-11-22 12:19:55 +08:00
chenos
45dcdab083
fix: add i18n resources after server app load (#3068)
* fix: add i18n resources after server app load

* fix: skip cache
2023-11-21 11:39:19 +08:00
chenos
cba967933e chore(versions): 😊 publish v0.16.0-alpha.3 2023-11-20 19:36:12 +08:00
chenos
dfb940e091
feat: node >= 18 (#3066)
* feat: node >= 18

* fix: release version

* chore(versions): test publish packages xxx

* fix: gitignore
2023-11-20 19:35:30 +08:00
chenos
91053b31ef chore(versions): 😊 publish v0.16.0-alpha.1 2023-11-20 17:19:09 +08:00
YANG QIA
daac2ae0db
refactor(cache): improve cache (#3004)
* feat: improve cache

* fix: bug

* fix: test

* fix: test

* fix: test

* chore: add cache test

* feat: add wrapWithCondition

* fix: test

* refactor: improve api

* fix: test

* fix: test

* fix: test

* fix: improve code

* fix: test

* feat: register redis store

* fix: tst

* fix: test

* fix: bug

* chore: update

* fix: ttl unit

* chore: cachemanager constructor

* chore: remove code

* feat: support close connection

* chore: add close options for redis store
2023-11-20 17:14:20 +08:00
chenos
379248e5c5
fix: local storage base url (#3063)
* fix: local storage base url

* fix: test error
2023-11-20 15:53:09 +08:00
ChengLei Shao
d7d2eb634e
feat: mariadb support (#3052)
* feat: mariadb support

* feat: mariadb test

* chore: mariadb test

* chore: test

* fix: sort field test

* fix: sort field test

* fix: test

* fix: test

* fix(bi): chart query support mariadb

* chore: test timeout

* chore: test

---------

Co-authored-by: xilesun <2013xile@gmail.com>
2023-11-20 08:54:40 +08:00
Junyi
fbe3d2d9a5
fix(plugin-workflow): client minor fixes (#3062) 2023-11-19 03:24:34 -08:00
ChengLei Shao
0acd7b6dd3
fix: sort by association collection (#3058)
* fix: sort by association collection

* fix: test

* chore: test

* chore: create sortfield if hasmany sortable set true

* fix: drag sort

* chore: update sort by options

* chore: sync collection after update sortBy

* chore: test

* chore: test

* chore: test

* fix: sort by

* fix: model.syncSortByField

* fix: hasmany only

* fix: sortBy

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-18 22:02:21 +08:00
chenos
ef1b9db2a9 chore(versions): 😊 publish v0.15.0-alpha.4 2023-11-18 21:22:03 +08:00
chenos
60112aae62 chore(versions): 😊 publish v0.15.0-alpha.3 2023-11-16 15:03:40 +08:00
Junyi
52c3f28c04
fix(plugin-fm): fix error log (#3038) 2023-11-14 16:54:19 +08:00
chenos
b597aec1dc chore(versions): 😊 publish v0.15.0-alpha.2 2023-11-13 18:28:48 +08:00
chenos
29457cb2bc chore(versions): 😊 publish v0.15.0-alpha.1 2023-11-13 11:02:35 +08:00
jack zhang
35b06cbfa0
refactor: plugin settings manager (#2712)
* feat: add settingsCenter

* fix: style bug

* chore: optimized code

* refactor: settingCenter Auth

* feat: add aclSnippet option

* refactor: all plugin's setting center api

* feat: add plugin with name

* docs: add settings-center doc

* fix: settings center menu sort by name

* fix: change setting center layout

* fix: change hello sort

* test: add SettingsCenter.ts test case

* fix: bug

* fix: acl bug

* fix: bug

* fix: bug and 404 page

* fix: test bug

* fix: test bug

* fix: bug

* fix: locale

* fix: styling

* fix: rename settingsCenter to pluginSettingsManager

* fix: styling

* fix: e2e bug

* fix: e2e bug

* fix: locale

* feat: update docs

* fix: update

---------

Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-13 11:01:18 +08:00
chenos
3b5b732a1a
feat: plugin-mock-collections (#2988)
* feat: plugin-mock-collections

* fix: mock bug

* feat: field interfaces

* fix: field interface

* fix: formula

* fix: file collection

* fix: map

* refactor: change api path from :create to :mock

* fix: avoid test failed

* chore: remove useless code

* fix: mock records

* fix: association

* feat: custom data

* fix: mockAttachment

* fix: count

---------

Co-authored-by: Rain <958414905@qq.com>
2023-11-10 11:32:03 +08:00
Junyi
61d14309ed
fix(plugin-workflow): add missed component (#3007) 2023-11-09 20:40:27 +08:00
Junyi
e74fcc32e7
refactor(plugin-workflow): allow to use function for values when creating node (#3002) 2023-11-09 01:20:56 +08:00
Junyi
8ee8b0052a
fix(plugin-workflow): fix configuration drawer close logic (#3001) 2023-11-09 00:51:42 +08:00
被雨水过滤的空气-Rain
81cea6b596
chore: add aria label for workflow table (#2995) 2023-11-08 16:28:53 +08:00
被雨水过滤的空气-Rain
5b9695e720
fix: select item can not be selected in connecting data blocks (#2993) 2023-11-08 09:17:40 +08:00
Junyi
00cabc5e23
refactor(plugin-workflow): change to function (#2991) 2023-11-07 07:30:53 -08:00
Junyi
30de7865c5
fix(plugin-workflow): fix loop scope variable (#2989) 2023-11-07 06:17:07 -08:00
katherinehhh
adfb9a72ca
fix(formula-field): formula field failed to real-time evaluating and support sub-form (#2983)
* fix:  formula field failed to real-time evaluating

* fix:  formula field failed to real-time evaluating
2023-11-07 21:03:49 +08:00
Junyi
2747e7640f
fix(plugin-workflow): fix node form values when closed (#2978)
* fix(plugin-workflow): fix node form values when closed

* fix(plugin-workflow): fix manual schema config refresh
2023-11-06 07:50:25 -08:00
ChengLei Shao
ac3f63b110
feat: drop table with cascade option (#2973)
* refactor: delete collection support cascade

* chore: remove collection from database

* feat: remove collection with cascade option

* chore: test

* chore: test

* chore: delete collection support cascade

* refactor: code improve

* refactor: locale improve

* style: delete collection modal style improve

* revert: filemanger-plugin

* revert: code improve

* revert: code improve

* revert: fix: bluk dele collection

* fix: cascade === true && cascade === 'true'

---------

Co-authored-by: katherinehhh <katherine_15995@163.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-11-06 11:50:37 +08:00
ChengLei Shao
2c58d515da
chore: destory collection in share collection plugin (#2968) 2023-11-05 19:36:53 +08:00