Skip to content

Commit 042dd6c

Browse files
committed
Diagram: fix ts issues (ui.diagram.ts)
1 parent cc31d8a commit 042dd6c

File tree

4 files changed

+2990
-2128
lines changed

4 files changed

+2990
-2128
lines changed

packages/devextreme-angular/src/ui/diagram/index.ts

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,32 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
152152

153153
instance: DxDiagram = null;
154154

155+
/**
156+
* [descr:WidgetOptions.accessKey]
157+
158+
*/
159+
@Input()
160+
get accessKey(): string | undefined {
161+
return this._getOption('accessKey');
162+
}
163+
set accessKey(value: string | undefined) {
164+
this._setOption('accessKey', value);
165+
}
166+
167+
168+
/**
169+
* [descr:WidgetOptions.activeStateEnabled]
170+
171+
*/
172+
@Input()
173+
get activeStateEnabled(): boolean {
174+
return this._getOption('activeStateEnabled');
175+
}
176+
set activeStateEnabled(value: boolean) {
177+
this._setOption('activeStateEnabled', value);
178+
}
179+
180+
155181
/**
156182
* [descr:dxDiagramOptions.autoZoomMode]
157183
@@ -308,6 +334,19 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
308334
}
309335

310336

337+
/**
338+
* [descr:WidgetOptions.focusStateEnabled]
339+
340+
*/
341+
@Input()
342+
get focusStateEnabled(): boolean {
343+
return this._getOption('focusStateEnabled');
344+
}
345+
set focusStateEnabled(value: boolean) {
346+
this._setOption('focusStateEnabled', value);
347+
}
348+
349+
311350
/**
312351
* [descr:dxDiagramOptions.fullScreen]
313352
@@ -360,6 +399,19 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
360399
}
361400

362401

402+
/**
403+
* [descr:WidgetOptions.hint]
404+
405+
*/
406+
@Input()
407+
get hint(): string | undefined {
408+
return this._getOption('hint');
409+
}
410+
set hint(value: string | undefined) {
411+
this._setOption('hint', value);
412+
}
413+
414+
363415
/**
364416
* [descr:dxDiagramOptions.historyToolbar]
365417
@@ -373,6 +425,19 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
373425
}
374426

375427

428+
/**
429+
* [descr:WidgetOptions.hoverStateEnabled]
430+
431+
*/
432+
@Input()
433+
get hoverStateEnabled(): boolean {
434+
return this._getOption('hoverStateEnabled');
435+
}
436+
set hoverStateEnabled(value: boolean) {
437+
this._setOption('hoverStateEnabled', value);
438+
}
439+
440+
376441
/**
377442
* [descr:dxDiagramOptions.mainToolbar]
378443
@@ -516,6 +581,19 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
516581
}
517582

518583

584+
/**
585+
* [descr:WidgetOptions.tabIndex]
586+
587+
*/
588+
@Input()
589+
get tabIndex(): number {
590+
return this._getOption('tabIndex');
591+
}
592+
set tabIndex(value: number) {
593+
this._setOption('tabIndex', value);
594+
}
595+
596+
519597
/**
520598
* [descr:dxDiagramOptions.toolbox]
521599
@@ -699,6 +777,20 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
699777
*/
700778
@Output() onSelectionChanged: EventEmitter<SelectionChangedEvent>;
701779

780+
/**
781+
782+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
783+
784+
*/
785+
@Output() accessKeyChange: EventEmitter<string | undefined>;
786+
787+
/**
788+
789+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
790+
791+
*/
792+
@Output() activeStateEnabledChange: EventEmitter<boolean>;
793+
702794
/**
703795
704796
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -783,6 +875,13 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
783875
*/
784876
@Output() exportChange: EventEmitter<{ fileName?: string }>;
785877

878+
/**
879+
880+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
881+
882+
*/
883+
@Output() focusStateEnabledChange: EventEmitter<boolean>;
884+
786885
/**
787886
788887
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -811,13 +910,27 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
811910
*/
812911
@Output() heightChange: EventEmitter<number | string | undefined>;
813912

913+
/**
914+
915+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
916+
917+
*/
918+
@Output() hintChange: EventEmitter<string | undefined>;
919+
814920
/**
815921
816922
* This member supports the internal infrastructure and is not intended to be used directly from your code.
817923
818924
*/
819925
@Output() historyToolbarChange: EventEmitter<{ commands?: Array<Command | CustomCommand>, visible?: boolean }>;
820926

927+
/**
928+
929+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
930+
931+
*/
932+
@Output() hoverStateEnabledChange: EventEmitter<boolean>;
933+
821934
/**
822935
823936
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -895,6 +1008,13 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
8951008
*/
8961009
@Output() snapToGridChange: EventEmitter<boolean>;
8971010

1011+
/**
1012+
1013+
* This member supports the internal infrastructure and is not intended to be used directly from your code.
1014+
1015+
*/
1016+
@Output() tabIndexChange: EventEmitter<number>;
1017+
8981018
/**
8991019
9001020
* This member supports the internal infrastructure and is not intended to be used directly from your code.
@@ -974,6 +1094,8 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
9741094
{ subscribe: 'requestEditOperation', emit: 'onRequestEditOperation' },
9751095
{ subscribe: 'requestLayoutUpdate', emit: 'onRequestLayoutUpdate' },
9761096
{ subscribe: 'selectionChanged', emit: 'onSelectionChanged' },
1097+
{ emit: 'accessKeyChange' },
1098+
{ emit: 'activeStateEnabledChange' },
9771099
{ emit: 'autoZoomModeChange' },
9781100
{ emit: 'contextMenuChange' },
9791101
{ emit: 'contextToolboxChange' },
@@ -986,11 +1108,14 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
9861108
{ emit: 'editingChange' },
9871109
{ emit: 'elementAttrChange' },
9881110
{ emit: 'exportChange' },
1111+
{ emit: 'focusStateEnabledChange' },
9891112
{ emit: 'fullScreenChange' },
9901113
{ emit: 'gridSizeChange' },
9911114
{ emit: 'hasChangesChange' },
9921115
{ emit: 'heightChange' },
1116+
{ emit: 'hintChange' },
9931117
{ emit: 'historyToolbarChange' },
1118+
{ emit: 'hoverStateEnabledChange' },
9941119
{ emit: 'mainToolbarChange' },
9951120
{ emit: 'nodesChange' },
9961121
{ emit: 'pageColorChange' },
@@ -1002,6 +1127,7 @@ export class DxDiagramComponent extends DxComponent implements OnDestroy, OnChan
10021127
{ emit: 'showGridChange' },
10031128
{ emit: 'simpleViewChange' },
10041129
{ emit: 'snapToGridChange' },
1130+
{ emit: 'tabIndexChange' },
10051131
{ emit: 'toolboxChange' },
10061132
{ emit: 'unitsChange' },
10071133
{ emit: 'useNativeScrollingChange' },

packages/devextreme-vue/src/diagram.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ import {
4040
import { prepareConfigurationComponentConfig } from "./core/index";
4141

4242
type AccessibleOptions = Pick<Properties,
43+
"accessKey" |
44+
"activeStateEnabled" |
4345
"autoZoomMode" |
4446
"contextMenu" |
4547
"contextToolbox" |
@@ -52,11 +54,14 @@ type AccessibleOptions = Pick<Properties,
5254
"editing" |
5355
"elementAttr" |
5456
"export" |
57+
"focusStateEnabled" |
5558
"fullScreen" |
5659
"gridSize" |
5760
"hasChanges" |
5861
"height" |
62+
"hint" |
5963
"historyToolbar" |
64+
"hoverStateEnabled" |
6065
"mainToolbar" |
6166
"nodes" |
6267
"onContentReady" |
@@ -78,6 +83,7 @@ type AccessibleOptions = Pick<Properties,
7883
"showGrid" |
7984
"simpleView" |
8085
"snapToGrid" |
86+
"tabIndex" |
8187
"toolbox" |
8288
"units" |
8389
"useNativeScrolling" |
@@ -94,6 +100,8 @@ interface DxDiagram extends AccessibleOptions {
94100

95101
const componentConfig = {
96102
props: {
103+
accessKey: String,
104+
activeStateEnabled: Boolean,
97105
autoZoomMode: String as PropType<AutoZoomMode>,
98106
contextMenu: Object as PropType<Record<string, any>>,
99107
contextToolbox: Object as PropType<Record<string, any>>,
@@ -106,11 +114,14 @@ const componentConfig = {
106114
editing: Object as PropType<Record<string, any>>,
107115
elementAttr: Object as PropType<Record<string, any>>,
108116
export: Object as PropType<Record<string, any>>,
117+
focusStateEnabled: Boolean,
109118
fullScreen: Boolean,
110119
gridSize: [Number, Object] as PropType<number | Record<string, any>>,
111120
hasChanges: Boolean,
112121
height: [Number, String],
122+
hint: String,
113123
historyToolbar: Object as PropType<Record<string, any>>,
124+
hoverStateEnabled: Boolean,
114125
mainToolbar: Object as PropType<Record<string, any>>,
115126
nodes: Object as PropType<Record<string, any>>,
116127
onContentReady: Function as PropType<((e: ContentReadyEvent) => void)>,
@@ -132,6 +143,7 @@ const componentConfig = {
132143
showGrid: Boolean,
133144
simpleView: Boolean,
134145
snapToGrid: Boolean,
146+
tabIndex: Number,
135147
toolbox: Object as PropType<Record<string, any>>,
136148
units: String as PropType<Units>,
137149
useNativeScrolling: Boolean,
@@ -144,6 +156,8 @@ const componentConfig = {
144156
emits: {
145157
"update:isActive": null,
146158
"update:hoveredElement": null,
159+
"update:accessKey": null,
160+
"update:activeStateEnabled": null,
147161
"update:autoZoomMode": null,
148162
"update:contextMenu": null,
149163
"update:contextToolbox": null,
@@ -156,11 +170,14 @@ const componentConfig = {
156170
"update:editing": null,
157171
"update:elementAttr": null,
158172
"update:export": null,
173+
"update:focusStateEnabled": null,
159174
"update:fullScreen": null,
160175
"update:gridSize": null,
161176
"update:hasChanges": null,
162177
"update:height": null,
178+
"update:hint": null,
163179
"update:historyToolbar": null,
180+
"update:hoverStateEnabled": null,
164181
"update:mainToolbar": null,
165182
"update:nodes": null,
166183
"update:onContentReady": null,
@@ -182,6 +199,7 @@ const componentConfig = {
182199
"update:showGrid": null,
183200
"update:simpleView": null,
184201
"update:snapToGrid": null,
202+
"update:tabIndex": null,
185203
"update:toolbox": null,
186204
"update:units": null,
187205
"update:useNativeScrolling": null,

0 commit comments

Comments
 (0)