@onereach/ui-components 4.7.4-beta.2863.0 → 4.7.4-beta.2867.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 +8 -5
- package/dist/bundled/v2/components/OrTagsV3/OrTags.js +6 -1
- package/dist/bundled/v3/{OrTagInput.vue_vue_type_script_lang-679e7b9d.js → OrTagInput.vue_vue_type_script_lang-1eb13525.js} +5 -2
- package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +3 -3
- package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
- package/dist/bundled/v3/components/OrTagsV3/OrTags.js +3 -2
- package/dist/bundled/v3/components/index.js +1 -1
- package/dist/bundled/v3/index.js +1 -1
- package/dist/esm/v2/{OrTagInput-582e7f3a.js → OrTagInput-2d7a9ef2.js} +9 -6
- package/dist/esm/v2/{OrTags-5220304c.js → OrTags-9048733c.js} +6 -1
- package/dist/esm/v2/components/index.js +2 -2
- package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v2/components/or-tags-v3/OrTags.vue.d.ts +2 -2
- package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v2/index.js +2 -2
- package/dist/esm/v3/{OrTagInput-ea932f50.js → OrTagInput-da823f11.js} +7 -4
- package/dist/esm/v3/{OrTags-00bb5463.js → OrTags-1621cbb9.js} +3 -2
- package/dist/esm/v3/components/index.js +2 -2
- package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
- package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
- package/dist/esm/v3/index.js +2 -2
- package/package.json +2 -2
- package/src/components/or-tag-input-v3/OrTagInput.vue +6 -12
- package/src/components/or-tags-v3/OrTags.vue +1 -0
|
@@ -147,8 +147,10 @@ var script = defineComponent({
|
|
|
147
147
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
148
148
|
}
|
|
149
149
|
function add() {
|
|
150
|
-
|
|
151
|
-
|
|
150
|
+
var _a;
|
|
151
|
+
const value = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
152
|
+
if (value && !proxyModelValue.value.includes(value)) {
|
|
153
|
+
proxyModelValue.value = [...proxyModelValue.value, value];
|
|
152
154
|
draftModelValue.value = undefined;
|
|
153
155
|
}
|
|
154
156
|
}
|
|
@@ -156,6 +158,7 @@ var script = defineComponent({
|
|
|
156
158
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
157
159
|
}
|
|
158
160
|
function reset() {
|
|
161
|
+
proxyModelValue.value = [];
|
|
159
162
|
draftModelValue.value = undefined;
|
|
160
163
|
}
|
|
161
164
|
return {
|
|
@@ -178,7 +181,7 @@ var script = defineComponent({
|
|
|
178
181
|
}
|
|
179
182
|
});
|
|
180
183
|
|
|
181
|
-
var css_248z = "input[data-v-
|
|
184
|
+
var css_248z = "input[data-v-b3092b7c]{min-width:0;background:0 0;outline:0}";
|
|
182
185
|
styleInject(css_248z);
|
|
183
186
|
|
|
184
187
|
/* script */
|
|
@@ -216,7 +219,7 @@ var __vue_render__ = function () {
|
|
|
216
219
|
scopedSlots: _vm._u([{
|
|
217
220
|
key: "addon",
|
|
218
221
|
fn: function () {
|
|
219
|
-
return [_vm.draftModelValue ? [_c('OrIconButton', {
|
|
222
|
+
return [_vm.proxyModelValue.length > 0 || _vm.draftModelValue ? [_c('OrIconButton', {
|
|
220
223
|
attrs: {
|
|
221
224
|
"icon": 'close',
|
|
222
225
|
"color": 'inherit',
|
|
@@ -333,7 +336,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
333
336
|
/* style */
|
|
334
337
|
const __vue_inject_styles__ = undefined;
|
|
335
338
|
/* scoped */
|
|
336
|
-
const __vue_scope_id__ = "data-v-
|
|
339
|
+
const __vue_scope_id__ = "data-v-b3092b7c";
|
|
337
340
|
/* module identifier */
|
|
338
341
|
const __vue_module_identifier__ = undefined;
|
|
339
342
|
/* functional template */
|
|
@@ -144,7 +144,12 @@ var __vue_render__ = function () {
|
|
|
144
144
|
class: _vm.overflowPopoverStyles
|
|
145
145
|
}, _vm._l(_vm.overflowItems, function (item) {
|
|
146
146
|
return _c('OrTag', _vm._b({
|
|
147
|
-
key: item
|
|
147
|
+
key: item,
|
|
148
|
+
on: {
|
|
149
|
+
"reset": function ($event) {
|
|
150
|
+
return _vm.$emit('reset', item);
|
|
151
|
+
}
|
|
152
|
+
}
|
|
148
153
|
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item) + "\n ")]);
|
|
149
154
|
}), 1)])] : _vm._e()], 2);
|
|
150
155
|
};
|
|
@@ -111,8 +111,10 @@ var script = defineComponent({
|
|
|
111
111
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
112
112
|
}
|
|
113
113
|
function add() {
|
|
114
|
-
|
|
115
|
-
|
|
114
|
+
var _a;
|
|
115
|
+
const value = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
116
|
+
if (value && !proxyModelValue.value.includes(value)) {
|
|
117
|
+
proxyModelValue.value = [...proxyModelValue.value, value];
|
|
116
118
|
draftModelValue.value = undefined;
|
|
117
119
|
}
|
|
118
120
|
}
|
|
@@ -120,6 +122,7 @@ var script = defineComponent({
|
|
|
120
122
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
121
123
|
}
|
|
122
124
|
function reset() {
|
|
125
|
+
proxyModelValue.value = [];
|
|
123
126
|
draftModelValue.value = undefined;
|
|
124
127
|
}
|
|
125
128
|
return {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { s as script } from '../../OrTagInput.vue_vue_type_script_lang-
|
|
2
|
-
export { s as default } from '../../OrTagInput.vue_vue_type_script_lang-
|
|
1
|
+
import { s as script } from '../../OrTagInput.vue_vue_type_script_lang-1eb13525.js';
|
|
2
|
+
export { s as default } from '../../OrTagInput.vue_vue_type_script_lang-1eb13525.js';
|
|
3
3
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withModifiers, withDirectives, createElementVNode, mergeProps, withKeys, vModelDynamic, createSlots, vShow } from 'vue';
|
|
4
4
|
import { s as styleInject } from '../../style-inject.es-4c6f2515.js';
|
|
5
5
|
import 'vue-demi';
|
|
@@ -104,7 +104,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
104
104
|
readonly: _ctx.readonly,
|
|
105
105
|
disabled: _ctx.disabled
|
|
106
106
|
}, {
|
|
107
|
-
addon: withCtx(() => [_ctx.draftModelValue ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
107
|
+
addon: withCtx(() => [_ctx.proxyModelValue.length > 0 || _ctx.draftModelValue ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
108
108
|
key: 0,
|
|
109
109
|
icon: 'close',
|
|
110
110
|
color: 'inherit',
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrTagInputV3 } from '../../OrTagInput.vue_vue_type_script_lang-
|
|
1
|
+
export { s as OrTagInputV3 } from '../../OrTagInput.vue_vue_type_script_lang-1eb13525.js';
|
|
2
2
|
export { InputBoxSize as TagInputSize } from '../OrInputBoxV3/props.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import './styles.js';
|
|
@@ -88,12 +88,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
88
88
|
class: normalizeClass(_ctx.overflowPopoverStyles)
|
|
89
89
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.overflowItems, item => {
|
|
90
90
|
return openBlock(), createBlock(_component_OrTag, mergeProps(_ctx.tagProps, {
|
|
91
|
-
key: item
|
|
91
|
+
key: item,
|
|
92
|
+
onReset: $event => _ctx.$emit('reset', item)
|
|
92
93
|
}), {
|
|
93
94
|
default: withCtx(() => [createTextVNode(toDisplayString(item), 1 /* TEXT */)]),
|
|
94
95
|
|
|
95
96
|
_: 2 /* DYNAMIC */
|
|
96
|
-
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS
|
|
97
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
97
98
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)]),
|
|
98
99
|
|
|
99
100
|
_: 1 /* STABLE */
|
|
@@ -137,7 +137,7 @@ export { s as OrTabs } from '../OrTabs.vue_vue_type_script_lang-9129d34b.js';
|
|
|
137
137
|
export { s as OrTabsV3 } from '../OrTabs.vue_vue_type_script_lang-2d08458d.js';
|
|
138
138
|
export { TabsVariant } from './OrTabsV3/props.js';
|
|
139
139
|
export { s as OrTag } from '../OrTag.vue_vue_type_script_lang-42a69c16.js';
|
|
140
|
-
export { s as OrTagInputV3 } from '../OrTagInput.vue_vue_type_script_lang-
|
|
140
|
+
export { s as OrTagInputV3 } from '../OrTagInput.vue_vue_type_script_lang-1eb13525.js';
|
|
141
141
|
export { s as OrTagV3 } from '../OrTag.vue_vue_type_script_lang-c7065625.js';
|
|
142
142
|
export { TagColor, TagVariant } from './OrTagV3/props.js';
|
|
143
143
|
export { s as OrTagsV3 } from '../OrTags.vue_vue_type_script_lang-45bbc68e.js';
|
package/dist/bundled/v3/index.js
CHANGED
|
@@ -116,7 +116,7 @@ export { s as OrTabsV3 } from './OrTabs.vue_vue_type_script_lang-2d08458d.js';
|
|
|
116
116
|
import './components/OrTag/OrTag.js';
|
|
117
117
|
export { s as OrTag } from './OrTag.vue_vue_type_script_lang-42a69c16.js';
|
|
118
118
|
import './components/OrTagInputV3/OrTagInput.js';
|
|
119
|
-
export { s as OrTagInputV3 } from './OrTagInput.vue_vue_type_script_lang-
|
|
119
|
+
export { s as OrTagInputV3 } from './OrTagInput.vue_vue_type_script_lang-1eb13525.js';
|
|
120
120
|
import './components/OrTextV3/OrText.js';
|
|
121
121
|
export { s as OrTextV3 } from './OrText.vue_vue_type_script_lang-6ce019db.js';
|
|
122
122
|
import './components/OrTextarea/OrTextarea.js';
|
|
@@ -10,7 +10,7 @@ import { _ as __vue_component__$3 } from './OrIconButton-ab726d49.js';
|
|
|
10
10
|
import { _ as __vue_component__$4 } from './OrInputBox-11227ecd.js';
|
|
11
11
|
import { I as InputBoxSize } from './OrInputBox.vue_rollup-plugin-vue_script-1715021a.js';
|
|
12
12
|
import { _ as __vue_component__$5 } from './OrLabel-63380256.js';
|
|
13
|
-
import { _ as __vue_component__$6 } from './OrTags-
|
|
13
|
+
import { _ as __vue_component__$6 } from './OrTags-9048733c.js';
|
|
14
14
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
15
15
|
import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
|
|
16
16
|
|
|
@@ -124,8 +124,10 @@ var script = defineComponent({
|
|
|
124
124
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
125
125
|
}
|
|
126
126
|
function add() {
|
|
127
|
-
|
|
128
|
-
|
|
127
|
+
var _a;
|
|
128
|
+
const value = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
129
|
+
if (value && !proxyModelValue.value.includes(value)) {
|
|
130
|
+
proxyModelValue.value = [...proxyModelValue.value, value];
|
|
129
131
|
draftModelValue.value = undefined;
|
|
130
132
|
}
|
|
131
133
|
}
|
|
@@ -133,6 +135,7 @@ var script = defineComponent({
|
|
|
133
135
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
134
136
|
}
|
|
135
137
|
function reset() {
|
|
138
|
+
proxyModelValue.value = [];
|
|
136
139
|
draftModelValue.value = undefined;
|
|
137
140
|
}
|
|
138
141
|
return {
|
|
@@ -155,7 +158,7 @@ var script = defineComponent({
|
|
|
155
158
|
}
|
|
156
159
|
});
|
|
157
160
|
|
|
158
|
-
var css_248z = "input[data-v-
|
|
161
|
+
var css_248z = "input[data-v-b3092b7c]{min-width:0;background:0 0;outline:0}";
|
|
159
162
|
styleInject(css_248z);
|
|
160
163
|
|
|
161
164
|
/* script */
|
|
@@ -193,7 +196,7 @@ var __vue_render__ = function () {
|
|
|
193
196
|
scopedSlots: _vm._u([{
|
|
194
197
|
key: "addon",
|
|
195
198
|
fn: function () {
|
|
196
|
-
return [_vm.draftModelValue ? [_c('OrIconButton', {
|
|
199
|
+
return [_vm.proxyModelValue.length > 0 || _vm.draftModelValue ? [_c('OrIconButton', {
|
|
197
200
|
attrs: {
|
|
198
201
|
"icon": 'close',
|
|
199
202
|
"color": 'inherit',
|
|
@@ -310,7 +313,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
310
313
|
/* style */
|
|
311
314
|
const __vue_inject_styles__ = undefined;
|
|
312
315
|
/* scoped */
|
|
313
|
-
const __vue_scope_id__ = "data-v-
|
|
316
|
+
const __vue_scope_id__ = "data-v-b3092b7c";
|
|
314
317
|
/* module identifier */
|
|
315
318
|
const __vue_module_identifier__ = undefined;
|
|
316
319
|
/* functional template */
|
|
@@ -142,7 +142,12 @@ var __vue_render__ = function () {
|
|
|
142
142
|
class: _vm.overflowPopoverStyles
|
|
143
143
|
}, _vm._l(_vm.overflowItems, function (item) {
|
|
144
144
|
return _c('OrTag', _vm._b({
|
|
145
|
-
key: item
|
|
145
|
+
key: item,
|
|
146
|
+
on: {
|
|
147
|
+
"reset": function ($event) {
|
|
148
|
+
return _vm.$emit('reset', item);
|
|
149
|
+
}
|
|
150
|
+
}
|
|
146
151
|
}, 'OrTag', _vm.tagProps, false), [_vm._v("\n " + _vm._s(item) + "\n ")]);
|
|
147
152
|
}), 1)])] : _vm._e()], 2);
|
|
148
153
|
};
|
|
@@ -100,9 +100,9 @@ export { _ as OrTabV3 } from '../OrTab-5b198746.js';
|
|
|
100
100
|
export { _ as OrTabs } from '../OrTabs-62e7e478.js';
|
|
101
101
|
export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-930e1c26.js';
|
|
102
102
|
export { _ as OrTag } from '../OrTag-54778d09.js';
|
|
103
|
-
export { _ as OrTagInputV3 } from '../OrTagInput-
|
|
103
|
+
export { _ as OrTagInputV3 } from '../OrTagInput-2d7a9ef2.js';
|
|
104
104
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-d16c9d12.js';
|
|
105
|
-
export { _ as OrTagsV3 } from '../OrTags-
|
|
105
|
+
export { _ as OrTagsV3 } from '../OrTags-9048733c.js';
|
|
106
106
|
export { _ as OrTeleport } from '../OrTeleport.vue2-f0c16c71.js';
|
|
107
107
|
export { _ as OrTeleportV3 } from '../OrTeleport.vue2-424c7f33.js';
|
|
108
108
|
export { _ as OrTextV3 } from '../OrText-44449e7b.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { _ as OrTagInputV3 } from '../../OrTagInput-
|
|
1
|
+
export { _ as OrTagInputV3 } from '../../OrTagInput-2d7a9ef2.js';
|
|
2
2
|
export { I as TagInputSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-1715021a.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -23,7 +23,7 @@ import '../../OrTeleport.vue2-424c7f33.js';
|
|
|
23
23
|
import 'portal-vue';
|
|
24
24
|
import '../../OrInputBox-11227ecd.js';
|
|
25
25
|
import '../../OrLabel-63380256.js';
|
|
26
|
-
import '../../OrTags-
|
|
26
|
+
import '../../OrTags-9048733c.js';
|
|
27
27
|
import '../../useOverflow-c856b7b7.js';
|
|
28
28
|
import '../../OrButton-9622e713.js';
|
|
29
29
|
import '../../OrLoader-b0c381f9.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PropType } from 'vue-demi';
|
|
2
|
-
declare const _default: import("
|
|
2
|
+
declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
|
|
3
3
|
root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
4
4
|
container: import("@vue/composition-api").Ref<HTMLElement | undefined>;
|
|
5
5
|
overflowButton: import("@vue/composition-api").Ref<import("@vue/composition-api").ComponentRenderProxy<{} & {}, import("@vue/composition-api").ShallowUnwrapRef<unknown>, unknown, import("@vue/composition-api").ComputedOptions, import("@vue/composition-api").MethodOptions, unknown, unknown, {
|
|
@@ -41,7 +41,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
|
|
|
41
41
|
} | {}> & Omit<{} & {}, never>>>;
|
|
42
42
|
default: undefined;
|
|
43
43
|
};
|
|
44
|
-
}>> & Omit<import("
|
|
44
|
+
}>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
|
|
45
45
|
items: string[];
|
|
46
46
|
tagProps: Readonly<Partial<{
|
|
47
47
|
[x: number]: string;
|
package/dist/esm/v2/index.js
CHANGED
|
@@ -100,9 +100,9 @@ export { _ as OrTabV3 } from './OrTab-5b198746.js';
|
|
|
100
100
|
export { _ as OrTabs } from './OrTabs-62e7e478.js';
|
|
101
101
|
export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-930e1c26.js';
|
|
102
102
|
export { _ as OrTag } from './OrTag-54778d09.js';
|
|
103
|
-
export { _ as OrTagInputV3 } from './OrTagInput-
|
|
103
|
+
export { _ as OrTagInputV3 } from './OrTagInput-2d7a9ef2.js';
|
|
104
104
|
export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-d16c9d12.js';
|
|
105
|
-
export { _ as OrTagsV3 } from './OrTags-
|
|
105
|
+
export { _ as OrTagsV3 } from './OrTags-9048733c.js';
|
|
106
106
|
export { _ as OrTeleport } from './OrTeleport.vue2-f0c16c71.js';
|
|
107
107
|
export { _ as OrTeleportV3 } from './OrTeleport.vue2-424c7f33.js';
|
|
108
108
|
export { _ as OrTextV3 } from './OrText-44449e7b.js';
|
|
@@ -9,7 +9,7 @@ import { s as script$2 } from './OrHint-06ab89d7.js';
|
|
|
9
9
|
import { s as script$3 } from './OrIconButton-0aaadc68.js';
|
|
10
10
|
import { s as script$4, I as InputBoxSize } from './OrInputBox-32b37b17.js';
|
|
11
11
|
import { s as script$5 } from './OrLabel-4da56db0.js';
|
|
12
|
-
import { s as script$6 } from './OrTags-
|
|
12
|
+
import { s as script$6 } from './OrTags-1621cbb9.js';
|
|
13
13
|
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, withModifiers, withDirectives, createElementVNode, mergeProps, withKeys, vModelDynamic, createSlots, vShow } from 'vue';
|
|
14
14
|
import { s as styleInject } from './style-inject.es-4c6f2515.js';
|
|
15
15
|
|
|
@@ -123,8 +123,10 @@ var script = defineComponent({
|
|
|
123
123
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
124
124
|
}
|
|
125
125
|
function add() {
|
|
126
|
-
|
|
127
|
-
|
|
126
|
+
var _a;
|
|
127
|
+
const value = (_a = draftModelValue.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
128
|
+
if (value && !proxyModelValue.value.includes(value)) {
|
|
129
|
+
proxyModelValue.value = [...proxyModelValue.value, value];
|
|
128
130
|
draftModelValue.value = undefined;
|
|
129
131
|
}
|
|
130
132
|
}
|
|
@@ -132,6 +134,7 @@ var script = defineComponent({
|
|
|
132
134
|
proxyModelValue.value = proxyModelValue.value.filter(item => item !== value);
|
|
133
135
|
}
|
|
134
136
|
function reset() {
|
|
137
|
+
proxyModelValue.value = [];
|
|
135
138
|
draftModelValue.value = undefined;
|
|
136
139
|
}
|
|
137
140
|
return {
|
|
@@ -189,7 +192,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
189
192
|
readonly: _ctx.readonly,
|
|
190
193
|
disabled: _ctx.disabled
|
|
191
194
|
}, {
|
|
192
|
-
addon: withCtx(() => [_ctx.draftModelValue ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
195
|
+
addon: withCtx(() => [_ctx.proxyModelValue.length > 0 || _ctx.draftModelValue ? (openBlock(), createBlock(_component_OrIconButton, {
|
|
193
196
|
key: 0,
|
|
194
197
|
icon: 'close',
|
|
195
198
|
color: 'inherit',
|
|
@@ -136,12 +136,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
136
136
|
class: normalizeClass(_ctx.overflowPopoverStyles)
|
|
137
137
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.overflowItems, item => {
|
|
138
138
|
return openBlock(), createBlock(_component_OrTag, mergeProps(_ctx.tagProps, {
|
|
139
|
-
key: item
|
|
139
|
+
key: item,
|
|
140
|
+
onReset: $event => _ctx.$emit('reset', item)
|
|
140
141
|
}), {
|
|
141
142
|
default: withCtx(() => [createTextVNode(toDisplayString(item), 1 /* TEXT */)]),
|
|
142
143
|
|
|
143
144
|
_: 2 /* DYNAMIC */
|
|
144
|
-
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS
|
|
145
|
+
}, 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["onReset"]);
|
|
145
146
|
}), 128 /* KEYED_FRAGMENT */))], 2 /* CLASS */)]),
|
|
146
147
|
|
|
147
148
|
_: 1 /* STABLE */
|
|
@@ -98,9 +98,9 @@ export { s as OrTabV3 } from '../OrTab-f7e51ffb.js';
|
|
|
98
98
|
export { s as OrTabs } from '../OrTabs-3da3ea89.js';
|
|
99
99
|
export { s as OrTabsV3, T as TabsVariant } from '../OrTabs-9e741419.js';
|
|
100
100
|
export { s as OrTag } from '../OrTag-a2197abd.js';
|
|
101
|
-
export { s as OrTagInputV3 } from '../OrTagInput-
|
|
101
|
+
export { s as OrTagInputV3 } from '../OrTagInput-da823f11.js';
|
|
102
102
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-fbeca419.js';
|
|
103
|
-
export { s as OrTagsV3 } from '../OrTags-
|
|
103
|
+
export { s as OrTagsV3 } from '../OrTags-1621cbb9.js';
|
|
104
104
|
export { s as OrTeleport } from '../OrTeleport.vue3-9bce0c02.js';
|
|
105
105
|
export { s as OrTeleportV3 } from '../OrTeleport.vue3-8099178c.js';
|
|
106
106
|
export { s as OrTextV3 } from '../OrText-d54c951d.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { s as OrTagInputV3 } from '../../OrTagInput-
|
|
1
|
+
export { s as OrTagInputV3 } from '../../OrTagInput-da823f11.js';
|
|
2
2
|
export { I as TagInputSize } from '../../OrInputBox-32b37b17.js';
|
|
3
3
|
import 'vue-demi';
|
|
4
4
|
import '../../useIdAttribute-859439f0.js';
|
|
@@ -21,7 +21,7 @@ import '../../OrBottomSheet-f2f3aef9.js';
|
|
|
21
21
|
import '../../OrOverlay-489fdf76.js';
|
|
22
22
|
import '../../OrTeleport.vue3-8099178c.js';
|
|
23
23
|
import '../../OrLabel-4da56db0.js';
|
|
24
|
-
import '../../OrTags-
|
|
24
|
+
import '../../OrTags-1621cbb9.js';
|
|
25
25
|
import '../../useOverflow-c856b7b7.js';
|
|
26
26
|
import '../../OrButton-c2b6aa9e.js';
|
|
27
27
|
import '../../OrLoader-b79022da.js';
|
package/dist/esm/v3/index.js
CHANGED
|
@@ -98,9 +98,9 @@ export { s as OrTabV3 } from './OrTab-f7e51ffb.js';
|
|
|
98
98
|
export { s as OrTabs } from './OrTabs-3da3ea89.js';
|
|
99
99
|
export { s as OrTabsV3, T as TabsVariant } from './OrTabs-9e741419.js';
|
|
100
100
|
export { s as OrTag } from './OrTag-a2197abd.js';
|
|
101
|
-
export { s as OrTagInputV3 } from './OrTagInput-
|
|
101
|
+
export { s as OrTagInputV3 } from './OrTagInput-da823f11.js';
|
|
102
102
|
export { s as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-fbeca419.js';
|
|
103
|
-
export { s as OrTagsV3 } from './OrTags-
|
|
103
|
+
export { s as OrTagsV3 } from './OrTags-1621cbb9.js';
|
|
104
104
|
export { s as OrTeleport } from './OrTeleport.vue3-9bce0c02.js';
|
|
105
105
|
export { s as OrTeleportV3 } from './OrTeleport.vue3-8099178c.js';
|
|
106
106
|
export { s as OrTextV3 } from './OrText-d54c951d.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components",
|
|
3
|
-
"version": "4.7.4-beta.
|
|
3
|
+
"version": "4.7.4-beta.2867.0",
|
|
4
4
|
"description": "Vue components library for v2/3",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "./dist/auto/index.js",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@codemirror/lang-json": "6.0.0",
|
|
39
39
|
"@codemirror/lang-markdown": "6.0.1",
|
|
40
40
|
"@floating-ui/dom": "0.3.1",
|
|
41
|
-
"@onereach/styles": "^2.40.2-beta.
|
|
41
|
+
"@onereach/styles": "^2.40.2-beta.2867.0",
|
|
42
42
|
"@splidejs/splide": "4.0.6",
|
|
43
43
|
"@types/lodash": "4.14.173",
|
|
44
44
|
"@types/sortablejs": "1.10.7",
|
|
@@ -33,15 +33,6 @@
|
|
|
33
33
|
}"
|
|
34
34
|
@reset="remove($event)"
|
|
35
35
|
/>
|
|
36
|
-
<!-- <OrTag
|
|
37
|
-
v-for="token in proxyModelValue"
|
|
38
|
-
:key="token"
|
|
39
|
-
:class="itemStyles"
|
|
40
|
-
:variant="'reset'"
|
|
41
|
-
:disabled="disabled"
|
|
42
|
-
>
|
|
43
|
-
{{ token }}
|
|
44
|
-
</OrTag> -->
|
|
45
36
|
|
|
46
37
|
<input
|
|
47
38
|
ref="control"
|
|
@@ -60,7 +51,7 @@
|
|
|
60
51
|
>
|
|
61
52
|
|
|
62
53
|
<template v-slot:addon>
|
|
63
|
-
<template v-if="draftModelValue">
|
|
54
|
+
<template v-if="proxyModelValue.length > 0 || draftModelValue">
|
|
64
55
|
<OrIconButton
|
|
65
56
|
:icon="'close'"
|
|
66
57
|
:color="'inherit'"
|
|
@@ -253,8 +244,10 @@ export default defineComponent({
|
|
|
253
244
|
}
|
|
254
245
|
|
|
255
246
|
function add(): void {
|
|
256
|
-
|
|
257
|
-
|
|
247
|
+
const value = draftModelValue.value?.trim();
|
|
248
|
+
|
|
249
|
+
if (value && !proxyModelValue.value.includes(value)) {
|
|
250
|
+
proxyModelValue.value = [...proxyModelValue.value, value];
|
|
258
251
|
draftModelValue.value = undefined;
|
|
259
252
|
}
|
|
260
253
|
}
|
|
@@ -264,6 +257,7 @@ export default defineComponent({
|
|
|
264
257
|
}
|
|
265
258
|
|
|
266
259
|
function reset(): void {
|
|
260
|
+
proxyModelValue.value = [];
|
|
267
261
|
draftModelValue.value = undefined;
|
|
268
262
|
}
|
|
269
263
|
|