survey-vue3-ui 1.9.116 → 1.9.118

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,12 +2,10 @@ import type { ItemValue, QuestionCheckboxModel } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  question: QuestionCheckboxModel;
4
4
  item: ItemValue;
5
- index: string | number;
6
5
  hideLabel?: boolean;
7
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
7
  question: QuestionCheckboxModel;
9
8
  item: ItemValue;
10
- index: string | number;
11
9
  hideLabel?: boolean;
12
10
  }>>>, {}, {}>;
13
11
  export default _default;
@@ -1,12 +1,10 @@
1
- import type { SurveyModel, Question, QuestionRowModel, PanelModel } from "survey-core";
1
+ import type { QuestionRowModel, SurveyElement } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- survey: SurveyModel;
4
- element: Question | PanelModel;
3
+ element: SurveyElement;
5
4
  row: QuestionRowModel;
6
5
  css?: any;
7
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
- survey: SurveyModel;
9
- element: Question | PanelModel;
7
+ element: SurveyElement;
10
8
  row: QuestionRowModel;
11
9
  css?: any;
12
10
  }>>>, {}, {}>;
@@ -0,0 +1,16 @@
1
+ import type { SurveyModel } from "survey-core";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ data: SurveyModel;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ data: SurveyModel;
6
+ }>>>, {}, {}>;
7
+ export default _default;
8
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -1,10 +1,10 @@
1
1
  import type { PanelModel } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- question: PanelModel;
3
+ element: PanelModel;
4
4
  isEditMode?: boolean;
5
5
  css?: any;
6
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
- question: PanelModel;
7
+ element: PanelModel;
8
8
  isEditMode?: boolean;
9
9
  css?: any;
10
10
  }>>>, {}, {}>;
@@ -0,0 +1,20 @@
1
+ import type { SurveyModel, Question } from "survey-core";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ survey: SurveyModel;
4
+ element: Question;
5
+ css?: any;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ survey: SurveyModel;
8
+ element: Question;
9
+ css?: any;
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -1,8 +1,8 @@
1
- import type { QuestionRadiogroupModel } from "survey-core";
1
+ import type { QuestionCheckboxModel } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
- question: QuestionRadiogroupModel;
3
+ question: QuestionCheckboxModel;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
- question: QuestionRadiogroupModel;
5
+ question: QuestionCheckboxModel;
6
6
  }>>>, {}, {}>;
7
7
  export default _default;
8
8
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -2,12 +2,10 @@ import type { ItemValue, QuestionRadiogroupModel } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  question: QuestionRadiogroupModel;
4
4
  item: ItemValue;
5
- index: string | number;
6
5
  hideLabel?: boolean;
7
6
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
8
7
  question: QuestionRadiogroupModel;
9
8
  item: ItemValue;
10
- index: string | number;
11
9
  hideLabel?: boolean;
12
10
  }>>>, {}, {}>;
13
11
  export default _default;
@@ -1,19 +1,11 @@
1
- import type { ItemValue, LocalizableString, QuestionRankingModel } from "survey-core";
1
+ import type { ItemValue, QuestionRankingModel } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  index: number;
4
- indexText: string;
5
- text: LocalizableString;
6
- handleKeydown?: Function;
7
- cssClasses: any;
8
4
  question: QuestionRankingModel;
9
5
  item: ItemValue;
10
6
  unrankedItem?: boolean;
11
7
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
12
8
  index: number;
13
- indexText: string;
14
- text: LocalizableString;
15
- handleKeydown?: Function;
16
- cssClasses: any;
17
9
  question: QuestionRankingModel;
18
10
  item: ItemValue;
19
11
  unrankedItem?: boolean;
@@ -0,0 +1,18 @@
1
+ import type { QuestionCheckboxModel, QuestionRadiogroupModel } from "survey-core";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ question: QuestionRadiogroupModel | QuestionCheckboxModel;
4
+ showLegend?: boolean;
5
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ question: QuestionRadiogroupModel | QuestionCheckboxModel;
7
+ showLegend?: boolean;
8
+ }>>>, {}, {}>;
9
+ export default _default;
10
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
@@ -0,0 +1,24 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ componentName?: string;
3
+ componentData: any;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ componentName?: string;
6
+ componentData: any;
7
+ }>>>, {}, {}>, {
8
+ default?(_: {}): any;
9
+ }>;
10
+ export default _default;
11
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
21
+ new (): {
22
+ $slots: S;
23
+ };
24
+ };
package/types/base.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Base, Question, LocalizableString } from "survey-core";
2
2
  import { type Ref } from "vue";
3
- export declare function useBase<T extends Base>(getModel: () => T, onModelChanged?: (newValue: T) => void, clean?: (model: T) => void): void;
3
+ export declare function useBase<T extends Base>(getModel: () => T, onModelChanged?: (newValue: T, oldValue?: T) => void, clean?: (model: T) => void): void;
4
4
  export declare function useQuestion<T extends Question>(props: {
5
5
  question: T;
6
6
  }, root: Ref, onQuestionChanged?: (newValue: T) => void, clean?: (question: T) => void): void;
@@ -0,0 +1,16 @@
1
+ import type { QuestionButtonGroupModel } from "survey-core";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ question: QuestionButtonGroupModel;
4
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
+ question: QuestionButtonGroupModel;
6
+ }>>>, {}, {}>;
7
+ export default _default;
8
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
10
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
11
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
12
+ } : {
13
+ type: import('vue').PropType<T[K]>;
14
+ required: true;
15
+ };
16
+ };
@@ -0,0 +1,20 @@
1
+ import { QuestionButtonGroupModel, type ItemValue } from "survey-core";
2
+ declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
+ item: ItemValue;
4
+ question: QuestionButtonGroupModel;
5
+ index: number;
6
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
7
+ item: ItemValue;
8
+ question: QuestionButtonGroupModel;
9
+ index: number;
10
+ }>>>, {}, {}>;
11
+ export default _default;
12
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
14
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
15
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
16
+ } : {
17
+ type: import('vue').PropType<T[K]>;
18
+ required: true;
19
+ };
20
+ };
@@ -1,13 +1,19 @@
1
1
  import type { ActionContainer } from "survey-core";
2
- declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  model: ActionContainer;
4
4
  container?: string;
5
5
  handleClick?: boolean;
6
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
6
+ }>, {
7
+ handleClick: boolean;
8
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
7
9
  model: ActionContainer;
8
10
  container?: string;
9
11
  handleClick?: boolean;
10
- }>>>, {}, {}>;
12
+ }>, {
13
+ handleClick: boolean;
14
+ }>>>, {
15
+ handleClick: boolean;
16
+ }, {}>;
11
17
  export default _default;
12
18
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
19
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -18,3 +24,11 @@ declare type __VLS_TypePropsToRuntimeProps<T> = {
18
24
  required: true;
19
25
  };
20
26
  };
27
+ declare type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
29
+ default: D[K];
30
+ }> : P[K];
31
+ };
32
+ declare type __VLS_Prettify<T> = {
33
+ [K in keyof T]: T[K];
34
+ } & {};
@@ -1,4 +1,4 @@
1
- import { SurveyModel, Cover } from "survey-core";
1
+ import type { SurveyModel, Cover } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  model: Cover;
4
4
  survey: SurveyModel;
@@ -1,4 +1,4 @@
1
- import { CoverCell } from "survey-core";
1
+ import type { CoverCell } from "survey-core";
2
2
  declare const _default: import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<{
3
3
  model: CoverCell;
4
4
  }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{