DevExtreme
DevExtreme copied to clipboard
Add TS configuration and NX project for metadata
Mutation helpers
[
{
"kind": "remove",
"uid": "/card_view:Toolbar",
}
]
➡️
removeMembers(/\/card_view:Toolbar/),
[
{
"kind": "remove",
"uid": "ui/form:dxFormSimpleItem\\.(editorOptions|editorType)"
},
{
"kind": "add",
"uid": "ui/form:dxFormSimpleItem.editor",
"types": [
{
"kind": "custom",
"name": "WidgetFactory",
"params": {
"factory": "FormItemEditor",
"componentNameProp": "editorType",
"componentConfigProp": "editorOptions"
}
}
]
}
]
➡️
...replaceWithWidgetFactory({
uid: 'ui/form:dxFormSimpleItem',
from: {
componentNameProp: 'editorType',
componentConfigProp: 'editorOptions',
},
to: {
factoryName: 'FormItemEditor',
newProp: 'editor',
}
})
[
{
"kind": "add",
"uid": "ui/popover:dxPopoverOptions.toolbarItems",
"types": [
{
"kind": "array",
"itemTypes": [
{
"kind": "memberRef",
"uid": "ui/popover:ToolbarItem"
}
]
}
]
}
]
➡️
addMember({
uid: 'ui/popover:dxPopoverOptions.toolbarItems',
types: [array(memberRef('ui/popover:ToolbarItem'))],
})
You may want to check my old draft https://github.com/pomahtri/DevExtreme/compare/fae63049bad2b896d4b45c983e05bc1358e8d45a...refactor/nx_projects/metadata
You may want to check my old draft pomahtri/[email protected]/nx_projects/metadata
Yes, I was just about to ask for it, thnx 🤝
The aim of this PR is to use TypeScript metadata configurations, but I agree we should make it more aligned with the NX way, since we have the opportunity