@rebilly/revel 6.30.26 → 6.30.27

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.26](https://github.com/Rebilly/rebilly/compare/revel-v6.30.25...revel-v6.30.26) (2024-07-19)
1
+ ## [6.30.27](https://github.com/Rebilly/rebilly/compare/revel-v6.30.26...revel-v6.30.27) (2024-07-19)
@@ -1,148 +1,94 @@
1
- import { type PropType } from 'vue';
2
1
  import type { ValidationState } from '../../types';
3
- declare const _default: import("vue").DefineComponent<{
2
+ interface Props {
4
3
  /**
5
4
  * Label for the checkbox
6
5
  */
7
- label: {
8
- type: StringConstructor;
9
- default: string;
10
- };
6
+ label?: string;
11
7
  /**
12
8
  * Unique id of the checkbox
13
9
  */
14
- id: {
15
- type: StringConstructor;
16
- default: () => string;
17
- };
10
+ id?: string;
18
11
  /**
19
12
  * A text to describe the checkbox
20
13
  */
21
- caption: {
22
- type: StringConstructor;
23
- default: null;
24
- };
14
+ caption?: string;
25
15
  /**
26
16
  * Actual parent model for the component
27
17
  * @model
28
18
  */
29
- modelValue: {
30
- type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
31
- default: boolean;
32
- };
19
+ modelValue?: string | number | boolean | string[];
33
20
  /**
34
21
  * Used to decide if checkbox is selected. If this value exists
35
22
  * in the v-model (array) or equals it, the checkbox shows as checked.
36
23
  */
37
- value: {
38
- type: (BooleanConstructor | StringConstructor)[];
39
- default: string;
40
- };
24
+ value?: string | boolean;
41
25
  /**
42
26
  * Semi-selected state
43
27
  */
44
- fuzzy: {
45
- type: BooleanConstructor;
46
- default: boolean;
47
- };
28
+ fuzzy?: boolean;
48
29
  /**
49
30
  * Disable checkbox
50
31
  */
51
- disabled: {
52
- type: BooleanConstructor;
53
- default: boolean;
54
- };
32
+ disabled?: boolean;
55
33
  /**
56
34
  * Validation result sent by Vuelidate
57
35
  */
58
- validate: {
59
- type: PropType<ValidationState>;
60
- default: null;
61
- };
62
- }, unknown, unknown, {
63
- isInvalid(): boolean;
64
- isChecked(): boolean;
65
- checkIcon(): "dash-l" | "checkbox-checkmark";
66
- }, {
67
- /**
68
- * Method used to calculate the modified internal state *after* user action.
69
- *
70
- * This method is (and must be) used *only* when the checkbox is clicked by the user (@see change).
71
- * Checkbox does not keep internal state - it calculates it based on the properties passed.
72
- * Therfore on update, it sends the opposite of the current state (as the user has just changed it).
73
- * It's up to the parent to update it's model and pass the new value as property, so the checkbox can update itself.
74
- */
75
- getNegateInternalState(): boolean | unknown[];
76
- change(): void;
77
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
78
- /**
79
- * Label for the checkbox
80
- */
81
- label: {
82
- type: StringConstructor;
83
- default: string;
84
- };
85
- /**
86
- * Unique id of the checkbox
87
- */
88
- id: {
89
- type: StringConstructor;
90
- default: () => string;
91
- };
92
- /**
93
- * A text to describe the checkbox
94
- */
95
- caption: {
96
- type: StringConstructor;
97
- default: null;
98
- };
99
- /**
100
- * Actual parent model for the component
101
- * @model
102
- */
103
- modelValue: {
104
- type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
105
- default: boolean;
106
- };
107
- /**
108
- * Used to decide if checkbox is selected. If this value exists
109
- * in the v-model (array) or equals it, the checkbox shows as checked.
110
- */
111
- value: {
112
- type: (BooleanConstructor | StringConstructor)[];
113
- default: string;
114
- };
115
- /**
116
- * Semi-selected state
117
- */
118
- fuzzy: {
119
- type: BooleanConstructor;
120
- default: boolean;
121
- };
122
- /**
123
- * Disable checkbox
124
- */
125
- disabled: {
126
- type: BooleanConstructor;
127
- default: boolean;
128
- };
129
- /**
130
- * Validation result sent by Vuelidate
131
- */
132
- validate: {
133
- type: PropType<ValidationState>;
134
- default: null;
135
- };
136
- }>> & {
137
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
36
+ validate?: ValidationState;
37
+ }
38
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
39
+ label: string;
40
+ id: () => string;
41
+ caption: undefined;
42
+ modelValue: boolean;
43
+ value: string;
44
+ fuzzy: boolean;
45
+ disabled: boolean;
46
+ validate: undefined;
47
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
48
+ "update:modelValue": (value: string | number | boolean | string[]) => void;
49
+ }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
50
+ label: string;
51
+ id: () => string;
52
+ caption: undefined;
53
+ modelValue: boolean;
54
+ value: string;
55
+ fuzzy: boolean;
56
+ disabled: boolean;
57
+ validate: undefined;
58
+ }>>> & {
59
+ "onUpdate:modelValue"?: ((value: string | number | boolean | string[]) => any) | undefined;
138
60
  }, {
139
61
  id: string;
140
62
  caption: string;
141
63
  label: string;
142
64
  disabled: boolean;
143
65
  value: string | boolean;
144
- modelValue: string | number | boolean | unknown[];
66
+ modelValue: string | number | boolean | string[];
145
67
  fuzzy: boolean;
146
68
  validate: ValidationState;
69
+ }>, {
70
+ label?(_: {}): any;
147
71
  }>;
148
72
  export default _default;
73
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
74
+ type __VLS_TypePropsToRuntimeProps<T> = {
75
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
76
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
77
+ } : {
78
+ type: import('vue').PropType<T[K]>;
79
+ required: true;
80
+ };
81
+ };
82
+ type __VLS_WithDefaults<P, D> = {
83
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
84
+ default: D[K];
85
+ }> : P[K];
86
+ };
87
+ type __VLS_Prettify<T> = {
88
+ [K in keyof T]: T[K];
89
+ } & {};
90
+ type __VLS_WithTemplateSlots<T, S> = T & {
91
+ new (): {
92
+ $slots: S;
93
+ };
94
+ };