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