@finema/core 3.20.0 → 3.20.2
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/module.json +1 -1
- package/dist/module.mjs +53 -60
- package/dist/runtime/components/App.d.vue.ts +2 -2
- package/dist/runtime/components/App.vue.d.ts +2 -2
- package/dist/runtime/components/Empty.d.vue.ts +1 -1
- package/dist/runtime/components/Empty.vue.d.ts +1 -1
- package/dist/runtime/components/FlexDeck/index.vue +79 -79
- package/dist/runtime/components/Form/FieldWrapper.d.vue.ts +2 -2
- package/dist/runtime/components/Form/FieldWrapper.vue +13 -13
- package/dist/runtime/components/Form/FieldWrapper.vue.d.ts +2 -2
- package/dist/runtime/components/Form/Fields.vue +13 -13
- package/dist/runtime/components/Form/InputCheckbox/index.vue +18 -18
- package/dist/runtime/components/Form/InputCheckboxGroup/index.vue +21 -21
- package/dist/runtime/components/Form/InputCurrency/index.vue +49 -49
- package/dist/runtime/components/Form/InputDateTime/index.vue +63 -63
- package/dist/runtime/components/Form/InputDateTimeRange/index.vue +56 -56
- package/dist/runtime/components/Form/InputNumber/index.vue +20 -20
- package/dist/runtime/components/Form/InputSelect/index.vue +110 -110
- package/dist/runtime/components/Form/InputSelectMultiple/index.vue +118 -118
- package/dist/runtime/components/Form/InputTags/index.d.vue.ts +2 -2
- package/dist/runtime/components/Form/InputTags/index.vue +54 -54
- package/dist/runtime/components/Form/InputTags/index.vue.d.ts +2 -2
- package/dist/runtime/components/Form/InputText/index.vue +86 -86
- package/dist/runtime/components/Form/InputTextarea/index.vue +18 -18
- package/dist/runtime/components/Form/InputTime/index.vue +38 -38
- package/dist/runtime/components/Form/InputToggle/index.vue +17 -17
- package/dist/runtime/components/Form/InputUploadDropzone/index.vue +30 -30
- package/dist/runtime/components/Form/InputUploadDropzoneAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadDropzoneAutoMultiple/index.vue +50 -50
- package/dist/runtime/components/Form/InputUploadImageAuto/index.vue +50 -50
- package/dist/runtime/components/Form/InputWYSIWYG/EditorImageUploadNode.vue +18 -18
- package/dist/runtime/components/Form/InputWYSIWYG/EditorLinkPopover.vue +65 -65
- package/dist/runtime/components/Form/InputWYSIWYG/README.md +96 -96
- package/dist/runtime/components/Form/InputWYSIWYG/index.vue +41 -41
- package/dist/runtime/components/Form/fileState/EmptyState.vue +21 -21
- package/dist/runtime/components/Form/fileState/FailedState.vue +33 -33
- package/dist/runtime/components/Form/fileState/LoadingState.vue +24 -24
- package/dist/runtime/components/Form/fileState/MultipleFilesState.vue +75 -75
- package/dist/runtime/components/Form/fileState/PreviewModal.vue +23 -23
- package/dist/runtime/components/Form/index.vue +5 -5
- package/dist/runtime/components/Image.vue +28 -28
- package/dist/runtime/components/Log/index.vue +17 -17
- package/dist/runtime/components/Table/Base.d.vue.ts +4 -4
- package/dist/runtime/components/Table/Base.vue +117 -117
- package/dist/runtime/components/Table/Base.vue.d.ts +4 -4
- package/dist/runtime/components/Table/ColumnDate.vue +1 -1
- package/dist/runtime/components/Table/ColumnDateTime.vue +1 -1
- package/dist/runtime/components/Table/ColumnImage.vue +4 -4
- package/dist/runtime/components/Table/ColumnText.vue +10 -10
- package/dist/runtime/components/Table/Pagination.vue +62 -62
- package/dist/runtime/components/Table/Simple.vue +19 -19
- package/dist/runtime/components/Table/index.vue +33 -33
- package/dist/runtime/components/TeleportSafe.d.vue.ts +2 -2
- package/dist/runtime/components/TeleportSafe.vue.d.ts +2 -2
- package/dist/runtime/server/tsconfig.json +3 -3
- package/package.json +10 -10
|
@@ -1,148 +1,148 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<SelectMenu
|
|
4
|
-
:model-value="value"
|
|
5
|
-
:items="options"
|
|
6
|
-
multiple
|
|
7
|
-
:placeholder="wrapperProps.placeholder"
|
|
8
|
-
:disabled="wrapperProps.disabled"
|
|
9
|
-
:loading="loading"
|
|
10
|
-
:search-input="searchInput"
|
|
11
|
-
:selected-icon="selectedIcon"
|
|
12
|
-
value-key="value"
|
|
13
|
-
label-key="label"
|
|
14
|
-
:variant="variant"
|
|
15
|
-
:icon="icon"
|
|
16
|
-
:ui="ui"
|
|
17
|
-
:ignore-filter="ignoreFilter"
|
|
18
|
-
@update:model-value="onChange"
|
|
19
|
-
@update:searchTerm="onSearch"
|
|
20
|
-
>
|
|
21
|
-
<template #default="{ modelValue, ui: selectMenuUi }">
|
|
22
|
-
<div
|
|
23
|
-
v-if="!ArrayHelper.isEmpty(value)"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<SelectMenu
|
|
4
|
+
:model-value="value"
|
|
5
|
+
:items="options"
|
|
6
|
+
multiple
|
|
7
|
+
:placeholder="wrapperProps.placeholder"
|
|
8
|
+
:disabled="wrapperProps.disabled"
|
|
9
|
+
:loading="loading"
|
|
10
|
+
:search-input="searchInput"
|
|
11
|
+
:selected-icon="selectedIcon"
|
|
12
|
+
value-key="value"
|
|
13
|
+
label-key="label"
|
|
14
|
+
:variant="variant"
|
|
15
|
+
:icon="icon"
|
|
16
|
+
:ui="ui"
|
|
17
|
+
:ignore-filter="ignoreFilter"
|
|
18
|
+
@update:model-value="onChange"
|
|
19
|
+
@update:searchTerm="onSearch"
|
|
20
|
+
>
|
|
21
|
+
<template #default="{ modelValue, ui: selectMenuUi }">
|
|
22
|
+
<div
|
|
23
|
+
v-if="!ArrayHelper.isEmpty(value)"
|
|
24
24
|
:class="
|
|
25
25
|
theme.tagsWrapper({
|
|
26
26
|
class: [ui?.tagsWrapper]
|
|
27
27
|
})
|
|
28
|
-
"
|
|
29
|
-
>
|
|
30
|
-
<div
|
|
31
|
-
v-for="_value in ArrayHelper.toArray(modelValue)"
|
|
32
|
-
:key="_value"
|
|
28
|
+
"
|
|
29
|
+
>
|
|
30
|
+
<div
|
|
31
|
+
v-for="_value in ArrayHelper.toArray(modelValue)"
|
|
32
|
+
:key="_value"
|
|
33
33
|
:class="
|
|
34
34
|
theme.tagsItem({
|
|
35
35
|
class: [ui?.tagsItem]
|
|
36
36
|
})
|
|
37
|
-
"
|
|
38
|
-
>
|
|
39
|
-
<Chip
|
|
40
|
-
v-if="options.find((item2) => item2.value === _value)?.chip"
|
|
41
|
-
v-bind="options.find((item2) => item2.value === _value)?.chip"
|
|
42
|
-
inset
|
|
43
|
-
standalone
|
|
44
|
-
:size="selectMenuUi.itemLeadingChipSize()"
|
|
45
|
-
class="p-1"
|
|
46
|
-
/>
|
|
47
|
-
<Icon
|
|
48
|
-
v-if="options.find((item2) => item2.value === _value)?.icon"
|
|
49
|
-
:name="options.find((item2) => item2.value === _value)?.icon"
|
|
50
|
-
class="size-4"
|
|
51
|
-
/>
|
|
52
|
-
<Avatar
|
|
53
|
-
v-if="options.find((item2) => item2.value === _value)?.avatar"
|
|
54
|
-
v-bind="options.find((item2) => item2.value === _value)?.avatar"
|
|
55
|
-
:class="selectMenuUi.itemLeadingAvatar()"
|
|
56
|
-
size="2xs"
|
|
57
|
-
/>
|
|
58
|
-
<component
|
|
59
|
-
:is="getOption(_value)?.component"
|
|
37
|
+
"
|
|
38
|
+
>
|
|
39
|
+
<Chip
|
|
40
|
+
v-if="options.find((item2) => item2.value === _value)?.chip"
|
|
41
|
+
v-bind="options.find((item2) => item2.value === _value)?.chip"
|
|
42
|
+
inset
|
|
43
|
+
standalone
|
|
44
|
+
:size="selectMenuUi.itemLeadingChipSize()"
|
|
45
|
+
class="p-1"
|
|
46
|
+
/>
|
|
47
|
+
<Icon
|
|
48
|
+
v-if="options.find((item2) => item2.value === _value)?.icon"
|
|
49
|
+
:name="options.find((item2) => item2.value === _value)?.icon"
|
|
50
|
+
class="size-4"
|
|
51
|
+
/>
|
|
52
|
+
<Avatar
|
|
53
|
+
v-if="options.find((item2) => item2.value === _value)?.avatar"
|
|
54
|
+
v-bind="options.find((item2) => item2.value === _value)?.avatar"
|
|
55
|
+
:class="selectMenuUi.itemLeadingAvatar()"
|
|
56
|
+
size="2xs"
|
|
57
|
+
/>
|
|
58
|
+
<component
|
|
59
|
+
:is="getOption(_value)?.component"
|
|
60
60
|
v-if="
|
|
61
61
|
componentPosition === 'leading' && getOption(_value)?.component
|
|
62
|
-
"
|
|
63
|
-
v-bind="getOption(_value)?.componentProps"
|
|
64
|
-
/>
|
|
65
|
-
<div
|
|
62
|
+
"
|
|
63
|
+
v-bind="getOption(_value)?.componentProps"
|
|
64
|
+
/>
|
|
65
|
+
<div
|
|
66
66
|
:class="
|
|
67
67
|
theme.tagsItemText({
|
|
68
68
|
class: [ui?.tagsItemText]
|
|
69
69
|
})
|
|
70
|
-
"
|
|
71
|
-
>
|
|
72
|
-
{{ getOption(_value)?.label ?? _value }}
|
|
73
|
-
<component
|
|
74
|
-
:is="getOption(_value)?.component"
|
|
70
|
+
"
|
|
71
|
+
>
|
|
72
|
+
{{ getOption(_value)?.label ?? _value }}
|
|
73
|
+
<component
|
|
74
|
+
:is="getOption(_value)?.component"
|
|
75
75
|
v-if="
|
|
76
76
|
componentPosition === 'trailing' && getOption(_value)?.component
|
|
77
|
-
"
|
|
78
|
-
v-bind="getOption(_value)?.componentProps"
|
|
79
|
-
/>
|
|
80
|
-
<Icon
|
|
77
|
+
"
|
|
78
|
+
v-bind="getOption(_value)?.componentProps"
|
|
79
|
+
/>
|
|
80
|
+
<Icon
|
|
81
81
|
:name="
|
|
82
82
|
theme.tagsItemDeleteIcon({
|
|
83
83
|
class: [ui?.tagsItemDeleteIcon]
|
|
84
84
|
})
|
|
85
|
-
"
|
|
85
|
+
"
|
|
86
86
|
:class="
|
|
87
87
|
theme.tagsItemDelete({
|
|
88
88
|
class: [ui?.tagsItemDelete]
|
|
89
89
|
})
|
|
90
|
-
"
|
|
91
|
-
@click.stop="handleDelete(_value)"
|
|
92
|
-
/>
|
|
93
|
-
</div>
|
|
94
|
-
</div>
|
|
95
|
-
</div>
|
|
96
|
-
</template>
|
|
97
|
-
|
|
98
|
-
<template #item="{ item }">
|
|
99
|
-
<div
|
|
100
|
-
v-if="item?.type === 'separator'"
|
|
101
|
-
class="my-1 h-px bg-gray-200"
|
|
102
|
-
/>
|
|
103
|
-
<div
|
|
104
|
-
v-else
|
|
105
|
-
class="flex min-w-0 items-center gap-x-2"
|
|
106
|
-
>
|
|
107
|
-
<Chip
|
|
108
|
-
v-if="item?.chip"
|
|
109
|
-
v-bind="item.chip"
|
|
110
|
-
inset
|
|
111
|
-
standalone
|
|
112
|
-
size="2xs"
|
|
113
|
-
/>
|
|
114
|
-
<Icon
|
|
115
|
-
v-if="item?.icon"
|
|
116
|
-
:name="item.icon"
|
|
117
|
-
class="size-4"
|
|
118
|
-
/>
|
|
119
|
-
<Avatar
|
|
120
|
-
v-if="item?.avatar"
|
|
121
|
-
v-bind="item.avatar"
|
|
122
|
-
size="2xs"
|
|
123
|
-
/>
|
|
124
|
-
<component
|
|
125
|
-
:is="item?.component"
|
|
126
|
-
v-if="componentPosition === 'leading' && item?.component"
|
|
127
|
-
v-bind="item?.componentProps"
|
|
128
|
-
/>
|
|
129
|
-
<span
|
|
90
|
+
"
|
|
91
|
+
@click.stop="handleDelete(_value)"
|
|
92
|
+
/>
|
|
93
|
+
</div>
|
|
94
|
+
</div>
|
|
95
|
+
</div>
|
|
96
|
+
</template>
|
|
97
|
+
|
|
98
|
+
<template #item="{ item }">
|
|
99
|
+
<div
|
|
100
|
+
v-if="item?.type === 'separator'"
|
|
101
|
+
class="my-1 h-px bg-gray-200"
|
|
102
|
+
/>
|
|
103
|
+
<div
|
|
104
|
+
v-else
|
|
105
|
+
class="flex min-w-0 items-center gap-x-2"
|
|
106
|
+
>
|
|
107
|
+
<Chip
|
|
108
|
+
v-if="item?.chip"
|
|
109
|
+
v-bind="item.chip"
|
|
110
|
+
inset
|
|
111
|
+
standalone
|
|
112
|
+
size="2xs"
|
|
113
|
+
/>
|
|
114
|
+
<Icon
|
|
115
|
+
v-if="item?.icon"
|
|
116
|
+
:name="item.icon"
|
|
117
|
+
class="size-4"
|
|
118
|
+
/>
|
|
119
|
+
<Avatar
|
|
120
|
+
v-if="item?.avatar"
|
|
121
|
+
v-bind="item.avatar"
|
|
122
|
+
size="2xs"
|
|
123
|
+
/>
|
|
124
|
+
<component
|
|
125
|
+
:is="item?.component"
|
|
126
|
+
v-if="componentPosition === 'leading' && item?.component"
|
|
127
|
+
v-bind="item?.componentProps"
|
|
128
|
+
/>
|
|
129
|
+
<span
|
|
130
130
|
:class="[
|
|
131
131
|
props.menuLabelLines && props.menuLabelLines > 1 ? 'min-w-0 break-words whitespace-normal' : 'truncate'
|
|
132
|
-
]"
|
|
133
|
-
:style="menuLabelStyle"
|
|
134
|
-
>
|
|
135
|
-
{{ item?.label ?? item?.value }}
|
|
136
|
-
</span>
|
|
137
|
-
<component
|
|
138
|
-
:is="item?.component"
|
|
139
|
-
v-if="componentPosition === 'trailing' && item?.component"
|
|
140
|
-
v-bind="item?.componentProps"
|
|
141
|
-
/>
|
|
142
|
-
</div>
|
|
143
|
-
</template>
|
|
144
|
-
</SelectMenu>
|
|
145
|
-
</FieldWrapper>
|
|
132
|
+
]"
|
|
133
|
+
:style="menuLabelStyle"
|
|
134
|
+
>
|
|
135
|
+
{{ item?.label ?? item?.value }}
|
|
136
|
+
</span>
|
|
137
|
+
<component
|
|
138
|
+
:is="item?.component"
|
|
139
|
+
v-if="componentPosition === 'trailing' && item?.component"
|
|
140
|
+
v-bind="item?.componentProps"
|
|
141
|
+
/>
|
|
142
|
+
</div>
|
|
143
|
+
</template>
|
|
144
|
+
</SelectMenu>
|
|
145
|
+
</FieldWrapper>
|
|
146
146
|
</template>
|
|
147
147
|
|
|
148
148
|
<script setup>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ITagsFieldProps } from '#core/components/Form/InputTags/types';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<ITagsFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
add: (...args: any[]) => void;
|
|
4
|
+
remove: (...args: any[]) => void;
|
|
4
5
|
change: (...args: any[]) => void;
|
|
5
6
|
selected: (...args: any[]) => void;
|
|
6
|
-
remove: (...args: any[]) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<ITagsFieldProps> & Readonly<{
|
|
8
8
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
9
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
11
|
onSelected?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -1,63 +1,63 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Popover
|
|
4
|
-
v-model:open="showSuggestions"
|
|
5
|
-
:dismissible="false"
|
|
6
|
-
:ui="{ content: 'w-(--reka-popper-anchor-width)' }"
|
|
7
|
-
>
|
|
8
|
-
<template #anchor>
|
|
9
|
-
<InputTags
|
|
10
|
-
:model-value="value"
|
|
11
|
-
:disabled="wrapperProps.disabled"
|
|
12
|
-
:leading-icon="leadingIcon"
|
|
13
|
-
:max-length="maxLength"
|
|
14
|
-
:variant="variant"
|
|
15
|
-
:delete-icon="deleteIcon"
|
|
16
|
-
:size="size"
|
|
17
|
-
:trailing-icon="trailingIcon"
|
|
18
|
-
:loading="loading"
|
|
19
|
-
:loading-icon="loadingIcon"
|
|
20
|
-
:name="name"
|
|
21
|
-
:placeholder="wrapperProps.placeholder"
|
|
22
|
-
:autofocus="!!autoFocus"
|
|
23
|
-
:icon="icon"
|
|
24
|
-
:readonly="readonly"
|
|
25
|
-
:ui="ui"
|
|
26
|
-
@update:model-value="onChange"
|
|
27
|
-
@addTag="onAdd"
|
|
28
|
-
@removeTag="onRemove"
|
|
29
|
-
@focus="onFocus"
|
|
30
|
-
@blur="onBlur"
|
|
31
|
-
@keydown="onKeydown"
|
|
32
|
-
@input="onInput"
|
|
33
|
-
/>
|
|
34
|
-
</template>
|
|
35
|
-
|
|
36
|
-
<template #content>
|
|
37
|
-
<div
|
|
38
|
-
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
39
|
-
ref="suggestionsContainerRef"
|
|
40
|
-
:class="theme.suggestionsContainer()"
|
|
41
|
-
>
|
|
42
|
-
<div
|
|
43
|
-
v-for="(suggestion, index) in filteredSuggestions"
|
|
44
|
-
:key="suggestion"
|
|
45
|
-
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<Popover
|
|
4
|
+
v-model:open="showSuggestions"
|
|
5
|
+
:dismissible="false"
|
|
6
|
+
:ui="{ content: 'w-(--reka-popper-anchor-width)' }"
|
|
7
|
+
>
|
|
8
|
+
<template #anchor>
|
|
9
|
+
<InputTags
|
|
10
|
+
:model-value="value"
|
|
11
|
+
:disabled="wrapperProps.disabled"
|
|
12
|
+
:leading-icon="leadingIcon"
|
|
13
|
+
:max-length="maxLength"
|
|
14
|
+
:variant="variant"
|
|
15
|
+
:delete-icon="deleteIcon"
|
|
16
|
+
:size="size"
|
|
17
|
+
:trailing-icon="trailingIcon"
|
|
18
|
+
:loading="loading"
|
|
19
|
+
:loading-icon="loadingIcon"
|
|
20
|
+
:name="name"
|
|
21
|
+
:placeholder="wrapperProps.placeholder"
|
|
22
|
+
:autofocus="!!autoFocus"
|
|
23
|
+
:icon="icon"
|
|
24
|
+
:readonly="readonly"
|
|
25
|
+
:ui="ui"
|
|
26
|
+
@update:model-value="onChange"
|
|
27
|
+
@addTag="onAdd"
|
|
28
|
+
@removeTag="onRemove"
|
|
29
|
+
@focus="onFocus"
|
|
30
|
+
@blur="onBlur"
|
|
31
|
+
@keydown="onKeydown"
|
|
32
|
+
@input="onInput"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|
|
35
|
+
|
|
36
|
+
<template #content>
|
|
37
|
+
<div
|
|
38
|
+
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
39
|
+
ref="suggestionsContainerRef"
|
|
40
|
+
:class="theme.suggestionsContainer()"
|
|
41
|
+
>
|
|
42
|
+
<div
|
|
43
|
+
v-for="(suggestion, index) in filteredSuggestions"
|
|
44
|
+
:key="suggestion"
|
|
45
|
+
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
46
46
|
:class="[
|
|
47
47
|
theme.suggestionItem(),
|
|
48
48
|
{
|
|
49
49
|
[theme.suggestionItemActive()]: index === selectedSuggestionIndex
|
|
50
50
|
}
|
|
51
|
-
]"
|
|
52
|
-
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
53
|
-
@mouseenter="selectedSuggestionIndex = index"
|
|
54
|
-
>
|
|
55
|
-
{{ suggestion }}
|
|
56
|
-
</div>
|
|
57
|
-
</div>
|
|
58
|
-
</template>
|
|
59
|
-
</Popover>
|
|
60
|
-
</FieldWrapper>
|
|
51
|
+
]"
|
|
52
|
+
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
53
|
+
@mouseenter="selectedSuggestionIndex = index"
|
|
54
|
+
>
|
|
55
|
+
{{ suggestion }}
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</template>
|
|
59
|
+
</Popover>
|
|
60
|
+
</FieldWrapper>
|
|
61
61
|
</template>
|
|
62
62
|
|
|
63
63
|
<script setup>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { ITagsFieldProps } from '#core/components/Form/InputTags/types';
|
|
2
2
|
declare const __VLS_export: import("vue").DefineComponent<ITagsFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3
3
|
add: (...args: any[]) => void;
|
|
4
|
+
remove: (...args: any[]) => void;
|
|
4
5
|
change: (...args: any[]) => void;
|
|
5
6
|
selected: (...args: any[]) => void;
|
|
6
|
-
remove: (...args: any[]) => void;
|
|
7
7
|
}, string, import("vue").PublicProps, Readonly<ITagsFieldProps> & Readonly<{
|
|
8
8
|
onAdd?: ((...args: any[]) => any) | undefined;
|
|
9
|
+
onRemove?: ((...args: any[]) => any) | undefined;
|
|
9
10
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
10
11
|
onSelected?: ((...args: any[]) => any) | undefined;
|
|
11
|
-
onRemove?: ((...args: any[]) => any) | undefined;
|
|
12
12
|
}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
13
13
|
declare const _default: typeof __VLS_export;
|
|
14
14
|
export default _default;
|
|
@@ -1,92 +1,92 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<div class="relative">
|
|
4
|
-
<Input
|
|
5
|
-
v-if="type === 'password'"
|
|
6
|
-
ref="inputRef"
|
|
7
|
-
v-maska="activeMaskOptions"
|
|
8
|
-
:model-value="value"
|
|
9
|
-
:disabled="wrapperProps.disabled"
|
|
10
|
-
:leading-icon="leadingIcon"
|
|
11
|
-
:trailing-icon="trailingIcon"
|
|
12
|
-
:loading="loading"
|
|
13
|
-
:loading-icon="loadingIcon"
|
|
14
|
-
:name="name"
|
|
15
|
-
:placeholder="wrapperProps.placeholder"
|
|
16
|
-
:type="isShowPassword ? 'text' : 'password'"
|
|
17
|
-
:autofocus="!!autoFocus"
|
|
18
|
-
:icon="icon"
|
|
19
|
-
:readonly="readonly"
|
|
20
|
-
:ui="defu(ui, { icon: { trailing: { pointer: '' } } })"
|
|
21
|
-
@update:model-value="onChange"
|
|
22
|
-
@focus="onFocus"
|
|
23
|
-
@blur="onBlur"
|
|
24
|
-
@keydown="onKeydown"
|
|
25
|
-
>
|
|
26
|
-
<template #trailing>
|
|
27
|
-
<Button
|
|
28
|
-
color="neutral"
|
|
29
|
-
variant="link"
|
|
30
|
-
:icon="isShowPassword ? 'i-heroicons-eye-slash' : 'i-heroicons-eye'"
|
|
31
|
-
:padded="false"
|
|
32
|
-
@click="isShowPassword = !isShowPassword"
|
|
33
|
-
/>
|
|
34
|
-
</template>
|
|
35
|
-
</Input>
|
|
36
|
-
<Popover
|
|
37
|
-
v-else
|
|
38
|
-
v-model:open="showSuggestions"
|
|
39
|
-
:dismissible="false"
|
|
40
|
-
:ui="{ content: 'w-(--reka-popper-anchor-width)' }"
|
|
41
|
-
>
|
|
42
|
-
<template #anchor>
|
|
43
|
-
<Input
|
|
44
|
-
ref="inputRef"
|
|
45
|
-
v-maska="activeMaskOptions"
|
|
46
|
-
:model-value="value"
|
|
47
|
-
:disabled="wrapperProps.disabled"
|
|
48
|
-
:leading-icon="leadingIcon"
|
|
49
|
-
:trailing-icon="trailingIcon"
|
|
50
|
-
:loading="loading"
|
|
51
|
-
:loading-icon="loadingIcon"
|
|
52
|
-
:name="name"
|
|
53
|
-
:placeholder="wrapperProps.placeholder"
|
|
54
|
-
:type="type"
|
|
55
|
-
:autofocus="!!autoFocus"
|
|
56
|
-
:icon="icon"
|
|
57
|
-
:readonly="readonly"
|
|
58
|
-
:ui="ui"
|
|
59
|
-
@update:model-value="onChange"
|
|
60
|
-
@focus="onFocus"
|
|
61
|
-
@blur="onBlur"
|
|
62
|
-
@keydown="onKeydown"
|
|
63
|
-
/>
|
|
64
|
-
</template>
|
|
65
|
-
|
|
66
|
-
<template #content>
|
|
67
|
-
<div
|
|
68
|
-
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
69
|
-
ref="suggestionsContainerRef"
|
|
70
|
-
:class="theme.suggestionsContainer()"
|
|
71
|
-
>
|
|
72
|
-
<div
|
|
73
|
-
v-for="(suggestion, index) in filteredSuggestions"
|
|
74
|
-
:key="suggestion"
|
|
75
|
-
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<div class="relative">
|
|
4
|
+
<Input
|
|
5
|
+
v-if="type === 'password'"
|
|
6
|
+
ref="inputRef"
|
|
7
|
+
v-maska="activeMaskOptions"
|
|
8
|
+
:model-value="value"
|
|
9
|
+
:disabled="wrapperProps.disabled"
|
|
10
|
+
:leading-icon="leadingIcon"
|
|
11
|
+
:trailing-icon="trailingIcon"
|
|
12
|
+
:loading="loading"
|
|
13
|
+
:loading-icon="loadingIcon"
|
|
14
|
+
:name="name"
|
|
15
|
+
:placeholder="wrapperProps.placeholder"
|
|
16
|
+
:type="isShowPassword ? 'text' : 'password'"
|
|
17
|
+
:autofocus="!!autoFocus"
|
|
18
|
+
:icon="icon"
|
|
19
|
+
:readonly="readonly"
|
|
20
|
+
:ui="defu(ui, { icon: { trailing: { pointer: '' } } })"
|
|
21
|
+
@update:model-value="onChange"
|
|
22
|
+
@focus="onFocus"
|
|
23
|
+
@blur="onBlur"
|
|
24
|
+
@keydown="onKeydown"
|
|
25
|
+
>
|
|
26
|
+
<template #trailing>
|
|
27
|
+
<Button
|
|
28
|
+
color="neutral"
|
|
29
|
+
variant="link"
|
|
30
|
+
:icon="isShowPassword ? 'i-heroicons-eye-slash' : 'i-heroicons-eye'"
|
|
31
|
+
:padded="false"
|
|
32
|
+
@click="isShowPassword = !isShowPassword"
|
|
33
|
+
/>
|
|
34
|
+
</template>
|
|
35
|
+
</Input>
|
|
36
|
+
<Popover
|
|
37
|
+
v-else
|
|
38
|
+
v-model:open="showSuggestions"
|
|
39
|
+
:dismissible="false"
|
|
40
|
+
:ui="{ content: 'w-(--reka-popper-anchor-width)' }"
|
|
41
|
+
>
|
|
42
|
+
<template #anchor>
|
|
43
|
+
<Input
|
|
44
|
+
ref="inputRef"
|
|
45
|
+
v-maska="activeMaskOptions"
|
|
46
|
+
:model-value="value"
|
|
47
|
+
:disabled="wrapperProps.disabled"
|
|
48
|
+
:leading-icon="leadingIcon"
|
|
49
|
+
:trailing-icon="trailingIcon"
|
|
50
|
+
:loading="loading"
|
|
51
|
+
:loading-icon="loadingIcon"
|
|
52
|
+
:name="name"
|
|
53
|
+
:placeholder="wrapperProps.placeholder"
|
|
54
|
+
:type="type"
|
|
55
|
+
:autofocus="!!autoFocus"
|
|
56
|
+
:icon="icon"
|
|
57
|
+
:readonly="readonly"
|
|
58
|
+
:ui="ui"
|
|
59
|
+
@update:model-value="onChange"
|
|
60
|
+
@focus="onFocus"
|
|
61
|
+
@blur="onBlur"
|
|
62
|
+
@keydown="onKeydown"
|
|
63
|
+
/>
|
|
64
|
+
</template>
|
|
65
|
+
|
|
66
|
+
<template #content>
|
|
67
|
+
<div
|
|
68
|
+
v-if="showSuggestions && filteredSuggestions.length > 0"
|
|
69
|
+
ref="suggestionsContainerRef"
|
|
70
|
+
:class="theme.suggestionsContainer()"
|
|
71
|
+
>
|
|
72
|
+
<div
|
|
73
|
+
v-for="(suggestion, index) in filteredSuggestions"
|
|
74
|
+
:key="suggestion"
|
|
75
|
+
:ref="(el) => setSuggestionItemRef(el, index)"
|
|
76
76
|
:class="[
|
|
77
77
|
theme.suggestionItem(),
|
|
78
78
|
{ [theme.suggestionItemActive()]: index === selectedSuggestionIndex }
|
|
79
|
-
]"
|
|
80
|
-
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
81
|
-
@mouseenter="selectedSuggestionIndex = index"
|
|
82
|
-
>
|
|
83
|
-
{{ suggestion }}
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</template>
|
|
87
|
-
</Popover>
|
|
88
|
-
</div>
|
|
89
|
-
</FieldWrapper>
|
|
79
|
+
]"
|
|
80
|
+
@mousedown.prevent="selectSuggestion(suggestion, index)"
|
|
81
|
+
@mouseenter="selectedSuggestionIndex = index"
|
|
82
|
+
>
|
|
83
|
+
{{ suggestion }}
|
|
84
|
+
</div>
|
|
85
|
+
</div>
|
|
86
|
+
</template>
|
|
87
|
+
</Popover>
|
|
88
|
+
</div>
|
|
89
|
+
</FieldWrapper>
|
|
90
90
|
</template>
|
|
91
91
|
|
|
92
92
|
<script setup>
|
|
@@ -106,7 +106,7 @@ const props = defineProps({
|
|
|
106
106
|
icon: { type: String, required: false },
|
|
107
107
|
mask: { type: [String, Array, Function, null], required: false },
|
|
108
108
|
maskOptions: { type: Object, required: false },
|
|
109
|
-
maskTokens: { type:
|
|
109
|
+
maskTokens: { type: Object, required: false },
|
|
110
110
|
maskEager: { type: Boolean, required: false },
|
|
111
111
|
maskTokensReplace: { type: Boolean, required: false },
|
|
112
112
|
maskReversed: { type: Boolean, required: false },
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
-
<Textarea
|
|
4
|
-
:model-value="value"
|
|
5
|
-
:disabled="wrapperProps.disabled"
|
|
6
|
-
:name="name"
|
|
7
|
-
:resize="resize"
|
|
8
|
-
:placeholder="wrapperProps.placeholder"
|
|
9
|
-
:autofocus="!!autoFocus"
|
|
10
|
-
:autoresize="autoresize"
|
|
11
|
-
:rows="rows"
|
|
12
|
-
:maxrows="maxrows"
|
|
13
|
-
:loading="loading"
|
|
14
|
-
:loading-icon="loadingIcon"
|
|
15
|
-
:readonly="readonly"
|
|
16
|
-
:ui="ui"
|
|
17
|
-
@update:model-value="onChange"
|
|
18
|
-
/>
|
|
19
|
-
</FieldWrapper>
|
|
2
|
+
<FieldWrapper v-bind="wrapperProps">
|
|
3
|
+
<Textarea
|
|
4
|
+
:model-value="value"
|
|
5
|
+
:disabled="wrapperProps.disabled"
|
|
6
|
+
:name="name"
|
|
7
|
+
:resize="resize"
|
|
8
|
+
:placeholder="wrapperProps.placeholder"
|
|
9
|
+
:autofocus="!!autoFocus"
|
|
10
|
+
:autoresize="autoresize"
|
|
11
|
+
:rows="rows"
|
|
12
|
+
:maxrows="maxrows"
|
|
13
|
+
:loading="loading"
|
|
14
|
+
:loading-icon="loadingIcon"
|
|
15
|
+
:readonly="readonly"
|
|
16
|
+
:ui="ui"
|
|
17
|
+
@update:model-value="onChange"
|
|
18
|
+
/>
|
|
19
|
+
</FieldWrapper>
|
|
20
20
|
</template>
|
|
21
21
|
|
|
22
22
|
<script setup>
|