@onereach/ui-components 8.12.0 → 8.13.0-beta.3770.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/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +11 -0
- package/dist/bundled/v2/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v2/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v2/components/{OrTagInputV3-69f191d0.js → OrTagInputV3-697eb4bf.js} +9 -3
- package/dist/bundled/v2/components/index.js +1 -1
- package/dist/bundled/v2/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +9 -0
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
- package/dist/bundled/v3/components/{OrTagInputV3-820b890f.js → OrTagInputV3-e511c0bf.js} +7 -1
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/{OrTagInput-a2905657.js → OrTagInput-e7b69c98.js} +9 -3
- package/dist/esm/v2/components/index.js +1 -1
- package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +11 -0
- package/dist/esm/v2/components/or-tag-input-v3/index.js +1 -1
- package/dist/esm/v2/index.js +1 -1
- package/dist/esm/v3/{OrTagInput-4a9158c9.js → OrTagInput-1290510b.js} +7 -1
- package/dist/esm/v3/components/index.js +1 -1
- package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +9 -0
- package/dist/esm/v3/components/or-tag-input-v3/index.js +1 -1
- package/dist/esm/v3/index.js +1 -1
- package/package.json +2 -3
- package/src/components/or-tag-input-v3/OrTagInput.vue +7 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { _ as default } from '../OrTagInputV3-
|
|
1
|
+
export { _ as default } from '../OrTagInputV3-697eb4bf.js';
|
|
2
2
|
import '../OrAvatar-f32ddb1f.js';
|
|
@@ -90,6 +90,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
90
90
|
type: BooleanConstructor;
|
|
91
91
|
default: boolean;
|
|
92
92
|
};
|
|
93
|
+
saveDraftValueOnClickOutside: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
93
97
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
94
98
|
modelValue: {
|
|
95
99
|
type: PropType<string[]>;
|
|
@@ -135,6 +139,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
135
139
|
type: BooleanConstructor;
|
|
136
140
|
default: boolean;
|
|
137
141
|
};
|
|
142
|
+
saveDraftValueOnClickOutside: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
138
146
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
139
147
|
modelValue: string[];
|
|
140
148
|
label: string;
|
|
@@ -147,6 +155,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
147
155
|
disableDefaultStyles: boolean;
|
|
148
156
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
149
157
|
enableClear: boolean;
|
|
158
|
+
saveDraftValueOnClickOutside: boolean;
|
|
150
159
|
} & {} & {
|
|
151
160
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
152
161
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -206,6 +215,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
206
215
|
disableDefaultStyles: boolean;
|
|
207
216
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
208
217
|
enableClear: boolean;
|
|
218
|
+
saveDraftValueOnClickOutside: boolean;
|
|
209
219
|
} & {} & {
|
|
210
220
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
211
221
|
}, {
|
|
@@ -220,5 +230,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
220
230
|
disableDefaultStyles: boolean;
|
|
221
231
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
222
232
|
enableClear: boolean;
|
|
233
|
+
saveDraftValueOnClickOutside: boolean;
|
|
223
234
|
}, true>);
|
|
224
235
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { _ as OrTagInputV3 } from '../OrTagInputV3-
|
|
1
|
+
export { _ as OrTagInputV3 } from '../OrTagInputV3-697eb4bf.js';
|
|
2
2
|
export { I as TagInputSize } from '../OrInputBoxV3-14649b7c.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-
|
|
1
|
+
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-697eb4bf.js';
|
|
@@ -82,6 +82,10 @@ var script = defineComponent({
|
|
|
82
82
|
enableClear: {
|
|
83
83
|
type: Boolean,
|
|
84
84
|
default: true
|
|
85
|
+
},
|
|
86
|
+
saveDraftValueOnClickOutside: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: false
|
|
85
89
|
}
|
|
86
90
|
},
|
|
87
91
|
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur', 'reset'],
|
|
@@ -98,7 +102,8 @@ var script = defineComponent({
|
|
|
98
102
|
overflow,
|
|
99
103
|
placeholder,
|
|
100
104
|
disabled,
|
|
101
|
-
readonly
|
|
105
|
+
readonly,
|
|
106
|
+
saveDraftValueOnClickOutside
|
|
102
107
|
} = toRefs(props);
|
|
103
108
|
// Styles
|
|
104
109
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
@@ -169,6 +174,7 @@ var script = defineComponent({
|
|
|
169
174
|
onClickOutside(inputBox, () => {
|
|
170
175
|
var _a, _b;
|
|
171
176
|
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
177
|
+
if (saveDraftValueOnClickOutside.value) add();
|
|
172
178
|
deactivate();
|
|
173
179
|
});
|
|
174
180
|
watch(proxyModelValue, (items, prevItems) => {
|
|
@@ -204,7 +210,7 @@ var script = defineComponent({
|
|
|
204
210
|
}
|
|
205
211
|
});
|
|
206
212
|
|
|
207
|
-
var css_248z = "input[data-v-
|
|
213
|
+
var css_248z = "input[data-v-6e446c91]{min-width:0;background:0 0;outline:0}";
|
|
208
214
|
styleInject(css_248z);
|
|
209
215
|
|
|
210
216
|
/* script */
|
|
@@ -376,7 +382,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
376
382
|
/* style */
|
|
377
383
|
const __vue_inject_styles__ = undefined;
|
|
378
384
|
/* scoped */
|
|
379
|
-
const __vue_scope_id__ = "data-v-
|
|
385
|
+
const __vue_scope_id__ = "data-v-6e446c91";
|
|
380
386
|
/* module identifier */
|
|
381
387
|
const __vue_module_identifier__ = undefined;
|
|
382
388
|
/* functional template */
|
|
@@ -101,7 +101,7 @@ export { _ as OrTabV3 } from './OrTabV3-c7dd4c84.js';
|
|
|
101
101
|
export { default as OrTabs } from './OrTabs/OrTabs.js';
|
|
102
102
|
export { _ as OrTabsV3, T as TabsVariant } from './OrTabsV3-d7fe1568.js';
|
|
103
103
|
export { default as OrTag } from './OrTag/OrTag.js';
|
|
104
|
-
export { _ as OrTagInputV3 } from './OrTagInputV3-
|
|
104
|
+
export { _ as OrTagInputV3 } from './OrTagInputV3-697eb4bf.js';
|
|
105
105
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTagV3-071da959.js';
|
|
106
106
|
export { _ as OrTagsV3, T as TagsOverflow } from './OrTagsV3-f89f00ff.js';
|
|
107
107
|
export { _ as OrTeleport } from './OrTeleport-a1a9f326.js';
|
package/dist/bundled/v2/index.js
CHANGED
|
@@ -60,7 +60,7 @@ export { default as OrTab } from './components/OrTab/OrTab.js';
|
|
|
60
60
|
export { default as OrTabs } from './components/OrTabs/OrTabs.js';
|
|
61
61
|
export { _ as OrTabsV3, T as TabsVariant } from './components/OrTabsV3-d7fe1568.js';
|
|
62
62
|
export { default as OrTag } from './components/OrTag/OrTag.js';
|
|
63
|
-
export { _ as OrTagInputV3 } from './components/OrTagInputV3-
|
|
63
|
+
export { _ as OrTagInputV3 } from './components/OrTagInputV3-697eb4bf.js';
|
|
64
64
|
export { _ as OrTextV3 } from './components/OrTextV3-64d8cab6.js';
|
|
65
65
|
export { default as OrTextarea } from './components/OrTextarea/OrTextarea.js';
|
|
66
66
|
export { _ as OrTextareaV3 } from './components/OrTextareaV3-fdeb5ba1.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { s as default } from '../OrTagInputV3-
|
|
1
|
+
export { s as default } from '../OrTagInputV3-e511c0bf.js';
|
|
@@ -45,6 +45,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
+
saveDraftValueOnClickOutside: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
}, {
|
|
49
53
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
50
54
|
control: import("vue-demi").Ref<HTMLInputElement | undefined>;
|
|
@@ -127,6 +131,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
127
131
|
type: BooleanConstructor;
|
|
128
132
|
default: boolean;
|
|
129
133
|
};
|
|
134
|
+
saveDraftValueOnClickOutside: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
130
138
|
}>> & {
|
|
131
139
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
132
140
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
@@ -146,5 +154,6 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
146
154
|
disableDefaultStyles: boolean;
|
|
147
155
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
148
156
|
enableClear: boolean;
|
|
157
|
+
saveDraftValueOnClickOutside: boolean;
|
|
149
158
|
}>;
|
|
150
159
|
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { s as OrTagInputV3 } from '../OrTagInputV3-
|
|
1
|
+
export { s as OrTagInputV3 } from '../OrTagInputV3-e511c0bf.js';
|
|
2
2
|
export { I as TagInputSize } from '../OrInputBoxV3-158edd7f.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-
|
|
1
|
+
export { T as TagInput, a as TagInputControl, b as TagInputItem } from '../OrTagInputV3-e511c0bf.js';
|
|
@@ -83,6 +83,10 @@ var script = defineComponent({
|
|
|
83
83
|
enableClear: {
|
|
84
84
|
type: Boolean,
|
|
85
85
|
default: true
|
|
86
|
+
},
|
|
87
|
+
saveDraftValueOnClickOutside: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: false
|
|
86
90
|
}
|
|
87
91
|
},
|
|
88
92
|
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur', 'reset'],
|
|
@@ -99,7 +103,8 @@ var script = defineComponent({
|
|
|
99
103
|
overflow,
|
|
100
104
|
placeholder,
|
|
101
105
|
disabled,
|
|
102
|
-
readonly
|
|
106
|
+
readonly,
|
|
107
|
+
saveDraftValueOnClickOutside
|
|
103
108
|
} = toRefs(props);
|
|
104
109
|
// Styles
|
|
105
110
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
@@ -170,6 +175,7 @@ var script = defineComponent({
|
|
|
170
175
|
onClickOutside(inputBox, () => {
|
|
171
176
|
var _a, _b;
|
|
172
177
|
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
178
|
+
if (saveDraftValueOnClickOutside.value) add();
|
|
173
179
|
deactivate();
|
|
174
180
|
});
|
|
175
181
|
watch(proxyModelValue, (items, prevItems) => {
|
|
@@ -101,7 +101,7 @@ export { s as OrTabV3 } from './OrTabV3-b041538e.js';
|
|
|
101
101
|
export { default as OrTabs } from './OrTabs/OrTabs.js';
|
|
102
102
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabsV3-87c77545.js';
|
|
103
103
|
export { default as OrTag } from './OrTag/OrTag.js';
|
|
104
|
-
export { s as OrTagInputV3 } from './OrTagInputV3-
|
|
104
|
+
export { s as OrTagInputV3 } from './OrTagInputV3-e511c0bf.js';
|
|
105
105
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTagV3-acb6e27c.js';
|
|
106
106
|
export { s as OrTagsV3, T as TagsOverflow } from './OrTagsV3-2597d2e1.js';
|
|
107
107
|
export { s as OrTeleport } from './OrTeleport-5a34b07f.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -59,7 +59,7 @@ export { default as OrTab } from './components/OrTab/OrTab.js';
|
|
|
59
59
|
export { default as OrTabs } from './components/OrTabs/OrTabs.js';
|
|
60
60
|
export { s as OrTabsV3, T as TabsVariant } from './components/OrTabsV3-87c77545.js';
|
|
61
61
|
export { default as OrTag } from './components/OrTag/OrTag.js';
|
|
62
|
-
export { s as OrTagInputV3 } from './components/OrTagInputV3-
|
|
62
|
+
export { s as OrTagInputV3 } from './components/OrTagInputV3-e511c0bf.js';
|
|
63
63
|
export { s as OrTextV3 } from './components/OrTextV3-ff806d55.js';
|
|
64
64
|
export { default as OrTextarea } from './components/OrTextarea/OrTextarea.js';
|
|
65
65
|
export { s as OrTextareaV3 } from './components/OrTextareaV3-14e92f75.js';
|
|
@@ -90,6 +90,10 @@ var script = defineComponent({
|
|
|
90
90
|
enableClear: {
|
|
91
91
|
type: Boolean,
|
|
92
92
|
default: true
|
|
93
|
+
},
|
|
94
|
+
saveDraftValueOnClickOutside: {
|
|
95
|
+
type: Boolean,
|
|
96
|
+
default: false
|
|
93
97
|
}
|
|
94
98
|
},
|
|
95
99
|
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur', 'reset'],
|
|
@@ -106,7 +110,8 @@ var script = defineComponent({
|
|
|
106
110
|
overflow,
|
|
107
111
|
placeholder,
|
|
108
112
|
disabled,
|
|
109
|
-
readonly
|
|
113
|
+
readonly,
|
|
114
|
+
saveDraftValueOnClickOutside
|
|
110
115
|
} = toRefs(props);
|
|
111
116
|
// Styles
|
|
112
117
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
@@ -177,6 +182,7 @@ var script = defineComponent({
|
|
|
177
182
|
onClickOutside(inputBox, () => {
|
|
178
183
|
var _a, _b;
|
|
179
184
|
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
185
|
+
if (saveDraftValueOnClickOutside.value) add();
|
|
180
186
|
deactivate();
|
|
181
187
|
});
|
|
182
188
|
watch(proxyModelValue, (items, prevItems) => {
|
|
@@ -212,7 +218,7 @@ var script = defineComponent({
|
|
|
212
218
|
}
|
|
213
219
|
});
|
|
214
220
|
|
|
215
|
-
var css_248z = "input[data-v-
|
|
221
|
+
var css_248z = "input[data-v-6e446c91]{min-width:0;background:0 0;outline:0}";
|
|
216
222
|
styleInject(css_248z);
|
|
217
223
|
|
|
218
224
|
/* script */
|
|
@@ -384,7 +390,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
384
390
|
/* style */
|
|
385
391
|
const __vue_inject_styles__ = undefined;
|
|
386
392
|
/* scoped */
|
|
387
|
-
const __vue_scope_id__ = "data-v-
|
|
393
|
+
const __vue_scope_id__ = "data-v-6e446c91";
|
|
388
394
|
/* module identifier */
|
|
389
395
|
const __vue_module_identifier__ = undefined;
|
|
390
396
|
/* functional template */
|
|
@@ -123,7 +123,7 @@ export { _ as OrTabV3 } from '../OrTab-c88df1ef.js';
|
|
|
123
123
|
export { _ as OrTabs } from '../OrTabs-62e7e478.js';
|
|
124
124
|
export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-6026881b.js';
|
|
125
125
|
export { _ as OrTag } from '../OrTag-b5803a20.js';
|
|
126
|
-
export { _ as OrTagInputV3 } from '../OrTagInput-
|
|
126
|
+
export { _ as OrTagInputV3 } from '../OrTagInput-e7b69c98.js';
|
|
127
127
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-5429f2ff.js';
|
|
128
128
|
export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-2d9187e5.js';
|
|
129
129
|
export { _ as OrTeleport } from '../OrTeleport.vue2-f0c16c71.js';
|
|
@@ -90,6 +90,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
90
90
|
type: BooleanConstructor;
|
|
91
91
|
default: boolean;
|
|
92
92
|
};
|
|
93
|
+
saveDraftValueOnClickOutside: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
93
97
|
}, import("@vue/composition-api").ExtractPropTypes<{
|
|
94
98
|
modelValue: {
|
|
95
99
|
type: PropType<string[]>;
|
|
@@ -135,6 +139,10 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
135
139
|
type: BooleanConstructor;
|
|
136
140
|
default: boolean;
|
|
137
141
|
};
|
|
142
|
+
saveDraftValueOnClickOutside: {
|
|
143
|
+
type: BooleanConstructor;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
138
146
|
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
139
147
|
modelValue: string[];
|
|
140
148
|
label: string;
|
|
@@ -147,6 +155,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
147
155
|
disableDefaultStyles: boolean;
|
|
148
156
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
149
157
|
enableClear: boolean;
|
|
158
|
+
saveDraftValueOnClickOutside: boolean;
|
|
150
159
|
} & {} & {
|
|
151
160
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
152
161
|
}, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
@@ -206,6 +215,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
206
215
|
disableDefaultStyles: boolean;
|
|
207
216
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
208
217
|
enableClear: boolean;
|
|
218
|
+
saveDraftValueOnClickOutside: boolean;
|
|
209
219
|
} & {} & {
|
|
210
220
|
[x: `on${Capitalize<string>}`]: ((...args: any[]) => any) | undefined;
|
|
211
221
|
}, {
|
|
@@ -220,5 +230,6 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
|
|
|
220
230
|
disableDefaultStyles: boolean;
|
|
221
231
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
222
232
|
enableClear: boolean;
|
|
233
|
+
saveDraftValueOnClickOutside: boolean;
|
|
223
234
|
}, true>);
|
|
224
235
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrTagInputV3 } from '../../OrTagInput-
|
|
1
|
+
export { _ as OrTagInputV3 } from '../../OrTagInput-e7b69c98.js';
|
|
2
2
|
export { I as TagInputSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-ba172f8b.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '@vueuse/core';
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -123,7 +123,7 @@ export { _ as OrTabV3 } from './OrTab-c88df1ef.js';
|
|
|
123
123
|
export { _ as OrTabs } from './OrTabs-62e7e478.js';
|
|
124
124
|
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-6026881b.js';
|
|
125
125
|
export { _ as OrTag } from './OrTag-b5803a20.js';
|
|
126
|
-
export { _ as OrTagInputV3 } from './OrTagInput-
|
|
126
|
+
export { _ as OrTagInputV3 } from './OrTagInput-e7b69c98.js';
|
|
127
127
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-5429f2ff.js';
|
|
128
128
|
export { _ as OrTagsV3, T as TagsOverflow } from './OrTags-2d9187e5.js';
|
|
129
129
|
export { _ as OrTeleport } from './OrTeleport.vue2-f0c16c71.js';
|
|
@@ -89,6 +89,10 @@ var script = defineComponent({
|
|
|
89
89
|
enableClear: {
|
|
90
90
|
type: Boolean,
|
|
91
91
|
default: true
|
|
92
|
+
},
|
|
93
|
+
saveDraftValueOnClickOutside: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: false
|
|
92
96
|
}
|
|
93
97
|
},
|
|
94
98
|
emits: ['update:modelValue', 'keydown', 'keyup', 'focus', 'blur', 'reset'],
|
|
@@ -105,7 +109,8 @@ var script = defineComponent({
|
|
|
105
109
|
overflow,
|
|
106
110
|
placeholder,
|
|
107
111
|
disabled,
|
|
108
|
-
readonly
|
|
112
|
+
readonly,
|
|
113
|
+
saveDraftValueOnClickOutside
|
|
109
114
|
} = toRefs(props);
|
|
110
115
|
// Styles
|
|
111
116
|
const rootStyles = computed(() => ['or-tag-input-v3', ...TagInput]);
|
|
@@ -176,6 +181,7 @@ var script = defineComponent({
|
|
|
176
181
|
onClickOutside(inputBox, () => {
|
|
177
182
|
var _a, _b;
|
|
178
183
|
if (activated.value === false || ((_b = (_a = tags.value) === null || _a === void 0 ? void 0 : _a.overflowPopover) === null || _b === void 0 ? void 0 : _b.state) === 'open') return;
|
|
184
|
+
if (saveDraftValueOnClickOutside.value) add();
|
|
179
185
|
deactivate();
|
|
180
186
|
});
|
|
181
187
|
watch(proxyModelValue, (items, prevItems) => {
|
|
@@ -119,7 +119,7 @@ export { s as OrTabV3 } from '../OrTab-45853fd2.js';
|
|
|
119
119
|
export { s as OrTabs } from '../OrTabs-3da3ea89.js';
|
|
120
120
|
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-b076c7e7.js';
|
|
121
121
|
export { s as OrTag } from '../OrTag-1b3b1296.js';
|
|
122
|
-
export { s as OrTagInputV3 } from '../OrTagInput-
|
|
122
|
+
export { s as OrTagInputV3 } from '../OrTagInput-1290510b.js';
|
|
123
123
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-ff483e6b.js';
|
|
124
124
|
export { s as OrTagsV3, T as TagsOverflow } from '../OrTags-942e528e.js';
|
|
125
125
|
export { s as OrTeleport } from '../OrTeleport.vue3-9bce0c02.js';
|
|
@@ -45,6 +45,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
45
45
|
type: BooleanConstructor;
|
|
46
46
|
default: boolean;
|
|
47
47
|
};
|
|
48
|
+
saveDraftValueOnClickOutside: {
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
default: boolean;
|
|
51
|
+
};
|
|
48
52
|
}, {
|
|
49
53
|
root: import("vue-demi").Ref<HTMLElement | undefined>;
|
|
50
54
|
control: import("vue-demi").Ref<HTMLInputElement | undefined>;
|
|
@@ -127,6 +131,10 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
127
131
|
type: BooleanConstructor;
|
|
128
132
|
default: boolean;
|
|
129
133
|
};
|
|
134
|
+
saveDraftValueOnClickOutside: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
default: boolean;
|
|
137
|
+
};
|
|
130
138
|
}>> & {
|
|
131
139
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
132
140
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
@@ -146,5 +154,6 @@ declare const _default: import("vue-demi").DefineComponent<{
|
|
|
146
154
|
disableDefaultStyles: boolean;
|
|
147
155
|
overflow: "default" | "wrap" | "hidden" | "scroll";
|
|
148
156
|
enableClear: boolean;
|
|
157
|
+
saveDraftValueOnClickOutside: boolean;
|
|
149
158
|
}>;
|
|
150
159
|
export default _default;
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -119,7 +119,7 @@ export { s as OrTabV3 } from './OrTab-45853fd2.js';
|
|
|
119
119
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
120
120
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-b076c7e7.js';
|
|
121
121
|
export { s as OrTag } from './OrTag-1b3b1296.js';
|
|
122
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
122
|
+
export { s as OrTagInputV3 } from './OrTagInput-1290510b.js';
|
|
123
123
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-ff483e6b.js';
|
|
124
124
|
export { s as OrTagsV3, T as TagsOverflow } from './OrTags-942e528e.js';
|
|
125
125
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.13.0-beta.3770.0",
|
|
4
4
|
"npmUnpacked": "4.15.2",
|
|
5
5
|
"description": "Vue components library for v2/3",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -176,6 +176,5 @@
|
|
|
176
176
|
"default": "./dist/bundled/v3/components/*/index.js"
|
|
177
177
|
},
|
|
178
178
|
"./package.json": "./package.json"
|
|
179
|
-
}
|
|
180
|
-
"gitHead": "6fa9a02db827c5e2a229cdf40f42164fe15898c5"
|
|
179
|
+
}
|
|
181
180
|
}
|
|
@@ -202,6 +202,11 @@ export default defineComponent({
|
|
|
202
202
|
type: Boolean,
|
|
203
203
|
default: true,
|
|
204
204
|
},
|
|
205
|
+
|
|
206
|
+
saveDraftValueOnClickOutside: {
|
|
207
|
+
type: Boolean,
|
|
208
|
+
default: false,
|
|
209
|
+
},
|
|
205
210
|
},
|
|
206
211
|
|
|
207
212
|
emits: [
|
|
@@ -229,7 +234,7 @@ export default defineComponent({
|
|
|
229
234
|
const tags = ref<InstanceType<typeof OrTags>>();
|
|
230
235
|
|
|
231
236
|
// Props
|
|
232
|
-
const { modelValue, overflow, placeholder, disabled, readonly } = toRefs(props);
|
|
237
|
+
const { modelValue, overflow, placeholder, disabled, readonly, saveDraftValueOnClickOutside } = toRefs(props);
|
|
233
238
|
|
|
234
239
|
// Styles
|
|
235
240
|
const rootStyles = computed(() => [
|
|
@@ -322,6 +327,7 @@ export default defineComponent({
|
|
|
322
327
|
// Effects
|
|
323
328
|
onClickOutside((inputBox as MaybeElementRef), () => {
|
|
324
329
|
if (activated.value === false || (tags.value?.overflowPopover as any)?.state === 'open') return;
|
|
330
|
+
if (saveDraftValueOnClickOutside.value) add();
|
|
325
331
|
deactivate();
|
|
326
332
|
});
|
|
327
333
|
|