@rebilly/revel 6.30.20 → 6.30.22

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.
package/CHANGELOG.md CHANGED
@@ -1 +1 @@
1
- ## [6.30.20](https://github.com/Rebilly/rebilly/compare/revel-v6.30.19...revel-v6.30.20) (2024-07-16)
1
+ ## [6.30.22](https://github.com/Rebilly/rebilly/compare/revel-v6.30.21...revel-v6.30.22) (2024-07-17)
@@ -1,70 +1,65 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ interface Props {
2
2
  /**
3
- * Allow to submit multiple files
3
+ * Allows the user to select more than one file
4
4
  */
5
- multiple: {
6
- type: BooleanConstructor;
7
- default: boolean;
8
- };
9
- /**
10
- * Limit allowed file extensions
11
- */
12
- accept: {
13
- type: StringConstructor;
14
- default: null;
15
- };
16
- /**
17
- * Similar to native disabled property
18
- */
19
- disabled: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- }, {
24
- inputFile: import("vue").Ref<HTMLInputElement | null>;
25
- }, {
26
- open: boolean;
27
- }, {}, {
28
- /**
29
- * Open picker with files
30
- * This function is passed as slot props so child called using scoped slots in order to work.
31
- */
32
- openFileBrowser(): void;
33
- /**
34
- * Workaround since 'cancel' and 'close' events for file picker are not explicit emitted.
35
- * This function is passed as slot props so child called using scoped slots in order to work.
36
- */
37
- setFocus(): void;
38
- change(event: Event): void;
39
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "input" | "cancel")[], "close" | "input" | "cancel", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
5
+ multiple?: boolean;
40
6
  /**
41
- * Allow to submit multiple files
7
+ * String that defines the file types the file input should accept
42
8
  */
43
- multiple: {
44
- type: BooleanConstructor;
45
- default: boolean;
46
- };
47
- /**
48
- * Limit allowed file extensions
49
- */
50
- accept: {
51
- type: StringConstructor;
52
- default: null;
53
- };
9
+ accept?: string;
54
10
  /**
55
- * Similar to native disabled property
11
+ * Disables the upload action.
56
12
  */
57
- disabled: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- }>> & {
62
- onInput?: ((...args: any[]) => any) | undefined;
63
- onClose?: ((...args: any[]) => any) | undefined;
64
- onCancel?: ((...args: any[]) => any) | undefined;
13
+ disabled?: boolean;
14
+ }
15
+ declare function openFileBrowser(): void;
16
+ declare function setFocus(): void;
17
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ multiple: boolean;
19
+ accept: string;
20
+ disabled: boolean;
21
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
22
+ input: (arg: FileList) => void;
23
+ close: () => void;
24
+ cancel: () => void;
25
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
26
+ multiple: boolean;
27
+ accept: string;
28
+ disabled: boolean;
29
+ }>>> & {
30
+ onInput?: ((arg: FileList) => any) | undefined;
31
+ onClose?: (() => any) | undefined;
32
+ onCancel?: (() => any) | undefined;
65
33
  }, {
66
34
  disabled: boolean;
67
35
  multiple: boolean;
68
36
  accept: string;
37
+ }>, {
38
+ default?(_: {
39
+ openFileBrowser: typeof openFileBrowser;
40
+ setFocus: typeof setFocus;
41
+ }): any;
69
42
  }>;
70
43
  export default _default;
44
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
45
+ type __VLS_TypePropsToRuntimeProps<T> = {
46
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
47
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
48
+ } : {
49
+ type: import('vue').PropType<T[K]>;
50
+ required: true;
51
+ };
52
+ };
53
+ type __VLS_WithDefaults<P, D> = {
54
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
55
+ default: D[K];
56
+ }> : P[K];
57
+ };
58
+ type __VLS_Prettify<T> = {
59
+ [K in keyof T]: T[K];
60
+ } & {};
61
+ type __VLS_WithTemplateSlots<T, S> = T & {
62
+ new (): {
63
+ $slots: S;
64
+ };
65
+ };
@@ -1,69 +1,56 @@
1
- declare const _default: import("vue").DefineComponent<{
1
+ interface Props {
2
2
  /**
3
- * Append text label near checkbox
3
+ * Displays a label for the toggle
4
4
  */
5
- label: {
6
- type: StringConstructor;
7
- default: null;
8
- };
9
- /**
10
- * Native html input name for element
11
- */
12
- name: {
13
- type: StringConstructor;
14
- default: () => string;
15
- };
16
- /**
17
- * Used to decide if checkbox is selected
18
- */
19
- modelValue: {
20
- type: BooleanConstructor;
21
- default: boolean;
22
- };
23
- /**
24
- * Disabled state similar to navite html element
25
- */
26
- disabled: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
30
- }, unknown, unknown, {}, {
31
- change(event: Event): void;
32
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
- /**
34
- * Append text label near checkbox
35
- */
36
- label: {
37
- type: StringConstructor;
38
- default: null;
39
- };
5
+ label?: Nullable<string>;
40
6
  /**
41
- * Native html input name for element
7
+ * Adds a unique id to the toggle
42
8
  */
43
- name: {
44
- type: StringConstructor;
45
- default: () => string;
46
- };
9
+ name?: string;
47
10
  /**
48
- * Used to decide if checkbox is selected
11
+ * Parent model for the component
49
12
  */
50
- modelValue: {
51
- type: BooleanConstructor;
52
- default: boolean;
53
- };
13
+ modelValue?: boolean;
54
14
  /**
55
- * Disabled state similar to navite html element
15
+ * Disables the toggle
56
16
  */
57
- disabled: {
58
- type: BooleanConstructor;
59
- default: boolean;
60
- };
61
- }>> & {
62
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
17
+ disabled?: boolean;
18
+ }
19
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
20
+ label: null;
21
+ name: string;
22
+ modelValue: boolean;
23
+ disabled: boolean;
24
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
+ "update:modelValue": (value: boolean) => void;
26
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
27
+ label: null;
28
+ name: string;
29
+ modelValue: boolean;
30
+ disabled: boolean;
31
+ }>>> & {
32
+ "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
63
33
  }, {
64
- label: string;
34
+ label: Nullable<string>;
65
35
  name: string;
66
36
  disabled: boolean;
67
37
  modelValue: boolean;
68
38
  }>;
69
39
  export default _default;
40
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
+ type __VLS_TypePropsToRuntimeProps<T> = {
42
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
43
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
+ } : {
45
+ type: import('vue').PropType<T[K]>;
46
+ required: true;
47
+ };
48
+ };
49
+ type __VLS_WithDefaults<P, D> = {
50
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
+ default: D[K];
52
+ }> : P[K];
53
+ };
54
+ type __VLS_Prettify<T> = {
55
+ [K in keyof T]: T[K];
56
+ } & {};