@wikicasa-dev/components 2.2.9-alpha.8 → 2.3.0
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/dist/Swiper/autoplay.js +1 -1
- package/dist/Swiper/controller.js +1 -1
- package/dist/Swiper/keyboard.js +1 -1
- package/dist/Swiper/thumbs.js +1 -1
- package/dist/UIKit/AccessibleSelect.d.ts +5 -4
- package/dist/UIKit/AccessibleSelect.js +3 -2
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +7 -2
- package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
- package/dist/UIKit/BaseButton.d.ts +14 -8
- package/dist/UIKit/BaseCard.js +1 -3
- package/dist/UIKit/BaseDropDown.d.ts +19 -13
- package/dist/UIKit/BaseFloatingLabel.js +4 -4
- package/dist/UIKit/BaseInput.d.ts +3 -2
- package/dist/UIKit/BaseInput.js +1 -1
- package/dist/UIKit/BaseSnackbar.d.ts +2 -2
- package/dist/UIKit/BaseTextarea.d.ts +2 -2
- package/dist/UIKit/Checkbox/CheckboxBtn.d.ts +14 -7
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +5 -2
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +40 -0
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +4 -0
- package/dist/UIKit/Radio/RadioButton.d.ts +28 -23
- package/dist/UIKit/Radio/RadioGroup.d.ts +49 -50
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +29 -0
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +4 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +16 -0
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +5 -0
- package/dist/assets/AccessibleSelect.css +1 -0
- package/dist/assets/BaseCard.css +1 -1
- package/dist/assets/BaseDropDown.css +1 -1
- package/dist/assets/BaseFloatingLabel.css +1 -1
- package/dist/assets/BaseInput.css +1 -1
- package/dist/assets/RadioButtonItem.css +1 -0
- package/dist/assets/tailwind.css +1 -1
- package/dist/composables/mock.d.ts +25 -0
- package/dist/composables/mock.js +49 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +92 -83
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +158 -160
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +4 -6
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +112 -106
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +28 -24
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +102 -105
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +65 -64
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +42 -36
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +18 -17
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +50 -37
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +60 -55
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +78 -0
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +16 -14
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +37 -33
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +49 -0
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +45 -0
- package/dist/types/index.d.ts +3 -0
- package/package.json +8 -7
- /package/dist/assets/{swiper-thumbs.css → swiper-keyboard.css} +0 -0
package/dist/Swiper/autoplay.js
CHANGED
package/dist/Swiper/keyboard.js
CHANGED
package/dist/Swiper/thumbs.js
CHANGED
|
@@ -7,11 +7,11 @@ declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
7
7
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
8
8
|
readonly "onUpdate:modelValue"?: ((value: Optional<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
9
9
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
10
|
-
readonly "onUpdate:
|
|
10
|
+
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
11
11
|
readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
12
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onUpdate:
|
|
12
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onUpdate:open" | "onUpdate:dropdownState"> & ({
|
|
13
13
|
modelValue?: Optional<AccessibleSelectOptions<TPayload, TID>>;
|
|
14
|
-
|
|
14
|
+
open?: boolean;
|
|
15
15
|
} & {
|
|
16
16
|
label?: string;
|
|
17
17
|
dropdownPosition?: "top" | "bottom";
|
|
@@ -27,6 +27,7 @@ declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
27
27
|
*/
|
|
28
28
|
closeOnBodyPressed?: boolean;
|
|
29
29
|
border?: boolean;
|
|
30
|
+
withFieldset?: boolean;
|
|
30
31
|
fieldsetClasses?: ClassTypeProp;
|
|
31
32
|
legendClasses?: ClassTypeProp;
|
|
32
33
|
dropdownClasses?: ClassTypeProp;
|
|
@@ -48,7 +49,7 @@ declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
48
49
|
slots: {
|
|
49
50
|
lefticon?(_: {}): any;
|
|
50
51
|
};
|
|
51
|
-
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "update:dropdownState", args_0: boolean) => void)) & (((evt: "update:modelValue", value: Optional<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:
|
|
52
|
+
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "update:dropdownState", args_0: boolean) => void)) & (((evt: "update:modelValue", value: Optional<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void));
|
|
52
53
|
}>) => import('vue').VNode & {
|
|
53
54
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
54
55
|
};
|
|
@@ -8,25 +8,30 @@ export interface ClearableAutocompleteProps<TID extends string | number | undefi
|
|
|
8
8
|
triggerWrapperClasses?: ClassTypeProp;
|
|
9
9
|
inputWrapperClasses?: ClassTypeProp;
|
|
10
10
|
inputClasses?: ClassTypeProp;
|
|
11
|
+
hiddenTextClasses?: ClassTypeProp;
|
|
11
12
|
dropdownClasses?: ClassTypeProp;
|
|
12
13
|
clearButton?: {
|
|
13
14
|
classes?: ClassTypeProp;
|
|
14
15
|
/** Space between the input element and the clear button */
|
|
15
16
|
offset?: number;
|
|
17
|
+
width?: number;
|
|
18
|
+
height?: number;
|
|
16
19
|
};
|
|
17
20
|
keepState?: Nullable<"closed" | "open">;
|
|
21
|
+
disableCb?: boolean;
|
|
18
22
|
onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
|
|
19
23
|
onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
|
|
20
24
|
}
|
|
21
25
|
declare const _default: <TID extends string | number | undefined, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
22
26
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
23
27
|
readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
28
|
+
readonly onInput?: ((args_0: InputEvent) => any) | undefined;
|
|
24
29
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
25
30
|
readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
26
31
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
27
32
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
28
33
|
readonly onInputClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
29
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
|
|
34
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onInput" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
|
|
30
35
|
open?: boolean;
|
|
31
36
|
modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
|
|
32
37
|
inputValue?: string;
|
|
@@ -46,7 +51,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
46
51
|
idx: number;
|
|
47
52
|
}): any;
|
|
48
53
|
};
|
|
49
|
-
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "inputClick", args_0: MouseEvent) => void)) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:inputValue", value: string) => void));
|
|
54
|
+
emit: (((evt: "input", args_0: InputEvent) => void) & ((evt: "click", args_0: MouseEvent) => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "inputClick", args_0: MouseEvent) => void)) & (((evt: "update:modelValue", value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => void) & ((evt: "update:open", value: boolean) => void) & ((evt: "update:inputValue", value: string) => void));
|
|
50
55
|
}>) => import('vue').VNode & {
|
|
51
56
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
52
57
|
};
|
|
@@ -6,8 +6,8 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
6
6
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
7
7
|
readonly "onUpdate:modelValue"?: ((value: AccessibleSelectOptions<TPayload, TID> | undefined) => any) | undefined;
|
|
8
8
|
readonly onClick?: (() => any) | undefined;
|
|
9
|
-
readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
10
9
|
readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
10
|
+
readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
11
11
|
readonly onKeydownEnterPressed?: (() => any) | undefined;
|
|
12
12
|
readonly onChangedValue?: ((args_0: string) => any) | undefined;
|
|
13
13
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:dropdownState" | "onKeydownEnterPressed" | "onChangedValue"> & ({
|
|
@@ -17,7 +17,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
17
17
|
theme?: BaseAutocompleteThemes;
|
|
18
18
|
label?: string;
|
|
19
19
|
disableCb?: boolean;
|
|
20
|
-
onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
|
|
20
|
+
onInputChangeCb: (v: string | null) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
|
|
21
21
|
onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
|
|
22
22
|
keepState?: Nullable<"closed" | "open">;
|
|
23
23
|
cleanupOnClose?: boolean;
|
|
@@ -40,11 +40,11 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
40
40
|
handleClean: () => void;
|
|
41
41
|
}): any;
|
|
42
42
|
'option-content'?(_: {
|
|
43
|
-
option:
|
|
43
|
+
option: AccessibleSelectOptions<TPayload, TID>;
|
|
44
44
|
idx: number;
|
|
45
45
|
}): any;
|
|
46
46
|
};
|
|
47
|
-
emit: (((evt: "click") => void) & ((evt: "
|
|
47
|
+
emit: (((evt: "click") => void) & ((evt: "keydown", args_0: KeyboardEvent) => void) & ((evt: "update:dropdownState", args_0: boolean) => void) & ((evt: "keydownEnterPressed") => void) & ((evt: "changedValue", args_0: string) => void)) & ((evt: "update:modelValue", value: AccessibleSelectOptions<TPayload, TID> | undefined) => void);
|
|
48
48
|
}>) => import('vue').VNode & {
|
|
49
49
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
50
50
|
};
|
|
@@ -16,10 +16,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
16
16
|
title?: string;
|
|
17
17
|
dataCy?: string;
|
|
18
18
|
type?: "button" | "submit" | "reset" | undefined;
|
|
19
|
-
}, {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
}, {
|
|
20
|
+
getRootElement: () => HTMLButtonElement | null;
|
|
21
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
click: (e: MouseEvent) => any;
|
|
23
|
+
mouseover: (e: MouseEvent) => any;
|
|
24
|
+
mouseout: (e: MouseEvent) => any;
|
|
25
|
+
keydown: (e: KeyboardEvent) => any;
|
|
23
26
|
}, string, import('vue').PublicProps, Readonly<{
|
|
24
27
|
btnClass?: ButtonType;
|
|
25
28
|
outlined?: boolean;
|
|
@@ -36,10 +39,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
36
39
|
dataCy?: string;
|
|
37
40
|
type?: "button" | "submit" | "reset" | undefined;
|
|
38
41
|
}> & Readonly<{
|
|
39
|
-
onClick?: ((e:
|
|
40
|
-
onMouseover?: ((e:
|
|
41
|
-
onMouseout?: ((e:
|
|
42
|
-
|
|
42
|
+
onClick?: ((e: MouseEvent) => any) | undefined;
|
|
43
|
+
onMouseover?: ((e: MouseEvent) => any) | undefined;
|
|
44
|
+
onMouseout?: ((e: MouseEvent) => any) | undefined;
|
|
45
|
+
onKeydown?: ((e: KeyboardEvent) => any) | undefined;
|
|
46
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
47
|
+
buttonEl: HTMLButtonElement;
|
|
48
|
+
}, HTMLButtonElement>, {
|
|
43
49
|
default?(_: {
|
|
44
50
|
hover: boolean;
|
|
45
51
|
}): any;
|
package/dist/UIKit/BaseCard.js
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import o from "../packages/components/lib/UIKit/BaseCard.vue.js";
|
|
2
2
|
import '../assets/BaseCard.css';/* empty css */
|
|
3
|
-
import a from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ a(o, [["__scopeId", "data-v-bf21cda3"]]);
|
|
5
3
|
export {
|
|
6
|
-
|
|
4
|
+
o as default
|
|
7
5
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { Nullable
|
|
1
|
+
import { Nullable } from '@wikicasa-dev/types';
|
|
2
2
|
import { ClassTypeProp } from './types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
+
dropdownAttrs?: Record<string, unknown>;
|
|
4
5
|
dropdownClasses?: ClassTypeProp;
|
|
5
|
-
btnClasses?:
|
|
6
|
+
btnClasses?: ClassTypeProp;
|
|
6
7
|
withArrowIcon?: boolean;
|
|
7
8
|
btnLabel?: string;
|
|
8
9
|
labelClasses?: ClassTypeProp;
|
|
@@ -10,19 +11,22 @@ type __VLS_Props = {
|
|
|
10
11
|
arrowWidth?: number;
|
|
11
12
|
arrowStrokeColor?: `#${string}`;
|
|
12
13
|
isAbsolute?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated Use v-model:toggleDropdown instead
|
|
15
|
-
*/
|
|
16
|
-
openDropdown?: boolean;
|
|
17
14
|
closeWhenClickedOutside?: boolean;
|
|
18
15
|
dropdownElement?: "div" | "ul" | "ol";
|
|
19
16
|
keepState?: "opened" | "closed" | "";
|
|
20
17
|
activateKeyboardController?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* List of keys that will close the dropdown.
|
|
20
|
+
*
|
|
21
|
+
* @link For the full list of keys, see https://developer.mozilla.org/en-US/docs/Web/API/UI_Events/Keyboard_event_key_values
|
|
22
|
+
* @default "Escape" and "Enter"
|
|
23
|
+
*/
|
|
24
|
+
closeKeys?: false | string[];
|
|
21
25
|
dataCy?: string;
|
|
22
26
|
};
|
|
23
27
|
type __VLS_PublicProps = {
|
|
24
|
-
"toggleDropdown"?: Optional<boolean>;
|
|
25
28
|
"resetKeyboardController"?: boolean;
|
|
29
|
+
"open"?: boolean;
|
|
26
30
|
} & __VLS_Props;
|
|
27
31
|
declare function __VLS_template(): {
|
|
28
32
|
attrs: Partial<{}>;
|
|
@@ -30,6 +34,9 @@ declare function __VLS_template(): {
|
|
|
30
34
|
btn_slot?(_: {
|
|
31
35
|
toggleDropdown: () => void;
|
|
32
36
|
isOpen: boolean;
|
|
37
|
+
activeIdx: number;
|
|
38
|
+
setActiveIdx: (idx?: Nullable<number>) => void;
|
|
39
|
+
setSelectedIdx: (idx?: Nullable<number>) => void;
|
|
33
40
|
}): any;
|
|
34
41
|
default?(_: {
|
|
35
42
|
isOpen: boolean;
|
|
@@ -51,28 +58,27 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
51
58
|
activeIdx: import('vue').Ref<number, number>;
|
|
52
59
|
selectedIdx: import('vue').Ref<number, number>;
|
|
53
60
|
getRootElement: () => HTMLDivElement | null;
|
|
61
|
+
getContentElement: () => HTMLElement | null;
|
|
54
62
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
63
|
click: () => any;
|
|
56
|
-
"update:toggleDropdown": (value: Optional<boolean>) => any;
|
|
57
|
-
"update:dropdownState": (args_0: boolean) => any;
|
|
58
64
|
"update:resetKeyboardController": (value: boolean) => any;
|
|
65
|
+
"update:open": (value: boolean) => any;
|
|
59
66
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
60
67
|
onClick?: (() => any) | undefined;
|
|
61
|
-
"onUpdate:toggleDropdown"?: ((value: Optional<boolean>) => any) | undefined;
|
|
62
|
-
"onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
63
68
|
"onUpdate:resetKeyboardController"?: ((value: boolean) => any) | undefined;
|
|
69
|
+
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
64
70
|
}>, {
|
|
65
71
|
arrowWidth: number;
|
|
66
72
|
dataCy: string;
|
|
67
73
|
labelClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
74
|
+
closeKeys: false | string[];
|
|
68
75
|
dropdownClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
69
|
-
btnClasses: string;
|
|
76
|
+
btnClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
70
77
|
withArrowIcon: boolean;
|
|
71
78
|
btnLabel: string;
|
|
72
79
|
direction: "up" | "down";
|
|
73
80
|
arrowStrokeColor: `#${string}`;
|
|
74
81
|
isAbsolute: boolean;
|
|
75
|
-
openDropdown: boolean;
|
|
76
82
|
closeWhenClickedOutside: boolean;
|
|
77
83
|
dropdownElement: "div" | "ul" | "ol";
|
|
78
84
|
keepState: "opened" | "closed" | "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import o from "../packages/components/lib/UIKit/BaseFloatingLabel.vue.js";
|
|
2
2
|
import '../assets/BaseFloatingLabel.css';/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const c = /* @__PURE__ */ t(o, [["__scopeId", "data-v-c94b9c9e"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
c as default
|
|
7
7
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Nullable, InputTypeHTMLAttribute } from '@wikicasa-dev/types';
|
|
2
2
|
import { ClassType, ClassTypeProp, FeedbackLabels } from './types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
+
id?: string;
|
|
4
5
|
inputClass?: ClassType | ClassType[];
|
|
5
6
|
labelText?: string;
|
|
6
7
|
feedback?: FeedbackLabels;
|
|
@@ -43,17 +44,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
43
44
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
44
45
|
"update:modelValue": (value: string | number | undefined) => any;
|
|
45
46
|
click: (args_0: MouseEvent) => any;
|
|
47
|
+
keydown: (args_0: KeyboardEvent) => any;
|
|
46
48
|
focusin: () => any;
|
|
47
49
|
focusout: () => any;
|
|
48
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
49
50
|
keyup: (args_0: KeyboardEvent) => any;
|
|
50
51
|
keydownEnterPressed: () => any;
|
|
51
52
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
52
53
|
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
53
54
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
55
|
+
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
54
56
|
onFocusin?: (() => any) | undefined;
|
|
55
57
|
onFocusout?: (() => any) | undefined;
|
|
56
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
57
58
|
onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
58
59
|
onKeydownEnterPressed?: (() => any) | undefined;
|
|
59
60
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
package/dist/UIKit/BaseInput.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "../packages/components/lib/UIKit/BaseInput.vue.js";
|
|
2
2
|
import '../assets/BaseInput.css';/* empty css */
|
|
3
3
|
import t from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-
|
|
4
|
+
const m = /* @__PURE__ */ t(o, [["__scopeId", "data-v-9dab04c5"]]);
|
|
5
5
|
export {
|
|
6
6
|
m as default
|
|
7
7
|
};
|
|
@@ -33,14 +33,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
33
33
|
open?: Optional<boolean>;
|
|
34
34
|
refresh?: Optional<boolean>;
|
|
35
35
|
} & SnackbarProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
36
|
-
"update:open": (value: Optional<boolean>) => any;
|
|
37
36
|
"update:refresh": (value: Optional<boolean>) => any;
|
|
37
|
+
"update:open": (value: Optional<boolean>) => any;
|
|
38
38
|
}, string, import('vue').PublicProps, Readonly<{
|
|
39
39
|
open?: Optional<boolean>;
|
|
40
40
|
refresh?: Optional<boolean>;
|
|
41
41
|
} & SnackbarProps> & Readonly<{
|
|
42
|
-
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
42
|
"onUpdate:refresh"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
|
+
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
44
44
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
45
45
|
trigger?(_: {
|
|
46
46
|
open: () => boolean;
|
|
@@ -17,15 +17,15 @@ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
|
|
|
17
17
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
18
18
|
"update:modelValue": (value: string | undefined) => any;
|
|
19
19
|
click: (args_0: MouseEvent) => any;
|
|
20
|
+
keydown: (args_0: KeyboardEvent) => any;
|
|
20
21
|
focusin: () => any;
|
|
21
22
|
focusout: () => any;
|
|
22
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
24
24
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
25
25
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
26
|
+
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
26
27
|
onFocusin?: (() => any) | undefined;
|
|
27
28
|
onFocusout?: (() => any) | undefined;
|
|
28
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
29
29
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
30
30
|
textarea: HTMLTextAreaElement;
|
|
31
31
|
}, any>;
|
|
@@ -1,14 +1,21 @@
|
|
|
1
1
|
import { ClassTypeProp } from '../types';
|
|
2
|
+
import { AcceptableValue } from 'reka-ui';
|
|
3
|
+
export type CheckboxBtnExposeType = {
|
|
4
|
+
getRootElement: () => HTMLElement | null;
|
|
5
|
+
getCheckboxElement: () => HTMLElement;
|
|
6
|
+
};
|
|
2
7
|
declare const _default: <TID extends string | number, TLabel extends string | number>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
8
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
-
readonly "onUpdate:modelValue"?: ((
|
|
9
|
+
readonly "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
5
10
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
6
11
|
readonly onChange?: ((args_0: {
|
|
7
12
|
id: TID;
|
|
8
13
|
label: TLabel;
|
|
9
14
|
checked: boolean;
|
|
10
15
|
}) => any) | undefined;
|
|
11
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onChange"> & {
|
|
16
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onChange"> & ({
|
|
17
|
+
modelValue?: boolean;
|
|
18
|
+
} & {
|
|
12
19
|
id?: TID;
|
|
13
20
|
dataCy?: string;
|
|
14
21
|
disabled?: boolean;
|
|
@@ -19,18 +26,18 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
19
26
|
required?: boolean;
|
|
20
27
|
inputClass?: ClassTypeProp;
|
|
21
28
|
label?: TLabel;
|
|
22
|
-
|
|
23
|
-
} & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
-
expose(exposed: import('vue').ShallowUnwrapRef<
|
|
29
|
+
value?: AcceptableValue;
|
|
30
|
+
}) & Partial<{}>> & import('vue').PublicProps;
|
|
31
|
+
expose(exposed: import('vue').ShallowUnwrapRef<CheckboxBtnExposeType>): void;
|
|
25
32
|
attrs: any;
|
|
26
33
|
slots: {
|
|
27
34
|
label?(_: {}): any;
|
|
28
35
|
};
|
|
29
|
-
emit: ((
|
|
36
|
+
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "change", args_0: {
|
|
30
37
|
id: TID;
|
|
31
38
|
label: TLabel;
|
|
32
39
|
checked: boolean;
|
|
33
|
-
}) => void);
|
|
40
|
+
}) => void)) & ((evt: "update:modelValue", value: boolean) => void);
|
|
34
41
|
}>) => import('vue').VNode & {
|
|
35
42
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
36
43
|
};
|
|
@@ -34,9 +34,12 @@ export type CheckboxGroupProps<TID = string | number, TLabel = string | number,
|
|
|
34
34
|
declare const _default: <TID extends string | number, TLabel extends string | number, TPayload>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
35
35
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
36
36
|
readonly "onUpdate:modelValue"?: ((args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => any) | undefined;
|
|
37
|
+
readonly "onUpdate:refresh"?: ((value: boolean) => any) | undefined;
|
|
37
38
|
readonly onResetted?: (() => any) | undefined;
|
|
38
39
|
readonly onCheckedGroup?: ((args_0: string) => any) | undefined;
|
|
39
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onResetted" | "onCheckedGroup"> &
|
|
40
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onUpdate:refresh" | "onResetted" | "onCheckedGroup"> & ({
|
|
41
|
+
refresh?: boolean;
|
|
42
|
+
} & CheckboxGroupProps<TID, TLabel, TPayload>) & Partial<{}>> & import('vue').PublicProps;
|
|
40
43
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
41
44
|
attrs: any;
|
|
42
45
|
slots: {
|
|
@@ -52,7 +55,7 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
52
55
|
reset: () => void;
|
|
53
56
|
}): any;
|
|
54
57
|
};
|
|
55
|
-
emit: ((evt: "update:modelValue", args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => void) & ((evt: "resetted") => void) & ((evt: "checkedGroup", args_0: string) => void);
|
|
58
|
+
emit: (((evt: "update:modelValue", args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => void) & ((evt: "resetted") => void) & ((evt: "checkedGroup", args_0: string) => void)) & ((evt: "update:refresh", value: boolean) => void);
|
|
56
59
|
}>) => import('vue').VNode & {
|
|
57
60
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
58
61
|
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { CheckboxRootProps, AcceptableValue } from 'reka-ui';
|
|
2
|
+
export interface CheckboxButtonGroupProps {
|
|
3
|
+
dataCy?: string;
|
|
4
|
+
items?: CheckboxButtonItem[];
|
|
5
|
+
/**
|
|
6
|
+
* Value of the reset button
|
|
7
|
+
*/
|
|
8
|
+
resetValue?: AcceptableValue;
|
|
9
|
+
}
|
|
10
|
+
export interface CheckboxButtonItem {
|
|
11
|
+
dataCy?: string;
|
|
12
|
+
value: CheckboxRootProps["value"];
|
|
13
|
+
required?: boolean;
|
|
14
|
+
label: string;
|
|
15
|
+
}
|
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
17
|
+
modelValue?: NonNullable<AcceptableValue>[];
|
|
18
|
+
reset?: boolean;
|
|
19
|
+
} & CheckboxButtonGroupProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
"update:modelValue": (value: NonNullable<AcceptableValue>[]) => any;
|
|
21
|
+
"update:reset": (value: boolean) => any;
|
|
22
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
23
|
+
modelValue?: NonNullable<AcceptableValue>[];
|
|
24
|
+
reset?: boolean;
|
|
25
|
+
} & CheckboxButtonGroupProps> & Readonly<{
|
|
26
|
+
"onUpdate:modelValue"?: ((value: NonNullable<AcceptableValue>[]) => any) | undefined;
|
|
27
|
+
"onUpdate:reset"?: ((value: boolean) => any) | undefined;
|
|
28
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, {
|
|
29
|
+
default?(_: {
|
|
30
|
+
isChecked: (value: CheckboxRootProps["value"]) => boolean;
|
|
31
|
+
handleCheck: (value: CheckboxRootProps["value"], checked: boolean) => void;
|
|
32
|
+
handleResetCheck: (checked: boolean) => void;
|
|
33
|
+
}): any;
|
|
34
|
+
}>;
|
|
35
|
+
export default _default;
|
|
36
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
37
|
+
new (): {
|
|
38
|
+
$slots: S;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
@@ -1,28 +1,33 @@
|
|
|
1
|
-
import { Nullable } from '@wikicasa-dev/types';
|
|
2
1
|
import { ClassTypeProp } from '../types';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
id: string | number;
|
|
15
|
-
label: string;
|
|
2
|
+
declare const _default: <TID extends string | number | null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
3
|
+
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
5
|
+
readonly onChange?: ((args_0: {
|
|
6
|
+
id: NonNullable<TID>;
|
|
7
|
+
label: string;
|
|
8
|
+
name?: string;
|
|
9
|
+
}) => any) | undefined;
|
|
10
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onChange"> & {
|
|
11
|
+
id?: TID;
|
|
12
|
+
dataCy?: string;
|
|
16
13
|
name?: string;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
14
|
+
label: string;
|
|
15
|
+
modelValue?: boolean;
|
|
16
|
+
inputClasses?: ClassTypeProp;
|
|
17
|
+
labelClasses?: ClassTypeProp;
|
|
18
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
19
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
20
|
+
attrs: any;
|
|
21
|
+
slots: {};
|
|
22
|
+
emit: ((evt: "update:modelValue", args_0: boolean) => void) & ((evt: "change", args_0: {
|
|
23
|
+
id: NonNullable<TID>;
|
|
22
24
|
label: string;
|
|
23
25
|
name?: string;
|
|
24
|
-
}) =>
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
}
|
|
26
|
+
}) => void);
|
|
27
|
+
}>) => import('vue').VNode & {
|
|
28
|
+
__ctx?: Awaited<typeof __VLS_setup>;
|
|
29
|
+
};
|
|
28
30
|
export default _default;
|
|
31
|
+
type __VLS_PrettifyLocal<T> = {
|
|
32
|
+
[K in keyof T]: T[K];
|
|
33
|
+
} & {};
|