@wikicasa-dev/components 2.2.9-alpha.66 → 2.2.9-alpha.7
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 +4 -5
- package/dist/UIKit/AccessibleSelect.js +2 -3
- package/dist/UIKit/Autocomplete/ClearableAutocomplete.d.ts +2 -7
- package/dist/UIKit/BaseAutocomplete.d.ts +4 -4
- package/dist/UIKit/BaseButton.d.ts +8 -14
- package/dist/UIKit/BaseCard.js +3 -1
- package/dist/UIKit/BaseDropDown.d.ts +11 -17
- package/dist/UIKit/BaseFloatingLabel.js +4 -4
- package/dist/UIKit/BaseInput.d.ts +2 -3
- 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 +7 -14
- package/dist/UIKit/Checkbox/CheckboxGroup.d.ts +2 -5
- package/dist/UIKit/Radio/RadioButton.d.ts +23 -28
- package/dist/UIKit/Radio/RadioGroup.d.ts +50 -49
- 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/tailwind.css +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +83 -92
- package/dist/packages/components/lib/UIKit/AccessibleSelect.vue.js +160 -158
- package/dist/packages/components/lib/UIKit/Accordion/BaseAccordionItem.vue.js +6 -4
- package/dist/packages/components/lib/UIKit/Autocomplete/ClearableAutocomplete.vue.js +106 -112
- package/dist/packages/components/lib/UIKit/BaseAutocomplete.vue.js +36 -36
- package/dist/packages/components/lib/UIKit/BaseButton.vue.js +24 -28
- package/dist/packages/components/lib/UIKit/BaseCard.vue.js +13 -13
- package/dist/packages/components/lib/UIKit/BaseDropDown.vue.js +105 -102
- package/dist/packages/components/lib/UIKit/BaseFloatingLabel.vue.js +8 -8
- package/dist/packages/components/lib/UIKit/BaseInput.vue.js +64 -65
- package/dist/packages/components/lib/UIKit/BaseModal.vue.js +36 -42
- package/dist/packages/components/lib/UIKit/BaseSelect/SelectItem.vue.js +17 -18
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxBtn.vue.js +37 -50
- package/dist/packages/components/lib/UIKit/Checkbox/CheckboxGroup.vue.js +55 -60
- package/dist/packages/components/lib/UIKit/Radio/RadioButton.vue.js +14 -16
- package/dist/packages/components/lib/UIKit/Radio/RadioGroup.vue.js +33 -37
- package/dist/types/index.d.ts +0 -3
- package/package.json +7 -8
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.d.ts +0 -40
- package/dist/UIKit/Checkbox/v2/CheckboxButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonGroup.d.ts +0 -29
- package/dist/UIKit/Radio/v2/RadioButtonGroup.js +0 -4
- package/dist/UIKit/Radio/v2/RadioButtonItem.d.ts +0 -16
- package/dist/UIKit/Radio/v2/RadioButtonItem.js +0 -5
- package/dist/assets/AccessibleSelect.css +0 -1
- package/dist/assets/RadioButtonItem.css +0 -1
- package/dist/composables/mock.d.ts +0 -25
- package/dist/composables/mock.js +0 -49
- package/dist/packages/components/lib/UIKit/Checkbox/v2/CheckboxButtonGroup.vue.js +0 -78
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonGroup.vue.js +0 -49
- package/dist/packages/components/lib/UIKit/Radio/v2/RadioButtonItem.vue.js +0 -45
- /package/dist/assets/{swiper-controller.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:toggleDropdown"?: ((value: Optional<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:toggleDropdown" | "onUpdate:dropdownState"> & ({
|
|
13
13
|
modelValue?: Optional<AccessibleSelectOptions<TPayload, TID>>;
|
|
14
|
-
|
|
14
|
+
toggleDropdown?: Optional<boolean>;
|
|
15
15
|
} & {
|
|
16
16
|
label?: string;
|
|
17
17
|
dropdownPosition?: "top" | "bottom";
|
|
@@ -27,7 +27,6 @@ declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
27
27
|
*/
|
|
28
28
|
closeOnBodyPressed?: boolean;
|
|
29
29
|
border?: boolean;
|
|
30
|
-
withFieldset?: boolean;
|
|
31
30
|
fieldsetClasses?: ClassTypeProp;
|
|
32
31
|
legendClasses?: ClassTypeProp;
|
|
33
32
|
dropdownClasses?: ClassTypeProp;
|
|
@@ -49,7 +48,7 @@ declare const _default: <TID, TPayload>(__VLS_props: NonNullable<Awaited<typeof
|
|
|
49
48
|
slots: {
|
|
50
49
|
lefticon?(_: {}): any;
|
|
51
50
|
};
|
|
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:
|
|
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:toggleDropdown", value: Optional<boolean>) => void));
|
|
53
52
|
}>) => import('vue').VNode & {
|
|
54
53
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
55
54
|
};
|
|
@@ -8,30 +8,25 @@ export interface ClearableAutocompleteProps<TID extends string | number | undefi
|
|
|
8
8
|
triggerWrapperClasses?: ClassTypeProp;
|
|
9
9
|
inputWrapperClasses?: ClassTypeProp;
|
|
10
10
|
inputClasses?: ClassTypeProp;
|
|
11
|
-
hiddenTextClasses?: ClassTypeProp;
|
|
12
11
|
dropdownClasses?: ClassTypeProp;
|
|
13
12
|
clearButton?: {
|
|
14
13
|
classes?: ClassTypeProp;
|
|
15
14
|
/** Space between the input element and the clear button */
|
|
16
15
|
offset?: number;
|
|
17
|
-
width?: number;
|
|
18
|
-
height?: number;
|
|
19
16
|
};
|
|
20
17
|
keepState?: Nullable<"closed" | "open">;
|
|
21
|
-
disableCb?: boolean;
|
|
22
18
|
onInputChangeCb: (v: string) => Promise<AccessibleSelectOptions<TPayload, TID>[]>;
|
|
23
19
|
onOptionSelectedCb?: Nullable<(v: AccessibleSelectOptions<TPayload, TID>) => void>;
|
|
24
20
|
}
|
|
25
21
|
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<{
|
|
26
22
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
27
23
|
readonly "onUpdate:modelValue"?: ((value: Nullable<AccessibleSelectOptions<TPayload, TID>>) => any) | undefined;
|
|
28
|
-
readonly onInput?: ((args_0: InputEvent) => any) | undefined;
|
|
29
24
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
30
25
|
readonly onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
31
26
|
readonly "onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
32
27
|
readonly "onUpdate:inputValue"?: ((value: string) => any) | undefined;
|
|
33
28
|
readonly onInputClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
34
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "
|
|
29
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onKeydown" | "onUpdate:open" | "onUpdate:inputValue" | "onInputClick"> & ({
|
|
35
30
|
open?: boolean;
|
|
36
31
|
modelValue?: Nullable<AccessibleSelectOptions<TPayload, TID>>;
|
|
37
32
|
inputValue?: string;
|
|
@@ -51,7 +46,7 @@ declare const _default: <TID extends string | number | undefined, TPayload>(__VL
|
|
|
51
46
|
idx: number;
|
|
52
47
|
}): any;
|
|
53
48
|
};
|
|
54
|
-
emit: (((evt: "
|
|
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));
|
|
55
50
|
}>) => import('vue').VNode & {
|
|
56
51
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
57
52
|
};
|
|
@@ -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 onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
10
9
|
readonly "onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
10
|
+
readonly onKeydown?: ((args_0: KeyboardEvent) => 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
|
|
20
|
+
onInputChangeCb: (v: string) => 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: AccessibleSelectOptions<TPayload, TID
|
|
43
|
+
option: import('@vue/reactivity').UnwrapRefSimple<AccessibleSelectOptions<TPayload, TID>>;
|
|
44
44
|
idx: number;
|
|
45
45
|
}): any;
|
|
46
46
|
};
|
|
47
|
-
emit: (((evt: "click") => void) & ((evt: "
|
|
47
|
+
emit: (((evt: "click") => void) & ((evt: "update:dropdownState", args_0: boolean) => void) & ((evt: "keydown", args_0: KeyboardEvent) => 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,13 +16,10 @@ 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
|
-
|
|
23
|
-
mouseover: (e: MouseEvent) => any;
|
|
24
|
-
mouseout: (e: MouseEvent) => any;
|
|
25
|
-
keydown: (e: KeyboardEvent) => any;
|
|
19
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
20
|
+
click: (e: Event) => any;
|
|
21
|
+
mouseover: (e: Event) => any;
|
|
22
|
+
mouseout: (e: Event) => any;
|
|
26
23
|
}, string, import('vue').PublicProps, Readonly<{
|
|
27
24
|
btnClass?: ButtonType;
|
|
28
25
|
outlined?: boolean;
|
|
@@ -39,13 +36,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
39
36
|
dataCy?: string;
|
|
40
37
|
type?: "button" | "submit" | "reset" | undefined;
|
|
41
38
|
}> & Readonly<{
|
|
42
|
-
onClick?: ((e:
|
|
43
|
-
onMouseover?: ((e:
|
|
44
|
-
onMouseout?: ((e:
|
|
45
|
-
|
|
46
|
-
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
47
|
-
buttonEl: HTMLButtonElement;
|
|
48
|
-
}, HTMLButtonElement>, {
|
|
39
|
+
onClick?: ((e: Event) => any) | undefined;
|
|
40
|
+
onMouseover?: ((e: Event) => any) | undefined;
|
|
41
|
+
onMouseout?: ((e: Event) => any) | undefined;
|
|
42
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLButtonElement>, {
|
|
49
43
|
default?(_: {
|
|
50
44
|
hover: boolean;
|
|
51
45
|
}): any;
|
package/dist/UIKit/BaseCard.js
CHANGED
|
@@ -1,5 +1,7 @@
|
|
|
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"]]);
|
|
3
5
|
export {
|
|
4
|
-
|
|
6
|
+
m as default
|
|
5
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { Nullable } from '@wikicasa-dev/types';
|
|
1
|
+
import { Nullable, Optional } from '@wikicasa-dev/types';
|
|
2
2
|
import { ClassTypeProp } from './types';
|
|
3
3
|
type __VLS_Props = {
|
|
4
|
-
dropdownAttrs?: Record<string, unknown>;
|
|
5
4
|
dropdownClasses?: ClassTypeProp;
|
|
6
5
|
btnClasses?: string;
|
|
7
6
|
withArrowIcon?: boolean;
|
|
@@ -11,22 +10,19 @@ type __VLS_Props = {
|
|
|
11
10
|
arrowWidth?: number;
|
|
12
11
|
arrowStrokeColor?: `#${string}`;
|
|
13
12
|
isAbsolute?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Use v-model:toggleDropdown instead
|
|
15
|
+
*/
|
|
16
|
+
openDropdown?: boolean;
|
|
14
17
|
closeWhenClickedOutside?: boolean;
|
|
15
18
|
dropdownElement?: "div" | "ul" | "ol";
|
|
16
19
|
keepState?: "opened" | "closed" | "";
|
|
17
20
|
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[];
|
|
25
21
|
dataCy?: string;
|
|
26
22
|
};
|
|
27
23
|
type __VLS_PublicProps = {
|
|
24
|
+
"toggleDropdown"?: Optional<boolean>;
|
|
28
25
|
"resetKeyboardController"?: boolean;
|
|
29
|
-
"open"?: boolean;
|
|
30
26
|
} & __VLS_Props;
|
|
31
27
|
declare function __VLS_template(): {
|
|
32
28
|
attrs: Partial<{}>;
|
|
@@ -34,9 +30,6 @@ declare function __VLS_template(): {
|
|
|
34
30
|
btn_slot?(_: {
|
|
35
31
|
toggleDropdown: () => void;
|
|
36
32
|
isOpen: boolean;
|
|
37
|
-
activeIdx: number;
|
|
38
|
-
setActiveIdx: (idx?: Nullable<number>) => void;
|
|
39
|
-
setSelectedIdx: (idx?: Nullable<number>) => void;
|
|
40
33
|
}): any;
|
|
41
34
|
default?(_: {
|
|
42
35
|
isOpen: boolean;
|
|
@@ -58,20 +51,20 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
58
51
|
activeIdx: import('vue').Ref<number, number>;
|
|
59
52
|
selectedIdx: import('vue').Ref<number, number>;
|
|
60
53
|
getRootElement: () => HTMLDivElement | null;
|
|
61
|
-
getContentElement: () => HTMLElement | null;
|
|
62
54
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
63
55
|
click: () => any;
|
|
56
|
+
"update:toggleDropdown": (value: Optional<boolean>) => any;
|
|
57
|
+
"update:dropdownState": (args_0: boolean) => any;
|
|
64
58
|
"update:resetKeyboardController": (value: boolean) => any;
|
|
65
|
-
"update:open": (value: boolean) => any;
|
|
66
59
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
67
60
|
onClick?: (() => any) | undefined;
|
|
61
|
+
"onUpdate:toggleDropdown"?: ((value: Optional<boolean>) => any) | undefined;
|
|
62
|
+
"onUpdate:dropdownState"?: ((args_0: boolean) => any) | undefined;
|
|
68
63
|
"onUpdate:resetKeyboardController"?: ((value: boolean) => any) | undefined;
|
|
69
|
-
"onUpdate:open"?: ((value: boolean) => any) | undefined;
|
|
70
64
|
}>, {
|
|
71
65
|
arrowWidth: number;
|
|
72
66
|
dataCy: string;
|
|
73
67
|
labelClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
74
|
-
closeKeys: false | string[];
|
|
75
68
|
dropdownClasses: string | Record<string, boolean> | import('./types').ClassType[] | import('./types').ClassType[] | null;
|
|
76
69
|
btnClasses: string;
|
|
77
70
|
withArrowIcon: boolean;
|
|
@@ -79,6 +72,7 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
79
72
|
direction: "up" | "down";
|
|
80
73
|
arrowStrokeColor: `#${string}`;
|
|
81
74
|
isAbsolute: boolean;
|
|
75
|
+
openDropdown: boolean;
|
|
82
76
|
closeWhenClickedOutside: boolean;
|
|
83
77
|
dropdownElement: "div" | "ul" | "ol";
|
|
84
78
|
keepState: "opened" | "closed" | "";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import a from "../packages/components/lib/UIKit/BaseFloatingLabel.vue.js";
|
|
2
2
|
import '../assets/BaseFloatingLabel.css';/* empty css */
|
|
3
|
-
import
|
|
4
|
-
const
|
|
3
|
+
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const e = /* @__PURE__ */ o(a, [["__scopeId", "data-v-ba2cc6aa"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
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;
|
|
5
4
|
inputClass?: ClassType | ClassType[];
|
|
6
5
|
labelText?: string;
|
|
7
6
|
feedback?: FeedbackLabels;
|
|
@@ -44,17 +43,17 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_PublicProps,
|
|
|
44
43
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
44
|
"update:modelValue": (value: string | number | undefined) => any;
|
|
46
45
|
click: (args_0: MouseEvent) => any;
|
|
47
|
-
keydown: (args_0: KeyboardEvent) => any;
|
|
48
46
|
focusin: () => any;
|
|
49
47
|
focusout: () => any;
|
|
48
|
+
keydown: (args_0: KeyboardEvent) => any;
|
|
50
49
|
keyup: (args_0: KeyboardEvent) => any;
|
|
51
50
|
keydownEnterPressed: () => any;
|
|
52
51
|
}, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
53
52
|
"onUpdate:modelValue"?: ((value: string | number | undefined) => any) | undefined;
|
|
54
53
|
onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
55
|
-
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
56
54
|
onFocusin?: (() => any) | undefined;
|
|
57
55
|
onFocusout?: (() => any) | undefined;
|
|
56
|
+
onKeydown?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
58
57
|
onKeyup?: ((args_0: KeyboardEvent) => any) | undefined;
|
|
59
58
|
onKeydownEnterPressed?: (() => any) | undefined;
|
|
60
59
|
}>, {}, {}, {}, {}, 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-919095a8"]]);
|
|
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:refresh": (value: Optional<boolean>) => any;
|
|
37
36
|
"update:open": (value: Optional<boolean>) => any;
|
|
37
|
+
"update:refresh": (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:refresh"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
42
|
"onUpdate:open"?: ((value: Optional<boolean>) => any) | undefined;
|
|
43
|
+
"onUpdate:refresh"?: ((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;
|
|
21
20
|
focusin: () => any;
|
|
22
21
|
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;
|
|
27
26
|
onFocusin?: (() => any) | undefined;
|
|
28
27
|
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,21 +1,14 @@
|
|
|
1
1
|
import { ClassTypeProp } from '../types';
|
|
2
|
-
import { AcceptableValue } from 'reka-ui';
|
|
3
|
-
export type CheckboxBtnExposeType = {
|
|
4
|
-
getRootElement: () => HTMLElement | null;
|
|
5
|
-
getCheckboxElement: () => HTMLElement;
|
|
6
|
-
};
|
|
7
2
|
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<{
|
|
8
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
9
|
-
readonly "onUpdate:modelValue"?: ((
|
|
4
|
+
readonly "onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
10
5
|
readonly onClick?: ((args_0: MouseEvent) => any) | undefined;
|
|
11
6
|
readonly onChange?: ((args_0: {
|
|
12
7
|
id: TID;
|
|
13
8
|
label: TLabel;
|
|
14
9
|
checked: boolean;
|
|
15
10
|
}) => any) | undefined;
|
|
16
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onChange"> &
|
|
17
|
-
modelValue?: boolean;
|
|
18
|
-
} & {
|
|
11
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onClick" | "onChange"> & {
|
|
19
12
|
id?: TID;
|
|
20
13
|
dataCy?: string;
|
|
21
14
|
disabled?: boolean;
|
|
@@ -26,18 +19,18 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
26
19
|
required?: boolean;
|
|
27
20
|
inputClass?: ClassTypeProp;
|
|
28
21
|
label?: TLabel;
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
expose(exposed: import('vue').ShallowUnwrapRef<
|
|
22
|
+
modelValue?: boolean;
|
|
23
|
+
} & Partial<{}>> & import('vue').PublicProps;
|
|
24
|
+
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
32
25
|
attrs: any;
|
|
33
26
|
slots: {
|
|
34
27
|
label?(_: {}): any;
|
|
35
28
|
};
|
|
36
|
-
emit: (((evt: "click", args_0: MouseEvent) => void) & ((evt: "change", args_0: {
|
|
29
|
+
emit: ((evt: "update:modelValue", args_0: boolean) => void) & ((evt: "click", args_0: MouseEvent) => void) & ((evt: "change", args_0: {
|
|
37
30
|
id: TID;
|
|
38
31
|
label: TLabel;
|
|
39
32
|
checked: boolean;
|
|
40
|
-
}) => void)
|
|
33
|
+
}) => void);
|
|
41
34
|
}>) => import('vue').VNode & {
|
|
42
35
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
43
36
|
};
|
|
@@ -34,12 +34,9 @@ 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;
|
|
38
37
|
readonly onResetted?: (() => any) | undefined;
|
|
39
38
|
readonly onCheckedGroup?: ((args_0: string) => any) | undefined;
|
|
40
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "
|
|
41
|
-
refresh?: boolean;
|
|
42
|
-
} & CheckboxGroupProps<TID, TLabel, TPayload>) & Partial<{}>> & import('vue').PublicProps;
|
|
39
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onResetted" | "onCheckedGroup"> & CheckboxGroupProps<TID, TLabel, TPayload> & Partial<{}>> & import('vue').PublicProps;
|
|
43
40
|
expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
|
|
44
41
|
attrs: any;
|
|
45
42
|
slots: {
|
|
@@ -55,7 +52,7 @@ declare const _default: <TID extends string | number, TLabel extends string | nu
|
|
|
55
52
|
reset: () => void;
|
|
56
53
|
}): any;
|
|
57
54
|
};
|
|
58
|
-
emit: ((
|
|
55
|
+
emit: ((evt: "update:modelValue", args_0: CheckboxButtonType<TID, TLabel, TPayload>[]) => void) & ((evt: "resetted") => void) & ((evt: "checkedGroup", args_0: string) => void);
|
|
59
56
|
}>) => import('vue').VNode & {
|
|
60
57
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
61
58
|
};
|
|
@@ -1,33 +1,28 @@
|
|
|
1
|
+
import { Nullable } from '@wikicasa-dev/types';
|
|
1
2
|
import { ClassTypeProp } from '../types';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
id?: Nullable<string | number>;
|
|
5
|
+
name?: string;
|
|
6
|
+
label: string;
|
|
7
|
+
modelValue?: boolean;
|
|
8
|
+
inputClasses?: ClassTypeProp;
|
|
9
|
+
labelClasses?: ClassTypeProp;
|
|
10
|
+
};
|
|
11
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
12
|
+
"update:modelValue": (args_0: boolean) => any;
|
|
13
|
+
change: (args_0: {
|
|
14
|
+
id: string | number;
|
|
14
15
|
label: string;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
slots: {};
|
|
22
|
-
emit: ((evt: "update:modelValue", args_0: boolean) => void) & ((evt: "change", args_0: {
|
|
23
|
-
id: NonNullable<TID>;
|
|
16
|
+
name?: string;
|
|
17
|
+
}) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
19
|
+
"onUpdate:modelValue"?: ((args_0: boolean) => any) | undefined;
|
|
20
|
+
onChange?: ((args_0: {
|
|
21
|
+
id: string | number;
|
|
24
22
|
label: string;
|
|
25
23
|
name?: string;
|
|
26
|
-
}) =>
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
24
|
+
}) => any) | undefined;
|
|
25
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
checkbox: HTMLInputElement;
|
|
27
|
+
}, HTMLDivElement>;
|
|
30
28
|
export default _default;
|
|
31
|
-
type __VLS_PrettifyLocal<T> = {
|
|
32
|
-
[K in keyof T]: T[K];
|
|
33
|
-
} & {};
|
|
@@ -1,55 +1,56 @@
|
|
|
1
1
|
import { Nullable, Optional } from '@wikicasa-dev/types';
|
|
2
2
|
import { ClassTypeProp } from '../types';
|
|
3
|
-
export type RadioButtonType<
|
|
4
|
-
id?:
|
|
5
|
-
label: string;
|
|
6
|
-
payload?:
|
|
3
|
+
export type RadioButtonType<T = unknown> = {
|
|
4
|
+
id?: string | number | null;
|
|
5
|
+
label: string | number;
|
|
6
|
+
payload?: T;
|
|
7
7
|
active?: boolean;
|
|
8
8
|
};
|
|
9
|
-
declare const _default: <
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
}
|
|
9
|
+
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
10
|
+
resetRadio?: Optional<boolean>;
|
|
11
|
+
} & {
|
|
12
|
+
radioValues?: RadioButtonType[];
|
|
13
|
+
dataCy?: string;
|
|
14
|
+
radioContainerClasses?: ClassTypeProp;
|
|
15
|
+
}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
"update:modelValue": (args_0: Nullable<RadioButtonType<unknown>>) => any;
|
|
17
|
+
"update:resetRadio": (value: Optional<boolean>) => any;
|
|
18
|
+
}, string, import('vue').PublicProps, Readonly<{
|
|
19
|
+
resetRadio?: Optional<boolean>;
|
|
20
|
+
} & {
|
|
21
|
+
radioValues?: RadioButtonType[];
|
|
22
|
+
dataCy?: string;
|
|
23
|
+
radioContainerClasses?: ClassTypeProp;
|
|
24
|
+
}> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((args_0: Nullable<RadioButtonType<unknown>>) => any) | undefined;
|
|
26
|
+
"onUpdate:resetRadio"?: ((value: Optional<boolean>) => any) | undefined;
|
|
27
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, {
|
|
28
|
+
default?(_: {
|
|
29
|
+
handleClick: (elem: RadioButtonType) => void;
|
|
30
|
+
activeValue: {
|
|
31
|
+
id?: string | number | null | undefined;
|
|
32
|
+
label: string | number;
|
|
33
|
+
payload?: unknown;
|
|
34
|
+
active?: boolean | undefined;
|
|
35
|
+
} | null;
|
|
36
|
+
reset: () => void;
|
|
37
|
+
isActive: (elem: RadioButtonType) => boolean;
|
|
38
|
+
}): any;
|
|
39
|
+
radio_elements?(_: {
|
|
40
|
+
handleClick: (elem: RadioButtonType) => void;
|
|
41
|
+
activeValue: {
|
|
42
|
+
id?: string | number | null | undefined;
|
|
43
|
+
label: string | number;
|
|
44
|
+
payload?: unknown;
|
|
45
|
+
active?: boolean | undefined;
|
|
46
|
+
} | null;
|
|
47
|
+
reset: () => void;
|
|
48
|
+
isActive: (elem: RadioButtonType) => boolean;
|
|
49
|
+
}): any;
|
|
50
|
+
}>;
|
|
51
|
+
export default _default;
|
|
52
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
53
|
+
new (): {
|
|
54
|
+
$slots: S;
|
|
47
55
|
};
|
|
48
|
-
emit: ((evt: "update:modelValue", args_0: Nullable<RadioButtonType<TID, TPayload>>) => void) & (((evt: "update:refresh", value: boolean) => void) & ((evt: "update:resetRadio", value: Optional<boolean>) => void));
|
|
49
|
-
}>) => import('vue').VNode & {
|
|
50
|
-
__ctx?: Awaited<typeof __VLS_setup>;
|
|
51
56
|
};
|
|
52
|
-
export default _default;
|
|
53
|
-
type __VLS_PrettifyLocal<T> = {
|
|
54
|
-
[K in keyof T]: T[K];
|
|
55
|
-
} & {};
|
package/dist/assets/BaseCard.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
.card[data-v-bf21cda3]{--card-max-height: none;--card-max-width: 930px;--card-height: auto;--card-width: auto;--card-border-radius-top-left: 20px;--card-border-radius-top-right: 20px;--card-border-radius-bottom-left: 20px;--card-border-radius-bottom-right: 20px;border-top-left-radius:var(--card-border-radius-top-left);border-top-right-radius:var(--card-border-radius-top-right);border-bottom-left-radius:var(--card-border-radius-bottom-left);border-bottom-right-radius:var(--card-border-radius-bottom-right);height:var(--card-height);width:var(--card-width);max-width:var(--card-max-width);max-height:var(--card-max-height);position:relative;z-index:0;display:flex;overflow:hidden;--tw-shadow: 0 0 8px #2222221F;--tw-shadow-colored: 0 0 8px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}@media screen and (min-width: 576px){.card[data-v-bf21cda3]{--card-img-max-width: 300px;--card-height: 240px }}.card .card-body[data-v-bf21cda3]{--card-body-width: 100%;box-sizing:border-box;width:var(--card-body-width);padding:10px 15px}.card .card-img[data-v-bf21cda3]{--card-img-height: var(--card-height);--card-img-width: 100%;--card-img-max-height: none;--card-img-max-width: none;height:var(--card-img-height);width:var(--card-img-width);max-width:var(--card-img-max-width);max-height:var(--card-img-max-height)}@media screen and (min-width: 576px){.card .card-img[data-v-bf21cda3]{--card-img-max-width: 300px }}.card.vertical[data-v-bf21cda3]{--card-vertical-height: var(--card-height);height:var(--card-vertical-height);flex-direction:column}@media not all and (min-width: 576px){.card.vertical[data-v-bf21cda3]{min-height:100px;min-width:335px}}@media screen and (min-width: 576px){.card.vertical[data-v-bf21cda3]{--card-vertical-height: fit-content }}.card.vertical .card-img[data-v-bf21cda3]{--card-vertical-img-height: 200px;--card-img-width: 100%;--card-img-max-width: 100%;height:var(--card-vertical-img-height)}.card.mini[data-v-bf21cda3]{--card-max-height: 100px;--card-max-width: 370px}.card.mini .card-img[data-v-bf21cda3]{--card-img-max-height: 110px;--card-img-max-width: 120px}@media (min-width: 576px){.card.news-card[data-v-bf21cda3]{flex-direction:column}}.card.news-card[data-v-bf21cda3]{--card-height: 270px}@media screen and (max-width: 576px){.card.news-card[data-v-bf21cda3]{--card-height: 100px;--card-width: 320px }.card.news-card .card-img[data-v-bf21cda3]{--card-height: 100px;--card-img-max-width: 100px }}@media screen and (min-width: 576px){.card.news-card .card-img[data-v-bf21cda3]{--card-height: 150px;--card-img-max-width: 100% }}
|