katherinehhh
8f1d0d80af
refactor: form data templates and depulicate action support sync from form fields ( #2314 )
...
* refactor: sync from form fields
* refactor: sync from form fields
* refactor: sync from form fields
* refactor: data fields
* refactor: traverseFields
* refactor: traverseFields
* refactor: locale improve
* fix: merge bug
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: depulicate action support sync form form fields
* refactor: code refactor
* refactor: direct duplicate support select all
* refactor: code improve
* refactor: code improve
* refactor: hasOne and hasMany avaliable for deplicate
* refactor: code improve
* refactor: locale improve
* refactor: code improve
* refactor: code improve
2023-07-31 16:17:18 +08:00
katherinehhh
23cd6bb4ed
fix: inheritd association field failed to get detail data ( #2354 )
2023-07-31 10:42:54 +08:00
katherinehhh
18900d54f4
feat: customize action support create record for any collection ( #2264 )
...
* feat: customize button support customize add record
* refactor: code improve
* refactor: schemaSetting default value
* refactor: schemaSetting default value
* refactor: schemaSetting default value
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: locale improve
* refactor: code improve
* fix: fix style of default variable input (T-1154)
* fix: merge bug
---------
Co-authored-by: Rain <958414905@qq.com>
2023-07-25 14:51:45 +08:00
ChengLei Shao
08b2f374c8
feat(database): handle targetCollection option in repository find ( #2175 )
...
* test: return child collection when get with filterByTk
* refactor: targetCollection
* chore: target collection args in repository find
* feat: handle targetCollection option in repository find
* feat: get child target at belongs to many association
* chore: build
* chore: build
* chore: test
* refactor: targetcollection
* test: belongs to association with targetCollection
* fix: test
* fix: test
* fix: test
* fix: test
* fix: test
* feat: update with targetCollection option
* feat: inject target collection options at repository update
---------
Co-authored-by: katherinehhh <katherine_15995@163.com>
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-21 10:51:56 +08:00
Rain
4e84b14bc7
fix: avoid crash when field is deleted in Collapse
2023-07-17 15:27:48 +08:00
被雨水过滤的空气-Rain
4812cc5692
feat: support custome themes ( #2228 )
...
* feat: create custom-theme plugin
* feat: add custom-theme
* chore: add plugin name and description
* chore: add deps
* chore: optimize deps
* refactor: rename
* chore: add antd-token-previewer
* chore: add deps in plugin
* feat: add theme-editor
* feat: add theme-editor
* feat: add settings
* feat: add theme collection
* refactor: migration to the components folder
* feat: add ThemeList
* refactor: be better
* feat: export createStyles
* feat: implement ThemeCard (T-723)
* style: optimize style
* feat: add ThemeEditorProvider
* feat: add ToEditTheme
* chore: add isBuiltIn field
* feat: implement WYSIWYG
* refactor: migrate i18n
* feat: support to save config
* feat: add validation rule
* refactor: remove useless code
* refactor: optimize GlobalThemeProvider
* feat: add CurrentUserSettingsMenuProvider
* feat: support switching themes
* refactor: migrate CurrentUserProvider to app root
* feat: add InitializeTheme
* fix: fix preview demo
* fix: filter themes
* fix: not valid when editing theme
* fix: should restore the previous theme when closing theme editor
* fix: fix algorithm
* fix: the theme that was just saved should be applied
* refactor: loacl antd-token-previewer
* fix: should be based on the current theme when editing themes
* feat: support to edit theme
* perf: reduce executions
* feat: add animation
* fix: fix the type error of useRequest
* feat: remove built-in themes
* chore: reinstall deps
* fix: fix version of deps
* fix: delete client.d.ts to fix build error
* chore: reinstall deps
* fix: fix build
* fix: fix build
* fix: avoid build errors
* fix: fix crashing
* fix: use value instead of defaultValue
* fix: avoid error
* fix: avoid closure
* fix: fix build
* fix: fix style of login page
* refactor(page): fix style
* fix: fix style of PageHeader
* refactor: fix style of Drawer
* refactor: add FormDialog to loacl
* refactor: fix style of SchemaSettings.ModalItem
* refactor: fix style of pm/Card
* fix: fix text color of pm/Marketplace
* fix: fix table error
* refactor: fix style of collection-manager/summary
* refactor: fix style of fields drawer
* chore: reinstall deps
* fix: fix build
* fix: fix build of custom-theme
* fix: should export Plugin
* refactor: fix style of GraphDrawPage
* chore: upgrade plugin version
* refactor: fix style of Modal by using antd App
* refactor: fix style of FormDialog by using local version
* refactor(workflow): refactor style using antd-style in workflow
* fix(workflow): fix style of workflow
* fix: fix size
* refactor: add --nb-header-height
* feat: remove theme configuration from system settings
* refactor: migrate useUpdateThemeSettings to a new file
* refactor: rename theme to themeId
* feat: add updateSystemThemeSettings
* refactor: migrate utils function
* feat: use localStorage to avoid theme invalid in login page
* fix: fix style of login page
* fix: fix style of Drawer
* feat: optimize style of theme card
* fix: should use a empty object to reset theme
* fix: fix test of Page
* fix: fix test of Application
* fix: change backgroundColor of login page
* fix: fix all style of modal
* fix: fix gap between blocks (T-896)
* fix: fix color of font (T-905)
* fix: fix build
* fix: fix can not scroll in Drawer (T-897)
* fix: fix width of built-in plugins page (T-900)
* fix: fix style of import Modal (T-907)
* fix: fix style of calendar (T-908)
* fix: fix style of kanban (T-909)
* fix: fix style of Gantt (T-910)
* fix: fix style of Collapse (T-915)
* fix: fix style of mobile (T-916)
* fix: fix style of PageHeader (T-958)
* fix: optimize background color of Drawer
* fix: fix style of notification
* fix: fix T-1000
* fix: fix style of LinkageHeader (T-1003)
* fix: fix T-1004
* fix: fix style of scroll bar of chart (T-911)
* fix: fix style of workflow drawer (T-997)
* fix: fix T-922
* fix: fix T-924
* refactor: rename custom-theme to theme-editor
* fix: fix T-999
* fix: fix T-1011
* fix: fix error
* fix: optimize dark mode (T-921)
* fix: fix style of markdown (T-1020)
* fix: fix style of data template (T-1025)
* fix: fix style of rich text (T-1026)
* fix: fix style of a
* fix: fix style of XButton (T-1028)
* fix: fix T-1027
* fix: fix color of variable tag (T-1030)
* chore: translation
* feat: add a modal before create new theme (T-1024)
* feat: highlight card when editing theme (T-1031)
* feat: support to change theme name (T-1023)
* fix: api.auth.getOption('theme')
* fix: fix T-1032
* fix: fix feedback in feishu group
* refactor: code review
* fix: fix test
* chore: rename
* fix: useNotificationMiddleware
* refactor: revert
* fix: fix build
* fix: notification
* refactor: migrate CurrentUserProvider from Application to NocoBaseBuildInPlugin
* fix: fix test
* refactor: fix code review
* chore: avoid test error
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-16 12:46:25 +08:00
ChengLei Shao
3510531182
feat(database): view collection support for add new, update and delete actions ( #2119 )
...
* feat: writeableView options in view collection
* refactor: view collection support edit
* refactor: view collection support edit
* refactor: view collection support edit
* refactor: view collection support edit
* test: insert into view with join table
* chore: typo
* chore: package.json
* chore: sql parser
* chore: query interface
* chore: test
* feat: update view collection
* chore: test
* chore: test
* chore: github action pg version
* fix: params in update and delete
* refactor: locale improve
---------
Co-authored-by: katherinehhh <katherine_15995@163.com>
2023-07-14 14:49:12 +08:00
katherinehhh
c20c68cc42
fix: failed to correctly respond to optional fields in the child collection in the parent collection table ( #2207 )
...
* refactor: process inherited field uischema in table
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
2023-07-11 17:43:25 +08:00
jack zhang
2cb1203aa4
refactor(client)!: application, router and plugin ( #2068 )
...
BREAKING CHANGE:
* refactor: update umi version 3.x to version 4.x
* refactor: update react-router-dom version to 6.x
* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`
* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct
* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`
* refactor(react-router-dom): replace `useHistory` to `useNavigate`
* refactor(react-router-dom): replace `useRouteMatch` to `useParams`
* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug
* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code
* refactor(react-router-dom): update `Route` types and docs
* refactor(react-router-dom): optimize RouteSwitch code
* refactor(react-router-dom): `useLocation` no generics type
* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`
* refactor(react-router-dom): fix `<RouteSwitch />` `props.routes` as an array is not handled
* chore: upgrade `dumi` and refactor docs
* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`
* refactor(dumi): upgraded dumi under `packages/core/client`
* refactor(dumi): delete `packages/core/dumi-theme-nocobase`
* refactor(dumi): degrade `react` & replace `dumi-theme-antd` to `dumi-theme-nocobase`
* refactor(dumi): solve conflicts between multiple dumi applications
* fix: login page error in react 17
* refactor(dumi): remove less resolutions
* refactor(dumi): umi add `msfu: true` config
* fix: merge bug
* fix: self code review
* fix: code reivew and test bug
* refactor: upgrade react to 18
* refactor: degrade react types to 17
* chore: fix ci error
* fix: support routerBase & fix workflow page params
* fix(doc): menu externel link
* fix: build error
* fix: delete
* fix: vitest error
* fix: react-router new code replace
* fix: vitest markdown error
* fix: title is none when refresh
* fix: merge error
* fix: sidebar width is wrong
* fix: useProps error
* fix: side-menu-width
* fix: menu selectId is wrong & useProps is string
* fix: menu selected first default & side menu hide when change
* fix: test error & v0.10 change log
* fix: new compnent doc modify
* fix: set umi `fastRefresh=false`
* refactor: application v2
* fix: improve code
* fix: bug
* fix: page = 0 error
* fix: workflow navigate error
* feat: plugin manager
* fix: afterAdd
* feat: complete basic functional refactor
* fix: performance Application
* feat: support client and server build
* refactor: nocobase build-in plugin and providers
* fix: server can't start
* refactor: all plugins package `Prodiver` change to `Plugin`
* feat: nested router and change mobile client
* feat: delete application-v1 and router-switch
* feat: improve routes
* fix: change mobile not nested
* feat: delete RouteSwitchContext and change buildin Provider to Plugin
* feat: delete RouteSwitchContext plugins
* fix: refactor SchemaComponentOptions
* feat: improve SchemaComponentOptions
* fix: add useAdminSchemaUid
* fix: merge master error
* fix: vitest error
* fix: bug
* feat: bugs
* fix: improve code
* fix: restore code
* feat: vitest
* fix: bugs
* fix: bugs
* docs: update doc
* feat: improve code
* feat: add docs and imporve code
* fix: bugs
* feat: add tests
* fix: remove deps
* fix: muti app router error
* fix: router error
* fix: workflow error
* fix: cli error
* feat: change NoCobase -> Nocobase
* fix: code review
* fix: type error
* fix: cli error and plugin demo
* feat: update doc theme
* fix: build error
* fix: mobile router
* fix: code rewview
* fix: bug
* fix: test bug
* fix: bug
* refactor: add the "client" directory to all plugins
* refactor: modify samples client and plugin template
* fix: merge error
* fix: add files in package.json
* refactor: add README to files in package.json
* fix: adjust plugins depencies
* refactor: completing plugins' devDependencies and dependencies
* fix: bug
* refactor: remove @emotion/css
* refactor: jsonwebtoken deps
* refactor: remove sequelize
* refactor: dayjs and moment deps
* fix: bugs
* fix: bug
* fix: cycle detect
* fix: merge bug
* feat: new plugin bug
* fix: lang bug
* fix: dynamic import bug
* refactor: plugins and example add father config
* feat: improve code
* fix: add AppSpin and AppError components
* Revert "refactor: plugins and example add father config"
This reverts commit 483315bca5524e4b8cbbb20cbad77986f081089d.
# Conflicts:
# packages/plugins/auth/package.json
# packages/plugins/multi-app-manager/package.json
# packages/samples/command/package.json
# packages/samples/custom-collection-template/package.json
# packages/samples/ratelimit/package.json
# packages/samples/shop-actions/package.json
# packages/samples/shop-events/package.json
# packages/samples/shop-modeling/package.json
* feat: update doc
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-07-07 14:35:22 +08:00
katherinehhh
516fe408b9
fix(association-field):submitting failed after adding data in subform for multiple association fields ( #2065 )
...
* fix: toManay sub-form add new data misalignment
* fix: toManay sub-form add new submit failed
* refactor: code improve
* refactor: code improve
2023-06-26 16:40:27 +08:00
katherinehhh
f042a2307a
fix: tree gantt block does not display correctly ( #2123 )
...
* fix: tree gantt block display error
* fix: tree gantt block display error
* refactor: code improve
* refactor: code improve
2023-06-26 14:14:22 +08:00
jack zhang
d76e8fb87f
refactor: upgrade umi
, react
and react-router-dom
( #1921 )
...
* refactor: update umi version 3.x to version 4.x
* refactor: update react-router-dom version to 6.x
* refactor(react-router-dom): change Layout Component `props.children` to `<Outlet />`
* refactor(react-router-dom): change <Route /> props and <RouteSwitch /> correct
* refactor(react-router-dom): replace `<Redirect />` to `<Navigate replace />`
* refactor(react-router-dom): replace `useHistory` to `useNavigate`
* refactor(react-router-dom): replace `useRouteMatch` to `useParams`
* refactor(react-router-dom & dumi): fix <RouteSwitch /> & umi document bug
* refactor(react-router-dom): `useRoutes` Optimize `<RouteSwitch />` code
* refactor(react-router-dom): update `Route` types and docs
* refactor(react-router-dom): optimize RouteSwitch code
* refactor(react-router-dom): `useLocation` no generics type
* refactor(react-router-dom): add `less v3.9.0` to `resolutions` to solve the error of `gulp-less`
* refactor(react-router-dom): fix `<RouteSwitch />` `props.routes` as an array is not handled
* chore: upgrade `dumi` and refactor docs
* fix: completed code review, add `targets` to solve browser compatibility & removed `chainWebpack`
* refactor(dumi): upgraded dumi under `packages/core/client`
* refactor(dumi): delete `packages/core/dumi-theme-nocobase`
* refactor(dumi): degrade `react` & replace `dumi-theme-antd` to `dumi-theme-nocobase`
* refactor(dumi): solve conflicts between multiple dumi applications
* fix: login page error in react 17
* refactor(dumi): remove less resolutions
* refactor(dumi): umi add `msfu: true` config
* fix: merge bug
* fix: self code review
* fix: code reivew and test bug
* refactor: upgrade react to 18
* refactor: degrade react types to 17
* chore: fix ci error
* fix: support routerBase & fix workflow page params
* fix(doc): menu externel link
* fix: build error
* fix: delete
* fix: vitest error
* fix: react-router new code replace
* fix: vitest markdown error
* fix: title is none when refresh
* fix: merge error
* fix: sidebar width is wrong
* fix: useProps error
* fix: side-menu-width
* fix: menu selectId is wrong & useProps is string
* fix: menu selected first default & side menu hide when change
* fix: test error & v0.10 change log
* fix: new compnent doc modify
* fix: set umi `fastRefresh=false`
* refactor: application v2
* fix: improve code
* fix: bug
* fix: page = 0 error
* fix: workflow navigate error
* feat: plugin manager
* fix: afterAdd
* feat: update docs
* feat: update docs
* fix: page tab change not work
* fix: login redirect query param doesn't work
* fix: bug and doc
* feat: update docs
* fix: ci error
* fix: merge main
* feat: update docs
* feat: update docs
* feat: update docs
* chore(versions): 😊 publish v0.10.0-alpha.1
* fix: translations
* chore: backend node test max old space size
* docs: add useSearchParams
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: ChengLei Shao <chareice@live.com>
2023-06-20 11:48:02 +08:00
katherinehhh
4faf64f905
refactor(association-field): support sub table ( #1862 )
...
* fix: association select support data scope and sort setting
* fix: appends on demand loading
* fix: asociationSelect support multiple
* fix: recordPicker -> AssociationField
* fix: add migration
* fix: audit logs not show assication data
* fix: flattenNestedList
* refactor: file manager field mode
* refactor: field mode refactor
* fix: subtable action
* fix: subtable appends
* refactor: code improve
* fix: nester add new
* feat: sub table
* fix: data scope not effect immediately
* fix: association add new
* fix: association field failed to add new and mutual influence
* style: style improve
* style: style improve
* refactor: updateAssociationValues
* refactor: form init values
* refactor: select options
* fix: form initialValues
* fix: record picker values
* fix: field value change when field mode change
* fix: select data scope
* feat: add migration
* fix: table column enable link
* fix: table column enable link
* refactor: locale improve
* fix: migration
* fix: mutiple config
* fix: readPretty enable link
* fix: appends on demand
* fix: enable link style
* refactor: locale improve
* refactor: locale improve
* feat: sub-form migration
* fix: skip migration
* fix: translation
* fix: skip migration
* fix: getLabelFormatValue
* fix: error TS2339: Property 'find' does not exist on type 'string | SchemaEnum<any>'
* refactor: remove the logic code for converting old record picker
* refactor: locale
* refactor: association field support sub-table
* refactor: locale
* fix: sub-table should not support add new
* refactor: code improve
* refactor: locale
* fix: compatibility history Subtable
* fix: getNesterAppends filter bug
* refactor: useFieldModeOptions
* refactor: subTable
* fix: associationSelect
* fix: associationSelect
* fix: associationSelect
* fix: getAssociationAppends
* fix: sub-form collection context
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* fix: sub-table
* fix: appends
* fix: sub-table-appends
* fix: undefine id
* fix: sub-table appends
* refactor: sub-table
* refactor: sub-table supoort delete
* fix: sub-table-appends
* refactor: sub table initvvalue
* fix: sub-table-appends
* fix: association field appends
* fix: association field appends
* fix: association field appends
* style: style improve
* style: style improve
* refactor: textArear Markdown RichText
* style: style improve
* fix: title field
* refactor: code improve
* fix: system fields are not allowed to be edited
* refactor: subtable does not support inline operations
* refactor: jons edit in table
* refactor: sequence readOnly in table
* refactor: json readOnly in table
* fix: sub-table appends
* fix: runWhenParamsChanged
* fix: runWhenParamsChanged
* fix: sub-table appends
* fix: sub-table appends
* refactor: sub-table
* style: checkbox group intable
* style: delete button style improve
* fix: json edit in table
* fix: sub-table appends
* style: upload file in table column
* refactor: map edit in table
* refactor: map edit in table
* refactor: map field display in sub-table
* fix: support mutiple row
* refactor: sub-table
* refactor: sub-table not support sortable
* fix: sub-table appends
* fix: sub-table appends
* chore: useAssociationNames
* refactor: code improve
* refactor: support blocktemplate
* refactor: support blocktemplate
* fix: subtable
* fix: subtable initValue
* refactor: useAssociationNames in block template
* fix: cross hierarchical association field layout
* fix: normal field of association field should be append
* style: upload field in table
* refactor: sub table should not row selection
* style: checkboxGroup and radioGroup display in sub-table
* refactor: locale
* refactor: code improve
* refactor: quickEdit in sub-table
* refactor: quickEdit
* refactor: quickEdit
* refactor: quickEdit
* refactor: quickEdit
* style: quickEdit style improve
* style: quickEdit style improve
* style: quickEdit style improve
* refactor: sub-table support required config
* refactor: cell validate
* refactor: cell validate
* refactor: cell required validate
* refactor: cell required validate
* refactor: sub-table display when readPretty
* refactor: sub-table required
* refactor: sub-table required
* refactor: sub-table required
* refactor: sub-table initialValue
* refactor: table
* refactor: sub-tble field required
* refactor: sub-table style improve
* refactor: sub-table attachemnt
* refactor: code improve
* test: tableV2 snap
* fix: subtable drag
* test: tableV2 snap
* refactor: checkbox group and radio group in sub-table
* refactor: sub-table required style
* style: markdown style in sub-table
* refactor: markdown display in sub-table
* refactor: json field display in sub-table
* refactor: code improve
* style: style improve
* style: style improve
* refactor: inserView when designable
* refactor: china-region load data when dropdown click
* refactor: code improve
* refactor: code improve
* refactor: display loading when the form is first loaded
* refactor: display loading when the form is first loaded
* fix: verification exception when deleting sub table rows
* refactor: sub-table code improve
* refactor: sub-table code improve
* fix: json error feedback
* refactor: code improve
* fix: json onchange
* fix: sub table data did not change when switching data templates
* test: variable test
* test: variable test
* refactor: data template
* refactor: code improve
* refactor: code improve
* fix: upload readpretty
* fix: attach upload in sub-tabl
* fix: remove small
* fix: attach upload in sub-table
* refactor: association fields should not display in sub-table
* fix: dropdownMatchSelectWidth
* refactor: association fields should not display in sub-table
* refactor: selectFile is false in sub-table
* refactor: attacattachment in sub-table
* refactor: attacattachment in sub-table
* fix: selector style
* refactor: quick edit component
* fix: zindex
* style: style improve
* style: style improve
* feat: styling
* fix: style
* fix: style
* refactor: quickEdit getContainer
* refactor: quickEdit
* refactor: quickEdit
* fix: improve code
* refactor: code improve
* refactor: code improve
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-16 12:07:43 +08:00
katherinehhh
70890f2f50
feat(association field):quick add new ( #1953 )
...
* refactor: association select support quieck add
* chore: tmp commit
* refactor: association select support quick add
* feat: firstOrCreate
* refactor: locale
* refactor: create api
* chore: firstOrCreate
* feat: updateOrCreate
* chore: test
* refactor: save mode edit in add new form
* feat: values to filter
* refactor: loacle improve
* refactor: loacle improve
* refactor: loacle improve
* feat: firstOrCreate http api
* refactor: code improve
* fix: build error
* refactor: local
* refactor: locale improve
* refactor: useCollectionFieldsOptions
* fix: code imprtove
* refactor: code improve
* refactor: dropdown open
* refactor: add new mode
* refactor: add new mode code improve
* refactor: add new mode code improve
* refactor: add new mode code improve
---------
Co-authored-by: chareice <chareice@live.com>
2023-06-15 16:40:42 +08:00
katherinehhh
a6892dfff3
fix: error reported after deleting the associationFilter block linkage field ( #2038 )
2023-06-13 10:12:51 +08:00
Rairn
0a21c3bed2
test: fix test fialed
2023-06-09 09:49:40 +08:00
chenos
a1872fa75b
Revert "fix: the edit drawer's audit logs block can only get records by this … ( #1917 )"
...
This reverts commit 42ad77da68
.
# Conflicts:
# packages/core/client/src/block-provider/TableBlockProvider.tsx
# packages/core/client/src/schema-component/antd/filter/useValues.ts
2023-06-07 20:14:02 +08:00
katherinehhh
8809df3f51
refactor(association-field): useAssociationNames hook ( #1956 )
...
* chore: useAssociationNames
* refactor: code improve
* refactor: support blocktemplate
* refactor: support blocktemplate
* refactor: useAssociationNames in block template
* fix: cross hierarchical association field layout
* fix: normal field of association field should be append
* refactor: useAssociationNames
* refactor: useCreateActionProps
* refactor: useAssociationNames params
* fix: cleanup
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-07 11:18:35 +08:00
被雨水过滤的空气-Rairn
47838889f4
test: add tests for client ( #1960 )
...
* feat: add test utils
* test: fix compatibility problem
* refactor: use esm
* refactor: change require to import
* test: add a test
* chore: optimize launch.json
* chore(jest): optimize config
* test: fix failed
* test(Action): fix failed
* test: migration test from nocobase-next
* test: fix failed
* chore: set css to false
* fix: fix errors
* test(Filter): add test
* test(BlockItem): add test
* test(Calendar): add test
* refactor: migrate testUtils to client
* fix: avoid error
* refactor: fix lint error
* Revert "refactor: migrate testUtils to client"
This reverts commit ae569e2021a5c720111518cf3f2236e761a7186d.
* test: fix test failed
* refactor: migrate tesetUtils to @nocobase/test/client
* fix(Select): fix BUG
* refactor: remove useless code
* Revert "refactor: migrate tesetUtils to @nocobase/test/client"
This reverts commit 70d2211d5af546ae3fffaf5b53a326be8e194b34.
* test(AssociationSelect): add test
* test(CardItem): add test
* test(CollectionSelect): add test
* test(Cron): add test
* test(Details): add test
* test(ErrorFallback): add test
* test(Form): add test
* fix: fix CI
* test(FormItem): add test
* test(FormV2): add test
* test(G2Plot): add test
* test(Gantt): add test
* test(Grid): add test
* test(GridCard): add test
* test(Kanban): add test
* test(List): add test
* test(Menu): add test
* test(Page): add test
* test(Pagination): add test
* test(Preview): add test
* test(RemoteSelect): add test
* test: fix: failed
* refactor: remove useless code
* test(Table): add test
* test(TableV2): add test
* test(Tabs): add test
* test(Variable): add test
* test(Upload): add test
* chore: comment
* Revert "refactor: change require to import"
This reverts commit 3a23607e6faeda6f8b5bee02b9d8fa33bf9d2684.
* refactor: remove useless code
* fix: fix translation bug
* fix: fix export position
* test: update snap
2023-06-07 10:37:10 +08:00
black
42ad77da68
fix: the edit drawer's audit logs block can only get records by this … ( #1917 )
...
* chore: rename resource function and add comment
* chore: remove AuditLogsDesigner when create audit logs schema
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-06-06 20:13:06 +08:00
Junyi
2c9ce09304
feat(plugin-workflow): manual forms ( #1748 )
...
* feat(plugin-workflow): add create record form for manual node
* feat(plugin-workflow): add update form for manual node
* fix(plugin-workflow): fix antd version and menu
* refactor(plugin-workflow): change collection config modal to initializer sub-menu
* test(plugin-workflow): add test case
* fix(plugin-workflow): fix todo components based on forms
* fix(plugin-workflow): fix cycling trigger when create or update
* fix(plugin-workflow): fix transaction in manual processor
* refactor(plugin-workflow): optimize todo list data loading
* fix(plugin-workflow): fix uncommitted manual action effects
* fix(plugin-workflow): fix save multiple forms and only submit one
* chore(plugin-workflow): fix lint
* fix(plugin-workflow): fix lint error
* refactor(plugin-workflow): abstract workflow scoped FormBlockProvider
* fix(plugin-workflow): adjust designable api to use current schema in refresh
* fix(plugin-workflow): fix schema config and support block template
* fix(plugin-workflow): fix lint and build error
* fix(plugin-workflow): adjust components and scope to inner schema component
* fix(plugin-workflow): fix ref template in todo drawer
* fix(plugin-workflow): fix todo form undefined
* fix(plugin-workflow): fix manual form schema
* fix(plugin-workflow): fix manual createdBy/updatedBy user
* fix(plugin-workflow): disable save to template on create form
* fix(plugin-workflow): fix manual form variables
* fix(plugin-workflow): fix FormBlockProvider for default field value
* fix(plugin-workflow): fix manual node variables
2023-06-05 16:52:43 +08:00
katherinehhh
76ddbf2104
fix: undefined mode ( #1950 )
2023-05-29 16:27:23 +08:00
katherinehhh
0086037425
fix: tableField query data in add child action ( #1876 )
2023-05-25 12:23:48 +08:00
katherinehhh
e299f5452c
refactor: initialization when switching field components ( #1915 )
...
* fix: toManyNester only display one data
* fix: sub-nester
* fix: initialValue
* fix: [null]
* fix: record picker initValue
* fix: initValue filter
* fix: association select initialValue filter
* fix: association select initialValue filter
* fix: [null]
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-24 10:36:29 +08:00
katherinehhh
58fda41513
fix(association-field): only when the new data is successfully created can the data be associated ( #1884 )
...
* fix: only when the new data is successfully created can the data be associated
* fix: associate empty object data
* Update index.ts
* fix: to many nester cannot be deleted when there is one data
* fix: code improve
* fix: association field add new button should not drag
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-23 15:48:08 +08:00
katherinehhh
0318034b7c
fix: updateAssociationValues ( #1903 )
2023-05-23 09:44:17 +08:00
katherinehhh
cb2feb304d
fix: preload relational data ( #1847 )
...
* fix: getNesterAppends filter bug
* fix: associationSelect
* fix: associationSelect
* fix: associationSelect
* fix: getAssociationAppends
* fix: sub-form collection context
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* fix: appends
* fix: sub-table-appends
* fix: undefine id
* fix: sub-table appends
* fix: sub-table-appends
* fix: sub-table-appends
* fix: association field appends
* fix: association field appends
* fix: association field appends
* fix: sub-table appends
* fix: runWhenParamsChanged
* fix: runWhenParamsChanged
* chore: eager loading tree
* feat: load eager loading tree
* fix: support mutiple row
* fix: support blockTemplate appends
* feat: merge stage of eager loading
* feat: merge stage of belongs to
* feat: merge stage of has one
* fix: dynamic appends not support template schema
* feat: merge stage of belongs to many
* chore: test
* chore: print tree
* chore: using eager loading tree in repository find
* fix: empty ids load
* fix: belongs to many query
* fix: load belongs to association
* fix: eager load data accessor
* fix: has many
* fix: test
* fix: useAssociationNames
* fix: filter with appends
* chore: remove handle appends query
* chore: console.log
* chore: console.log
* fix: test
* fix: support template block schema
* fix: sub-nester-appends
---------
Co-authored-by: Chareice <chareice@live.com>
2023-05-20 17:42:26 +08:00
Dunqing
fdca52ae60
fix: data is not updated when appends are changed ( #1872 )
2023-05-17 11:38:42 +08:00
Dunqing
3a77e4376a
feat: support List and Grid Card block ( #1753 )
...
* feat: support details block
* feat: rename to list
* fix: imports
* feat: improve list block
* feat: support title hidden
* fix: showTitle default value
* feat: support table column actions
* feat: support appendsOnDemand
* feat: reuse same schema items
* feat: shouldn't display pagination when pages only one
* feat: block order
* feat: support card list
* fix: appends on demand
* fix: remove unused code
* fix: params
* fix: improve default pageSize
* feat: improve performance
* feat: add title designer
* feat: improve huge performance
* fix: better key
* feat: improve schema perf
* feat: improve initializer
* fix: improve grid perf
* fix: avoid haven't properties
* feat: support automatic run service when params changed
* fix: revert params
* fix: grid col width
* refactor: improve CardList performance
* fix: initializer related
* feat: i18n supports
* fix: improve get schema
* fix: create new form
* fix: revert code
* feat: css improve
* fix: i18n copy
* refactor: the CardList rename to GridCard
* feat: remove AssociationFilter item
* fix: edit and view data is incorrect
* feat: remove bulk actions
* feat: improve action bar
* feat: supports configuration of columns with different screen sizes
* fix: incorrect place to save the template
* feat: keep height in all card
* fix: remove console
* fix: rename
* refactor: improve GridCard implementation
* feat: support import/export actions
* fix: remove padding when actions is empty
* fix: remove incorrect import
* fix: remove unused props
* fix: action place
* feat: improve column count
* refactor: remove appendsOnDemand, and use useAssociationNames instated it
* fix: incorrect component
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-05-16 09:05:47 +08:00
katherinehhh
d2e92ead7f
fix: field for attachment interface type without appends ( #1856 )
...
* fix: attachment without appends
* fix: association fields appends
2023-05-15 11:08:38 +08:00
katherinehhh
3fcdd94549
fix:association appends ( #1842 )
...
* fix: getNesterAppends filter bug
* fix: associationSelect
* fix: associationSelect
* fix: associationSelect
* fix: getAssociationAppends
* fix: sub-form collection context
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
* refactor: code improve
2023-05-12 07:20:27 +08:00
katherinehhh
a7dcbf4288
fix(block-provider): getNesterAppends filter fix ( #1839 )
...
* fix: getNesterAppends filter bug
* fix: associationSelect
2023-05-11 15:45:47 +08:00
katherinehhh
55efa40cdd
refactor: association field ( #1838 )
...
* feat: association field
* fix: bug
* refactor: association field
* style: style improve
* style: style improve
* refactor: support subtable
* refactor: support file collection
* refactor: locale improve
* refactor: subtable improve
* refactor: association select improve
* refactor: association select improve
* refactor: association select improve
* refactor: useAssociationNames
* refactor: enable link
* refactor: selector
* refactor: selector
* refactor: locale improve
* refactor: on demand loading of relational data
* refactor: locale improve
* refactor: select button
* refactor: association field
* refactor: formformBlock provider
* refactor: formformBlock provider
* refactor: internalSelect recordPicker
* refactor: formBlocklockProvider
* fix: addNewer schema
* fix: useServiceOptions
* fix: useCreateActionProps
* fix: useCreateActionProps
* refactor: nester delete
* refactor: nester delete in detail
* refactor: subTable suport select
* refactor: subTable suport select
* style: style improve
* style: style improve
* chore: fileManger
* fix: association readPrety
* fix: filemanger
* refactor: field mode
* refactor: enable link
* chore: error message
* refactor: association schemaInitialize
* refactor: association schemaInitialize
* refactor: currentMode
* refactor: field mode default value
* fix: file manage readPretty
* fix: appends
* chore: file manage readPretty
* fix: updateAssociationValues
* fix: updateAssociationValues
* fix: updateAssociationValues
* fix: nester appends
* fix: nester appends
* fix: tree collection association fields
* fix: tree collection association fields
* fix: nester appends
* fix: subtable to select field value missing
* fix: subtable to select field value missing
* fix: compatible with historical blocks
* fix: compatible with historical blocks
* fix: compatible with historical blocks
* feat: add migration
* fix: filter block allow add new
* fix: compatible with historical blocks
* fix: skip if not RecordPicker
* fix: compatible with historical blocks
* fix: detail block not support nester
* fix: association select support data scope and sort setting
* fix: appends on demand loading
* fix: asociationSelect support multiple
* fix: recordPicker -> AssociationField
* fix: add migration
* fix: audit logs not show assication data
* fix: flattenNestedList
* refactor: file manager field mode
* refactor: field mode refactor
* fix: subtable action
* fix: subtable appends
* refactor: code improve
* fix: nester add new
* feat: sub table
* fix: data scope not effect immediately
* fix: association add new
* fix: association field failed to add new and mutual influence
* style: style improve
* style: style improve
* refactor: updateAssociationValues
* refactor: form init values
* refactor: select options
* fix: form initialValues
* fix: record picker values
* fix: field value change when field mode change
* fix: select data scope
* feat: add migration
* fix: table column enable link
* fix: table column enable link
* refactor: locale improve
* fix: migration
* fix: mutiple config
* fix: readPretty enable link
* fix: appends on demand
* fix: enable link style
* refactor: locale improve
* refactor: locale improve
* feat: sub-form migration
* fix: skip migration
* fix: translation
* fix: skip migration
* fix: getLabelFormatValue
* fix: error TS2339: Property 'find' does not exist on type 'string | SchemaEnum<any>'
* refactor: remove the logic code for converting old record picker
* refactor: locale
* refactor: locale
* fix: sub-table should not support add new
* refactor: code improve
* refactor: locale
* fix: compatibility history Subtable
* fix: improve
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
Co-authored-by: Chareice <chareice@live.com>
2023-05-11 12:47:31 +08:00
black
5c29262c95
fix: close the drawer incorrectly after submit ( #1775 )
2023-05-03 23:11:52 +08:00
Junyi
eb0089190e
fix(utils): fix json-templates bug and moved to utils ( #1784 )
2023-04-28 22:22:08 +08:00
Rairn
23ad507261
chore: fix lint errors
2023-04-27 15:22:34 +08:00
black
00b3c8c257
fix(filter-block): fix association fields not being filtered ( #1758 )
2023-04-26 10:43:48 +08:00
chenos
883f1e6fd1
fix: eslint ( #1759 )
...
* fix: eslint
* fix: eslint --fix
* fix: changelog
2023-04-25 13:12:14 +08:00
被雨水过滤的空气-Rairn
b1068f2d51
feat: support to use variables to set default value ( #1726 )
...
* fix: fix the default value being overwriitten
* feat: supports association fields to set default value
* feat: support to toggle multiple
* feat: support to use variables to set default value
* refactor: migrate hooks
* fix: fix the title disappearing
* feat: suport to use current-user variable
* fix: fix error
* fix: one to one and one to many should not support to set default value
* fix: fix error when searching
* style: set the width of modal
* fix: should not support to set default value for system fields
* refactor: fix lint error
* style: optimize inputNumber width
* refactor: extract to one function
* refactor: extract function
* fix: should not display default when field is readPretty
* style: optimize width of select
* fix: avoid error
* fix: should not display multiple option when subtable
* fix: should not display default when attachment
* fix: chinaRegion
* chore: optimize code
* fix: build error
* fix: multiple should be true by default
* refactor: optimize code
* fix: fix Select multiple mode
* refactor: optimize code
* fix: width
2023-04-23 18:27:21 +08:00
被雨水过滤的空气-Rairn
c02544c68b
fix(FilterFormBlock): fix association field can not to filter ( #1699 )
...
* feat: add getValuesByPath
* fix(FilterFormBlock): fix association field can not to filter
* test: hasMany filter test
* fix: remove null in filter
* fix: fix not responding for filter button
* fix: fix oho and o2m and obo
* fix: fix isInFilterFormBlock
* fix: fix errors
* fix: should filter out when params is empty
---------
Co-authored-by: chareice <chareice@live.com>
2023-04-19 23:06:20 +08:00
被雨水过滤的空气-Rairn
2d2e949452
fix(record-picker): fix the table paging problem ( #1718 )
...
* fix(record-picker): fix the table paging problem
* fix(recorder-picker): de-duplication
2023-04-18 10:23:27 +08:00
katherinehhh
f5df009465
fix: data scope not effect in gantt ( #1716 )
2023-04-17 18:05:24 +08:00
被雨水过滤的空气-Rairn
06d67a93ab
feat(map): support to filter other blocks ( #1691 )
...
* feat(Map): support to filter other blocks
* feat: highlight marker when selected
* feat: clear filter params when cancel connect
* feat: support line and polygon
2023-04-17 10:12:49 +08:00
Rairn
6abe97291e
fix(data-templates): fix subform
2023-04-16 17:25:18 +08:00
被雨水过滤的空气-Rairn
69bc18e166
feat(form-block): data templates ( #1704 )
...
* feat(Form): support to select existing data as template
* refactor: extract useDataTemplates
* feat(Form): support to use template
* fix: template switch
* fix: fix association field
* fix: filter fields
* fix: fix unselected default value
* fix: avoid errors
* refactor: remove useless code
* refactor: move templateSelect to FormBlockProvider
* feat: add a checkbox to toggle template selector
* feat: change the options order
* feat: hide Collection option when no inherit
* fix: optimize the label text
* fix: should empty form
* fix: should hide configuration when is not added
* chore: change text
* fix: template selector not displayed
* feat: optimize template
* feat: data template middleware
* fix: template select
* fix: default
* fix: fields
* feat: field delete button changed from hidden to disabled
* fix: improve code
* fix: prefix error
* fix: items
* feat: use Tree
* fix: maxDepth
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-04-16 14:22:46 +08:00
Rairn
67dc21baf7
fix: avoid errors
2023-04-14 23:34:58 +08:00
katherinehhh
dca370eacf
fix(gantt): update permission check in gantt block ( #1701 )
...
* fix: view collection can update in gantt
* fix: gantt update without acl check
* style: style improve
* style: style improve
* style: style improve
* style: style improve
2023-04-14 22:08:01 +08:00
katherinehhh
d0171b179f
fix(gantt): improve task bar text ( #1696 )
...
* fix: progress value is too large, resulting in incorrect calculation of bar width
* style: style improve
* style: style improve
2023-04-13 15:00:41 +08:00
Dunqing
ca88638edf
fix: cannot display data when remove last page and the page only just one item ( #1685 )
...
* fix: cannot display data when remove last page and the page only just one item
* fix: hidden pagination when pageSize = totalSize
2023-04-13 14:14:26 +08:00
katherinehhh
1a933315e4
feat: gantt block ( #1393 )
...
* feat: add Gantt block
* feat: gantt block congiure action
* feat: gantt block congiure fields
* feat: gantt block congiure fields
* feat: gantt block congiure fields
* feat: gantt block code improve
* feat: gantt block code improve
* feat: gantt block code improve
* feat: gantt block time range
* feat: gantt block date change
* feat: gantt block progress change
* feat: gantt block columnWidth fix
* feat: gantt block action configure
* feat: gant block init fix
* feat: gant block table configure
* feat: gant block table configure
* feat: gant block table configure
* feat: gant expend when table expend
* feat: modulecss ->less
* feat: style improve
* feat: style module -> emotion css
* feat: gantt process handle
* feat: gantt block empty state placeholder
* feat: table actions suport config
* feat: gantt block suprt time range change
* feat: gantt block suprt process update
* feat: gantt block suprt process update
* feat: gantt block suprt process update
* feat: gantt block suprt process update
* feat: gantt block configure actions
* feat: gantt block style improve
* feat: gantt table actions column is configured by default
* feat: gantt block surport bulk update
* feat: gantt block surport bulk update&bulk edit
* feat: gantt block action configure fix
* feat: gant block code improve
* feat: do not display gantt bar when the start date is empty
* feat: gant configure actions
* feat: gant task change
* feat: gant calendar style improve
* style: gant local
* style: gant grid style improve
* style: gant calendar style improve
* style: gant style improve
* refactor: gant bar suport click
* feat: adjacency list
* fix: error
* feat: collection extender
* Revert "feat: collection extender"
This reverts commit a942eee7699724fe831a98bae3f67a42db91a28b.
* 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
* feat: gantt block support tree collection
* fix: parameter exception when creating data selector
* feat: gantt block support tree collection
* feat: gantt block support tree collection
* fix: tableActionColumnInitializers
* style: style improve
* fix: gantt expansion exception
* style: style improve
* style: style improve
* style: calendar style improve
* style: style improve
* style: code improve
* refactor: gantt chart also highlights when table rows are selected
* fix: time scale default value
* fix: end field is nor requried to set
* fix: detailed blocks not appear when child record is clicked
* fix: detailed blocks not appear when child record is clicked
* refactor: gantt default expand all
* feat: gantt adapt to compact themes
* feat: gantt adapt to compact themes
* refactor: style improve
* refactor: style improve
* refactor: style improve
* refactor: style improve
* refactor: style improve
* refactor: style improve
* refactor: style improve
* refactor: sort by start date
* refactor: style improve
* refactor: style improve
* fix: styling
* fix: font-family
* fix: font-weight: 400
* feat: custom color
* fix: styling
* fix: style
* refactor: style improve
* refactor: style improve
---------
Co-authored-by: chenos <chenlinxh@gmail.com>
2023-04-12 11:19:22 +08:00