Skip to content

Commit

Permalink
vue: re-generate with props types with unique types (35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mpreyskurantov committed Oct 4, 2024
1 parent 2de3621 commit bb53ef9
Show file tree
Hide file tree
Showing 35 changed files with 104 additions and 104 deletions.
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/autocomplete.ts
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-vue/src/bar-gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ const DxLabelConfig = {
connectorWidth: Number,
customizeText: Function as PropType<(barValue: Object) => string>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
indent: Number,
visible: Boolean
}
Expand Down Expand Up @@ -502,7 +502,7 @@ const DxLegendConfig = {
font: Object,
horizontalAlignment: Object as PropType<HorizontalAlignment>,
itemsAlignment: Object as PropType<HorizontalAlignment>,
itemTextFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
itemTextFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
itemTextPosition: Object as PropType<Position>,
margin: [Number, Object],
markerSize: Number,
Expand Down Expand Up @@ -801,7 +801,7 @@ const DxTooltipConfig = {
customizeTooltip: Function as PropType<(scaleValue: Object) => Object>,
enabled: Boolean,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
interactive: Boolean,
opacity: Number,
paddingLeftRight: Number,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/bullet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ const DxTooltipConfig = {
customizeTooltip: Function as PropType<(pointsInfo: Object) => Object>,
enabled: Boolean,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
interactive: Boolean,
opacity: Number,
paddingLeftRight: Number,
Expand Down
26 changes: 13 additions & 13 deletions packages/devextreme-vue/src/chart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ const componentConfig = {
rotated: Boolean,
rtlEnabled: Boolean,
scrollBar: Object,
series: [Array, Object] as PropType<Array<Object> | Object | Object>,
series: [Array, Object] as PropType<Array<Object> | Object>,
seriesSelectionMode: Object as PropType<SingleOrMultiple>,
seriesTemplate: Object,
size: Object,
Expand Down Expand Up @@ -679,9 +679,9 @@ const DxArgumentAxisConfig = {
type: Object as PropType<AxisScaleType>,
valueMarginsEnabled: Boolean,
visible: Boolean,
visualRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object | Object>,
visualRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object>,
visualRangeUpdateMode: Object as PropType<VisualRangeUpdateMode>,
wholeRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object | Object>,
wholeRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object>,
width: Number,
workdaysOnly: Boolean,
workWeek: Array as PropType<Array<number>>
Expand Down Expand Up @@ -822,7 +822,7 @@ const DxAxisLabelConfig = {
customizeText: Function as PropType<(argument: Object) => string>,
displayMode: Object as PropType<ChartLabelDisplayMode>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
indentFromAxis: Number,
overlappingBehavior: Object as PropType<ChartsAxisLabelOverlap>,
position: Object as PropType<Position | RelativePosition>,
Expand Down Expand Up @@ -1540,14 +1540,14 @@ const DxCommonSeriesSettingsLabelConfig = {
},
props: {
alignment: Object as PropType<HorizontalAlignment>,
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
backgroundColor: String,
border: Object,
connector: Object,
customizeText: Function as PropType<(pointInfo: Object) => string>,
displayFormat: String,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
horizontalOffset: Number,
position: Object as PropType<RelativePosition>,
rotationAngle: Number,
Expand Down Expand Up @@ -1981,7 +1981,7 @@ const DxHorizontalLineLabelConfig = {
backgroundColor: String,
customizeText: Function as PropType<(info: Object) => string>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
visible: Boolean
}
};
Expand Down Expand Up @@ -2075,7 +2075,7 @@ const DxLabelConfig = {
},
props: {
alignment: Object as PropType<HorizontalAlignment>,
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
backgroundColor: String,
border: Object,
connector: Object,
Expand All @@ -2084,7 +2084,7 @@ const DxLabelConfig = {
displayFormat: String,
displayMode: Object as PropType<ChartLabelDisplayMode>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
horizontalAlignment: Object as PropType<HorizontalAlignment>,
horizontalOffset: Number,
indentFromAxis: Number,
Expand Down Expand Up @@ -3140,7 +3140,7 @@ const DxTooltipConfig = {
"update:zIndex": null,
},
props: {
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
argumentFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
arrowLength: Number,
border: Object,
color: String,
Expand All @@ -3150,7 +3150,7 @@ const DxTooltipConfig = {
customizeTooltip: Function as PropType<(pointInfo: Object) => Object>,
enabled: Boolean,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
interactive: Boolean,
location: Object as PropType<ChartTooltipLocation>,
opacity: Number,
Expand Down Expand Up @@ -3318,9 +3318,9 @@ const DxValueAxisConfig = {
valueMarginsEnabled: Boolean,
valueType: Object as PropType<ChartsDataType>,
visible: Boolean,
visualRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object | Object>,
visualRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object>,
visualRangeUpdateMode: Object as PropType<VisualRangeUpdateMode>,
wholeRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object | Object>,
wholeRange: [Array, Object] as PropType<(Array<Date> | Array<number> | Array<string>) | Object>,
width: Number
}
};
Expand Down
6 changes: 3 additions & 3 deletions packages/devextreme-vue/src/circular-gauge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@ const DxLabelConfig = {
props: {
customizeText: Function as PropType<(scaleValue: Object) => string>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
hideFirstOrLast: Object as PropType<CircularGaugeLabelOverlap>,
indentFromTick: Number,
overlappingBehavior: Object as PropType<LabelOverlap>,
Expand Down Expand Up @@ -711,7 +711,7 @@ const DxTextConfig = {
props: {
customizeText: Function as PropType<(indicatedValue: Object) => string>,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
indent: Number
}
};
Expand Down Expand Up @@ -820,7 +820,7 @@ const DxTooltipConfig = {
customizeTooltip: Function as PropType<(scaleValue: Object) => Object>,
enabled: Boolean,
font: Object,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
interactive: Boolean,
opacity: Number,
paddingLeftRight: Number,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/color-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
22 changes: 11 additions & 11 deletions packages/devextreme-vue/src/data-grid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -840,7 +840,7 @@ const DxColumnConfig = {
filterValues: Array as PropType<Array<any>>,
fixed: Boolean,
fixedPosition: Object as PropType<FixedPosition>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
formItem: Object,
groupCellTemplate: {},
groupIndex: Number,
Expand All @@ -863,7 +863,7 @@ const DxColumnConfig = {
sortOrder: Object as PropType<SortOrder>,
trueText: String,
type: Object as PropType<DataGridCommandColumnType>,
validationRules: Array as PropType<Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object>>,
validationRules: Array as PropType<Array<Object>>,
visible: Boolean,
visibleIndex: Number,
width: [Number, String]
Expand Down Expand Up @@ -1531,7 +1531,7 @@ const DxFieldConfig = {
editorTemplate: {},
falseText: String,
filterOperations: Array as PropType<Array<FilterBuilderOperation> | Array<string>>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
lookup: Object,
name: String,
trueText: String
Expand Down Expand Up @@ -1561,7 +1561,7 @@ const DxFieldLookupConfig = {
},
props: {
allowClearing: Boolean,
dataSource: [Array, Object] as PropType<Array<any> | Object | Object>,
dataSource: [Array, Object] as PropType<Array<any> | Object>,
displayExpr: [Function, String] as PropType<((data: Object) => string) | string>,
valueExpr: [Function, String] as PropType<((data: Object) => (string | number | Boolean)) | string>
}
Expand Down Expand Up @@ -1741,7 +1741,7 @@ const DxFilterBuilderPopupConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down Expand Up @@ -1944,7 +1944,7 @@ const DxFormConfig = {
bindingOptions: Object,
colCount: [Object, Number] as PropType<Mode | number>,
colCountByScreen: Object,
customizeItem: Function as PropType<(item: Object | Object | Object | Object | Object) => void>,
customizeItem: Function as PropType<(item: Object) => void>,
disabled: Boolean,
elementAttr: Object,
focusStateEnabled: Boolean,
Expand All @@ -1953,7 +1953,7 @@ const DxFormConfig = {
hint: String,
hoverStateEnabled: Boolean,
isDirty: Boolean,
items: Array as PropType<Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object>>,
items: Array as PropType<Array<Object>>,
labelLocation: Object as PropType<LabelLocation>,
labelMode: Object as PropType<FormLabelMode>,
minColWidth: Number,
Expand Down Expand Up @@ -2048,7 +2048,7 @@ const DxFormItemConfig = {
label: Object,
name: String,
template: {},
validationRules: Array as PropType<Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object> | Array<Object>>,
validationRules: Array as PropType<Array<Object>>,
visible: Boolean,
visibleIndex: Number
}
Expand Down Expand Up @@ -2180,7 +2180,7 @@ const DxGroupItemConfig = {
showInGroupFooter: Boolean,
skipEmptyValues: Boolean,
summaryType: [String, Object] as PropType<string | SummaryType>,
valueFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>
valueFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>
}
};

Expand Down Expand Up @@ -2780,7 +2780,7 @@ const DxPopupConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down Expand Up @@ -3518,7 +3518,7 @@ const DxTotalItemConfig = {
showInColumn: String,
skipEmptyValues: Boolean,
summaryType: [String, Object] as PropType<string | SummaryType>,
valueFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>
valueFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>
}
};

Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme-vue/src/date-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const componentConfig = {
deferRendering: Boolean,
disabled: Boolean,
disabledDates: [Array, Function] as PropType<Array<Date> | ((data: Object) => Boolean)>,
displayFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
displayFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
dropDownButtonTemplate: {},
dropDownOptions: Object,
elementAttr: Object,
Expand Down Expand Up @@ -660,7 +660,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme-vue/src/date-range-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ const componentConfig = {
deferRendering: Boolean,
disabled: Boolean,
disableOutOfRangeSelection: Boolean,
displayFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
displayFormat: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
dropDownButtonTemplate: {},
dropDownOptions: Object,
elementAttr: Object,
Expand Down Expand Up @@ -670,7 +670,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/drop-down-box.ts
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
2 changes: 1 addition & 1 deletion packages/devextreme-vue/src/drop-down-button.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ const DxDropDownOptionsConfig = {
onShowing: Function as PropType<(e: Object) => void>,
onShown: Function as PropType<(e: Object) => void>,
onTitleRendered: Function as PropType<(e: Object) => void>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object | Object>,
position: [Function, Object] as PropType<(() => void) | PositionAlignment | Object>,
resizeEnabled: Boolean,
restorePosition: Boolean,
rtlEnabled: Boolean,
Expand Down
4 changes: 2 additions & 2 deletions packages/devextreme-vue/src/filter-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ const DxFieldConfig = {
editorTemplate: {},
falseText: String,
filterOperations: Array as PropType<Array<FilterBuilderOperation> | Array<string>>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | Object | string>,
format: [Object, Function, String] as PropType<Object | Format | ((value: number | Date) => string) | string>,
lookup: Object,
name: String,
trueText: String
Expand Down Expand Up @@ -316,7 +316,7 @@ const DxLookupConfig = {
},
props: {
allowClearing: Boolean,
dataSource: [Array, Object] as PropType<Array<any> | Object | Object>,
dataSource: [Array, Object] as PropType<Array<any> | Object>,
displayExpr: [Function, String] as PropType<((data: Object) => string) | string>,
valueExpr: [Function, String] as PropType<((data: Object) => (string | number | Boolean)) | string>
}
Expand Down
Loading

0 comments on commit bb53ef9

Please sign in to comment.