@onereach/ui-components-vue2 25.1.2-beta.5766.0 → 25.1.2-beta.5768.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.
|
@@ -97,13 +97,13 @@ export { OrTimeRangePickerV3 } from './or-time-range-picker-v3/index.js';
|
|
|
97
97
|
export { OrToastContainerV3, OrToastV3, PropsV3, TypesV3, useQueueV3, useToastV3 } from './or-toast-v3/index.js';
|
|
98
98
|
export { OrTooltipV3 } from './or-tooltip-v3/index.js';
|
|
99
99
|
export { OrTreeV3, TreeNodeDropPosition } from './or-tree-v3/index.js';
|
|
100
|
-
import '
|
|
101
|
-
import '../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
100
|
+
import '@vueuse/core';
|
|
102
101
|
import 'vue-demi';
|
|
102
|
+
import '../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
103
103
|
import '../dom-qGGG2YCX-4d4cca6e.js';
|
|
104
|
-
import '@vueuse/core';
|
|
105
104
|
import '@onereach/styles/screens.json';
|
|
106
105
|
import '@onereach/styles/tailwind.config.json';
|
|
106
|
+
import '../directives-0869d2a4.js';
|
|
107
107
|
import '../utils-72d9c2bb.js';
|
|
108
108
|
import '../normalize-component-cf2db48b.js';
|
|
109
109
|
import '../constants-2e3ea701.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a, c } from '../../directives-0869d2a4.js';
|
|
2
|
-
import { J, Q, c as ie, a as re, n as ne } from '../../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
3
|
-
import { a8 as Ht, ae as u, an as Ft, P as Pt } from '../../utils-72d9c2bb.js';
|
|
4
1
|
import { computedAsync, watchTriggerable } from '@vueuse/core';
|
|
5
2
|
import { defineComponent, reactive, ref, computed, toRef, nextTick } from 'vue-demi';
|
|
3
|
+
import { J, Q, c as ie, a as re, n as ne } from '../../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
4
|
+
import { a, c } from '../../directives-0869d2a4.js';
|
|
5
|
+
import { a8 as Ht, ae as u, an as Ft, P as Pt } from '../../utils-72d9c2bb.js';
|
|
6
6
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
7
7
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
8
8
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3/index.js';
|
|
@@ -297,6 +297,9 @@ var script = defineComponent({
|
|
|
297
297
|
}
|
|
298
298
|
function onBlur(event) {
|
|
299
299
|
activated.value = false;
|
|
300
|
+
if (props.multiple) {
|
|
301
|
+
clear();
|
|
302
|
+
}
|
|
300
303
|
context.emit('blur', event);
|
|
301
304
|
}
|
|
302
305
|
function openMobilePopover() {
|
|
@@ -935,6 +935,18 @@ var script = defineComponent({
|
|
|
935
935
|
if (popoverInstance) {
|
|
936
936
|
popoverInstance.open();
|
|
937
937
|
}
|
|
938
|
+
nextTick(() => {
|
|
939
|
+
if (proxyModelValue.value) {
|
|
940
|
+
const value = Array.isArray(proxyModelValue.value) ? proxyModelValue.value[0] : proxyModelValue.value;
|
|
941
|
+
const selectedOptionElement = document.querySelector(`[data-value="${value}"]`);
|
|
942
|
+
if (selectedOptionElement) {
|
|
943
|
+
selectedOptionElement.scrollIntoView({
|
|
944
|
+
behavior: 'auto',
|
|
945
|
+
block: 'start'
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
});
|
|
938
950
|
}
|
|
939
951
|
function close() {
|
|
940
952
|
const popoverInstance = popover.value;
|
|
@@ -1280,7 +1292,8 @@ var __vue_render__ = function () {
|
|
|
1280
1292
|
attrs: {
|
|
1281
1293
|
"tooltip-text": option.label,
|
|
1282
1294
|
"selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value),
|
|
1283
|
-
"disabled": option.disabled
|
|
1295
|
+
"disabled": option.disabled,
|
|
1296
|
+
"data-value": option.value
|
|
1284
1297
|
},
|
|
1285
1298
|
on: {
|
|
1286
1299
|
"click": function ($event) {
|
|
@@ -1314,6 +1327,7 @@ var __vue_render__ = function () {
|
|
|
1314
1327
|
attrs: {
|
|
1315
1328
|
"selected": _vm.proxyModelValue === option.value,
|
|
1316
1329
|
"tooltip-text": option.label,
|
|
1330
|
+
"data-value": option.value,
|
|
1317
1331
|
"disabled": option.disabled
|
|
1318
1332
|
},
|
|
1319
1333
|
on: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { a as re, J, Q, c as ie, n as ne } from '../../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
2
|
-
import { an as Ft, a8 as Ht, P as Pt } from '../../utils-72d9c2bb.js';
|
|
3
1
|
import { onClickOutside } from '@vueuse/core';
|
|
4
2
|
import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
|
|
3
|
+
import { a as re, J, Q, c as ie, n as ne } from '../../useValidationAttributes-BLzi0C4L-6839e2c2.js';
|
|
4
|
+
import { an as Ft, a8 as Ht, P as Pt } from '../../utils-72d9c2bb.js';
|
|
5
5
|
import { OrErrorV3 as OrError } from '../or-error-v3/index.js';
|
|
6
6
|
import { OrHintV3 as OrHint } from '../or-hint-v3/index.js';
|
|
7
7
|
import { OrIconButtonV3 as OrIconButton } from '../or-icon-button-v3/index.js';
|
|
@@ -9,8 +9,8 @@ import { OrInputBoxV3 as OrInputBox } from '../or-input-box-v3/index.js';
|
|
|
9
9
|
import { OrLabelV3 as OrLabel } from '../or-label-v3/index.js';
|
|
10
10
|
import { OrLoaderV3 as OrLoader } from '../or-loader-v3/index.js';
|
|
11
11
|
import { OrTagsV3 as OrTags, TagsOverflow } from '../or-tags-v3/index.js';
|
|
12
|
-
import { TagColor, TagVariant } from '../or-tag-v3/index.js';
|
|
13
12
|
import { a as InputBoxVariant } from '../../types-98e9a758.js';
|
|
13
|
+
import { TagColor } from '../or-tag-v3/index.js';
|
|
14
14
|
import { s as styleInject } from '../../style-inject.es-87955792.js';
|
|
15
15
|
import { n as normalizeComponent } from '../../normalize-component-cf2db48b.js';
|
|
16
16
|
import '../../dom-qGGG2YCX-4d4cca6e.js';
|
|
@@ -177,7 +177,7 @@ var script = defineComponent({
|
|
|
177
177
|
return draftModelValue.value || currentLength.value === 0 || activated.value;
|
|
178
178
|
});
|
|
179
179
|
const tagsProps = computed(() => ({
|
|
180
|
-
variant: readonly.value || disabled.value || !activated.value ?
|
|
180
|
+
variant: readonly.value || disabled.value || !activated.value ? 'tag' : 'reset',
|
|
181
181
|
disabled: disabled.value
|
|
182
182
|
}));
|
|
183
183
|
// Methods
|
|
@@ -188,7 +188,6 @@ var script = defineComponent({
|
|
|
188
188
|
function blur() {
|
|
189
189
|
var _a;
|
|
190
190
|
(_a = control.value) === null || _a === void 0 ? void 0 : _a.blur();
|
|
191
|
-
draftModelValue.value = '';
|
|
192
191
|
}
|
|
193
192
|
function deactivate() {
|
|
194
193
|
activated.value = false;
|
|
@@ -271,7 +270,7 @@ var script = defineComponent({
|
|
|
271
270
|
}
|
|
272
271
|
});
|
|
273
272
|
|
|
274
|
-
var css_248z = "input[data-v-
|
|
273
|
+
var css_248z = "input[data-v-1dce37a5]{min-width:0;background:0 0;outline:0}";
|
|
275
274
|
styleInject(css_248z);
|
|
276
275
|
|
|
277
276
|
/* script */
|
|
@@ -481,7 +480,7 @@ var __vue_staticRenderFns__ = [];
|
|
|
481
480
|
/* style */
|
|
482
481
|
const __vue_inject_styles__ = undefined;
|
|
483
482
|
/* scoped */
|
|
484
|
-
const __vue_scope_id__ = "data-v-
|
|
483
|
+
const __vue_scope_id__ = "data-v-1dce37a5";
|
|
485
484
|
/* module identifier */
|
|
486
485
|
const __vue_module_identifier__ = undefined;
|
|
487
486
|
/* functional template */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/ui-components-vue2",
|
|
3
|
-
"version": "25.1.2-beta.
|
|
3
|
+
"version": "25.1.2-beta.5768.0",
|
|
4
4
|
"description": "Vue components library for v2",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -40,8 +40,8 @@
|
|
|
40
40
|
"@codemirror/view": "^6",
|
|
41
41
|
"@floating-ui/dom": "1.5.3",
|
|
42
42
|
"@lezer/highlight": "*",
|
|
43
|
-
"@onereach/styles": "^25.1.2-beta.
|
|
44
|
-
"@onereach/ui-components-common": "^25.1.2-beta.
|
|
43
|
+
"@onereach/styles": "^25.1.2-beta.5768.0",
|
|
44
|
+
"@onereach/ui-components-common": "^25.1.2-beta.5768.0",
|
|
45
45
|
"@splidejs/splide": "4.0.6",
|
|
46
46
|
"@tiptap/core": "2.0.3",
|
|
47
47
|
"@tiptap/extension-blockquote": "2.0.3",
|