Skip to content

Fix TS in Angular demos (Diagram, Gantt, Gauges) - #36781

Open
GoodDayForSurf wants to merge 2 commits into
DevExpress:mainfrom
GoodDayForSurf:main_ts_angular_gantt_diagram
Open

GoodDayForSurf wants to merge 2 commits into
DevExpress:mainfrom
GoodDayForSurf:main_ts_angular_gantt_diagram

Conversation

@GoodDayForSurf

Copy link
Copy Markdown
Contributor

No description provided.

@GoodDayForSurf GoodDayForSurf self-assigned this Dec 3, 2026
@GoodDayForSurf
GoodDayForSurf requested a review from a team as a code owner December 3, 2026 14:24
Copilot AI balanced review requested due to automatic review settings December 3, 2026 14:24

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues are recorded for the Angular demo typing and template-checking updates.

No open issues 🎉

What changed in this PR

Updates DevExtreme’s Angular Diagram, Gantt, and Gauges demos to support stricter TypeScript and template checking.

Changes:

  • Adds these demo groups to the Angular compiler-check configuration.
  • Refines model interfaces, callback types, signal types, and type-only imports.
  • Corrects numeric template bindings and option names.
File Description
apps/​demos/​tsconfig.ngc-check.json Includes Diagram, Gantt, and Gauges demos.
apps/​demos/​Demos/​Gauges/​VariableNumberOfBars/​Angular/​app/​app.service.ts Converts Product to an interface.
apps/​demos/​Demos/​Gauges/​VariableNumberOfBars/​Angular/​app/​app.component.ts Separates the Product type import.
apps/​demos/​Demos/​Gauges/​ValueIndicatorsAPI/​Angular/​app/​app.component.ts Makes the formatting callback non-nullable.
apps/​demos/​Demos/​Gauges/​Tooltip/​Angular/​app/​app.component.ts Types callbacks and guards optional indexes.
apps/​demos/​Demos/​Gauges/​SubvalueIndicatorTextFormatting/​Angular/​app/​app.component.ts Refines callback typing and imports.
apps/​demos/​Demos/​Gauges/​SubvalueIndicatorTextFormatting/​Angular/​app/​app.component.html Corrects textCloud casing.
apps/​demos/​Demos/​Gauges/​SubvalueIndicatorsRuntimeCustomization/​Angular/​app/​app.service.ts Converts PowerInfo to an interface.
apps/​demos/​Demos/​Gauges/​SubvalueIndicatorsRuntimeCustomization/​Angular/​app/​app.component.ts Types callbacks and guards optional indexes.
apps/​demos/​Demos/​Gauges/​ScaleLabelFormatting/​Angular/​app/​app.component.ts Refines callback typing and imports.
apps/​demos/​Demos/​Gauges/​RangeBarBaseValue/​Angular/​app/​app.component.ts Refines shared callback typing.
apps/​demos/​Demos/​Gauges/​RangeBarBaseValue/​Angular/​app/​app.component.html Corrects rangeBar casing.
apps/​demos/​Demos/​Gauges/​PaletteForRanges/​Angular/​app/​app.component.html Corrects Pastel casing.
apps/​demos/​Demos/​Gauges/​Palette/​Angular/​app/​app.component.html Corrects Ocean casing.
apps/​demos/​Demos/​Gauges/​LinearGauge/​Angular/​app/​app.service.ts Converts City to an interface.
apps/​demos/​Demos/​Gauges/​LabelsCustomization/​Angular/​app/​app.component.ts Types the label callback argument.
apps/​demos/​Demos/​Gauges/​GaugeTooltip/​Angular/​app/​app.component.ts Types the tooltip callback argument.
apps/​demos/​Demos/​Gauges/​GaugeTitleCustomized/​Angular/​app/​app.component.html Binds the top margin numerically.
apps/​demos/​Demos/​Gauges/​DifferentValueIndicatorTypesLinearGauge/​Angular/​app/​app.component.ts Refines callback typing and imports.
apps/​demos/​Demos/​Gauges/​DifferentValueIndicatorTypesLinearGauge/​Angular/​app/​app.component.html Corrects rangeBar casing.
apps/​demos/​Demos/​Gauges/​DifferentValueIndicatorTypes/​Angular/​app/​app.component.ts Refines callback typing and imports.
apps/​demos/​Demos/​Gauges/​DifferentValueIndicatorTypes/​Angular/​app/​app.component.html Corrects rangeBar casing.
apps/​demos/​Demos/​Gauges/​DifferentSubvalueIndicatorTypesLinearGauge/​Angular/​app/​app.component.ts Types the formatting callback argument.
apps/​demos/​Demos/​Gauges/​CircularGauge/​Angular/​app/​app.service.ts Converts Data to an interface.
apps/​demos/​Demos/​Gauges/​CircularGauge/​Angular/​app/​app.component.ts Types the formatting callback argument.
apps/​demos/​Demos/​Gauges/​BarGauge/​Angular/​app/​app.service.ts Converts Color to an interface.
apps/​demos/​Demos/​Gantt/​Validation/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​Validation/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​Toolbar/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​Toolbar/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​TaskTemplate/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​TaskTemplate/​Angular/​app/​app.component.ts Types task ID parameters.
apps/​demos/​Demos/​Gantt/​TaskTemplate/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​StripLines/​Angular/​app/​app.service.ts Converts Task to an interface.
apps/​demos/​Demos/​Gantt/​StripLines/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​Sorting/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​Sorting/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​Overview/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​Overview/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​HeaderFilter/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​HeaderFilter/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​FilterRow/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​FilterRow/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​ExportToPDF/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​ExportToPDF/​Angular/​app/​app.component.ts Types PDF constructor options.
apps/​demos/​Demos/​Gantt/​ExportToPDF/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​DataBinding/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​DataBinding/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​ContextMenu/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​ContextMenu/​Angular/​app/​app.component.ts Types menu items, corrects casing, and uses an empty-array fallback.
apps/​demos/​Demos/​Gantt/​ContextMenu/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Gantt/​Appearance/​Angular/​app/​app.service.ts Converts data models to interfaces.
apps/​demos/​Demos/​Gantt/​Appearance/​Angular/​app/​app.component.ts Makes option signals non-nullable.
apps/​demos/​Demos/​Gantt/​Appearance/​Angular/​app/​app.component.html Binds task-list width numerically.
apps/​demos/​Demos/​Diagram/​UICustomization/​Angular/​app/​app.component.ts Types the custom-command event.
apps/​demos/​Demos/​Diagram/​SimpleView/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​OperationRestrictions/​Angular/​app/​app.service.ts Converts OrgItem to an interface.
apps/​demos/​Demos/​Diagram/​OperationRestrictions/​Angular/​app/​app.component.ts Annotates the edit handler and separates type imports.
apps/​demos/​Demos/​Diagram/​NodesArrayPlainStructure/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​NodesArrayHierarchicalStructure/​Angular/​app/​app.service.ts Converts Employee to an interface.
apps/​demos/​Demos/​Diagram/​NodesAndEdgesArrays/​Angular/​app/​app.service.ts Uses interfaces and permits null edge text.
apps/​demos/​Demos/​Diagram/​ItemSelection/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​ItemSelection/​Angular/​app/​app.component.ts Separates type-only imports.
apps/​demos/​Demos/​Diagram/​ImagesInShapes/​Angular/​app/​app.service.ts Converts diagram models to interfaces.
apps/​demos/​Demos/​Diagram/​CustomShapesWithTexts/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​CustomShapesWithTemplatesWithEditing/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​CustomShapesWithTemplatesWithEditing/​Angular/​app/​app.component.ts Types callbacks and replaces Employee construction.
apps/​demos/​Demos/​Diagram/​CustomShapesWithTemplates/​Angular/​app/​app.service.ts Uses an interface with an optional parent ID.
apps/​demos/​Demos/​Diagram/​CustomShapesWithTemplates/​Angular/​app/​app.component.ts Uses partial employee state and types the expression callback.
apps/​demos/​Demos/​Diagram/​AdvancedDataBinding/​Angular/​app/​app.service.ts Converts diagram models to interfaces.
apps/​demos/​Demos/​Diagram/​AdvancedDataBinding/​Angular/​app/​app.component.ts Defines dimension fields and types expression callbacks.

Review effort: Balanced

Copilot AI balanced review requested due to automatic review settings December 4, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The expanded Angular check includes an unsafe string-keyed lookup in OperationRestrictions that triggers TS7053 under strict mode, causing the check to fail.

1 open issue

Review effort: Balanced

"Demos/Common/**/Angular/**/*.ts",
"Demos/DateBox/**/Angular/**/*.ts",
"Demos/DateRangeBox/**/Angular/**/*.ts",
"Demos/Diagram/**/Angular/**/*.ts",

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants