@onereach/ui-components 4.7.3 → 4.7.4-beta.2863.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/bundled/v2/components/OrInlineInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrInlineTextareaV3/styles.js +1 -1
- package/dist/bundled/v2/components/OrInputBoxV3/styles.js +2 -0
- package/dist/bundled/v2/components/OrInputV3/styles.js +2 -2
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +352 -0
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +179 -0
- package/dist/bundled/v2/components/OrTagInputV3/index.d.ts +2 -0
- package/dist/bundled/v2/components/OrTagInputV3/index.js +55 -0
- package/dist/bundled/v2/components/OrTagInputV3/props.d.ts +1 -0
- package/dist/bundled/v2/components/OrTagInputV3/props.js +1 -0
- package/dist/bundled/v2/components/OrTagInputV3/styles.d.ts +3 -0
- package/dist/bundled/v2/components/OrTagInputV3/styles.js +17 -0
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +8 -1
- package/dist/bundled/v2/components/OrTagsV3/OrTags.vue.d.ts +7 -3
- package/dist/bundled/v2/components/OrTagsV3/styles.js +2 -0
- package/dist/bundled/v2/components/OrTextareaV3/styles.js +1 -1
- package/dist/bundled/v2/components/index.d.ts +2 -1
- package/dist/bundled/v2/components/index.js +6 -4
- package/dist/bundled/v2/hooks/useTheme.js +6 -0
- package/dist/bundled/v2/index.js +8 -6
- package/dist/bundled/v3/{OrCardCollection.vue_vue_type_script_lang-48bbd13c.js → OrCardCollection.vue_vue_type_script_lang-748fb337.js} +1 -1
- package/dist/bundled/v3/{OrConfirm.vue_vue_type_script_lang-0f1a6320.js → OrConfirm.vue_vue_type_script_lang-93458f1f.js} +1 -1
- package/dist/bundled/v3/{OrDatePicker.vue_vue_type_script_lang-3f8700f9.js → OrDatePicker.vue_vue_type_script_lang-8ec017e2.js} +1 -1
- package/dist/bundled/v3/{OrDateTimePicker.vue_vue_type_script_lang-ecd7cbd1.js → OrDateTimePicker.vue_vue_type_script_lang-fec947db.js} +1 -1
- package/dist/bundled/v3/{OrInput.vue_vue_type_script_lang-a9fe34c8.js → OrInput.vue_vue_type_script_lang-66363c62.js} +1 -1
- package/dist/bundled/v3/{OrSearch.vue_vue_type_script_lang-8a82fdc6.js → OrSearch.vue_vue_type_script_lang-18dc2df8.js} +1 -1
- package/dist/bundled/v3/{OrSelect.vue_vue_type_script_lang-ba73f458.js → OrSelect.vue_vue_type_script_lang-359bac94.js} +2 -2
- package/dist/bundled/v3/OrTagInput.vue_vue_type_script_lang-679e7b9d.js +145 -0
- package/dist/bundled/v3/{OrTags.vue_vue_type_script_lang-c14463c4.js → OrTags.vue_vue_type_script_lang-45bbc68e.js} +2 -0
- package/dist/bundled/v3/{OrTextarea.vue_vue_type_script_lang-af284089.js → OrTextarea.vue_vue_type_script_lang-0d1a7a48.js} +1 -1
- package/dist/bundled/v3/{OrTimePicker.vue_vue_type_script_lang-845ec78b.js → OrTimePicker.vue_vue_type_script_lang-c737eaa8.js} +1 -1
- package/dist/bundled/v3/components/OrCardCollectionV3/OrCardCollection.js +5 -5
- package/dist/bundled/v3/components/OrCardCollectionV3/index.js +4 -4
- package/dist/bundled/v3/components/OrConfirmV3/OrConfirm.js +4 -4
- package/dist/bundled/v3/components/OrConfirmV3/index.js +3 -3
- package/dist/bundled/v3/components/OrDatePickerV3/OrDatePicker.js +3 -3
- package/dist/bundled/v3/components/OrDatePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrDateTimePickerV3/OrDateTimePicker.js +3 -3
- package/dist/bundled/v3/components/OrDateTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/OrInlineInput.js +2 -2
- package/dist/bundled/v3/components/OrInlineInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/OrInlineTextarea.js +2 -2
- package/dist/bundled/v3/components/OrInlineTextareaV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInlineTextareaV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/OrInputBox.js +2 -2
- package/dist/bundled/v3/components/OrInputBoxV3/index.js +1 -1
- package/dist/bundled/v3/components/OrInputBoxV3/styles.js +2 -0
- package/dist/bundled/v3/components/OrInputV3/OrInput.js +3 -3
- package/dist/bundled/v3/components/OrInputV3/index.js +2 -2
- package/dist/bundled/v3/components/OrInputV3/styles.js +2 -2
- package/dist/bundled/v3/components/OrSearchV3/OrSearch.js +4 -4
- package/dist/bundled/v3/components/OrSearchV3/index.js +3 -3
- package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +4 -4
- package/dist/bundled/v3/components/OrSelectV3/index.js +3 -3
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +167 -0
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +131 -0
- package/dist/bundled/v3/components/OrTagInputV3/index.d.ts +2 -0
- package/dist/bundled/v3/components/OrTagInputV3/index.js +68 -0
- package/dist/bundled/v3/components/OrTagInputV3/props.d.ts +1 -0
- package/dist/bundled/v3/components/OrTagInputV3/props.js +1 -0
- package/dist/bundled/v3/components/OrTagInputV3/styles.d.ts +3 -0
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +17 -0
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +5 -4
- package/dist/bundled/v3/components/OrTagsV3/OrTags.vue.d.ts +7 -2
- package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/styles.js +2 -0
- package/dist/bundled/v3/components/OrTextareaV3/OrTextarea.js +3 -3
- package/dist/bundled/v3/components/OrTextareaV3/index.js +2 -2
- package/dist/bundled/v3/components/OrTextareaV3/styles.js +1 -1
- package/dist/bundled/v3/components/OrTimePickerV3/OrTimePicker.js +3 -3
- package/dist/bundled/v3/components/OrTimePickerV3/index.js +2 -2
- package/dist/bundled/v3/components/index.d.ts +2 -1
- package/dist/bundled/v3/components/index.js +20 -17
- package/dist/bundled/v3/hooks/useTheme.js +6 -0
- package/dist/bundled/v3/index.js +22 -19
- package/dist/esm/v2/{OrCardCollection-2c9a3534.js → OrCardCollection-bd173449.js} +2 -2
- package/dist/esm/v2/{OrCombinedInput-9c2b15fe.js → OrCombinedInput-ed20e33b.js} +1 -1
- package/dist/esm/v2/{OrConfirm-fc656b7e.js → OrConfirm-0b56c11f.js} +1 -1
- package/dist/esm/v2/{OrDatePicker-73c19c1c.js → OrDatePicker-0989a40c.js} +2 -2
- package/dist/esm/v2/{OrDateTimePicker-aff87aaa.js → OrDateTimePicker-ac766f04.js} +2 -2
- package/dist/esm/v2/{OrInlineInput-252510d7.js → OrInlineInput-84a8398c.js} +1 -1
- package/dist/esm/v2/{OrInlineTextarea-8df56c4d.js → OrInlineTextarea-f2ecbd39.js} +1 -1
- package/dist/esm/v2/{OrInput-39feafce.js → OrInput-2eeff16a.js} +4 -4
- package/dist/esm/v2/{OrInputBox-7f3c0ee9.js → OrInputBox-11227ecd.js} +1 -1
- package/dist/esm/v2/{OrInputBox.vue_rollup-plugin-vue_script-906b3ef8.js → OrInputBox.vue_rollup-plugin-vue_script-1715021a.js} +2 -0
- package/dist/esm/v2/{OrSearch-cbd7fd0b.js → OrSearch-33e3b0e4.js} +2 -2
- package/dist/esm/v2/{OrSelect-1132c7dc.js → OrSelect-340ae8d0.js} +3 -3
- package/dist/esm/v2/OrTagInput-582e7f3a.js +329 -0
- package/dist/esm/v2/{OrTags-e80cd854.js → OrTags-5220304c.js} +10 -1
- package/dist/esm/v2/{OrTextarea-01df0715.js → OrTextarea-978fb518.js} +3 -3
- package/dist/esm/v2/{OrTimePicker-00b7319c.js → OrTimePicker-5fd08ad2.js} +2 -2
- package/dist/esm/v2/components/index.d.ts +2 -1
- package/dist/esm/v2/components/index.js +17 -16
- package/dist/esm/v2/components/or-card-collection-v3/index.js +5 -5
- package/dist/esm/v2/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-confirm-v3/index.js +4 -4
- package/dist/esm/v2/components/or-date-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-date-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v2/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v2/components/or-input-box-v3/index.js +2 -2
- package/dist/esm/v2/components/or-input-v3/index.js +3 -3
- package/dist/esm/v2/components/or-search-v3/index.js +4 -4
- package/dist/esm/v2/components/or-select-v3/index.js +4 -4
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +179 -0
- package/dist/esm/v2/components/or-tag-input-v3/index.d.ts +2 -0
- package/dist/esm/v2/components/or-tag-input-v3/index.js +31 -0
- package/dist/esm/v2/components/or-tag-input-v3/props.d.ts +1 -0
- package/dist/esm/v2/components/or-tag-input-v3/styles.d.ts +3 -0
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +9 -5
- package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v2/components/or-textarea-v3/index.js +3 -3
- package/dist/esm/v2/components/or-time-picker-v3/index.js +3 -3
- package/dist/esm/v2/index.js +17 -16
- package/dist/esm/v3/{OrCardCollection-dcfaa692.js → OrCardCollection-c5d5506c.js} +2 -2
- package/dist/esm/v3/{OrCombinedInput-b5ba46a1.js → OrCombinedInput-e3891038.js} +1 -1
- package/dist/esm/v3/{OrConfirm-e8ee0b8f.js → OrConfirm-5509c440.js} +1 -1
- package/dist/esm/v3/{OrDatePicker-19a07bb4.js → OrDatePicker-6ac8578a.js} +1 -1
- package/dist/esm/v3/{OrDateTimePicker-219fa71d.js → OrDateTimePicker-b15d4198.js} +1 -1
- package/dist/esm/v3/{OrInlineInput-5d452b98.js → OrInlineInput-a6c33dc0.js} +1 -1
- package/dist/esm/v3/{OrInlineTextarea-1a769972.js → OrInlineTextarea-f060dab5.js} +1 -1
- package/dist/esm/v3/{OrInput-a303f924.js → OrInput-c653aedb.js} +3 -3
- package/dist/esm/v3/{OrInputBox-32814878.js → OrInputBox-32b37b17.js} +2 -0
- package/dist/esm/v3/{OrSearch-c5ecb005.js → OrSearch-b945651d.js} +2 -2
- package/dist/esm/v3/{OrSelect-9432ac4d.js → OrSelect-a9be2490.js} +2 -2
- package/dist/esm/v3/OrTagInput-ea932f50.js +254 -0
- package/dist/esm/v3/{OrTags-3f0ab56f.js → OrTags-00bb5463.js} +7 -2
- package/dist/esm/v3/{OrTextarea-0f9a2a27.js → OrTextarea-1e19417a.js} +2 -2
- package/dist/esm/v3/{OrTimePicker-5cb9eb34.js → OrTimePicker-d66edf77.js} +1 -1
- package/dist/esm/v3/components/index.d.ts +2 -1
- package/dist/esm/v3/components/index.js +16 -15
- package/dist/esm/v3/components/or-card-collection-v3/index.js +4 -4
- package/dist/esm/v3/components/or-combined-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-confirm-v3/index.js +3 -3
- package/dist/esm/v3/components/or-date-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-date-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/components/or-inline-input-v3/index.js +1 -1
- package/dist/esm/v3/components/or-inline-textarea-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-box-v3/index.js +1 -1
- package/dist/esm/v3/components/or-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-search-v3/index.js +3 -3
- package/dist/esm/v3/components/or-select-v3/index.js +3 -3
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +131 -0
- package/dist/esm/v3/components/or-tag-input-v3/index.d.ts +2 -0
- package/dist/esm/v3/components/or-tag-input-v3/index.js +29 -0
- package/dist/esm/v3/components/or-tag-input-v3/props.d.ts +1 -0
- package/dist/esm/v3/components/or-tag-input-v3/styles.d.ts +3 -0
- package/dist/esm/v3/components/or-tags-v3/OrTags.vue.d.ts +7 -2
- package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v3/components/or-textarea-v3/index.js +2 -2
- package/dist/esm/v3/components/or-time-picker-v3/index.js +2 -2
- package/dist/esm/v3/index.js +16 -15
- package/package.json +3 -4
- package/src/components/index.ts +2 -1
- package/src/components/or-inline-input-v3/styles.ts +1 -1
- package/src/components/or-inline-textarea-v3/styles.ts +1 -1
- package/src/components/or-input-box-v3/styles.ts +3 -0
- package/src/components/or-input-v3/styles.ts +2 -2
- package/src/components/or-tag-input-v3/OrTagInput.vue +297 -0
- package/src/components/or-tag-input-v3/index.ts +2 -0
- package/src/components/or-tag-input-v3/props.ts +1 -0
- package/src/components/or-tag-input-v3/styles.ts +24 -0
- package/src/components/or-tags-v3/OrTags.vue +13 -0
- package/src/components/or-tags-v3/styles.ts +3 -0
- package/src/components/or-textarea-v3/styles.ts +1 -1
- /package/dist/bundled/v3/{OrInlineInput.vue_vue_type_script_lang-c4fb7c0e.js → OrInlineInput.vue_vue_type_script_lang-820cc7e9.js} +0 -0
- /package/dist/bundled/v3/{OrInlineTextarea.vue_vue_type_script_lang-4569f111.js → OrInlineTextarea.vue_vue_type_script_lang-8e639991.js} +0 -0
- /package/dist/bundled/v3/{OrInputBox.vue_vue_type_script_lang-ede24b04.js → OrInputBox.vue_vue_type_script_lang-49fb179a.js} +0 -0
|
@@ -5,10 +5,10 @@ const InputRoot = [
|
|
|
5
5
|
'gap-xs'];
|
|
6
6
|
const InputControl = [
|
|
7
7
|
// Box
|
|
8
|
-
'
|
|
8
|
+
'flex-auto',
|
|
9
9
|
// Typography
|
|
10
10
|
'typography-inherit',
|
|
11
|
-
// Theme
|
|
11
|
+
// Theme (placeholder)
|
|
12
12
|
'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
|
|
13
13
|
|
|
14
14
|
export { InputControl, InputRoot };
|
|
@@ -0,0 +1,352 @@
|
|
|
1
|
+
import { defineComponent, ref, computed, reactive } from 'vue-demi';
|
|
2
|
+
import { TagInput, TagInputControl, TagInputItem } from './styles.js';
|
|
3
|
+
import __vue_component__$1 from '../OrErrorV3/OrError.js';
|
|
4
|
+
import __vue_component__$2 from '../OrHintV3/OrHint.js';
|
|
5
|
+
import __vue_component__$3 from '../OrIconButtonV3/OrIconButton.js';
|
|
6
|
+
import __vue_component__$4 from '../OrInputBoxV3/OrInputBox.js';
|
|
7
|
+
import __vue_component__$5 from '../OrLabelV3/OrLabel.js';
|
|
8
|
+
import __vue_component__$6 from '../OrTagsV3/OrTags.js';
|
|
9
|
+
import { useIdAttribute } from '../../hooks/useIdAttribute.js';
|
|
10
|
+
import { useControlAttributes } from '../../hooks/useControlAttributes.js';
|
|
11
|
+
import { useValidationAttributes } from '../../hooks/useValidationAttributes.js';
|
|
12
|
+
import { InputBoxSize } from '../OrInputBoxV3/props.js';
|
|
13
|
+
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
14
|
+
import { n as normalizeComponent } from '../../normalize-component-6e8e3d80.js';
|
|
15
|
+
import '../OrErrorV3/styles.js';
|
|
16
|
+
import '../OrHintV3/styles.js';
|
|
17
|
+
import '../OrIconButtonV3/props.js';
|
|
18
|
+
import '../OrIconV3/props.js';
|
|
19
|
+
import '../OrIconButtonV3/styles.js';
|
|
20
|
+
import '../OrIconV3/OrIcon.js';
|
|
21
|
+
import '../OrIconV3/styles.js';
|
|
22
|
+
import '../OrTooltipV3/OrTooltip.js';
|
|
23
|
+
import '../OrTooltipV3/styles.js';
|
|
24
|
+
import '../OrPopoverV3/OrPopover.js';
|
|
25
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
26
|
+
import '../../index-c92e2839.js';
|
|
27
|
+
import '../../index-ec92055d.js';
|
|
28
|
+
import '../OrPopoverV3/props.js';
|
|
29
|
+
import '../OrPopoverV3/styles.js';
|
|
30
|
+
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
31
|
+
import '../OrBottomSheetV3/props.js';
|
|
32
|
+
import '../OrBottomSheetV3/styles.js';
|
|
33
|
+
import '../OrOverlayV3/OrOverlay.js';
|
|
34
|
+
import '../OrOverlayV3/styles.js';
|
|
35
|
+
import '../OrTeleportV3/OrTeleport.js';
|
|
36
|
+
import 'vue';
|
|
37
|
+
import '../../hooks/useElevation.js';
|
|
38
|
+
import '../../utils/isVisible.js';
|
|
39
|
+
import '../../hooks/usePopoverState.js';
|
|
40
|
+
import '../../hooks/useResponsive/useResponsive.js';
|
|
41
|
+
import '../OrInputBoxV3/styles.js';
|
|
42
|
+
import '../OrLabelV3/props.js';
|
|
43
|
+
import '../OrLabelV3/styles.js';
|
|
44
|
+
import '../OrTagsV3/styles.js';
|
|
45
|
+
import '../OrButtonV3/OrButton.js';
|
|
46
|
+
import '../OrButtonV3/props.js';
|
|
47
|
+
import '../OrButtonV3/styles.js';
|
|
48
|
+
import '../OrLoaderV3/OrLoader.js';
|
|
49
|
+
import '../OrLoaderV3/props.js';
|
|
50
|
+
import '../OrLoaderV3/styles.js';
|
|
51
|
+
import '../OrTagV3/OrTag.js';
|
|
52
|
+
import '../OrTagV3/props.js';
|
|
53
|
+
import '../OrTagV3/styles.js';
|
|
54
|
+
import '../../hooks/useOverflow.js';
|
|
55
|
+
|
|
56
|
+
var script = defineComponent({
|
|
57
|
+
name: 'OrTagInput',
|
|
58
|
+
components: {
|
|
59
|
+
OrError: __vue_component__$1,
|
|
60
|
+
OrHint: __vue_component__$2,
|
|
61
|
+
OrIconButton: __vue_component__$3,
|
|
62
|
+
OrInputBox: __vue_component__$4,
|
|
63
|
+
OrLabel: __vue_component__$5,
|
|
64
|
+
OrTags: __vue_component__$6
|
|
65
|
+
},
|
|
66
|
+
model: {
|
|
67
|
+
prop: 'modelValue',
|
|
68
|
+
event: 'update:modelValue'
|
|
69
|
+
},
|
|
70
|
+
props: {
|
|
71
|
+
modelValue: {
|
|
72
|
+
type: Array,
|
|
73
|
+
default: () => []
|
|
74
|
+
},
|
|
75
|
+
size: {
|
|
76
|
+
type: String,
|
|
77
|
+
default: InputBoxSize.M
|
|
78
|
+
},
|
|
79
|
+
label: {
|
|
80
|
+
type: String,
|
|
81
|
+
default: undefined
|
|
82
|
+
},
|
|
83
|
+
placeholder: {
|
|
84
|
+
type: String,
|
|
85
|
+
default: undefined
|
|
86
|
+
},
|
|
87
|
+
hint: {
|
|
88
|
+
type: String,
|
|
89
|
+
default: undefined
|
|
90
|
+
},
|
|
91
|
+
error: {
|
|
92
|
+
type: [String, Boolean],
|
|
93
|
+
default: undefined
|
|
94
|
+
},
|
|
95
|
+
required: {
|
|
96
|
+
type: Boolean,
|
|
97
|
+
default: false
|
|
98
|
+
},
|
|
99
|
+
readonly: {
|
|
100
|
+
type: Boolean,
|
|
101
|
+
default: false
|
|
102
|
+
},
|
|
103
|
+
disabled: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: false
|
|
106
|
+
},
|
|
107
|
+
disableDefaultStyles: {
|
|
108
|
+
type: Boolean,
|
|
109
|
+
default: false
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur'],
|
|
113
|
+
expose: ['root', 'focus', 'blur'],
|
|
114
|
+
setup(props, context) {
|
|
115
|
+
// Refs
|
|
116
|
+
const root = ref();
|
|
117
|
+
const control = ref();
|
|
118
|
+
// Styles
|
|
119
|
+
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
120
|
+
const controlStyles = computed(() => [...TagInputControl]);
|
|
121
|
+
const itemStyles = computed(() => [...TagInputItem]);
|
|
122
|
+
// State
|
|
123
|
+
const controlAttributes = reactive({
|
|
124
|
+
id: useIdAttribute(),
|
|
125
|
+
...useControlAttributes(),
|
|
126
|
+
...useValidationAttributes()
|
|
127
|
+
});
|
|
128
|
+
const proxyModelValue = computed({
|
|
129
|
+
get: () => props.modelValue,
|
|
130
|
+
set: value => {
|
|
131
|
+
context.emit('update:modelValue', value);
|
|
132
|
+
}
|
|
133
|
+
});
|
|
134
|
+
const draftModelValue = ref();
|
|
135
|
+
const currentLength = computed(() => {
|
|
136
|
+
var _a, _b;
|
|
137
|
+
return (_b = (_a = proxyModelValue.value) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
|
138
|
+
});
|
|
139
|
+
const maxLength = computed(() => controlAttributes.maxlength);
|
|
140
|
+
// Methods
|
|
141
|
+
function focus() {
|
|
142
|
+
var _a;
|
|
143
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.focus();
|
|
144
|
+
}
|
|
145
|
+
function blur() {
|
|
146
|
+
var _a;
|
|
147
|
+
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
148
|
+
}
|
|
149
|
+
function add() {
|
|
150
|
+
if (draftModelValue.value) {
|
|
151
|
+
proxyModelValue.value = [...proxyModelValue.value, draftModelValue.value];
|
|
152
|
+
draftModelValue.value = undefined;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
function remove(value) {
|
|
156
|
+
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
157
|
+
}
|
|
158
|
+
function reset() {
|
|
159
|
+
draftModelValue.value = undefined;
|
|
160
|
+
}
|
|
161
|
+
return {
|
|
162
|
+
root,
|
|
163
|
+
control,
|
|
164
|
+
rootStyles,
|
|
165
|
+
controlStyles,
|
|
166
|
+
itemStyles,
|
|
167
|
+
controlAttributes,
|
|
168
|
+
proxyModelValue,
|
|
169
|
+
draftModelValue,
|
|
170
|
+
currentLength,
|
|
171
|
+
maxLength,
|
|
172
|
+
focus,
|
|
173
|
+
blur,
|
|
174
|
+
add,
|
|
175
|
+
remove,
|
|
176
|
+
reset
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
var css_248z = "input[data-v-c0ec6b4a]{min-width:0;background:0 0;outline:0}";
|
|
182
|
+
styleInject(css_248z);
|
|
183
|
+
|
|
184
|
+
/* script */
|
|
185
|
+
const __vue_script__ = script;
|
|
186
|
+
/* template */
|
|
187
|
+
var __vue_render__ = function () {
|
|
188
|
+
var _vm = this;
|
|
189
|
+
var _h = _vm.$createElement;
|
|
190
|
+
var _c = _vm._self._c || _h;
|
|
191
|
+
return _c('div', {
|
|
192
|
+
ref: "root",
|
|
193
|
+
class: _vm.rootStyles
|
|
194
|
+
}, [_vm.label ? [_c('OrLabel', {
|
|
195
|
+
attrs: {
|
|
196
|
+
"control-id": _vm.controlAttributes.id,
|
|
197
|
+
"variant": 'input',
|
|
198
|
+
"required": _vm.required,
|
|
199
|
+
"disabled": _vm.disabled
|
|
200
|
+
},
|
|
201
|
+
scopedSlots: _vm._u([{
|
|
202
|
+
key: "addon",
|
|
203
|
+
fn: function () {
|
|
204
|
+
return [_vm._t("addon")];
|
|
205
|
+
},
|
|
206
|
+
proxy: true
|
|
207
|
+
}], null, true)
|
|
208
|
+
}, [_vm._v("\n " + _vm._s(_vm.label) + "\n\n ")])] : _vm._e(), _vm._v(" "), _c('OrInputBox', {
|
|
209
|
+
attrs: {
|
|
210
|
+
"variant": _vm.disableDefaultStyles ? 'unstyled' : 'styled',
|
|
211
|
+
"size": _vm.size,
|
|
212
|
+
"invalid": !!_vm.error,
|
|
213
|
+
"readonly": _vm.readonly,
|
|
214
|
+
"disabled": _vm.disabled
|
|
215
|
+
},
|
|
216
|
+
scopedSlots: _vm._u([{
|
|
217
|
+
key: "addon",
|
|
218
|
+
fn: function () {
|
|
219
|
+
return [_vm.draftModelValue ? [_c('OrIconButton', {
|
|
220
|
+
attrs: {
|
|
221
|
+
"icon": 'close',
|
|
222
|
+
"color": 'inherit',
|
|
223
|
+
"disabled": _vm.readonly || _vm.disabled
|
|
224
|
+
},
|
|
225
|
+
on: {
|
|
226
|
+
"click": function ($event) {
|
|
227
|
+
$event.stopPropagation();
|
|
228
|
+
return _vm.reset();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
})] : _vm._e()];
|
|
232
|
+
},
|
|
233
|
+
proxy: true
|
|
234
|
+
}])
|
|
235
|
+
}, [_c('OrTags', {
|
|
236
|
+
attrs: {
|
|
237
|
+
"items": _vm.proxyModelValue,
|
|
238
|
+
"tag-props": {
|
|
239
|
+
variant: 'reset',
|
|
240
|
+
disabled: _vm.disabled
|
|
241
|
+
}
|
|
242
|
+
},
|
|
243
|
+
on: {
|
|
244
|
+
"reset": function ($event) {
|
|
245
|
+
return _vm.remove($event);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
}), _vm._v(" "), _c('input', _vm._b({
|
|
249
|
+
directives: [{
|
|
250
|
+
name: "model",
|
|
251
|
+
rawName: "v-model",
|
|
252
|
+
value: _vm.draftModelValue,
|
|
253
|
+
expression: "draftModelValue"
|
|
254
|
+
}],
|
|
255
|
+
ref: "control",
|
|
256
|
+
class: _vm.controlStyles,
|
|
257
|
+
attrs: {
|
|
258
|
+
"placeholder": !_vm.proxyModelValue.length ? _vm.placeholder : undefined,
|
|
259
|
+
"readonly": _vm.readonly,
|
|
260
|
+
"disabled": _vm.disabled,
|
|
261
|
+
"type": 'text'
|
|
262
|
+
},
|
|
263
|
+
domProps: {
|
|
264
|
+
"value": _vm.draftModelValue
|
|
265
|
+
},
|
|
266
|
+
on: {
|
|
267
|
+
"keydown": [function ($event) {
|
|
268
|
+
if (!$event.type.indexOf('key') && _vm._k($event.keyCode, "enter", 13, $event.key, "Enter")) {
|
|
269
|
+
return null;
|
|
270
|
+
}
|
|
271
|
+
return _vm.add();
|
|
272
|
+
}, function ($event) {
|
|
273
|
+
return _vm.$emit('keydown', $event);
|
|
274
|
+
}],
|
|
275
|
+
"keyup": function ($event) {
|
|
276
|
+
return _vm.$emit('keyup', $event);
|
|
277
|
+
},
|
|
278
|
+
"focus": function ($event) {
|
|
279
|
+
return _vm.$emit('focus', $event);
|
|
280
|
+
},
|
|
281
|
+
"blur": function ($event) {
|
|
282
|
+
return _vm.$emit('blur', $event);
|
|
283
|
+
},
|
|
284
|
+
"input": function ($event) {
|
|
285
|
+
if ($event.target.composing) {
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
_vm.draftModelValue = $event.target.value;
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}, 'input', _vm.controlAttributes, false))], 1), _vm._v(" "), _c('div', {
|
|
292
|
+
directives: [{
|
|
293
|
+
name: "show",
|
|
294
|
+
rawName: "v-show",
|
|
295
|
+
value: !_vm.error,
|
|
296
|
+
expression: "!error"
|
|
297
|
+
}],
|
|
298
|
+
class: ['contents']
|
|
299
|
+
}, [_vm.hint || _vm.maxLength ? [_c('OrHint', {
|
|
300
|
+
attrs: {
|
|
301
|
+
"disabled": _vm.disabled
|
|
302
|
+
},
|
|
303
|
+
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
304
|
+
key: "addon",
|
|
305
|
+
fn: function () {
|
|
306
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
307
|
+
},
|
|
308
|
+
proxy: true
|
|
309
|
+
} : null], null, true)
|
|
310
|
+
}, [_vm._v("\n " + _vm._s(_vm.hint) + "\n\n ")])] : _vm._e()], 2), _vm._v(" "), _c('div', {
|
|
311
|
+
directives: [{
|
|
312
|
+
name: "show",
|
|
313
|
+
rawName: "v-show",
|
|
314
|
+
value: typeof _vm.error === 'string',
|
|
315
|
+
expression: "typeof error === 'string'"
|
|
316
|
+
}],
|
|
317
|
+
class: ['contents']
|
|
318
|
+
}, [_c('OrError', {
|
|
319
|
+
attrs: {
|
|
320
|
+
"disabled": _vm.disabled
|
|
321
|
+
},
|
|
322
|
+
scopedSlots: _vm._u([_vm.maxLength ? {
|
|
323
|
+
key: "addon",
|
|
324
|
+
fn: function () {
|
|
325
|
+
return [_vm._v("\n " + _vm._s(_vm.currentLength) + " / " + _vm._s(_vm.maxLength) + "\n ")];
|
|
326
|
+
},
|
|
327
|
+
proxy: true
|
|
328
|
+
} : null], null, true)
|
|
329
|
+
}, [_vm._v("\n " + _vm._s(_vm.error) + "\n\n ")])], 1)], 2);
|
|
330
|
+
};
|
|
331
|
+
var __vue_staticRenderFns__ = [];
|
|
332
|
+
|
|
333
|
+
/* style */
|
|
334
|
+
const __vue_inject_styles__ = undefined;
|
|
335
|
+
/* scoped */
|
|
336
|
+
const __vue_scope_id__ = "data-v-c0ec6b4a";
|
|
337
|
+
/* module identifier */
|
|
338
|
+
const __vue_module_identifier__ = undefined;
|
|
339
|
+
/* functional template */
|
|
340
|
+
const __vue_is_functional_template__ = false;
|
|
341
|
+
/* style inject */
|
|
342
|
+
|
|
343
|
+
/* style inject SSR */
|
|
344
|
+
|
|
345
|
+
/* style inject shadow dom */
|
|
346
|
+
|
|
347
|
+
const __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
348
|
+
render: __vue_render__,
|
|
349
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
350
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
|
|
351
|
+
|
|
352
|
+
export { __vue_component__ as default };
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import { PropType } from 'vue-demi';
|
|
2
|
+
import { TagInputSize } from './props';
|
|
3
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
4
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
6
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
7
|
+
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
8
|
+
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
9
|
+
controlAttributes: {
|
|
10
|
+
required: boolean | undefined;
|
|
11
|
+
minlength: number | undefined;
|
|
12
|
+
maxlength: number | undefined;
|
|
13
|
+
pattern: string | undefined;
|
|
14
|
+
min: number | undefined;
|
|
15
|
+
max: number | undefined;
|
|
16
|
+
step: number | undefined;
|
|
17
|
+
readonly: boolean | undefined;
|
|
18
|
+
disabled: boolean | undefined;
|
|
19
|
+
'force-state': string | undefined;
|
|
20
|
+
id: string | undefined;
|
|
21
|
+
};
|
|
22
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]>;
|
|
23
|
+
draftModelValue: import("@vue/composition-api").Ref<string | undefined>;
|
|
24
|
+
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
25
|
+
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
26
|
+
focus: () => void;
|
|
27
|
+
blur: () => void;
|
|
28
|
+
add: () => void;
|
|
29
|
+
remove: (value: string) => void;
|
|
30
|
+
reset: () => void;
|
|
31
|
+
}> & import("@vue/composition-api").Data, {}, {}, {
|
|
32
|
+
modelValue: {
|
|
33
|
+
type: PropType<string[]>;
|
|
34
|
+
default: () => never[];
|
|
35
|
+
};
|
|
36
|
+
size: {
|
|
37
|
+
type: PropType<"m" | "s">;
|
|
38
|
+
default: TagInputSize;
|
|
39
|
+
};
|
|
40
|
+
label: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: undefined;
|
|
43
|
+
};
|
|
44
|
+
placeholder: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: undefined;
|
|
47
|
+
};
|
|
48
|
+
hint: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: undefined;
|
|
51
|
+
};
|
|
52
|
+
error: {
|
|
53
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
54
|
+
default: undefined;
|
|
55
|
+
};
|
|
56
|
+
required: {
|
|
57
|
+
type: BooleanConstructor;
|
|
58
|
+
default: boolean;
|
|
59
|
+
};
|
|
60
|
+
readonly: {
|
|
61
|
+
type: BooleanConstructor;
|
|
62
|
+
default: boolean;
|
|
63
|
+
};
|
|
64
|
+
disabled: {
|
|
65
|
+
type: BooleanConstructor;
|
|
66
|
+
default: boolean;
|
|
67
|
+
};
|
|
68
|
+
disableDefaultStyles: {
|
|
69
|
+
type: BooleanConstructor;
|
|
70
|
+
default: boolean;
|
|
71
|
+
};
|
|
72
|
+
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
73
|
+
modelValue: {
|
|
74
|
+
type: PropType<string[]>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
size: {
|
|
78
|
+
type: PropType<"m" | "s">;
|
|
79
|
+
default: TagInputSize;
|
|
80
|
+
};
|
|
81
|
+
label: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: undefined;
|
|
84
|
+
};
|
|
85
|
+
placeholder: {
|
|
86
|
+
type: StringConstructor;
|
|
87
|
+
default: undefined;
|
|
88
|
+
};
|
|
89
|
+
hint: {
|
|
90
|
+
type: StringConstructor;
|
|
91
|
+
default: undefined;
|
|
92
|
+
};
|
|
93
|
+
error: {
|
|
94
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
95
|
+
default: undefined;
|
|
96
|
+
};
|
|
97
|
+
required: {
|
|
98
|
+
type: BooleanConstructor;
|
|
99
|
+
default: boolean;
|
|
100
|
+
};
|
|
101
|
+
readonly: {
|
|
102
|
+
type: BooleanConstructor;
|
|
103
|
+
default: boolean;
|
|
104
|
+
};
|
|
105
|
+
disabled: {
|
|
106
|
+
type: BooleanConstructor;
|
|
107
|
+
default: boolean;
|
|
108
|
+
};
|
|
109
|
+
disableDefaultStyles: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
114
|
+
modelValue: string[];
|
|
115
|
+
size: "m" | "s";
|
|
116
|
+
label: string;
|
|
117
|
+
placeholder: string;
|
|
118
|
+
hint: string;
|
|
119
|
+
error: string | boolean;
|
|
120
|
+
required: boolean;
|
|
121
|
+
readonly: boolean;
|
|
122
|
+
disabled: boolean;
|
|
123
|
+
disableDefaultStyles: boolean;
|
|
124
|
+
} & {} & {
|
|
125
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
126
|
+
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
127
|
+
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
128
|
+
control: import("@vue/composition-api").Ref<HTMLInputElement | undefined>;
|
|
129
|
+
rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
130
|
+
controlStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
131
|
+
itemStyles: import("@vue/composition-api").ComputedRef<string[]>;
|
|
132
|
+
controlAttributes: {
|
|
133
|
+
required: boolean | undefined;
|
|
134
|
+
minlength: number | undefined;
|
|
135
|
+
maxlength: number | undefined;
|
|
136
|
+
pattern: string | undefined;
|
|
137
|
+
min: number | undefined;
|
|
138
|
+
max: number | undefined;
|
|
139
|
+
step: number | undefined;
|
|
140
|
+
readonly: boolean | undefined;
|
|
141
|
+
disabled: boolean | undefined;
|
|
142
|
+
'force-state': string | undefined;
|
|
143
|
+
id: string | undefined;
|
|
144
|
+
};
|
|
145
|
+
proxyModelValue: import("@vue/composition-api").WritableComputedRef<string[]>;
|
|
146
|
+
draftModelValue: import("@vue/composition-api").Ref<string | undefined>;
|
|
147
|
+
currentLength: import("@vue/composition-api").ComputedRef<number>;
|
|
148
|
+
maxLength: import("@vue/composition-api").ComputedRef<number | undefined>;
|
|
149
|
+
focus: () => void;
|
|
150
|
+
blur: () => void;
|
|
151
|
+
add: () => void;
|
|
152
|
+
remove: (value: string) => void;
|
|
153
|
+
reset: () => void;
|
|
154
|
+
}>, import("@vue/composition-api").Data, {}, {}, {}, {}, string[], {
|
|
155
|
+
modelValue: string[];
|
|
156
|
+
size: "m" | "s";
|
|
157
|
+
label: string;
|
|
158
|
+
placeholder: string;
|
|
159
|
+
hint: string;
|
|
160
|
+
error: string | boolean;
|
|
161
|
+
required: boolean;
|
|
162
|
+
readonly: boolean;
|
|
163
|
+
disabled: boolean;
|
|
164
|
+
disableDefaultStyles: boolean;
|
|
165
|
+
} & {} & {
|
|
166
|
+
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
modelValue: string[];
|
|
169
|
+
size: "m" | "s";
|
|
170
|
+
label: string;
|
|
171
|
+
placeholder: string;
|
|
172
|
+
hint: string;
|
|
173
|
+
error: string | boolean;
|
|
174
|
+
required: boolean;
|
|
175
|
+
readonly: boolean;
|
|
176
|
+
disabled: boolean;
|
|
177
|
+
disableDefaultStyles: boolean;
|
|
178
|
+
}, true>);
|
|
179
|
+
export default _default;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
export { default as OrTagInputV3 } from './OrTagInput.js';
|
|
2
|
+
export { InputBoxSize as TagInputSize } from '../OrInputBoxV3/props.js';
|
|
3
|
+
import 'vue-demi';
|
|
4
|
+
import './styles.js';
|
|
5
|
+
import '../OrErrorV3/OrError.js';
|
|
6
|
+
import '../OrErrorV3/styles.js';
|
|
7
|
+
import '../../normalize-component-6e8e3d80.js';
|
|
8
|
+
import '../OrHintV3/OrHint.js';
|
|
9
|
+
import '../OrHintV3/styles.js';
|
|
10
|
+
import '../OrIconButtonV3/OrIconButton.js';
|
|
11
|
+
import '../OrIconButtonV3/props.js';
|
|
12
|
+
import '../OrIconV3/props.js';
|
|
13
|
+
import '../OrIconButtonV3/styles.js';
|
|
14
|
+
import '../OrIconV3/OrIcon.js';
|
|
15
|
+
import '../OrIconV3/styles.js';
|
|
16
|
+
import '../OrTooltipV3/OrTooltip.js';
|
|
17
|
+
import '../OrTooltipV3/styles.js';
|
|
18
|
+
import '../OrPopoverV3/OrPopover.js';
|
|
19
|
+
import '../../floating-ui.dom.esm-83eba816.js';
|
|
20
|
+
import '../../index-c92e2839.js';
|
|
21
|
+
import '../../index-ec92055d.js';
|
|
22
|
+
import '../OrPopoverV3/props.js';
|
|
23
|
+
import '../OrPopoverV3/styles.js';
|
|
24
|
+
import '../OrBottomSheetV3/OrBottomSheet.js';
|
|
25
|
+
import '../OrBottomSheetV3/props.js';
|
|
26
|
+
import '../OrBottomSheetV3/styles.js';
|
|
27
|
+
import '../OrOverlayV3/OrOverlay.js';
|
|
28
|
+
import '../OrOverlayV3/styles.js';
|
|
29
|
+
import '../OrTeleportV3/OrTeleport.js';
|
|
30
|
+
import 'vue';
|
|
31
|
+
import '../../hooks/useElevation.js';
|
|
32
|
+
import '../../utils/isVisible.js';
|
|
33
|
+
import '../../hooks/usePopoverState.js';
|
|
34
|
+
import '../../hooks/useResponsive/useResponsive.js';
|
|
35
|
+
import '../OrInputBoxV3/OrInputBox.js';
|
|
36
|
+
import '../OrInputBoxV3/styles.js';
|
|
37
|
+
import '../OrLabelV3/OrLabel.js';
|
|
38
|
+
import '../OrLabelV3/props.js';
|
|
39
|
+
import '../OrLabelV3/styles.js';
|
|
40
|
+
import '../OrTagsV3/OrTags.js';
|
|
41
|
+
import '../OrTagsV3/styles.js';
|
|
42
|
+
import '../OrButtonV3/OrButton.js';
|
|
43
|
+
import '../OrButtonV3/props.js';
|
|
44
|
+
import '../OrButtonV3/styles.js';
|
|
45
|
+
import '../OrLoaderV3/OrLoader.js';
|
|
46
|
+
import '../OrLoaderV3/props.js';
|
|
47
|
+
import '../OrLoaderV3/styles.js';
|
|
48
|
+
import '../OrTagV3/OrTag.js';
|
|
49
|
+
import '../OrTagV3/props.js';
|
|
50
|
+
import '../OrTagV3/styles.js';
|
|
51
|
+
import '../../hooks/useOverflow.js';
|
|
52
|
+
import '../../hooks/useIdAttribute.js';
|
|
53
|
+
import '../../hooks/useControlAttributes.js';
|
|
54
|
+
import '../../hooks/useValidationAttributes.js';
|
|
55
|
+
import '../../style-inject.es-4c6f2515.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as TagInputSize } from '../or-input-box-v3';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InputBoxSize as TagInputSize } from '../OrInputBoxV3/props.js';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
const TagInput = [
|
|
2
|
+
// Layout
|
|
3
|
+
'layout-column',
|
|
4
|
+
// Spacing
|
|
5
|
+
'gap-xs'];
|
|
6
|
+
const TagInputControl = [
|
|
7
|
+
// Layout
|
|
8
|
+
'flex-auto',
|
|
9
|
+
// Typography
|
|
10
|
+
'typography-inherit',
|
|
11
|
+
// Theme (placeholder)
|
|
12
|
+
'placeholder:theme-foreground-outline', 'dark:placeholder:theme-foreground-outline-dark'];
|
|
13
|
+
const TagInputItem = [
|
|
14
|
+
// Box
|
|
15
|
+
'!min-h-0'];
|
|
16
|
+
|
|
17
|
+
export { TagInput, TagInputControl, TagInputItem };
|
|
@@ -54,6 +54,8 @@ var script = defineComponent({
|
|
|
54
54
|
default: undefined
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
|
+
emits: ['click', 'focus', 'blur', 'reset'],
|
|
58
|
+
expose: ['root'],
|
|
57
59
|
setup(props) {
|
|
58
60
|
// Refs
|
|
59
61
|
const root = ref();
|
|
@@ -112,7 +114,12 @@ var __vue_render__ = function () {
|
|
|
112
114
|
class: _vm.containerStyles
|
|
113
115
|
}, _vm._l(_vm.items, function (item) {
|
|
114
116
|
return _c('OrTag', _vm._b({
|
|
115
|
-
key: item
|
|
117
|
+
key: item,
|
|
118
|
+
on: {
|
|
119
|
+
"reset": function ($event) {
|
|
120
|
+
return _vm.$emit('reset', item);
|
|
121
|
+
}
|
|
122
|
+
}
|
|
116
123
|
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item) + "\n ")]);
|
|
117
124
|
}), 1), _vm._v(" "), _vm.overflowItems.length > 0 ? [_c('OrButton', {
|
|
118
125
|
ref: "overflowButton",
|