bitboss-ui 0.1.59 → 0.1.63
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/components/BaseButton/BaseButton.vue.d.ts +1 -1
- package/dist/components/BaseCheckbox/BaseCheckbox.vue.d.ts +1 -1
- package/dist/components/BaseCheckboxGroup/BaseCheckboxGroup.vue.d.ts +5 -2
- package/dist/components/BaseDatePicker/BaseDatePicker.vue.d.ts +2 -2
- package/dist/components/BaseDatePickerInput/BaseDatePickerInput.vue.d.ts +6 -16
- package/dist/components/BaseDialog/BaseDialog.vue.d.ts +22 -23
- package/dist/components/BaseInputContainer/BaseInputContainer.vue.d.ts +17 -17
- package/dist/components/BaseNumberInput/BaseNumberInput.vue.d.ts +17 -10
- package/dist/components/BaseRadio/BaseRadio.vue.d.ts +18 -22
- package/dist/components/BaseRadioGroup/BaseRadioGroup.vue.d.ts +13 -23
- package/dist/components/BaseRating/BaseRating.vue.d.ts +8 -9
- package/dist/components/BaseSelect/BaseSelect.vue.d.ts +52 -24
- package/dist/components/BaseSlider/BaseSlider.vue.d.ts +15 -9
- package/dist/components/BaseSwitchGroup/BaseSwitchGroup.vue.d.ts +4 -1
- package/dist/components/BaseTextInput/BaseTextInput.vue.d.ts +10 -11
- package/dist/components/BaseTextarea/BaseTextarea.vue.d.ts +9 -9
- package/dist/components/BbAccordion/BbAccordion.vue.d.ts +3 -4
- package/dist/components/BbAlert/BbAlert.vue.d.ts +13 -8
- package/dist/components/BbAvatar/BbAvatar.vue.d.ts +92 -33
- package/dist/components/BbBadge/BbBadge.vue.d.ts +17 -3
- package/dist/components/BbBreadcrumbs/BbBreadcrumbs.vue.d.ts +17 -3
- package/dist/components/BbCheckbox/BbCheckbox.vue.d.ts +1 -1
- package/dist/components/BbCheckboxGroup/BbCheckboxGroup.vue.d.ts +3 -2
- package/dist/components/BbDropdown/BbDropdown.vue.d.ts +10 -10
- package/dist/components/BbDropdownButton/BbDropdownButton.vue.d.ts +8 -8
- package/dist/components/BbOffCanvas/BbOffCanvas.vue.d.ts +4 -4
- package/dist/components/BbPopover/BbPopover.vue.d.ts +2 -2
- package/dist/components/BbRadio/BbRadio.vue.d.ts +2 -2
- package/dist/components/BbRadioGroup/BbRadioGroup.vue.d.ts +4 -3
- package/dist/components/BbRating/BbRating.vue.d.ts +1 -1
- package/dist/components/BbSelect/BbSelect.vue.d.ts +4 -3
- package/dist/components/BbSmoothHeight/BbSmoothHeight.vue.d.ts +1 -1
- package/dist/components/BbSwitch/BbSwitch.vue.d.ts +1 -1
- package/dist/components/BbTable/BbTable.vue.d.ts +12 -8
- package/dist/components/BbTooltip/BbTooltip.vue.d.ts +2 -2
- package/dist/composables/useOptions.d.ts +9 -3
- package/dist/index10.js +43 -41
- package/dist/index10.js.map +1 -1
- package/dist/index104.js +1 -1
- package/dist/index106.js +3 -3
- package/dist/index112.js +1 -1
- package/dist/index114.js +1 -1
- package/dist/index116.js +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.js +1 -1
- package/dist/index12.js +11 -11
- package/dist/index12.js.map +1 -1
- package/dist/index120.js +1 -1
- package/dist/index122.js +224 -3
- package/dist/index122.js.map +1 -1
- package/dist/index123.js +2 -2
- package/dist/index124.js +2 -2
- package/dist/index125.js +2 -2
- package/dist/index126.js +2 -2
- package/dist/index127.js +2 -2
- package/dist/index128.js +2 -2
- package/dist/index129.js +2 -2
- package/dist/index130.js +2 -2
- package/dist/index131.js +2 -2
- package/dist/index132.js +2 -2
- package/dist/index133.js +2 -2
- package/dist/index134.js +2 -2
- package/dist/index135.js +2 -2
- package/dist/index136.js +2 -2
- package/dist/index137.js +2 -2
- package/dist/index138.js +2 -2
- package/dist/index139.js +2 -2
- package/dist/index14.js +38 -38
- package/dist/index14.js.map +1 -1
- package/dist/index140.js +2 -2
- package/dist/index141.js +2 -2
- package/dist/index142.js +2 -2
- package/dist/index143.js +2 -2
- package/dist/index144.js +2 -2
- package/dist/index145.js +2 -2
- package/dist/index146.js +2 -2
- package/dist/index147.js +2 -2
- package/dist/index148.js +3 -2
- package/dist/index148.js.map +1 -1
- package/dist/index149.js +2 -3
- package/dist/index149.js.map +1 -1
- package/dist/index150.js +3 -2
- package/dist/index150.js.map +1 -1
- package/dist/index151.js +2 -3
- package/dist/index151.js.map +1 -1
- package/dist/index152.js +2 -2
- package/dist/index153.js +2 -2
- package/dist/index154.js +2 -2
- package/dist/index155.js +2 -2
- package/dist/index156.js +2 -2
- package/dist/index157.js +3 -2
- package/dist/index157.js.map +1 -1
- package/dist/index158.js +2 -3
- package/dist/index158.js.map +1 -1
- package/dist/index159.js +3 -2
- package/dist/index159.js.map +1 -1
- package/dist/index16.js +6 -6
- package/dist/index16.js.map +1 -1
- package/dist/index160.js +2 -2
- package/dist/index161.js +2 -3
- package/dist/index161.js.map +1 -1
- package/dist/index162.js +2 -2
- package/dist/index163.js +2 -2
- package/dist/index164.js +2 -2
- package/dist/index165.js +2 -2
- package/dist/index166.js +2 -2
- package/dist/index167.js +2 -2
- package/dist/index168.js +2 -2
- package/dist/index169.js +2 -2
- package/dist/index170.js +2 -2
- package/dist/index171.js +2 -2
- package/dist/index172.js +2 -2
- package/dist/index173.js +3 -2
- package/dist/index173.js.map +1 -1
- package/dist/index174.js +2 -3
- package/dist/index174.js.map +1 -1
- package/dist/index175.js +3 -2
- package/dist/index175.js.map +1 -1
- package/dist/index176.js +2 -3
- package/dist/index176.js.map +1 -1
- package/dist/index177.js +2 -2
- package/dist/index178.js +2 -2
- package/dist/index179.js +2 -2
- package/dist/index18.js +6 -6
- package/dist/index18.js.map +1 -1
- package/dist/index180.js +2 -2
- package/dist/index181.js +2 -2
- package/dist/index182.js +2 -2
- package/dist/index183.js +2 -2
- package/dist/index184.js +2 -2
- package/dist/index185.js +3 -350
- package/dist/index185.js.map +1 -1
- package/dist/index186.js +2 -134
- package/dist/index186.js.map +1 -1
- package/dist/index187.js +4 -5
- package/dist/index187.js.map +1 -1
- package/dist/index188.js +2 -19
- package/dist/index188.js.map +1 -1
- package/dist/index189.js +2 -2
- package/dist/index189.js.map +1 -1
- package/dist/index190.js +295 -2
- package/dist/index190.js.map +1 -1
- package/dist/index191.js +14 -184
- package/dist/index191.js.map +1 -1
- package/dist/index192.js +16 -23
- package/dist/index192.js.map +1 -1
- package/dist/index193.js +18 -330
- package/dist/index193.js.map +1 -1
- package/dist/index194.js +20 -2
- package/dist/index194.js.map +1 -1
- package/dist/index195.js +29 -2
- package/dist/index195.js.map +1 -1
- package/dist/index196.js +8 -3
- package/dist/index196.js.map +1 -1
- package/dist/index197.js +2 -3
- package/dist/index197.js.map +1 -1
- package/dist/index198.js +3 -4
- package/dist/index198.js.map +1 -1
- package/dist/index199.js +3 -2
- package/dist/index199.js.map +1 -1
- package/dist/index20.js +15 -15
- package/dist/index20.js.map +1 -1
- package/dist/index200.js +350 -6
- package/dist/index200.js.map +1 -1
- package/dist/index201.js +134 -8
- package/dist/index201.js.map +1 -1
- package/dist/index202.js +2 -20
- package/dist/index202.js.map +1 -1
- package/dist/index203.js +184 -27
- package/dist/index203.js.map +1 -1
- package/dist/index204.js +23 -16
- package/dist/index204.js.map +1 -1
- package/dist/index205.js +330 -15
- package/dist/index205.js.map +1 -1
- package/dist/index206.js +1 -1
- package/dist/index207.js +3 -3
- package/dist/index208.js +6 -2
- package/dist/index208.js.map +1 -1
- package/dist/index209.js +2 -235
- package/dist/index209.js.map +1 -1
- package/dist/index210.js +2 -9
- package/dist/index210.js.map +1 -1
- package/dist/index211.js +228 -89
- package/dist/index211.js.map +1 -1
- package/dist/index212.js +8 -27
- package/dist/index212.js.map +1 -1
- package/dist/index213.js +95 -12
- package/dist/index213.js.map +1 -1
- package/dist/index214.js +25 -76
- package/dist/index214.js.map +1 -1
- package/dist/index215.js +13 -6
- package/dist/index215.js.map +1 -1
- package/dist/index216.js +4 -2
- package/dist/index216.js.map +1 -1
- package/dist/index217.js +78 -294
- package/dist/index217.js.map +1 -1
- package/dist/index218.js +6 -2
- package/dist/index218.js.map +1 -1
- package/dist/index219.js +2 -2
- package/dist/index22.js +13 -13
- package/dist/index22.js.map +1 -1
- package/dist/index220.js +2 -117
- package/dist/index220.js.map +1 -1
- package/dist/index221.js +2 -106
- package/dist/index221.js.map +1 -1
- package/dist/index222.js +2 -224
- package/dist/index222.js.map +1 -1
- package/dist/index223.js +2 -258
- package/dist/index223.js.map +1 -1
- package/dist/index224.js +2 -4
- package/dist/index224.js.map +1 -1
- package/dist/index225.js +224 -2
- package/dist/index225.js.map +1 -1
- package/dist/index226.js +258 -2
- package/dist/index226.js.map +1 -1
- package/dist/index227.js +2 -2
- package/dist/index228.js +117 -2
- package/dist/index228.js.map +1 -1
- package/dist/index229.js +106 -2
- package/dist/index229.js.map +1 -1
- package/dist/index230.js +10 -8
- package/dist/index230.js.map +1 -1
- package/dist/index231.js +434 -5
- package/dist/index231.js.map +1 -1
- package/dist/index232.js +8 -10
- package/dist/index232.js.map +1 -1
- package/dist/index233.js +82 -428
- package/dist/index233.js.map +1 -1
- package/dist/index234.js +200 -9
- package/dist/index234.js.map +1 -1
- package/dist/index235.js +2 -89
- package/dist/index235.js.map +1 -1
- package/dist/index236.js +8 -199
- package/dist/index236.js.map +1 -1
- package/dist/index237.js +6 -69
- package/dist/index237.js.map +1 -1
- package/dist/index238.js +68 -37
- package/dist/index238.js.map +1 -1
- package/dist/index239.js +38 -2
- package/dist/index239.js.map +1 -1
- package/dist/index24.js +59 -57
- package/dist/index24.js.map +1 -1
- package/dist/index240.js +2 -2
- package/dist/index240.js.map +1 -1
- package/dist/index241.js +2 -2
- package/dist/index241.js.map +1 -1
- package/dist/index242.js +2 -2
- package/dist/index243.js +5 -0
- package/dist/index243.js.map +1 -0
- package/dist/index26.js +50 -48
- package/dist/index26.js.map +1 -1
- package/dist/index28.js +189 -160
- package/dist/index28.js.map +1 -1
- package/dist/index30.js +11 -11
- package/dist/index30.js.map +1 -1
- package/dist/index32.js +2 -2
- package/dist/index34.js +52 -50
- package/dist/index34.js.map +1 -1
- package/dist/index36.js +7 -7
- package/dist/index36.js.map +1 -1
- package/dist/index38.js +5 -5
- package/dist/index38.js.map +1 -1
- package/dist/index40.js +5 -5
- package/dist/index40.js.map +1 -1
- package/dist/index42.js +10 -10
- package/dist/index42.js.map +1 -1
- package/dist/index44.js +1 -1
- package/dist/index44.js.map +1 -1
- package/dist/index46.js +2 -2
- package/dist/index46.js.map +1 -1
- package/dist/index48.js.map +1 -1
- package/dist/index5.js +125 -91
- package/dist/index5.js.map +1 -1
- package/dist/index54.js +10 -8
- package/dist/index54.js.map +1 -1
- package/dist/index56.js +1 -1
- package/dist/index58.js +6 -6
- package/dist/index58.js.map +1 -1
- package/dist/index6.js.map +1 -1
- package/dist/index60.js +5 -5
- package/dist/index60.js.map +1 -1
- package/dist/index62.js +5 -5
- package/dist/index66.js +3 -3
- package/dist/index74.js +1 -1
- package/dist/index76.js +3 -3
- package/dist/index78.js +1 -1
- package/dist/index8.js +2 -2
- package/dist/index8.js.map +1 -1
- package/dist/index82.js +8 -6
- package/dist/index82.js.map +1 -1
- package/dist/index88.js +22 -20
- package/dist/index88.js.map +1 -1
- package/dist/index94.js +9 -7
- package/dist/index94.js.map +1 -1
- package/dist/index96.js +2 -2
- package/dist/index98.js +177 -151
- package/dist/index98.js.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/CommonProps.d.ts +121 -16
- package/dist/utilities/functions/booleanishToBoolean.d.ts +6 -0
- package/package.json +2 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { CommonProps, NonVoidElementTag } from '../../types/CommonProps';
|
|
2
2
|
import type { InertiaLinkProps } from "@inertiajs/vue3";
|
|
3
3
|
import type { RouterLinkProps } from "vue-router";
|
|
4
|
-
export type BaseButtonProps = Pick<CommonProps, "block" | "disabled" | "text"> & NonVoidElementTag & Partial<Pick<RouterLinkProps, "activeClass" | "ariaCurrentValue" | "exactActiveClass" | "replace" | "to">> & Pick<InertiaLinkProps, "data" | "headers" | "method" | "onBefore" | "onCancel" | "onCancelToken" | "onFinish" | "only" | "onProgress" | "onStart" | "onSuccess" | "preserveScroll" | "preserveState" | "queryStringArrayFormat"
|
|
4
|
+
export type BaseButtonProps = Pick<CommonProps, "block" | "disabled" | "text"> & NonVoidElementTag & Partial<Pick<RouterLinkProps, "activeClass" | "ariaCurrentValue" | "exactActiveClass" | "replace" | "to">> & Partial<Pick<InertiaLinkProps, "data" | "headers" | "method" | "onBefore" | "onCancel" | "onCancelToken" | "onFinish" | "only" | "onProgress" | "onStart" | "onSuccess" | "preserveScroll" | "preserveState" | "queryStringArrayFormat">> & Partial<{
|
|
5
5
|
/**
|
|
6
6
|
* Gets the classification and default behavior of the button
|
|
7
7
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CommonProps, GenericModelValue } from '../../types/CommonProps';
|
|
2
1
|
import { ExtractGenericFromComputedRef } from '../../types/ExtractGenericFromComputedRef';
|
|
2
|
+
import type { CommonProps, GenericModelValue } from '../../types/CommonProps';
|
|
3
3
|
export type BaseCheckboxProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "falseValue" | "hasErrors" | "id" | "indeterminate" | "name" | "readonly" | "submitWhenFalse" | "trueValue"> & GenericModelValue;
|
|
4
4
|
export type BaseCheckboxEvents = {
|
|
5
5
|
(e: "blur", event: FocusEvent): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { BaseCheckboxProps } from "../BaseCheckbox/BaseCheckbox.vue";
|
|
2
2
|
import type { CommonProps, Direction, OptionItems, GenericModelValueArray } from '../../types/CommonProps';
|
|
3
|
-
export type BaseCheckboxGroupProps = Pick<BaseCheckboxProps, "autofocus" | "color" | "disabled" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hasErrors" | "hideLabel" | "itemText" | "itemValue" | "loadingText" | "modelValueDebounceTime" | "noDataText"> & Direction<"horizontal" | "vertical"
|
|
3
|
+
export type BaseCheckboxGroupProps = Pick<BaseCheckboxProps, "autofocus" | "color" | "disabled" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hasErrors" | "hideLabel" | "itemText" | "itemValue" | "loadingText" | "matchStrategy" | "modelValueDebounceTime" | "noDataText"> & Partial<Direction<"horizontal" | "vertical">> & Required<GenericModelValueArray> & OptionItems;
|
|
4
4
|
export type BaseCheckboxGroupEvents = {
|
|
5
5
|
(e: "blur", event: FocusEvent): void;
|
|
6
6
|
(e: "change", event: Event): void;
|
|
@@ -18,6 +18,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
18
18
|
direction: string;
|
|
19
19
|
items: () => never[];
|
|
20
20
|
loadingText: string;
|
|
21
|
+
matchStrategy: string;
|
|
21
22
|
modelValueDebounceTime: number;
|
|
22
23
|
noDataText: string;
|
|
23
24
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -36,6 +37,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
36
37
|
direction: string;
|
|
37
38
|
items: () => never[];
|
|
38
39
|
loadingText: string;
|
|
40
|
+
matchStrategy: string;
|
|
39
41
|
modelValueDebounceTime: number;
|
|
40
42
|
noDataText: string;
|
|
41
43
|
}>>> & {
|
|
@@ -51,10 +53,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
51
53
|
onInactive?: (() => any) | undefined;
|
|
52
54
|
}, {
|
|
53
55
|
depsDebounceTime: number;
|
|
56
|
+
direction: "horizontal" | "vertical";
|
|
54
57
|
loadingText: string;
|
|
58
|
+
matchStrategy: "string" | "equality";
|
|
55
59
|
modelValueDebounceTime: number;
|
|
56
60
|
noDataText: string;
|
|
57
|
-
direction: "horizontal" | "vertical";
|
|
58
61
|
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
59
62
|
}, {}>, Readonly<{
|
|
60
63
|
prepend?: ((props: {}) => any) | undefined;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as dayjs } from "dayjs";
|
|
2
|
-
import type { Dayjs } from "dayjs";
|
|
3
2
|
import { default as it } from "dayjs/locale/it";
|
|
4
|
-
import { CommonProps } from '../../types/CommonProps';
|
|
3
|
+
import type { CommonProps } from '../../types/CommonProps';
|
|
4
|
+
import type { Dayjs } from "dayjs";
|
|
5
5
|
export type BaseDatePickerProps = Pick<CommonProps, "disabled" | "multiple" | "readonly"> & {
|
|
6
6
|
/**
|
|
7
7
|
* Defines the first day of the week with `0` meaning Sunday and `6` meaning Saturday
|
|
@@ -1,14 +1,7 @@
|
|
|
1
1
|
import { default as dayjs } from "dayjs";
|
|
2
2
|
import { type BaseDatePickerProps } from "../BaseDatePicker/BaseDatePicker.vue";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
autocomplete?: string;
|
|
6
|
-
autofocus?: boolean;
|
|
7
|
-
hasErrors?: boolean;
|
|
8
|
-
id?: string;
|
|
9
|
-
name?: string;
|
|
10
|
-
placeholder?: string;
|
|
11
|
-
};
|
|
3
|
+
import type { CommonProps } from '../../types/CommonProps';
|
|
4
|
+
export type BaseDatePickerInputProps = Omit<BaseDatePickerProps, "multiple"> & Pick<CommonProps, "allowWriting" | "autocomplete" | "autofocus" | "hasErrors" | "id" | "name" | "placeholder">;
|
|
12
5
|
export type BaseDatePickerInputEvents = {
|
|
13
6
|
(e: "update:modelValue", value: BaseDatePickerInputProps["modelValue"]): void;
|
|
14
7
|
(e: "inactive"): void;
|
|
@@ -31,19 +24,16 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
31
24
|
"onUpdate:modelValue"?: ((value: string | string[] | null) => any) | undefined;
|
|
32
25
|
onInactive?: (() => any) | undefined;
|
|
33
26
|
}, {
|
|
34
|
-
width: string | number;
|
|
35
|
-
allowWriting: boolean;
|
|
36
27
|
autocomplete: string;
|
|
28
|
+
allowWriting: boolean;
|
|
29
|
+
width: string | number;
|
|
37
30
|
}, {}>, Readonly<{
|
|
38
|
-
|
|
31
|
+
"prepend-outer"?: ((props: {}) => any) | undefined;
|
|
39
32
|
prepend?: ((props: {}) => any) | undefined;
|
|
40
33
|
append?: ((props: {}) => any) | undefined;
|
|
41
|
-
|
|
34
|
+
"append-outer"?: ((props: {}) => any) | undefined;
|
|
42
35
|
} & {
|
|
43
36
|
day?: ((props: {
|
|
44
|
-
/**
|
|
45
|
-
* These events are just propagated
|
|
46
|
-
*/
|
|
47
37
|
first: boolean;
|
|
48
38
|
highlighted: boolean;
|
|
49
39
|
item: dayjs.Dayjs;
|
|
@@ -1,41 +1,38 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { CommonProps, Size } from '../../types/CommonProps';
|
|
2
2
|
export type Sizes = {
|
|
3
3
|
sm: number;
|
|
4
4
|
md: number;
|
|
5
5
|
lg: number;
|
|
6
6
|
};
|
|
7
|
-
export
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
export type BaseDialogProps = Pick<CommonProps, "closeLabel" | "compact" | "disabled" | "eager" | "panelClasses" | "overlayClasses" | "persistent" | "showClose" | "title" | "transition" | "transitionDuration"> & Size<Sizes> & {
|
|
8
|
+
/**
|
|
9
|
+
* Description of the content of the modal. Extremely useful for accessibility reasons.
|
|
10
|
+
*/
|
|
10
11
|
description?: string;
|
|
11
|
-
|
|
12
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Displays the modala as fulscreen with no margin to the page
|
|
14
|
+
*/
|
|
13
15
|
fullscreen?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the state open / closed of the modal.
|
|
18
|
+
*/
|
|
14
19
|
modelValue?: boolean | null;
|
|
15
|
-
|
|
16
|
-
overlayClasses?: Classes;
|
|
17
|
-
persistent?: boolean;
|
|
18
|
-
showClose?: boolean;
|
|
19
|
-
size?: keyof Sizes | string | number;
|
|
20
|
-
title?: string;
|
|
21
|
-
transition?: string;
|
|
22
|
-
transitionDuration?: number;
|
|
23
|
-
}
|
|
20
|
+
};
|
|
24
21
|
export type BaseDialogSlots = {
|
|
25
22
|
header?: (props: {
|
|
26
23
|
titleId: typeof titleId;
|
|
27
24
|
close: typeof onCloseClick;
|
|
28
|
-
title: BaseDialogProps[
|
|
25
|
+
title: BaseDialogProps["title"];
|
|
29
26
|
}) => any;
|
|
30
27
|
title?: (props: {
|
|
31
|
-
text: BaseDialogProps[
|
|
28
|
+
text: BaseDialogProps["title"];
|
|
32
29
|
}) => any;
|
|
33
30
|
close?: (props: {
|
|
34
|
-
text: BaseDialogProps[
|
|
31
|
+
text: BaseDialogProps["closeLabel"];
|
|
35
32
|
}) => any;
|
|
36
33
|
description?: (props: {
|
|
37
34
|
descriptionId: typeof descriptionId;
|
|
38
|
-
text: BaseDialogProps[
|
|
35
|
+
text: BaseDialogProps["description"];
|
|
39
36
|
}) => any;
|
|
40
37
|
default?: (props: {}) => any;
|
|
41
38
|
footer?: (props: {}) => any;
|
|
@@ -76,13 +73,15 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
76
73
|
onHidden?: (() => any) | undefined;
|
|
77
74
|
onShown?: (() => any) | undefined;
|
|
78
75
|
}, {
|
|
79
|
-
transition: string;
|
|
80
76
|
closeLabel: string;
|
|
81
|
-
|
|
82
|
-
|
|
77
|
+
overlayClasses: import("../../types/Classes").Classes;
|
|
78
|
+
panelClasses: import("../../types/Classes").Classes;
|
|
83
79
|
showClose: boolean;
|
|
84
|
-
|
|
80
|
+
transition: string;
|
|
85
81
|
transitionDuration: number;
|
|
82
|
+
size: number | ({
|
|
83
|
+
size?: any;
|
|
84
|
+
} & string) | keyof Sizes;
|
|
86
85
|
}, {}>, Readonly<BaseDialogSlots>>;
|
|
87
86
|
export default _default;
|
|
88
87
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
labelPosition?: "left" | "center" | "right";
|
|
1
|
+
import type { CommonProps, GenericModelValue } from '../../types/CommonProps';
|
|
2
|
+
export type BaseInputContainerProps = Pick<CommonProps, "direction" | "direction" | "errors" | "hasErrors" | "hideLabel" | "id" | "inputPosition" | "label" | "labelPosition" | "name" | "reverse"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Defines the HTML tag of the label element.
|
|
5
|
+
* Usually is a `label` but for certain component like checkboxes
|
|
6
|
+
* that have their own label it should be a `legend`.
|
|
7
|
+
* It is important for accessibility reasons.
|
|
8
|
+
*/
|
|
10
9
|
labelTag?: string;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
10
|
+
/**
|
|
11
|
+
* HTML tag of the container, it is by default a `span` so
|
|
12
|
+
* it can be used inline without breaking HTML validation.
|
|
13
|
+
*/
|
|
14
14
|
tag?: string;
|
|
15
|
-
};
|
|
15
|
+
} & GenericModelValue;
|
|
16
16
|
export type BaseInputContainerSlots = {
|
|
17
17
|
input?: (props: {
|
|
18
18
|
id: string;
|
|
@@ -39,11 +39,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
39
39
|
reverse: boolean;
|
|
40
40
|
tag: string;
|
|
41
41
|
}>>>, {
|
|
42
|
-
tag: string;
|
|
43
|
-
reverse: boolean;
|
|
44
42
|
direction: string;
|
|
45
|
-
inputPosition: "
|
|
46
|
-
labelPosition: "
|
|
43
|
+
inputPosition: "left" | "center" | "right";
|
|
44
|
+
labelPosition: "left" | "center" | "right";
|
|
45
|
+
reverse: boolean;
|
|
46
|
+
tag: string;
|
|
47
47
|
labelTag: string;
|
|
48
48
|
}, {}>, Readonly<BaseInputContainerSlots>>;
|
|
49
49
|
export default _default;
|
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
id?: string;
|
|
1
|
+
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
+
export type BaseNumberInputProps = Pick<CommonProps, 'autocomplete' | 'autofocus' | 'disabled' | 'hasErrors' | 'id' | 'name' | 'placeholder' | 'readonly'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Maximum value cap
|
|
5
|
+
*/
|
|
7
6
|
max?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Minimum value cap
|
|
9
|
+
*/
|
|
8
10
|
min?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Used by v-model
|
|
13
|
+
*/
|
|
9
14
|
modelValue?: number | string | null;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Incremental unit used in the exposed `increase`
|
|
17
|
+
* and `decrease` function. It's NOT APPLIED to manual input as a step of 5
|
|
18
|
+
* will prevent the user from inserting a value like `115` because of rounding down.
|
|
19
|
+
*/
|
|
13
20
|
step?: number;
|
|
14
|
-
}
|
|
21
|
+
};
|
|
15
22
|
export type BaseNumberInputEvents = {
|
|
16
23
|
(e: "blur", event: FocusEvent): void;
|
|
17
24
|
(e: "change", event: Event): void;
|
|
@@ -1,26 +1,22 @@
|
|
|
1
1
|
import { ExtractGenericFromComputedRef } from '../../types/ExtractGenericFromComputedRef';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
id?: string;
|
|
9
|
-
modelValue?: any;
|
|
10
|
-
name: string;
|
|
11
|
-
readonly?: boolean;
|
|
2
|
+
import type { CommonProps, GenericModelValue } from '../../types/CommonProps';
|
|
3
|
+
export type BaseRadioProps = Pick<CommonProps, "autofocus" | "checked" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & GenericModelValue & Required<Pick<CommonProps, "name">> & {
|
|
4
|
+
/**
|
|
5
|
+
* Defines the value of the radio input.
|
|
6
|
+
* It can be any serializable value.
|
|
7
|
+
*/
|
|
12
8
|
value: any;
|
|
13
|
-
}
|
|
9
|
+
};
|
|
14
10
|
export type BaseRadioEvents = {
|
|
15
|
-
(e:
|
|
16
|
-
(e:
|
|
17
|
-
(e:
|
|
18
|
-
(e:
|
|
19
|
-
(e:
|
|
20
|
-
(e:
|
|
21
|
-
(e:
|
|
22
|
-
(e:
|
|
23
|
-
(e:
|
|
11
|
+
(e: "blur", event: FocusEvent): void;
|
|
12
|
+
(e: "change", event: Event): void;
|
|
13
|
+
(e: "click", event: MouseEvent): void;
|
|
14
|
+
(e: "focus", event: FocusEvent): void;
|
|
15
|
+
(e: "input", event: Event): void;
|
|
16
|
+
(e: "keydown", event: KeyboardEvent): void;
|
|
17
|
+
(e: "mousedown", event: MouseEvent): void;
|
|
18
|
+
(e: "mouseup", event: MouseEvent): void;
|
|
19
|
+
(e: "update:modelValue", value: any): void;
|
|
24
20
|
};
|
|
25
21
|
export type SlotAttributes = ExtractGenericFromComputedRef<typeof slotAttributes>;
|
|
26
22
|
declare const slotAttributes: import("vue").ComputedRef<{
|
|
@@ -31,7 +27,7 @@ declare const slotAttributes: import("vue").ComputedRef<{
|
|
|
31
27
|
id: string | undefined;
|
|
32
28
|
name: string;
|
|
33
29
|
parsedValue: any;
|
|
34
|
-
readonly: boolean;
|
|
30
|
+
readonly: (boolean | "true" | "false") | undefined;
|
|
35
31
|
value: any;
|
|
36
32
|
}>;
|
|
37
33
|
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToRuntimeProps<BaseRadioProps>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -63,7 +59,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
63
59
|
id: string | undefined;
|
|
64
60
|
name: string;
|
|
65
61
|
parsedValue: any;
|
|
66
|
-
readonly: boolean;
|
|
62
|
+
readonly: (boolean | "true" | "false") | undefined;
|
|
67
63
|
value: any;
|
|
68
64
|
}) => any) | undefined;
|
|
69
65
|
}>>;
|
|
@@ -1,25 +1,12 @@
|
|
|
1
1
|
import type { BaseRadioEvents } from "../BaseRadio/BaseRadio.vue";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import type { BaseRadioProps } from "../BaseRadio/BaseRadio.vue";
|
|
3
|
+
import type { CommonProps, GenericModelValue, OptionItems } from '../../types/CommonProps';
|
|
4
|
+
export type BaseRadioGroupProps = Pick<BaseRadioProps, "autofocus" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & Pick<CommonProps, "dependencies" | "depsDebounceTime" | "enforceCoherence" | "hideLabel" | "itemText" | "itemValue" | "loadingText" | "modelValueDebounceTime" | "noDataText" | "matchStrategy"> & OptionItems & GenericModelValue & {
|
|
5
|
+
/**
|
|
6
|
+
* Direction of the layout of the inputs inside the fieldset. It can be either `horizontal` or `vertical`
|
|
7
|
+
*/
|
|
7
8
|
direction?: "horizontal" | "vertical";
|
|
8
|
-
|
|
9
|
-
enforceCoherence?: boolean;
|
|
10
|
-
hasErrors?: boolean;
|
|
11
|
-
hideLabel?: boolean;
|
|
12
|
-
id?: string;
|
|
13
|
-
items: any[] | ((prefill: boolean, modelValue: any) => Promise<any[]>) | ((prefill: boolean, modelValue: any) => any[]);
|
|
14
|
-
itemText?: string | ((item: any) => string);
|
|
15
|
-
itemValue?: string | ((item: any) => any);
|
|
16
|
-
loadingText?: string;
|
|
17
|
-
modelValue?: any;
|
|
18
|
-
modelValueDebounceTime?: number;
|
|
19
|
-
name: string;
|
|
20
|
-
noDataText?: string;
|
|
21
|
-
readonly?: boolean;
|
|
22
|
-
}
|
|
9
|
+
};
|
|
23
10
|
export type BaseRadioGroupEvents = BaseRadioEvents & {
|
|
24
11
|
(e: "inactive"): void;
|
|
25
12
|
};
|
|
@@ -28,6 +15,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
15
|
direction: string;
|
|
29
16
|
items: () => never[];
|
|
30
17
|
loadingText: string;
|
|
18
|
+
matchStrategy: string;
|
|
31
19
|
modelValueDebounceTime: number;
|
|
32
20
|
noDataText: string;
|
|
33
21
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -46,6 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
46
34
|
direction: string;
|
|
47
35
|
items: () => never[];
|
|
48
36
|
loadingText: string;
|
|
37
|
+
matchStrategy: string;
|
|
49
38
|
modelValueDebounceTime: number;
|
|
50
39
|
noDataText: string;
|
|
51
40
|
}>>> & {
|
|
@@ -61,11 +50,12 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
61
50
|
onInactive?: (() => any) | undefined;
|
|
62
51
|
}, {
|
|
63
52
|
depsDebounceTime: number;
|
|
53
|
+
direction: "horizontal" | "vertical";
|
|
64
54
|
loadingText: string;
|
|
55
|
+
matchStrategy: "string" | "equality";
|
|
65
56
|
modelValueDebounceTime: number;
|
|
66
57
|
noDataText: string;
|
|
67
|
-
|
|
68
|
-
items: any[] | ((prefill: boolean, modelValue: any) => Promise<any[]>) | ((prefill: boolean, modelValue: any) => any[]);
|
|
58
|
+
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
69
59
|
}, {}>, Readonly<{
|
|
70
60
|
prepend?: ((props: {}) => any) | undefined;
|
|
71
61
|
loading?: ((props: {}) => any) | undefined;
|
|
@@ -81,7 +71,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
81
71
|
id: string | undefined;
|
|
82
72
|
name: string;
|
|
83
73
|
parsedValue: any;
|
|
84
|
-
readonly: boolean;
|
|
74
|
+
readonly: (boolean | "true" | "false") | undefined;
|
|
85
75
|
value: any;
|
|
86
76
|
item: any;
|
|
87
77
|
text: string;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
+
import { CommonProps } from '../../types/CommonProps';
|
|
1
2
|
import type { BbIconProps } from "../BbIcon/BbIcon.vue";
|
|
2
|
-
export type BaseRatingProps = {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
hasErrors?: boolean;
|
|
7
|
-
id?: string;
|
|
3
|
+
export type BaseRatingProps = Pick<CommonProps, "autofocus" | "color" | "disabled" | "hasErrors" | "id" | "readonly"> & Required<Pick<CommonProps, "name">> & Pick<BbIconProps, "size"> & {
|
|
4
|
+
/**
|
|
5
|
+
* Used by v-model
|
|
6
|
+
*/
|
|
8
7
|
modelValue?: null | number;
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
/**
|
|
9
|
+
* Maximum number of stars to render and maximum value of the component
|
|
10
|
+
*/
|
|
11
11
|
stars?: number;
|
|
12
|
-
size?: BbIconProps["size"];
|
|
13
12
|
};
|
|
14
13
|
export type BaseRatingEvents = {
|
|
15
14
|
(e: "blur", event: FocusEvent): void;
|
|
@@ -1,33 +1,58 @@
|
|
|
1
|
-
|
|
1
|
+
import type { CommonProps, OptionItemsWithQuery, GenericModelValue } from '../../types/CommonProps';
|
|
2
|
+
export type BaseSelectProps = Pick<CommonProps, "allowWriting" | "autofocus" | "dependencies" | "depsDebounceTime" | "disabled" | "enforceCoherence" | "hasErrors" | "id" | "itemText" | "itemValue" | "loadingText" | "id" | "itemText" | "itemValue" | "loadingText" | "modelValueDebounceTime" | "multiple" | "name" | "noDataText" | "placeholder" | "readonly" | "transitionDuration"> & OptionItemsWithQuery & GenericModelValue & {
|
|
3
|
+
/**
|
|
4
|
+
* Allows the user to add options to the list by
|
|
5
|
+
* inserting text in the input and pressing ENTER.
|
|
6
|
+
* The value and text of the option generated is a
|
|
7
|
+
* string equal to what has been inserted.
|
|
8
|
+
*/
|
|
2
9
|
addOptions?: boolean;
|
|
3
|
-
|
|
4
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Sets the display model for selected values to a list
|
|
12
|
+
* of comma separated string. In this mode the user
|
|
13
|
+
* cannot deselect an option by pressing the close button.
|
|
14
|
+
*/
|
|
5
15
|
comma?: boolean;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Defines how the filtering should work.
|
|
18
|
+
* In any case options are always filtered by the text displayed but
|
|
19
|
+
* they can also take into account other properties of the
|
|
20
|
+
* passed elements when this property is a string or an array of string.
|
|
21
|
+
* E.g. items could be a list of users and you can filter users by email or phone by passing `['email', 'phone']`
|
|
22
|
+
* You can also pass false to not filter anything or a function for more granular control.
|
|
23
|
+
*
|
|
24
|
+
*/
|
|
10
25
|
filterBy?: string | string[] | false | ((value: any, item: any) => boolean) | null;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
itemValue?: string | ((item: any) => any);
|
|
16
|
-
loadingText?: string;
|
|
17
|
-
modelValue?: any;
|
|
18
|
-
modelValueDebounceTime?: number;
|
|
19
|
-
multiple?: boolean;
|
|
20
|
-
name?: string;
|
|
21
|
-
noDataText?: string;
|
|
22
|
-
placeholder?: string;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the prefill strategy for the input. By default the input will prefill
|
|
28
|
+
* on focus. It can also always prefill with `true` and only prefill on search with `false`.
|
|
29
|
+
*/
|
|
23
30
|
prefill?: boolean | "focus";
|
|
31
|
+
/**
|
|
32
|
+
* Time to wait when the users stops writing in the input before querying data.
|
|
33
|
+
* Especially useful when searching live data on big datasets.
|
|
34
|
+
*/
|
|
24
35
|
queryDebounceTime?: number;
|
|
25
|
-
|
|
36
|
+
/**
|
|
37
|
+
* If `true` when in multiple selection, reset the query immediately
|
|
38
|
+
* upon selecting an option. By default the query is
|
|
39
|
+
* not reset until focus is lost so the user can search
|
|
40
|
+
* for "Cath" and select "Cathy" and then write more to
|
|
41
|
+
* search for "Catherine"
|
|
42
|
+
*/
|
|
26
43
|
resetQueryOnOptionSelected?: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Adds a stash to accumulate selected values. Especially
|
|
46
|
+
* useful when searching in a big database of items.
|
|
47
|
+
* E.g. if you search for "John" and then search for "Richard"
|
|
48
|
+
* you either always return the previous items or you stash them passing `true` to this option.
|
|
49
|
+
*/
|
|
27
50
|
stash?: boolean;
|
|
28
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Pass `true` if the dropdown is not updating following movement in the UI, like in modals. Very expensive so use with care.
|
|
53
|
+
*/
|
|
29
54
|
updateOnAnimationFrame?: boolean;
|
|
30
|
-
}
|
|
55
|
+
} & Pick<CommonProps, "matchStrategy">;
|
|
31
56
|
type BaseOption = {
|
|
32
57
|
id: string;
|
|
33
58
|
jsonValue: string;
|
|
@@ -97,6 +122,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
97
122
|
depsDebounceTime: number;
|
|
98
123
|
filterBy: () => never[];
|
|
99
124
|
loadingText: string;
|
|
125
|
+
matchStrategy: string;
|
|
100
126
|
modelValueDebounceTime: number;
|
|
101
127
|
noDataText: string;
|
|
102
128
|
prefill: string;
|
|
@@ -116,6 +142,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
116
142
|
depsDebounceTime: number;
|
|
117
143
|
filterBy: () => never[];
|
|
118
144
|
loadingText: string;
|
|
145
|
+
matchStrategy: string;
|
|
119
146
|
modelValueDebounceTime: number;
|
|
120
147
|
noDataText: string;
|
|
121
148
|
prefill: string;
|
|
@@ -131,13 +158,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
131
158
|
"onUpdate:modelValue"?: ((value: any) => any) | undefined;
|
|
132
159
|
onInactive?: (() => any) | undefined;
|
|
133
160
|
}, {
|
|
161
|
+
allowWriting: boolean;
|
|
134
162
|
depsDebounceTime: number;
|
|
135
163
|
loadingText: string;
|
|
164
|
+
matchStrategy: "string" | "equality";
|
|
136
165
|
modelValueDebounceTime: number;
|
|
137
166
|
noDataText: string;
|
|
138
|
-
prefill: boolean | "focus";
|
|
139
|
-
allowWriting: boolean;
|
|
140
167
|
transitionDuration: number;
|
|
168
|
+
prefill: boolean | "focus";
|
|
141
169
|
filterBy: string | false | string[] | ((value: any, item: any) => boolean) | null;
|
|
142
170
|
queryDebounceTime: number;
|
|
143
171
|
updateOnAnimationFrame: boolean;
|
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
id?: string;
|
|
1
|
+
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
+
export type BaseSliderProps = Pick<CommonProps, "autofocus" | "color" | "disabled" | "hasErrors" | "id" | "name" | "readonly"> & {
|
|
3
|
+
/**
|
|
4
|
+
* Maximum value cap.
|
|
5
|
+
*/
|
|
7
6
|
max?: number;
|
|
7
|
+
/**
|
|
8
|
+
* Minimum value cap.
|
|
9
|
+
*/
|
|
8
10
|
min?: number;
|
|
11
|
+
/**
|
|
12
|
+
* Used by v-model.
|
|
13
|
+
*/
|
|
9
14
|
modelValue: number | string | null;
|
|
10
|
-
|
|
11
|
-
|
|
15
|
+
/**
|
|
16
|
+
* The step attribute is a number that specifies the granularity that the value must adhere to.
|
|
17
|
+
*/
|
|
12
18
|
step?: number;
|
|
13
|
-
}
|
|
19
|
+
};
|
|
14
20
|
export type BaseSliderEvents = {
|
|
15
21
|
(e: "click", event: MouseEvent): void;
|
|
16
22
|
(e: "end", value: BaseSliderProps["modelValue"]): void;
|
|
@@ -29,6 +29,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
29
29
|
direction: string;
|
|
30
30
|
items: () => never[];
|
|
31
31
|
loadingText: string;
|
|
32
|
+
matchStrategy: string;
|
|
32
33
|
modelValueDebounceTime: number;
|
|
33
34
|
noDataText: string;
|
|
34
35
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -47,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
47
48
|
direction: string;
|
|
48
49
|
items: () => never[];
|
|
49
50
|
loadingText: string;
|
|
51
|
+
matchStrategy: string;
|
|
50
52
|
modelValueDebounceTime: number;
|
|
51
53
|
noDataText: string;
|
|
52
54
|
}>>> & {
|
|
@@ -62,10 +64,11 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
62
64
|
onInactive?: (() => any) | undefined;
|
|
63
65
|
}, {
|
|
64
66
|
depsDebounceTime: number;
|
|
67
|
+
direction: "horizontal" | "vertical";
|
|
65
68
|
loadingText: string;
|
|
69
|
+
matchStrategy: "string" | "equality";
|
|
66
70
|
modelValueDebounceTime: number;
|
|
67
71
|
noDataText: string;
|
|
68
|
-
direction: "horizontal" | "vertical";
|
|
69
72
|
items: any[] | ((prefill: boolean, modelValue?: any[] | undefined) => Promise<any[]>) | ((prefill: boolean, modelValue?: any[] | undefined) => any[]);
|
|
70
73
|
}, {}>, Readonly<BaseSwitchGroupSlots>>;
|
|
71
74
|
export default _default;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
readonly?: boolean;
|
|
1
|
+
import type { CommonProps } from '../../types/CommonProps';
|
|
2
|
+
export type BaseTextInputProps = Pick<CommonProps, 'autocomplete' | 'autofocus' | 'disabled' | 'hasErrors' | 'id' | 'name' | 'placeholder' | 'readonly'> & {
|
|
3
|
+
/**
|
|
4
|
+
* Used my v-model
|
|
5
|
+
*/
|
|
6
|
+
modelValue?: string | null;
|
|
7
|
+
/**
|
|
8
|
+
* Type of the input. Returns the content type of the object.
|
|
9
|
+
*/
|
|
11
10
|
type?: HTMLInputElement['type'];
|
|
12
|
-
}
|
|
11
|
+
};
|
|
13
12
|
export type BaseTextInputEvents = {
|
|
14
13
|
(e: 'blur', event: FocusEvent): void;
|
|
15
14
|
(e: 'change', event: Event): void;
|