@onereach/ui-components-vue2 25.1.2-beta.5768.0 → 25.1.2

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 '@vueuse/core';
101
- import 'vue-demi';
100
+ import '../directives-0869d2a4.js';
102
101
  import '../useValidationAttributes-BLzi0C4L-6839e2c2.js';
102
+ import 'vue-demi';
103
103
  import '../dom-qGGG2YCX-4d4cca6e.js';
104
+ import '@vueuse/core';
104
105
  import '@onereach/styles/screens.json';
105
106
  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 { computedAsync, watchTriggerable } from '@vueuse/core';
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
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';
5
3
  import { a8 as Ht, ae as u, an as Ft, P as Pt } from '../../utils-72d9c2bb.js';
4
+ import { computedAsync, watchTriggerable } from '@vueuse/core';
5
+ import { defineComponent, reactive, ref, computed, toRef, nextTick } from 'vue-demi';
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,9 +297,6 @@ var script = defineComponent({
297
297
  }
298
298
  function onBlur(event) {
299
299
  activated.value = false;
300
- if (props.multiple) {
301
- clear();
302
- }
303
300
  context.emit('blur', event);
304
301
  }
305
302
  function openMobilePopover() {
@@ -935,18 +935,6 @@ 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
- });
950
938
  }
951
939
  function close() {
952
940
  const popoverInstance = popover.value;
@@ -1292,8 +1280,7 @@ var __vue_render__ = function () {
1292
1280
  attrs: {
1293
1281
  "tooltip-text": option.label,
1294
1282
  "selected": _vm.proxyModelValue && _vm.proxyModelValue.includes(option.value),
1295
- "disabled": option.disabled,
1296
- "data-value": option.value
1283
+ "disabled": option.disabled
1297
1284
  },
1298
1285
  on: {
1299
1286
  "click": function ($event) {
@@ -1327,7 +1314,6 @@ var __vue_render__ = function () {
1327
1314
  attrs: {
1328
1315
  "selected": _vm.proxyModelValue === option.value,
1329
1316
  "tooltip-text": option.label,
1330
- "data-value": option.value,
1331
1317
  "disabled": option.disabled
1332
1318
  },
1333
1319
  on: {
@@ -1,7 +1,7 @@
1
- import { onClickOutside } from '@vueuse/core';
2
- import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
3
1
  import { a as re, J, Q, c as ie, n as ne } from '../../useValidationAttributes-BLzi0C4L-6839e2c2.js';
4
2
  import { an as Ft, a8 as Ht, P as Pt } from '../../utils-72d9c2bb.js';
3
+ import { onClickOutside } from '@vueuse/core';
4
+ import { defineComponent, ref, toRefs, computed, reactive, watch, nextTick } from 'vue-demi';
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';
12
13
  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 ? 'tag' : 'reset',
180
+ variant: readonly.value || disabled.value || !activated.value ? TagVariant.Tag : TagVariant.Reset,
181
181
  disabled: disabled.value
182
182
  }));
183
183
  // Methods
@@ -188,6 +188,7 @@ 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 = '';
191
192
  }
192
193
  function deactivate() {
193
194
  activated.value = false;
@@ -270,7 +271,7 @@ var script = defineComponent({
270
271
  }
271
272
  });
272
273
 
273
- var css_248z = "input[data-v-1dce37a5]{min-width:0;background:0 0;outline:0}";
274
+ var css_248z = "input[data-v-a283e530]{min-width:0;background:0 0;outline:0}";
274
275
  styleInject(css_248z);
275
276
 
276
277
  /* script */
@@ -480,7 +481,7 @@ var __vue_staticRenderFns__ = [];
480
481
  /* style */
481
482
  const __vue_inject_styles__ = undefined;
482
483
  /* scoped */
483
- const __vue_scope_id__ = "data-v-1dce37a5";
484
+ const __vue_scope_id__ = "data-v-a283e530";
484
485
  /* module identifier */
485
486
  const __vue_module_identifier__ = undefined;
486
487
  /* 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.5768.0",
3
+ "version": "25.1.2",
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.5768.0",
44
- "@onereach/ui-components-common": "^25.1.2-beta.5768.0",
43
+ "@onereach/styles": "^25.1.2",
44
+ "@onereach/ui-components-common": "^25.1.2",
45
45
  "@splidejs/splide": "4.0.6",
46
46
  "@tiptap/core": "2.0.3",
47
47
  "@tiptap/extension-blockquote": "2.0.3",
@@ -102,5 +102,6 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "npmUnpacked": "4.15.2"
105
+ "npmUnpacked": "4.15.2",
106
+ "gitHead": "a074a252a6ca80f6ba59853c2e072a1970c84ce7"
106
107
  }