eco-vue-js 0.18.3 → 0.19.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/components/Button/WButtonGroup.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/Checkbox/WCheckboxGroup.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/Checkbox/WCheckboxGroupMultiple.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/Dropdown/types.d.ts +7 -0
- package/dist/components/Dropdown/types.d.ts.map +1 -1
- package/dist/components/DropdownMenu/types.d.ts +2 -0
- package/dist/components/DropdownMenu/types.d.ts.map +1 -1
- package/dist/components/FieldWrapper/WFieldWrapper.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/FieldWrapper/types.d.ts +24 -2
- package/dist/components/FieldWrapper/types.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue.d.ts +0 -2
- package/dist/components/Input/WInput.vue.d.ts.map +1 -1
- package/dist/components/Input/WInput.vue_vue_type_script_setup_true_lang.js +1 -4
- package/dist/components/Input/WInputAsync.vue_vue_type_script_setup_true_lang.js +0 -2
- package/dist/components/Input/WInputDate.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputDate.vue_vue_type_script_setup_true_lang.js +1 -7
- package/dist/components/Input/WInputOptions.vue_vue_type_script_setup_true_lang.js +1 -7
- package/dist/components/Input/WInputSuggest.vue.d.ts.map +1 -1
- package/dist/components/Input/WInputSuggest.vue_vue_type_script_setup_true_lang.js +1 -7
- package/dist/components/Input/types.d.ts +45 -1
- package/dist/components/Input/types.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue.d.ts +6 -0
- package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelect.vue_vue_type_script_setup_true_lang.js +3 -9
- package/dist/components/Select/WSelectAsync.vue.d.ts +6 -0
- package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsync.vue_vue_type_script_setup_true_lang.js +5 -13
- package/dist/components/Select/WSelectAsyncList.vue.d.ts +0 -2
- package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncList.vue_vue_type_script_setup_true_lang.js +1 -3
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +10 -0
- package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectAsyncSingle.vue_vue_type_script_setup_true_lang.js +15 -15
- package/dist/components/Select/WSelectSingle.vue.d.ts +6 -0
- package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
- package/dist/components/Select/WSelectSingle.vue_vue_type_script_setup_true_lang.js +3 -11
- package/dist/components/Select/WSelectStringified.vue_vue_type_script_setup_true_lang.js +2 -8
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts +0 -2
- package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncList.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
- package/dist/components/Select/components/SelectAsyncPrefix.vue_vue_type_script_setup_true_lang.js +3 -3
- package/dist/components/Select/types.d.ts +42 -5
- package/dist/components/Select/types.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue.d.ts +2 -1
- package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
- package/dist/components/Toggle/WToggle.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/components/Toggle/WToggleTheme.vue_vue_type_script_setup_true_lang.js +0 -1
- package/dist/components/Toggle/types.d.ts +15 -1
- package/dist/components/Toggle/types.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue.d.ts +12 -2
- package/dist/components/Tooltip/WTooltip.vue.d.ts.map +1 -1
- package/dist/components/Tooltip/WTooltip.vue_vue_type_script_setup_true_lang.js +0 -3
- package/dist/components/Tooltip/models/tooltipMeta.d.ts +0 -3
- package/dist/components/Tooltip/models/tooltipMeta.d.ts.map +1 -1
- package/package.json +2 -1
- package/tailwind-base/css/theme.css +3 -3
|
@@ -47,7 +47,6 @@ var WButtonGroup_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
47
47
|
default: void 0
|
|
48
48
|
},
|
|
49
49
|
required: { type: Boolean },
|
|
50
|
-
mandatory: { type: Boolean },
|
|
51
50
|
noMargin: { type: Boolean },
|
|
52
51
|
allowCopy: { type: Boolean },
|
|
53
52
|
leftError: { type: Boolean },
|
|
@@ -55,7 +54,6 @@ var WButtonGroup_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ def
|
|
|
55
54
|
filterValue: {},
|
|
56
55
|
subgrid: { type: Boolean },
|
|
57
56
|
seamless: { type: Boolean },
|
|
58
|
-
savedText: {},
|
|
59
57
|
topText: { type: Boolean },
|
|
60
58
|
allowDropFile: { type: Boolean },
|
|
61
59
|
hideTitle: { type: Boolean },
|
|
@@ -30,7 +30,6 @@ var WCheckboxGroup_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
30
30
|
disabled: { type: Boolean },
|
|
31
31
|
readonly: { type: Boolean },
|
|
32
32
|
required: { type: Boolean },
|
|
33
|
-
mandatory: { type: Boolean },
|
|
34
33
|
noMargin: { type: Boolean },
|
|
35
34
|
allowCopy: { type: Boolean },
|
|
36
35
|
leftError: { type: Boolean },
|
|
@@ -38,7 +37,6 @@ var WCheckboxGroup_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ d
|
|
|
38
37
|
filterValue: {},
|
|
39
38
|
subgrid: { type: Boolean },
|
|
40
39
|
seamless: { type: Boolean },
|
|
41
|
-
savedText: {},
|
|
42
40
|
topText: { type: Boolean },
|
|
43
41
|
allowDropFile: { type: Boolean },
|
|
44
42
|
hideTitle: { type: Boolean },
|
package/dist/components/Checkbox/WCheckboxGroupMultiple.vue_vue_type_script_setup_true_lang.js
CHANGED
|
@@ -29,7 +29,6 @@ var WCheckboxGroupMultiple_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
29
29
|
disabled: { type: Boolean },
|
|
30
30
|
readonly: { type: Boolean },
|
|
31
31
|
required: { type: Boolean },
|
|
32
|
-
mandatory: { type: Boolean },
|
|
33
32
|
noMargin: { type: Boolean },
|
|
34
33
|
allowCopy: { type: Boolean },
|
|
35
34
|
leftError: { type: Boolean },
|
|
@@ -37,7 +36,6 @@ var WCheckboxGroupMultiple_vue_vue_type_script_setup_true_lang_default = /*@__PU
|
|
|
37
36
|
filterValue: {},
|
|
38
37
|
subgrid: { type: Boolean },
|
|
39
38
|
seamless: { type: Boolean },
|
|
40
|
-
savedText: {},
|
|
41
39
|
topText: { type: Boolean },
|
|
42
40
|
allowDropFile: { type: Boolean },
|
|
43
41
|
hideTitle: { type: Boolean },
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import { HorizontalAlign } from '../../utils/HorizontalAlign';
|
|
2
2
|
export interface DropdownProps {
|
|
3
|
+
/** Horizontal placement relative to the parent. When it does not fit the viewport, the next placement in order is tried. */
|
|
3
4
|
horizontalAlign: HorizontalAlign;
|
|
5
|
+
/** Prefers opening above the parent. */
|
|
4
6
|
top?: boolean;
|
|
7
|
+
/** Always opens below the parent. */
|
|
5
8
|
bottom?: boolean;
|
|
9
|
+
/** Element (or range) the dropdown is positioned against. */
|
|
6
10
|
parentElement: Pick<Element, 'getBoundingClientRect'>;
|
|
11
|
+
/** Picks the placement again as the parent moves, instead of keeping the first one. */
|
|
7
12
|
updateAlign?: boolean;
|
|
13
|
+
/** Emits `update:rect` on scroll and resize instead of following the parent. */
|
|
8
14
|
emitUpdate?: boolean;
|
|
15
|
+
/** Classes for the dropdown's content box. Defaults to `w-max`. */
|
|
9
16
|
innerClass?: string;
|
|
10
17
|
}
|
|
11
18
|
export type DropdownDefaultSlotScope = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAE5D,MAAM,WAAW,aAAa;IAC5B,eAAe,EAAE,eAAe,CAAA;IAChC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAA;IACrD,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Dropdown/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAE5D,MAAM,WAAW,aAAa;IAC5B,4HAA4H;IAC5H,eAAe,EAAE,eAAe,CAAA;IAChC,wCAAwC;IACxC,GAAG,CAAC,EAAE,OAAO,CAAA;IACb,qCAAqC;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,6DAA6D;IAC7D,aAAa,EAAE,IAAI,CAAC,OAAO,EAAE,uBAAuB,CAAC,CAAA;IACrD,uFAAuF;IACvF,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,gFAAgF;IAChF,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,mEAAmE;IACnE,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,MAAM,wBAAwB,GAAG;IACrC,KAAK,EAAE,OAAO,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,OAAO,EAAE,OAAO,CAAA;IAChB,QAAQ,EAAE,OAAO,CAAA;CAClB,CAAA"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { DropdownProps } from '../Dropdown/types';
|
|
2
2
|
export interface DropdownMenuProps extends Omit<DropdownProps, 'parentElement'> {
|
|
3
3
|
isOpen: boolean;
|
|
4
|
+
/** Element the menu is positioned against. Defaults to the element rendered by the `toggle` slot. */
|
|
4
5
|
parentElement?: DropdownProps['parentElement'];
|
|
6
|
+
/** Classes for the menu's content box. */
|
|
5
7
|
dropdownClass?: string;
|
|
6
8
|
}
|
|
7
9
|
export interface DropdownAdaptiveProps extends DropdownMenuProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAA;IACf,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC9C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B"}
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/DropdownMenu/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,aAAa,EAAC,MAAM,mBAAmB,CAAA;AAEpD,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,aAAa,EAAE,eAAe,CAAC;IAC7E,MAAM,EAAE,OAAO,CAAA;IACf,qGAAqG;IACrG,aAAa,CAAC,EAAE,aAAa,CAAC,eAAe,CAAC,CAAA;IAC9C,0CAA0C;IAC1C,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB;AAED,MAAM,WAAW,qBAAsB,SAAQ,iBAAiB;IAC9D,mBAAmB,CAAC,EAAE,OAAO,CAAA;CAC9B"}
|
|
@@ -53,7 +53,6 @@ var WFieldWrapper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
53
53
|
default: void 0
|
|
54
54
|
},
|
|
55
55
|
required: { type: Boolean },
|
|
56
|
-
mandatory: { type: Boolean },
|
|
57
56
|
noMargin: { type: Boolean },
|
|
58
57
|
allowCopy: { type: Boolean },
|
|
59
58
|
leftError: { type: Boolean },
|
|
@@ -61,7 +60,6 @@ var WFieldWrapper_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
61
60
|
filterValue: {},
|
|
62
61
|
subgrid: { type: Boolean },
|
|
63
62
|
seamless: { type: Boolean },
|
|
64
|
-
savedText: {},
|
|
65
63
|
topText: { type: Boolean },
|
|
66
64
|
allowDropFile: { type: Boolean },
|
|
67
65
|
hideTitle: { type: Boolean },
|
|
@@ -1,29 +1,51 @@
|
|
|
1
1
|
export interface FieldWrapperProps {
|
|
2
|
+
/** Field value. */
|
|
2
3
|
modelValue?: string | number | boolean | null;
|
|
4
|
+
/** Label above the field; the `title` slot replaces it. */
|
|
3
5
|
title?: string;
|
|
6
|
+
/** Icon before the title text. */
|
|
4
7
|
titleIcon?: SVGComponent;
|
|
8
|
+
/** Secondary text under the field. */
|
|
5
9
|
description?: string;
|
|
10
|
+
/** Validation message under the field, which also colors the changes marker. */
|
|
6
11
|
errorMessage?: string;
|
|
12
|
+
/** Tooltip on hover over the whole field. Not shown while readonly or loading as a skeleton. */
|
|
7
13
|
tooltipText?: string;
|
|
14
|
+
/** Shows a `length / maxLength` counter under the field while it is focused. */
|
|
8
15
|
maxLength?: number;
|
|
16
|
+
/** Monospace font for the value. */
|
|
9
17
|
mono?: boolean;
|
|
18
|
+
/** Shows a dot in the field's corner, marking an unsaved change. */
|
|
10
19
|
hasChanges?: boolean;
|
|
20
|
+
/** Renders skeleton placeholders for the title, field and description. When unset, inherits the skeleton state provided by a parent. */
|
|
11
21
|
skeleton?: boolean;
|
|
22
|
+
/** Blocks input and dims the field. When unset, inherits the disabled state provided by a parent. */
|
|
12
23
|
disabled?: boolean;
|
|
24
|
+
/** Shows the value without allowing changes. When unset, inherits the readonly state provided by a parent. */
|
|
13
25
|
readonly?: boolean;
|
|
26
|
+
/** Adds an asterisk to the title. */
|
|
14
27
|
required?: boolean;
|
|
15
|
-
|
|
28
|
+
/** Drops the default bottom margin. */
|
|
16
29
|
noMargin?: boolean;
|
|
30
|
+
/** Adds a button that copies the value. */
|
|
17
31
|
allowCopy?: boolean;
|
|
32
|
+
/** Aligns the error message to the left instead of the right. */
|
|
18
33
|
leftError?: boolean;
|
|
34
|
+
/** Route query key for a filter button next to the title — clicking it toggles `filterField=<value>` in the URL. */
|
|
19
35
|
filterField?: string;
|
|
36
|
+
/** Value the filter button puts in the query. Defaults to `modelValue`. */
|
|
20
37
|
filterValue?: unknown;
|
|
38
|
+
/** Lays the field out on the parent grid's columns, with the title in the first column, so titles and fields line up across rows. */
|
|
21
39
|
subgrid?: boolean;
|
|
40
|
+
/** Hides the title and drops the field's own chrome until it is hovered or focused, for inline editing. */
|
|
22
41
|
seamless?: boolean;
|
|
23
|
-
|
|
42
|
+
/** Moves the counter and messages above the field instead of below it. */
|
|
24
43
|
topText?: boolean;
|
|
44
|
+
/** Accepts files dropped onto the field. */
|
|
25
45
|
allowDropFile?: boolean;
|
|
46
|
+
/** Hides the title while keeping the rest of the layout. */
|
|
26
47
|
hideTitle?: boolean;
|
|
48
|
+
/** For a field placed inside another component, such as a dropdown: no title, no margin, and horizontal padding. */
|
|
27
49
|
embedded?: boolean;
|
|
28
50
|
}
|
|
29
51
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/FieldWrapper/types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,E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,CAAC,EAAE,OAAO,CAAA;IAClB,qCAAqC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,2CAA2C;IAC3C,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oHAAoH;IACpH,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,2EAA2E;IAC3E,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qIAAqI;IACrI,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,2GAA2G;IAC3G,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,0EAA0E;IAC1E,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,oHAAoH;IACpH,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB"}
|
|
@@ -15,7 +15,6 @@ declare const __VLS_export: <Type extends InputType = "text">(__VLS_props: NonNu
|
|
|
15
15
|
"onKeypress:up"?: ((value: KeyboardEvent) => any) | undefined;
|
|
16
16
|
"onKeypress:down"?: ((value: KeyboardEvent) => any) | undefined;
|
|
17
17
|
"onKeypress:delete"?: ((value: KeyboardEvent) => any) | undefined;
|
|
18
|
-
"onKeypress:backspace"?: ((value: KeyboardEvent) => any) | undefined;
|
|
19
18
|
"onSelect:input"?: ((value: Event) => any) | undefined;
|
|
20
19
|
}> & (typeof globalThis extends {
|
|
21
20
|
__VLS_PROPS_FALLBACK: infer P;
|
|
@@ -76,7 +75,6 @@ declare const __VLS_export: <Type extends InputType = "text">(__VLS_props: NonNu
|
|
|
76
75
|
(e: "keypress:up", value: KeyboardEvent): void;
|
|
77
76
|
(e: "keypress:down", value: KeyboardEvent): void;
|
|
78
77
|
(e: "keypress:delete", value: KeyboardEvent): void;
|
|
79
|
-
(e: "keypress:backspace", value: KeyboardEvent): void;
|
|
80
78
|
(e: "click:clear"): void;
|
|
81
79
|
(e: "focus", value: FocusEvent | undefined): void;
|
|
82
80
|
(e: "blur", value: FocusEvent): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAmXA;
|
|
1
|
+
{"version":3,"file":"WInput.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInput.vue"],"names":[],"mappings":"AAmXA;AAu0BA,OAAO,KAAK,EAAC,UAAU,EAAY,aAAa,EAAC,MAAM,SAAS,CAAA;AAChE,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,mCAAmC,CAAA;AAmBlE,OAAO,EAAC,KAAK,WAAW,EAAC,MAAM,gBAAgB,CAAA;AAI/C,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,SAAS,GAAG,MAAM,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAigDO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;;;;;;;;;;;;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,OAAO,KAAK,EAAE,gBAAgB;qBAvwC/B,IAAI;oBAOL,IAAI;+BAmES,aAAa;0BArOlB,MAAM,QAAQ,MAAM,KAAG,I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CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -98,7 +98,6 @@ var WInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
98
98
|
default: void 0
|
|
99
99
|
},
|
|
100
100
|
required: { type: Boolean },
|
|
101
|
-
mandatory: { type: Boolean },
|
|
102
101
|
noMargin: { type: Boolean },
|
|
103
102
|
allowCopy: { type: Boolean },
|
|
104
103
|
leftError: { type: Boolean },
|
|
@@ -106,7 +105,6 @@ var WInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
106
105
|
filterValue: {},
|
|
107
106
|
subgrid: { type: Boolean },
|
|
108
107
|
seamless: { type: Boolean },
|
|
109
|
-
savedText: {},
|
|
110
108
|
topText: { type: Boolean },
|
|
111
109
|
allowDropFile: { type: Boolean },
|
|
112
110
|
hideTitle: { type: Boolean },
|
|
@@ -118,7 +116,6 @@ var WInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
118
116
|
"keypress:up",
|
|
119
117
|
"keypress:down",
|
|
120
118
|
"keypress:delete",
|
|
121
|
-
"keypress:backspace",
|
|
122
119
|
"click:clear",
|
|
123
120
|
"focus",
|
|
124
121
|
"blur",
|
|
@@ -330,7 +327,7 @@ var WInput_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCom
|
|
|
330
327
|
await checkPermissionPaste();
|
|
331
328
|
await navigator.clipboard.readText().then((value) => {
|
|
332
329
|
if (!value) Notify.warn({ title: "Nothing to paste" });
|
|
333
|
-
else if (!props.maxLength ||
|
|
330
|
+
else if (!props.maxLength || value.length <= props.maxLength) {
|
|
334
331
|
updateModelValue(value, true);
|
|
335
332
|
Notify.success({ title: "Pasted" });
|
|
336
333
|
nextTick().then(() => emit("paste"));
|
|
@@ -63,7 +63,6 @@ var WInputAsync_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
63
63
|
default: void 0
|
|
64
64
|
},
|
|
65
65
|
required: { type: Boolean },
|
|
66
|
-
mandatory: { type: Boolean },
|
|
67
66
|
noMargin: { type: Boolean },
|
|
68
67
|
allowCopy: { type: Boolean },
|
|
69
68
|
leftError: { type: Boolean },
|
|
@@ -71,7 +70,6 @@ var WInputAsync_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defi
|
|
|
71
70
|
filterValue: {},
|
|
72
71
|
subgrid: { type: Boolean },
|
|
73
72
|
seamless: { type: Boolean },
|
|
74
|
-
savedText: {},
|
|
75
73
|
topText: { type: Boolean },
|
|
76
74
|
allowDropFile: { type: Boolean },
|
|
77
75
|
hideTitle: { type: Boolean },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAoDA;
|
|
1
|
+
{"version":3,"file":"WInputDate.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputDate.vue"],"names":[],"mappings":"AAoDA;AAyHA,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAA;AAO3C,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAA;AAmNvD,QAAA,IAAwB,QAAQ,IAAW,EAAE,QAAQ,IAAW,EAAE,QAAQ;;CAAY,CAAE;AACxF,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC3C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC9C;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAO9C,QAAA,MAAM,UAAU;;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -68,7 +68,6 @@ var WInputDate_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
68
68
|
default: void 0
|
|
69
69
|
},
|
|
70
70
|
required: { type: Boolean },
|
|
71
|
-
mandatory: { type: Boolean },
|
|
72
71
|
noMargin: { type: Boolean },
|
|
73
72
|
allowCopy: { type: Boolean },
|
|
74
73
|
leftError: { type: Boolean },
|
|
@@ -76,17 +75,12 @@ var WInputDate_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defin
|
|
|
76
75
|
filterValue: {},
|
|
77
76
|
subgrid: { type: Boolean },
|
|
78
77
|
seamless: { type: Boolean },
|
|
79
|
-
savedText: {},
|
|
80
78
|
topText: { type: Boolean },
|
|
81
79
|
allowDropFile: { type: Boolean },
|
|
82
80
|
hideTitle: { type: Boolean },
|
|
83
81
|
embedded: { type: Boolean },
|
|
84
|
-
parentElement: {},
|
|
85
|
-
dropdownClass: {},
|
|
86
82
|
horizontalAlign: { default: HorizontalAlign.RIGHT_INNER },
|
|
87
|
-
|
|
88
|
-
bottom: { type: Boolean },
|
|
89
|
-
innerClass: {}
|
|
83
|
+
dropdownClass: {}
|
|
90
84
|
},
|
|
91
85
|
emits: ["update:model-value"],
|
|
92
86
|
setup(__props, { emit: __emit }) {
|
|
@@ -74,7 +74,6 @@ var WInputOptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
74
74
|
default: void 0
|
|
75
75
|
},
|
|
76
76
|
required: { type: Boolean },
|
|
77
|
-
mandatory: { type: Boolean },
|
|
78
77
|
noMargin: { type: Boolean },
|
|
79
78
|
allowCopy: { type: Boolean },
|
|
80
79
|
leftError: { type: Boolean },
|
|
@@ -82,17 +81,12 @@ var WInputOptions_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
82
81
|
filterValue: {},
|
|
83
82
|
subgrid: { type: Boolean },
|
|
84
83
|
seamless: { type: Boolean },
|
|
85
|
-
savedText: {},
|
|
86
84
|
topText: { type: Boolean },
|
|
87
85
|
allowDropFile: { type: Boolean },
|
|
88
86
|
hideTitle: { type: Boolean },
|
|
89
87
|
embedded: { type: Boolean },
|
|
90
|
-
parentElement: {},
|
|
91
|
-
dropdownClass: {},
|
|
92
88
|
horizontalAlign: {},
|
|
93
|
-
|
|
94
|
-
bottom: { type: Boolean },
|
|
95
|
-
innerClass: {}
|
|
89
|
+
dropdownClass: {}
|
|
96
90
|
},
|
|
97
91
|
emits: ["update:model-value"],
|
|
98
92
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AAiKA;
|
|
1
|
+
{"version":3,"file":"WInputSuggest.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/WInputSuggest.vue"],"names":[],"mappings":"AAiKA;AAkRA,OAAO,KAAK,EAAC,iBAAiB,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;AAE7D,OAAO,EAAC,KAAK,KAAK,EAA4C,MAAM,KAAK,CAAA;AAezE,QAAA,MAAM,YAAY,GAAK,IAAI,SAAS,SAAS,GAAG,MAAM,EACrD,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CA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,aAAa,GAAG,IAAI;YAC5C,iBAAiB,SAAS,aAAa,GAAG,IAAI;YAC9C,MAAM,GAAG,IAAI;YACb,OAAO,GAAG,IAAI;YACd,aAAa,GAAG,IAAI;YACpB,OAAO,SAAS,UAAU,GAAG,SAAS,GAAG,IAAI;YAC7C,MAAM,SAAS,UAAU,GAAG,IAAI;;EAgflC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -71,7 +71,6 @@ var WInputSuggest_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
71
71
|
default: void 0
|
|
72
72
|
},
|
|
73
73
|
required: { type: Boolean },
|
|
74
|
-
mandatory: { type: Boolean },
|
|
75
74
|
noMargin: { type: Boolean },
|
|
76
75
|
allowCopy: { type: Boolean },
|
|
77
76
|
leftError: { type: Boolean },
|
|
@@ -79,17 +78,12 @@ var WInputSuggest_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ de
|
|
|
79
78
|
filterValue: {},
|
|
80
79
|
subgrid: { type: Boolean },
|
|
81
80
|
seamless: { type: Boolean },
|
|
82
|
-
savedText: {},
|
|
83
81
|
topText: { type: Boolean },
|
|
84
82
|
allowDropFile: { type: Boolean },
|
|
85
83
|
hideTitle: { type: Boolean },
|
|
86
84
|
embedded: { type: Boolean },
|
|
87
|
-
parentElement: {},
|
|
88
|
-
dropdownClass: {},
|
|
89
85
|
horizontalAlign: { default: HorizontalAlign.FILL },
|
|
90
|
-
|
|
91
|
-
bottom: { type: Boolean },
|
|
92
|
-
innerClass: {}
|
|
86
|
+
dropdownClass: {}
|
|
93
87
|
},
|
|
94
88
|
emits: [
|
|
95
89
|
"update:model-value",
|
|
@@ -3,50 +3,91 @@ import { FieldWrapperProps } from '../FieldWrapper/types';
|
|
|
3
3
|
import { WrapSelectionType } from '../../utils/utils';
|
|
4
4
|
import { Component } from 'vue';
|
|
5
5
|
export interface InputProps<Type extends InputType> extends Omit<FieldWrapperProps, 'modelValue'> {
|
|
6
|
+
/** Field value — a `number` when `type` is `number`, otherwise a `string`. */
|
|
6
7
|
modelValue?: (Type extends 'number' ? number : string) | undefined | null;
|
|
8
|
+
/** Native input type. `number` parses the value into a number. */
|
|
7
9
|
type?: Type;
|
|
10
|
+
/** Multi-line editor instead of a single-line input, with undo and redo. */
|
|
8
11
|
textarea?: boolean;
|
|
12
|
+
/** Lets the user drag the textarea's height. */
|
|
9
13
|
resize?: boolean;
|
|
14
|
+
/** Hint shown while the field is empty. */
|
|
10
15
|
placeholder?: string;
|
|
16
|
+
/** Icon at the start of the field, highlighted while focused. */
|
|
11
17
|
icon?: SVGComponent;
|
|
18
|
+
/** Native `size` attribute, which sets the input's minimum width in characters. */
|
|
12
19
|
size?: number;
|
|
20
|
+
/** Cuts off input longer than this, and shows a `length / maxLength` counter under the field while it is focused. */
|
|
13
21
|
maxLength?: number;
|
|
22
|
+
/** Native `step` attribute for `type="number"`. */
|
|
14
23
|
step?: number;
|
|
24
|
+
/** Native `min` attribute for `type="number"`. */
|
|
15
25
|
min?: number;
|
|
26
|
+
/** Native `max` attribute for `type="number"`. */
|
|
16
27
|
max?: number;
|
|
28
|
+
/** Native `name` attribute. */
|
|
17
29
|
name?: string;
|
|
30
|
+
/** Native `autocomplete` attribute. */
|
|
18
31
|
autocomplete?: 'off' | string;
|
|
32
|
+
/** Focuses the field after mount, and again when the browser tab becomes active. A number sets the delay in ms (`0` focuses at once). Skipped while another input has focus. */
|
|
19
33
|
autofocus?: boolean | number;
|
|
34
|
+
/** Shows the value as text without an input. When unset, inherits the readonly state provided by a parent. */
|
|
20
35
|
readonly?: boolean;
|
|
36
|
+
/** Blocks typing and turns a click into a `focus` event, for fields that open a menu instead of taking text. */
|
|
21
37
|
unclickable?: boolean | null;
|
|
38
|
+
/** Disables the action buttons (clear, paste, copy) while keeping the input editable. */
|
|
22
39
|
disabledActions?: boolean;
|
|
40
|
+
/** Shows a spinner in the actions and blocks input. */
|
|
23
41
|
loading?: boolean;
|
|
42
|
+
/** Enables the browser's spell check. */
|
|
24
43
|
spellcheck?: boolean;
|
|
44
|
+
/** Handles Backspace in code — removes the character or selection and emits the new value — instead of leaving it to the browser. */
|
|
25
45
|
customBackspaceHandle?: boolean;
|
|
46
|
+
/** Masks the value, with a button to reveal it, for secrets. A model value of `true` means a secret is set but not sent to the client, and shows a check mark instead. */
|
|
26
47
|
textSecure?: boolean;
|
|
48
|
+
/** Shows the secret-set check mark while the field is empty. */
|
|
27
49
|
placeholderSecure?: boolean;
|
|
50
|
+
/** Adds a button that clears the value. */
|
|
28
51
|
allowClear?: boolean;
|
|
52
|
+
/** Adds a button that pastes from the clipboard, replacing the value. */
|
|
29
53
|
allowPaste?: boolean;
|
|
54
|
+
/** Hides the text input, leaving only the `prefix` content. */
|
|
30
55
|
hideInput?: boolean;
|
|
56
|
+
/** Keeps the `prefix` content on one line, scrolling sideways instead of wrapping. */
|
|
31
57
|
noWrap?: boolean;
|
|
58
|
+
/** Makes the typed text transparent while keeping the caret, for an overlay that draws the text itself. */
|
|
32
59
|
textTransparent?: boolean;
|
|
60
|
+
/** Textarea content as a list of strings and tagged parts, for highlighting parts of the text. */
|
|
33
61
|
textParts?: TextPart[];
|
|
62
|
+
/** Adds a formatting toolbar to the textarea. */
|
|
34
63
|
rich?: boolean;
|
|
64
|
+
/** Custom buttons for the textarea toolbar. */
|
|
35
65
|
toolbarActions?: ToolbarAction[];
|
|
66
|
+
/** Border color classes, replacing the default gray. */
|
|
36
67
|
borderClass?: string;
|
|
68
|
+
/** Keeps edits local and emits them only when saved — on Enter or blur — instead of on every keystroke. */
|
|
37
69
|
async?: boolean;
|
|
70
|
+
/** With `async`, also saves after this many ms without typing, showing a progress bar under the text. */
|
|
38
71
|
debounce?: number;
|
|
72
|
+
/** Hides the `debounce` progress bar. */
|
|
39
73
|
hideDebounce?: boolean;
|
|
74
|
+
/** With `async`, shows Save and Cancel buttons while there are unsaved edits. Always on for `textarea` and `textSecure`. */
|
|
40
75
|
explicit?: boolean;
|
|
41
76
|
}
|
|
42
77
|
export interface InputAsyncProps<Type extends InputType> extends InputProps<Type> {
|
|
78
|
+
/** Checks the value before it is saved. A returned error message is shown under the field and the value is not emitted. */
|
|
43
79
|
validate?: ValidateFn | ValidateFn[];
|
|
44
80
|
}
|
|
45
|
-
export interface InputSuggestProps<Type extends InputType> extends Omit<InputProps<Type>, 'unclickable'>, Partial<
|
|
81
|
+
export interface InputSuggestProps<Type extends InputType> extends Omit<InputProps<Type>, 'unclickable'>, Partial<Pick<DropdownMenuProps, 'horizontalAlign' | 'dropdownClass'>> {
|
|
82
|
+
/** Title for the mobile bottom sheet the menu opens in. Defaults to `title`. */
|
|
46
83
|
mobileTitle?: string;
|
|
84
|
+
/** Keeps the menu open when the input loses focus. */
|
|
47
85
|
persist?: boolean;
|
|
86
|
+
/** Closes the menu when the value is cleared. */
|
|
48
87
|
closeOnClear?: boolean;
|
|
88
|
+
/** Renders the menu content under the input instead of in a dropdown. */
|
|
49
89
|
static?: boolean;
|
|
90
|
+
/** Hides the button that opens and closes the menu. */
|
|
50
91
|
hideToggle?: boolean;
|
|
51
92
|
}
|
|
52
93
|
export interface InputOptionsProps<Type extends InputType, Option> extends InputSuggestProps<Type> {
|
|
@@ -60,8 +101,11 @@ export interface InputOptionsProps<Type extends InputType, Option> extends Input
|
|
|
60
101
|
}>;
|
|
61
102
|
}
|
|
62
103
|
export interface InputDateProps extends Omit<InputSuggestProps<'text'>, 'modelValue'> {
|
|
104
|
+
/** Selected date. Typed text is parsed into a date as it changes. */
|
|
63
105
|
modelValue?: Date | undefined;
|
|
106
|
+
/** Earliest selectable date. A typed date before it is replaced with it. */
|
|
64
107
|
minDate?: Date;
|
|
108
|
+
/** Latest selectable date. A typed date after it is replaced with it. */
|
|
65
109
|
maxDate?: Date;
|
|
66
110
|
}
|
|
67
111
|
export type WrapSelection = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/components/Input/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,iCAAiC,CAAA;AACtE,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAA;AACpD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,WAAW,UAAU,CAAC,IAAI,SAAS,SAAS,CAAE,SAAQ,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC;IAC/F,UAAU,CAAC,EAAE,CAAC,IAAI,SAAS,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC,GAAG,SAAS,GAAG,IAAI,CAAA;IACzE,IAAI,CAAC,EAAE,IAAI,CAAA;IAEX,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,MAAM,CAAC,EAAE,OAAO,CAAA;IAEhB,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,GAAG,CAAC,EAAE,MAAM,CAAA;IAEZ,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,YAAY,CAAC,EAAE,KA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AAM,CAAA;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;CACf,CAAA;AAED,MAAM,MAAM,QAAQ,GAAG;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,qBAAqB,CAAC;IAAC,IAAI,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAC,GAAG,MAAM,CAAA"}
|
|
@@ -17,11 +17,17 @@ declare const __VLS_export: <Model extends number | string, Data extends Default
|
|
|
17
17
|
}>) => void;
|
|
18
18
|
attrs: any;
|
|
19
19
|
slots: {
|
|
20
|
+
/** Replaces the `title` text. */
|
|
20
21
|
title?: () => void;
|
|
22
|
+
/** Content between the title and the field. */
|
|
21
23
|
subtitle?: () => void;
|
|
24
|
+
/** Renders an option, in the menu and in the selected chips — `model` is `true` in a chip. Replaces `optionComponent`. */
|
|
22
25
|
option?: (props: PartialNot<SelectOptionProps<Data>>) => void;
|
|
26
|
+
/** Content to the right of the field. */
|
|
23
27
|
right?: () => void;
|
|
28
|
+
/** Replaces the selected chips. */
|
|
24
29
|
prefix?: () => void;
|
|
30
|
+
/** Content at the top of the menu, above the options. */
|
|
25
31
|
content?: () => void;
|
|
26
32
|
};
|
|
27
33
|
emit: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA2LA;
|
|
1
|
+
{"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA2LA;AAqgBA,OAAO,KAAK,EAAC,qBAAqB,EAA8B,iBAAiB,EAAE,WAAW,EAAC,MAAM,SAAS,CAAA;AAc9G,QAAA,MAAM,YAAY,GAAK,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,I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A2xBrB,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -36,7 +36,7 @@ var WSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
36
36
|
filterOptions: {},
|
|
37
37
|
hideOptionIcon: { type: Boolean },
|
|
38
38
|
createdData: {},
|
|
39
|
-
|
|
39
|
+
searchModel: { type: Boolean },
|
|
40
40
|
lazy: { type: Boolean },
|
|
41
41
|
placeholderEmpty: {},
|
|
42
42
|
mobileTitle: {},
|
|
@@ -92,7 +92,6 @@ var WSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
92
92
|
default: void 0
|
|
93
93
|
},
|
|
94
94
|
required: { type: Boolean },
|
|
95
|
-
mandatory: { type: Boolean },
|
|
96
95
|
noMargin: { type: Boolean },
|
|
97
96
|
allowCopy: { type: Boolean },
|
|
98
97
|
leftError: { type: Boolean },
|
|
@@ -100,17 +99,12 @@ var WSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
100
99
|
filterValue: {},
|
|
101
100
|
subgrid: { type: Boolean },
|
|
102
101
|
seamless: { type: Boolean },
|
|
103
|
-
savedText: {},
|
|
104
102
|
topText: { type: Boolean },
|
|
105
103
|
allowDropFile: { type: Boolean },
|
|
106
104
|
hideTitle: { type: Boolean },
|
|
107
105
|
embedded: { type: Boolean },
|
|
108
|
-
parentElement: {},
|
|
109
|
-
dropdownClass: {},
|
|
110
106
|
horizontalAlign: {},
|
|
111
|
-
|
|
112
|
-
bottom: { type: Boolean },
|
|
113
|
-
innerClass: {},
|
|
107
|
+
dropdownClass: {},
|
|
114
108
|
optionComponent: {},
|
|
115
109
|
optionComponentProps: {},
|
|
116
110
|
useQueryFnOptions: {},
|
|
@@ -165,7 +159,7 @@ var WSelect_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineCo
|
|
|
165
159
|
const isDisabledComputed = computed(() => props.loading || isReadonly.value || isDisabled.value);
|
|
166
160
|
const hasCreateOption = computed(() => props.createOption && !isFetching.value && (!optionsFiltered.value.some((option) => props.valueGetter(option) === search.value) || isModelValueSearch.value));
|
|
167
161
|
const close = () => {
|
|
168
|
-
if (props.
|
|
162
|
+
if (props.searchModel && focused.value && !isModelValueSearch.value) {
|
|
169
163
|
const optionExact = optionsFiltered.value.find((option) => props.valueGetter(option) === search.value);
|
|
170
164
|
if (optionExact) select(props.valueGetter(optionExact), optionExact);
|
|
171
165
|
else if (search.value && !loadingCreate.value) create(search.value);
|
|
@@ -17,11 +17,17 @@ declare const __VLS_export: <Model extends number | string, Data extends Default
|
|
|
17
17
|
}>) => void;
|
|
18
18
|
attrs: any;
|
|
19
19
|
slots: {
|
|
20
|
+
/** Replaces the `title` text. */
|
|
20
21
|
title?: () => void;
|
|
22
|
+
/** Content between the title and the field. */
|
|
21
23
|
subtitle?: () => void;
|
|
24
|
+
/** Content to the right of the field. */
|
|
22
25
|
right?: (props: Record<string, never>) => void;
|
|
26
|
+
/** Renders an option, in the menu and in the selected chips — `model` is `true` in a chip. Replaces `optionComponent`. */
|
|
23
27
|
option?: (props: PartialNot<SelectOptionProps<Data>>) => void;
|
|
28
|
+
/** Content at the top of the menu, above the options. */
|
|
24
29
|
content?: () => void;
|
|
30
|
+
/** Replaces the selected chips. */
|
|
25
31
|
prefix?: (props: {
|
|
26
32
|
modelValue: Model[];
|
|
27
33
|
}) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AA6IA;AA8VA,OAAO,KAAK,EAAC,gBAAgB,EAAE,qBAAqB,EAA8B,iBAAiB,EAAC,MAAM,SAAS,CAAA;AAcnH,QAAA,MAAM,YAAY,GAAK,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAC/I,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WAqlBO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;;;;;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,OAAO,KAAK,EAAE,gBAAgB;;;2BAhcvB,MAAM,KAAG,IAAI;MAgcgC,KAAK,IAAI;WACxE,GAAG;;QAlaT,iCAAiC;gBACzB,MAAM,IAAI;QAClB,+CAA+C;mBACpC,MAAM,IAAI;QACrB,yCAAyC;gBACjC,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;QAC9C,0H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