From 546f51422baf3515e0111ccc3a15059bdc70b8cb Mon Sep 17 00:00:00 2001 From: Aliullov Vlad Date: Tue, 8 Oct 2024 17:19:09 +0400 Subject: [PATCH] Regenerate vue wrappers with updated props TS Types --- packages/devextreme-vue/src/calendar.ts | 2 +- packages/devextreme-vue/src/date-box.ts | 2 +- packages/devextreme-vue/src/date-range-box.ts | 2 +- packages/devextreme-vue/src/gantt.ts | 2 +- packages/devextreme-vue/src/pivot-grid-field-chooser.ts | 2 +- packages/devextreme-vue/src/pivot-grid.ts | 2 +- packages/devextreme-vue/src/scheduler.ts | 4 ++-- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/devextreme-vue/src/calendar.ts b/packages/devextreme-vue/src/calendar.ts index f41e5073419e..663018ad8fcb 100644 --- a/packages/devextreme-vue/src/calendar.ts +++ b/packages/devextreme-vue/src/calendar.ts @@ -66,7 +66,7 @@ const componentConfig = { disabledDates: [Array, Function] as PropType | ((data: Object) => Boolean)>, elementAttr: Object, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/date-box.ts b/packages/devextreme-vue/src/date-box.ts index f5e6cfd9ad0e..5b4f44e356a5 100644 --- a/packages/devextreme-vue/src/date-box.ts +++ b/packages/devextreme-vue/src/date-box.ts @@ -440,7 +440,7 @@ const DxCalendarOptionsConfig = { disabledDates: [Array, Function] as PropType | ((data: Object) => Boolean)>, elementAttr: Object, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/date-range-box.ts b/packages/devextreme-vue/src/date-range-box.ts index 76b7ec1eec68..5514a7845489 100644 --- a/packages/devextreme-vue/src/date-range-box.ts +++ b/packages/devextreme-vue/src/date-range-box.ts @@ -452,7 +452,7 @@ const DxCalendarOptionsConfig = { disabledDates: [Array, Function] as PropType | ((data: Object) => Boolean)>, elementAttr: Object, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/gantt.ts b/packages/devextreme-vue/src/gantt.ts index ca614b720223..015dac5017c0 100644 --- a/packages/devextreme-vue/src/gantt.ts +++ b/packages/devextreme-vue/src/gantt.ts @@ -130,7 +130,7 @@ const componentConfig = { endDateRange: Date, filterRow: Object, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/pivot-grid-field-chooser.ts b/packages/devextreme-vue/src/pivot-grid-field-chooser.ts index 5065209aa7ec..23811e34bf9c 100644 --- a/packages/devextreme-vue/src/pivot-grid-field-chooser.ts +++ b/packages/devextreme-vue/src/pivot-grid-field-chooser.ts @@ -60,7 +60,7 @@ const componentConfig = { hint: String, hoverStateEnabled: Boolean, layout: { - type: Number, + type: Number as PropType<0 | 1 | 2>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/pivot-grid.ts b/packages/devextreme-vue/src/pivot-grid.ts index 546ef9568b54..8121e3ddf0c6 100644 --- a/packages/devextreme-vue/src/pivot-grid.ts +++ b/packages/devextreme-vue/src/pivot-grid.ts @@ -212,7 +212,7 @@ const DxFieldChooserConfig = { enabled: Boolean, height: Number, layout: { - type: Number, + type: Number as PropType<0 | 1 | 2>, validator: (v) => typeof(v) !== "number" || [ 0, 1, diff --git a/packages/devextreme-vue/src/scheduler.ts b/packages/devextreme-vue/src/scheduler.ts index 18b618fac467..b90c29f6621f 100644 --- a/packages/devextreme-vue/src/scheduler.ts +++ b/packages/devextreme-vue/src/scheduler.ts @@ -137,7 +137,7 @@ const componentConfig = { endDateTimeZoneExpr: String, endDayHour: Number, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1, @@ -458,7 +458,7 @@ const DxViewConfig = { dropDownAppointmentTemplate: {}, endDayHour: Number, firstDayOfWeek: { - type: Number, + type: Number as PropType<0 | 1 | 2 | 3 | 4 | 5 | 6>, validator: (v) => typeof(v) !== "number" || [ 0, 1,