@onereach/ui-components 8.22.1 → 8.22.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.
Files changed (87) hide show
  1. package/dist/bundled/v2/components/OrSelectV3/OrSelect.js +26 -18
  2. package/dist/{esm/v2/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts → bundled/v2/components/OrSelectV3/utils/castToMultipleValue.d.ts} +1 -1
  3. package/dist/bundled/v2/components/OrSelectV3/utils/castToMultipleValue.js +10 -0
  4. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.js +13 -3
  5. package/dist/bundled/v2/components/OrTagInputV3/OrTagInput.vue.d.ts +2 -2
  6. package/dist/bundled/v2/components/OrTagsV3/OrTags.js +10 -2
  7. package/dist/bundled/v2/index.js +1 -1
  8. package/dist/bundled/v2/utils/functions/color.d.ts +4 -0
  9. package/dist/bundled/v2/utils/functions/color.js +5 -1
  10. package/dist/bundled/v2/utils/index.js +1 -1
  11. package/dist/bundled/v3/components/OrAvatarV3/OrAvatar.js +1 -1
  12. package/dist/bundled/v3/components/OrAvatarV3/index.js +1 -1
  13. package/dist/bundled/v3/components/OrAvatarV3/props.js +1 -1
  14. package/dist/bundled/v3/components/OrAvatarV3/styles.js +1 -1
  15. package/dist/bundled/v3/components/OrSelectV3/OrSelect.js +1 -1
  16. package/dist/bundled/v3/components/OrSelectV3/index.js +1 -1
  17. package/dist/bundled/v3/components/OrSelectV3/styles.js +1 -1
  18. package/dist/{esm/v3/components/or-select-v3/partials/or-select-multiple-control/utils/castToMultipleModel.d.ts → bundled/v3/components/OrSelectV3/utils/castToMultipleValue.d.ts} +1 -1
  19. package/dist/bundled/v3/components/OrSelectV3/utils/castToMultipleValue.js +2 -0
  20. package/dist/bundled/v3/components/{OrSelectV3-33734991.js → OrSelectV3-ef8b82f7.js} +27 -13
  21. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.js +1 -1
  22. package/dist/bundled/v3/components/OrTagInputV3/OrTagInput.vue.d.ts +2 -2
  23. package/dist/bundled/v3/components/OrTagInputV3/index.js +1 -1
  24. package/dist/bundled/v3/components/OrTagInputV3/styles.js +1 -1
  25. package/dist/bundled/v3/components/{OrTagInputV3-fbe9a802.js → OrTagInputV3-701195d9.js} +10 -1
  26. package/dist/bundled/v3/components/OrTagsV3/OrTags.js +1 -1
  27. package/dist/bundled/v3/components/OrTagsV3/index.js +1 -1
  28. package/dist/bundled/v3/components/OrTagsV3/props.js +1 -1
  29. package/dist/bundled/v3/components/OrTagsV3/styles.js +1 -1
  30. package/dist/bundled/v3/components/OrTagsV3/utils/castToTag.js +1 -1
  31. package/dist/bundled/v3/components/{OrTagsV3-65838b57.js → OrTagsV3-69f51def.js} +8 -4
  32. package/dist/bundled/v3/components/index.js +4 -4
  33. package/dist/bundled/v3/index.js +5 -5
  34. package/dist/bundled/v3/utils/functions/color.d.ts +4 -0
  35. package/dist/bundled/v3/utils/functions/color.js +5 -1
  36. package/dist/bundled/v3/utils/index.js +1 -1
  37. package/dist/esm/v2/{OrAvatar-9d0217f7.js → OrAvatar-62fcfe74.js} +1 -1
  38. package/dist/esm/v2/{OrSelect-83aff1e9.js → OrSelect-e10fb4a5.js} +15 -11
  39. package/dist/esm/v2/{OrSelectMultipleControl-300ba243.js → OrSelectMultipleControl-b449de97.js} +13 -3
  40. package/dist/esm/v2/{OrTag-ce728fad.js → OrTag-53599b71.js} +1 -1
  41. package/dist/esm/v2/{OrTagInput-1589f828.js → OrTagInput-18665ac7.js} +14 -4
  42. package/dist/esm/v2/{OrTags-93fff411.js → OrTags-1acb6cde.js} +10 -2
  43. package/dist/esm/v2/{color-6b0fc765.js → color-911f1122.js} +5 -1
  44. package/dist/esm/v2/components/index.js +7 -7
  45. package/dist/esm/v2/components/or-avatar-v3/index.js +2 -2
  46. package/dist/esm/v2/components/or-select-v3/index.js +3 -3
  47. package/dist/esm/v2/components/or-select-v3/partials/index.js +2 -2
  48. package/dist/esm/v2/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
  49. package/dist/esm/v2/components/or-select-v3/utils/castToMultipleValue.d.ts +2 -0
  50. package/dist/esm/v2/components/or-tag/index.js +2 -2
  51. package/dist/esm/v2/components/or-tag-input-v3/OrTagInput.vue.d.ts +2 -2
  52. package/dist/esm/v2/components/or-tag-input-v3/index.js +2 -2
  53. package/dist/esm/v2/components/or-tags-v3/index.js +1 -1
  54. package/dist/esm/v2/components/or-text-v3/OrText.vue.d.ts +2 -2
  55. package/dist/esm/v2/index.js +8 -8
  56. package/dist/esm/v2/{isDescendant-61c67ccc.js → isDescendant-4434a968.js} +1 -1
  57. package/dist/esm/v2/utils/functions/color.d.ts +4 -0
  58. package/dist/esm/v2/utils/index.js +2 -2
  59. package/dist/esm/v3/{OrAvatar-b0179873.js → OrAvatar-ae032fe2.js} +1 -1
  60. package/dist/esm/v3/{OrSelect-7e9a8fa9.js → OrSelect-78a9da6c.js} +17 -12
  61. package/dist/esm/v3/{OrSelectMultipleControl-6476e58b.js → OrSelectMultipleControl-9d33a012.js} +12 -3
  62. package/dist/esm/v3/{OrTag-bc8177a4.js → OrTag-04abf6a7.js} +1 -1
  63. package/dist/esm/v3/{OrTagInput-c9eefc97.js → OrTagInput-dfa119ea.js} +10 -1
  64. package/dist/esm/v3/{OrTags-b5c62b28.js → OrTags-b5aea0be.js} +8 -4
  65. package/dist/esm/v3/{color-6b0fc765.js → color-911f1122.js} +5 -1
  66. package/dist/esm/v3/components/index.js +7 -7
  67. package/dist/esm/v3/components/or-avatar-v3/index.js +2 -2
  68. package/dist/esm/v3/components/or-select-v3/index.js +3 -3
  69. package/dist/esm/v3/components/or-select-v3/partials/index.js +2 -2
  70. package/dist/esm/v3/components/or-select-v3/partials/or-select-multiple-control/index.js +2 -2
  71. package/dist/esm/v3/components/or-select-v3/utils/castToMultipleValue.d.ts +2 -0
  72. package/dist/esm/v3/components/or-tag/index.js +2 -2
  73. package/dist/esm/v3/components/or-tag-input-v3/OrTagInput.vue.d.ts +2 -2
  74. package/dist/esm/v3/components/or-tag-input-v3/index.js +2 -2
  75. package/dist/esm/v3/components/or-tags-v3/index.js +1 -1
  76. package/dist/esm/v3/index.js +8 -8
  77. package/dist/esm/v3/{isDescendant-61c67ccc.js → isDescendant-4434a968.js} +1 -1
  78. package/dist/esm/v3/utils/functions/color.d.ts +4 -0
  79. package/dist/esm/v3/utils/index.js +2 -2
  80. package/package.json +2 -2
  81. package/src/components/or-select-v3/OrSelect.vue +13 -10
  82. package/src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue +11 -1
  83. package/src/components/or-select-v3/{partials/or-select-multiple-control/utils/castToMultipleModel.ts → utils/castToMultipleValue.ts} +2 -2
  84. package/src/components/or-tag-input-v3/OrTagInput.vue +9 -1
  85. package/src/components/or-tags-v3/OrTags.vue +12 -2
  86. package/src/utils/functions/color.ts +7 -0
  87. /package/dist/bundled/v3/components/{OrAvatarV3-96e091cc.js → OrAvatarV3-700dd5ab.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, toRefs, onMounted, watch } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed, toRefs, watch } from 'vue-demi';
2
2
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
3
3
  import '@vueuse/core';
4
4
  import './dom-aecadd9a.js';
@@ -18,8 +18,8 @@ import { _ as __vue_component__$9 } from './OrInput-7d24e514.js';
18
18
  import { _ as __vue_component__$b } from './OrLabel-6637774a.js';
19
19
  import { _ as __vue_component__$c } from './OrMenuItem-fbe3e8e4.js';
20
20
  import { _ as __vue_component__$d } from './OrPopover-9471c7ea.js';
21
- import { T as TagsOverflow } from './OrTags-93fff411.js';
22
- import { _ as __vue_component__$1 } from './OrSelectMultipleControl-300ba243.js';
21
+ import { T as TagsOverflow } from './OrTags-1acb6cde.js';
22
+ import { _ as __vue_component__$1, c as castToMultipleValue } from './OrSelectMultipleControl-b449de97.js';
23
23
  import { _ as __vue_component__$2 } from './OrSelectSingleControl-6804ef1b.js';
24
24
  import './OrSelectPlaceholder-d03c1076.js';
25
25
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
@@ -233,11 +233,6 @@ var script = defineComponent({
233
233
  const showClear = computed(() => {
234
234
  return enableClear.value && !isEmptyModelValue.value;
235
235
  });
236
- onMounted(() => {
237
- if (!proxyModelValue.value && props.multiple) {
238
- proxyModelValue.value = [];
239
- }
240
- });
241
236
  const focused = computed(() => {
242
237
  var _a, _b;
243
238
  if (multiple.value) {
@@ -322,11 +317,11 @@ var script = defineComponent({
322
317
  }
323
318
  function toggleOption(option) {
324
319
  const modelValue = proxyModelValue.value;
325
- if (Array.isArray(modelValue)) {
326
- if (modelValue.includes(option)) {
320
+ if (multiple.value) {
321
+ if (modelValue && Array.isArray(modelValue) && modelValue.includes(option)) {
327
322
  deselect(option);
328
323
  } else {
329
- proxyModelValue.value = [...modelValue, option];
324
+ proxyModelValue.value = [...castToMultipleValue(modelValue), option];
330
325
  }
331
326
  } else {
332
327
  proxyModelValue.value = option;
@@ -457,6 +452,15 @@ var __vue_render__ = function () {
457
452
  on: {
458
453
  "reset": _vm.deselect
459
454
  },
455
+ scopedSlots: _vm._u([{
456
+ key: "tag",
457
+ fn: function (ref) {
458
+ var item = ref.item;
459
+ return [_vm._t("tag", null, {
460
+ "item": item
461
+ })];
462
+ }
463
+ }], null, true),
460
464
  model: {
461
465
  value: _vm.searchText,
462
466
  callback: function ($$v) {
@@ -5,7 +5,7 @@ import { i as isEqualValue } from './isEqualValue-f8bf73d9.js';
5
5
  import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
6
6
  import '@onereach/styles/tailwind/plugins/core';
7
7
  import '@onereach/styles/tailwind.config.json';
8
- import { _ as __vue_component__$3, T as TagsOverflow } from './OrTags-93fff411.js';
8
+ import { _ as __vue_component__$3, T as TagsOverflow } from './OrTags-1acb6cde.js';
9
9
  import { _ as __vue_component__$2 } from './OrSelectControlInput-d968f1b8.js';
10
10
  import { _ as __vue_component__$1 } from './OrSelectPlaceholder-d03c1076.js';
11
11
  import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
@@ -167,7 +167,17 @@ var __vue_render__ = function () {
167
167
  return _vm.$emit('reset', $event);
168
168
  }
169
169
  },
170
- scopedSlots: _vm._u([_vm.enableSearch ? {
170
+ scopedSlots: _vm._u([{
171
+ key: "tag",
172
+ fn: function (ref) {
173
+ var item = ref.item;
174
+ return [_vm._t("tag", function () {
175
+ return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
176
+ }, {
177
+ "item": item
178
+ })];
179
+ }
180
+ }, _vm.enableSearch ? {
171
181
  key: "tail",
172
182
  fn: function () {
173
183
  return [_c('div', {
@@ -217,4 +227,4 @@ const __vue_component__ = /*#__PURE__*/normalizeComponent({
217
227
  staticRenderFns: __vue_staticRenderFns__
218
228
  }, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
219
229
 
220
- export { __vue_component__ as _ };
230
+ export { __vue_component__ as _, castToMultipleValue as c };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue-demi';
2
2
  import { _ as __vue_component__$1 } from './OrIcon-69c5cadc.js';
3
- import { D as hexToRgb } from './color-6b0fc765.js';
3
+ import { D as hexToRgb } from './color-911f1122.js';
4
4
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
5
5
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
6
6
 
@@ -13,7 +13,7 @@ import { _ as __vue_component__$4 } from './OrInputBox-f3dd826e.js';
13
13
  import './OrInputBox.vue_rollup-plugin-vue_script-e9b6fa51.js';
14
14
  import { _ as __vue_component__$5 } from './OrLabel-6637774a.js';
15
15
  import { a as TagColor } from './OrTag-b8b933b5.js';
16
- import { _ as __vue_component__$6, T as TagsOverflow } from './OrTags-93fff411.js';
16
+ import { _ as __vue_component__$6, T as TagsOverflow } from './OrTags-1acb6cde.js';
17
17
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
18
18
  import { n as normalizeComponent } from './normalize-component-6e8e3d80.js';
19
19
 
@@ -235,7 +235,7 @@ var script = defineComponent({
235
235
  }
236
236
  });
237
237
 
238
- var css_248z = "input[data-v-a10dd832]{min-width:0;background:0 0;outline:0}";
238
+ var css_248z = "input[data-v-85ccf734]{min-width:0;background:0 0;outline:0}";
239
239
  styleInject(css_248z);
240
240
 
241
241
  /* script */
@@ -308,7 +308,17 @@ var __vue_render__ = function () {
308
308
  return _vm.remove($event);
309
309
  }
310
310
  },
311
- scopedSlots: _vm._u([_vm.showControl ? {
311
+ scopedSlots: _vm._u([{
312
+ key: "tag",
313
+ fn: function (ref) {
314
+ var item = ref.item;
315
+ return [_vm._t("tag", function () {
316
+ return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
317
+ }, {
318
+ "item": item
319
+ })];
320
+ }
321
+ }, _vm.showControl ? {
312
322
  key: "tail",
313
323
  fn: function () {
314
324
  return [_c('div', {
@@ -410,7 +420,7 @@ var __vue_staticRenderFns__ = [];
410
420
  /* style */
411
421
  const __vue_inject_styles__ = undefined;
412
422
  /* scoped */
413
- const __vue_scope_id__ = "data-v-a10dd832";
423
+ const __vue_scope_id__ = "data-v-85ccf734";
414
424
  /* module identifier */
415
425
  const __vue_module_identifier__ = undefined;
416
426
  /* functional template */
@@ -199,7 +199,11 @@ var __vue_render__ = function () {
199
199
  return _vm.$emit('reset', item.value);
200
200
  }
201
201
  }
202
- }, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
202
+ }, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._t("tag", function () {
203
+ return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
204
+ }, {
205
+ "item": item
206
+ })], 2);
203
207
  }), _vm._v(" "), _vm.localOverflow === 'wrap' ? _vm._t("tail") : _vm._e()], 2) : _vm._e(), _vm._v(" "), _vm.localOverflow === 'hidden' && _vm.overflowItems.length > 0 ? [_c('OrButton', {
204
208
  ref: "overflowButton",
205
209
  class: _vm.overflowButtonStyles,
@@ -232,7 +236,11 @@ var __vue_render__ = function () {
232
236
  return _vm.$emit('reset', item.value);
233
237
  }
234
238
  }
235
- }, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._v("\n " + _vm._s(item.label) + "\n ")]);
239
+ }, 'OrTag', Object.assign({}, _vm.tagProps, item.tagProps), false), [_vm._t("tag", function () {
240
+ return [_vm._v("\n " + _vm._s(item.label) + "\n ")];
241
+ }, {
242
+ "item": item
243
+ })], 2);
236
244
  }), 1)])] : _vm._e(), _vm._v(" "), _vm.localOverflow != 'wrap' || _vm.items.length === 0 ? _vm._t("tail") : _vm._e()], 2);
237
245
  };
238
246
  var __vue_staticRenderFns__ = [];
@@ -102,5 +102,9 @@ function generateHslFromString(str) {
102
102
  function hslToColorString(hsl) {
103
103
  return `hsl(${hsl.h}, ${hsl.s}%, ${hsl.l}%)`;
104
104
  }
105
+ function generateColorFromString(str) {
106
+ let limits = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : HSL_LIMITS;
107
+ return hslToColorString(generateHslFromString(str, limits));
108
+ }
105
109
 
106
- export { RX_QUERY_START as A, RX_SHORT_COLOR as B, RX_LONG_COLOR as C, hexToRgb as D, rgbToHex as E, generateHslFromString as F, hslToColorString as G, HSL_LIMITS as H, getHashOfString as I, normalize as J, RX_ARRAY_NOTATION as R, RX_BV_PREFIX as a, RX_DIGITS as b, RX_EXTENSION as c, RX_HASH as d, RX_HASH_ID as e, RX_HTML_TAGS as f, RX_HYPHENATE as g, RX_LOWER_UPPER as h, RX_NUMBER as i, RX_PLUS as j, RX_REGEXP_REPLACE as k, RX_SPACES as l, RX_SPACE_SPLIT as m, RX_STAR as n, RX_START_SPACE_WORD as o, RX_TRIM_LEFT as p, RX_TRIM_RIGHT as q, RX_UNDERSCORE as r, RX_UN_KEBAB as s, RX_ABBREVIATION_FROM_STRING as t, RX_DATE as u, RX_DATE_SPLIT as v, RX_TIME as w, RX_HREF as x, RX_ENCODED_COMMA as y, RX_ENCODE_REVERSE as z };
110
+ export { RX_QUERY_START as A, RX_SHORT_COLOR as B, RX_LONG_COLOR as C, hexToRgb as D, rgbToHex as E, generateHslFromString as F, hslToColorString as G, HSL_LIMITS as H, generateColorFromString as I, getHashOfString as J, normalize as K, RX_ARRAY_NOTATION as R, RX_BV_PREFIX as a, RX_DIGITS as b, RX_EXTENSION as c, RX_HASH as d, RX_HASH_ID as e, RX_HTML_TAGS as f, RX_HYPHENATE as g, RX_LOWER_UPPER as h, RX_NUMBER as i, RX_PLUS as j, RX_REGEXP_REPLACE as k, RX_SPACES as l, RX_SPACE_SPLIT as m, RX_STAR as n, RX_START_SPACE_WORD as o, RX_TRIM_LEFT as p, RX_TRIM_RIGHT as q, RX_UNDERSCORE as r, RX_UN_KEBAB as s, RX_ABBREVIATION_FROM_STRING as t, RX_DATE as u, RX_DATE_SPLIT as v, RX_TIME as w, RX_HREF as x, RX_ENCODED_COMMA as y, RX_ENCODE_REVERSE as z };
@@ -1,5 +1,5 @@
1
1
  export { O as OR_AVATAR_SIZE, _ as OrAvatar } from '../OrAvatar-fb7beb01.js';
2
- export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-9d0217f7.js';
2
+ export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../OrAvatar-62fcfe74.js';
3
3
  export { B as BottomSheetVariant, _ as OrBottomSheetV3 } from '../OrBottomSheet-d17c8327.js';
4
4
  export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from '../OrButton-9e5affac.js';
5
5
  export { _ as OrButtonGroupV3 } from '../OrButtonGroup-2ede0e49.js';
@@ -105,7 +105,7 @@ export { _ as OrSearch } from '../OrSearch-525e988d.js';
105
105
  export { _ as OrSearchV3 } from '../OrSearch-cf9140ac.js';
106
106
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from '../OrSegmentedControl-ef70b1d7.js';
107
107
  export { _ as OrSelect } from '../OrSelect-2808e01d.js';
108
- export { _ as OrSelectV3 } from '../OrSelect-83aff1e9.js';
108
+ export { _ as OrSelectV3 } from '../OrSelect-e10fb4a5.js';
109
109
  export { _ as OrSidebar, O as OrSidebarSide } from '../OrSidebar-054b26c6.js';
110
110
  export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from '../OrSidebar-6e76cdfc.js';
111
111
  export { _ as OrSkeletonCircle } from '../OrSkeletonCircle-c4bf0e34.js';
@@ -126,10 +126,10 @@ export { _ as OrTabHeaderItem } from '../OrTabHeaderItem-424f2986.js';
126
126
  export { _ as OrTabV3 } from '../OrTab-a989b4fd.js';
127
127
  export { _ as OrTabs } from '../OrTabs-62e7e478.js';
128
128
  export { _ as OrTabsV3, T as TabsVariant } from '../OrTabs-9706cf47.js';
129
- export { _ as OrTag } from '../OrTag-ce728fad.js';
130
- export { _ as OrTagInputV3 } from '../OrTagInput-1589f828.js';
129
+ export { _ as OrTag } from '../OrTag-53599b71.js';
130
+ export { _ as OrTagInputV3 } from '../OrTagInput-18665ac7.js';
131
131
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from '../OrTag-b8b933b5.js';
132
- export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-93fff411.js';
132
+ export { _ as OrTagsV3, T as TagsOverflow } from '../OrTags-1acb6cde.js';
133
133
  export { _ as OrTeleport } from '../OrTeleport.vue2-f0c16c71.js';
134
134
  export { _ as OrTeleportV3 } from '../OrTeleport.vue2-9eb0eaee.js';
135
135
  export { _ as OrTextV3 } from '../OrText-44449e7b.js';
@@ -150,7 +150,7 @@ export { _ as OrTreeV3, T as TreeNodeDropPosition } from '../OrTree-43e91d82.js'
150
150
  import 'vue-demi';
151
151
  import '../style-inject.es-4c6f2515.js';
152
152
  import '../normalize-component-6e8e3d80.js';
153
- import '../color-6b0fc765.js';
153
+ import '../color-911f1122.js';
154
154
  import '@vueuse/core';
155
155
  import '../dom-aecadd9a.js';
156
156
  import 'lodash/isElement';
@@ -212,7 +212,7 @@ import '../codemirrorView-020fe885.js';
212
212
  import 'prosemirror-state';
213
213
  import 'prosemirror-commands';
214
214
  import 'lodash/keyBy';
215
- import '../OrSelectMultipleControl-300ba243.js';
215
+ import '../OrSelectMultipleControl-b449de97.js';
216
216
  import '../isEqualValue-f8bf73d9.js';
217
217
  import '../OrSelectControlInput-d968f1b8.js';
218
218
  import '../OrSelectPlaceholder-d03c1076.js';
@@ -1,5 +1,5 @@
1
- export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-9d0217f7.js';
1
+ export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from '../../OrAvatar-62fcfe74.js';
2
2
  import 'vue-demi';
3
- import '../../color-6b0fc765.js';
3
+ import '../../color-911f1122.js';
4
4
  import '../../OrIcon-3f99ef27.js';
5
5
  import '../../normalize-component-6e8e3d80.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrSelectV3 } from '../../OrSelect-83aff1e9.js';
1
+ export { _ as OrSelectV3 } from '../../OrSelect-e10fb4a5.js';
2
2
  export { I as SelectSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-e9b6fa51.js';
3
3
  import 'vue-demi';
4
4
  import '../../dropdown-open-06d651cf.js';
@@ -38,12 +38,12 @@ import '../../OrInput-7d24e514.js';
38
38
  import '../../useValidationAttributes-d1abbe34.js';
39
39
  import '../../OrLoader-784e2060.js';
40
40
  import '../../OrMenuItem-fbe3e8e4.js';
41
- import '../../OrTags-93fff411.js';
41
+ import '../../OrTags-1acb6cde.js';
42
42
  import '../../useOverflow-e91d2314.js';
43
43
  import '../../OrButton-f489e6b3.js';
44
44
  import '../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
45
45
  import '../../OrTag-b8b933b5.js';
46
- import '../../OrSelectMultipleControl-300ba243.js';
46
+ import '../../OrSelectMultipleControl-b449de97.js';
47
47
  import '../../isEqualValue-f8bf73d9.js';
48
48
  import '../../OrSelectControlInput-d968f1b8.js';
49
49
  import '../../OrSelectPlaceholder-d03c1076.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-300ba243.js';
1
+ export { _ as OrSelectMultipleControl } from '../../../OrSelectMultipleControl-b449de97.js';
2
2
  export { _ as OrSelectSingleControl } from '../../../OrSelectSingleControl-6804ef1b.js';
3
3
  export { _ as OrSelectPlaceholder } from '../../../OrSelectPlaceholder-d03c1076.js';
4
4
  import 'vue-demi';
@@ -10,7 +10,7 @@ import '../../../isEqualValue-f8bf73d9.js';
10
10
  import '../../../useProxyModelValue-940010d2.js';
11
11
  import '@onereach/styles/tailwind/plugins/core';
12
12
  import '@onereach/styles/tailwind.config.json';
13
- import '../../../OrTags-93fff411.js';
13
+ import '../../../OrTags-1acb6cde.js';
14
14
  import '../../../useOverflow-e91d2314.js';
15
15
  import '../../../OrButton-f489e6b3.js';
16
16
  import '../../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-300ba243.js';
1
+ export { _ as OrSelectMultipleControl } from '../../../../OrSelectMultipleControl-b449de97.js';
2
2
  import 'vue-demi';
3
3
  import '@vueuse/core';
4
4
  import '../../../../dom-aecadd9a.js';
@@ -8,7 +8,7 @@ import '../../../../isEqualValue-f8bf73d9.js';
8
8
  import '../../../../useProxyModelValue-940010d2.js';
9
9
  import '@onereach/styles/tailwind/plugins/core';
10
10
  import '@onereach/styles/tailwind.config.json';
11
- import '../../../../OrTags-93fff411.js';
11
+ import '../../../../OrTags-1acb6cde.js';
12
12
  import '../../../../useOverflow-e91d2314.js';
13
13
  import '../../../../OrButton-f489e6b3.js';
14
14
  import '../../../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
@@ -0,0 +1,2 @@
1
+ import { SelectValue } from '../types';
2
+ export declare function castToMultipleValue(value: SelectValue): SelectValue[];
@@ -1,4 +1,4 @@
1
- export { _ as OrTag } from '../../OrTag-ce728fad.js';
1
+ export { _ as OrTag } from '../../OrTag-53599b71.js';
2
2
  import 'vue-demi';
3
3
  import '../../OrIcon-69c5cadc.js';
4
4
  import '../../OrTooltip.vue_rollup-plugin-vue_styles.0-b9697924.js';
@@ -14,4 +14,4 @@ import '../../dom-aecadd9a.js';
14
14
  import 'lodash/isElement';
15
15
  import 'lodash/get';
16
16
  import '../../px-to-rem-0b26b83e.js';
17
- import '../../color-6b0fc765.js';
17
+ import '../../color-911f1122.js';
@@ -54,7 +54,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
54
54
  }> & import("@vue/composition-api").Data, {}, {}, {
55
55
  modelValue: {
56
56
  type: PropType<string[]>;
57
- default: () => never[];
57
+ default: () => [];
58
58
  };
59
59
  label: {
60
60
  type: StringConstructor;
@@ -103,7 +103,7 @@ declare const _default: import("vue").ComponentOptions<import("vue").default, im
103
103
  }, import("@vue/composition-api").ExtractPropTypes<{
104
104
  modelValue: {
105
105
  type: PropType<string[]>;
106
- default: () => never[];
106
+ default: () => [];
107
107
  };
108
108
  label: {
109
109
  type: StringConstructor;
@@ -1,4 +1,4 @@
1
- export { _ as OrTagInputV3 } from '../../OrTagInput-1589f828.js';
1
+ export { _ as OrTagInputV3 } from '../../OrTagInput-18665ac7.js';
2
2
  export { I as TagInputSize } from '../../OrInputBox.vue_rollup-plugin-vue_script-e9b6fa51.js';
3
3
  import '@vueuse/core';
4
4
  import 'vue-demi';
@@ -31,7 +31,7 @@ import '../../isAncestor-9acec98b.js';
31
31
  import '../../OrInputBox-f3dd826e.js';
32
32
  import '../../OrLabel-6637774a.js';
33
33
  import '../../OrTag-b8b933b5.js';
34
- import '../../OrTags-93fff411.js';
34
+ import '../../OrTags-1acb6cde.js';
35
35
  import '../../useOverflow-e91d2314.js';
36
36
  import '../../OrButton-f489e6b3.js';
37
37
  import '../../OrButton.vue_rollup-plugin-vue_script-ec8cfaee.js';
@@ -1,4 +1,4 @@
1
- export { _ as OrTagsV3, T as TagsOverflow } from '../../OrTags-93fff411.js';
1
+ export { _ as OrTagsV3, T as TagsOverflow } from '../../OrTags-1acb6cde.js';
2
2
  import 'vue-demi';
3
3
  import '../../useOverflow-e91d2314.js';
4
4
  import '@vueuse/core';
@@ -3,7 +3,7 @@
3
3
  * Ellipsis can be placed in the end or in the middle of the text. Convenient for displaying long labels,
4
4
  * that have same beginning and differ in the ending part.
5
5
  */
6
- declare const _default: import("vue2").ComponentOptions<import("vue2").default, import("@vue/composition-api").ShallowUnwrapRef<{
6
+ declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
7
7
  root: import("@vue/composition-api").Ref<HTMLElement | undefined>;
8
8
  rootStyles: import("@vue/composition-api").ComputedRef<string[]>;
9
9
  mainTextStyles: import("@vue/composition-api").ComputedRef<string[]>;
@@ -48,7 +48,7 @@ declare const _default: import("vue2").ComponentOptions<import("vue2").default,
48
48
  type: NumberConstructor;
49
49
  default: number;
50
50
  };
51
- }>> & Omit<import("vue2").VueConstructor<import("vue2").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
51
+ }>> & Omit<import("vue").VueConstructor<import("vue").default>, never> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
52
52
  text: string;
53
53
  sliceIndex: number;
54
54
  } & {}, import("@vue/composition-api").ShallowUnwrapRef<{
@@ -1,5 +1,5 @@
1
1
  export { O as OR_AVATAR_SIZE, _ as OrAvatar } from './OrAvatar-fb7beb01.js';
2
- export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-9d0217f7.js';
2
+ export { a as AvatarColor, A as AvatarSize, _ as OrAvatarV3 } from './OrAvatar-62fcfe74.js';
3
3
  export { B as BottomSheetVariant, _ as OrBottomSheetV3 } from './OrBottomSheet-d17c8327.js';
4
4
  export { _ as OrButton, a as OrButtonColors, b as OrButtonSizes, O as OrButtonViews } from './OrButton-9e5affac.js';
5
5
  export { _ as OrButtonGroupV3 } from './OrButtonGroup-2ede0e49.js';
@@ -105,7 +105,7 @@ export { _ as OrSearch } from './OrSearch-525e988d.js';
105
105
  export { _ as OrSearchV3 } from './OrSearch-cf9140ac.js';
106
106
  export { _ as OrSegmentedControlV3, S as SegmentedControlSize } from './OrSegmentedControl-ef70b1d7.js';
107
107
  export { _ as OrSelect } from './OrSelect-2808e01d.js';
108
- export { _ as OrSelectV3 } from './OrSelect-83aff1e9.js';
108
+ export { _ as OrSelectV3 } from './OrSelect-e10fb4a5.js';
109
109
  export { _ as OrSidebar, O as OrSidebarSide } from './OrSidebar-054b26c6.js';
110
110
  export { S as OrSidebarPlacement, _ as OrSidebarV3, S as SidebarPlacement } from './OrSidebar-6e76cdfc.js';
111
111
  export { _ as OrSkeletonCircle } from './OrSkeletonCircle-c4bf0e34.js';
@@ -126,10 +126,10 @@ export { _ as OrTabHeaderItem } from './OrTabHeaderItem-424f2986.js';
126
126
  export { _ as OrTabV3 } from './OrTab-a989b4fd.js';
127
127
  export { _ as OrTabs } from './OrTabs-62e7e478.js';
128
128
  export { _ as OrTabsV3, T as TabsVariant } from './OrTabs-9706cf47.js';
129
- export { _ as OrTag } from './OrTag-ce728fad.js';
130
- export { _ as OrTagInputV3 } from './OrTagInput-1589f828.js';
129
+ export { _ as OrTag } from './OrTag-53599b71.js';
130
+ export { _ as OrTagInputV3 } from './OrTagInput-18665ac7.js';
131
131
  export { _ as OrTagV3, a as TagColor, T as TagVariant } from './OrTag-b8b933b5.js';
132
- export { _ as OrTagsV3, T as TagsOverflow } from './OrTags-93fff411.js';
132
+ export { _ as OrTagsV3, T as TagsOverflow } from './OrTags-1acb6cde.js';
133
133
  export { _ as OrTeleport } from './OrTeleport.vue2-f0c16c71.js';
134
134
  export { _ as OrTeleportV3 } from './OrTeleport.vue2-9eb0eaee.js';
135
135
  export { _ as OrTextV3 } from './OrText-44449e7b.js';
@@ -157,8 +157,8 @@ export { u as useResponsive } from './useResponsive-1baf3485.js';
157
157
  export { u as useTheme } from './useTheme-0ef25778.js';
158
158
  export { u as useToggle } from './useToggle-c04fc920.js';
159
159
  export { u as useValidationAttributes } from './useValidationAttributes-d1abbe34.js';
160
- export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, F as generateHslFromString, I as getHashOfString, D as hexToRgb, G as hslToColorString, J as normalize, E as rgbToHex } from './color-6b0fc765.js';
161
- export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from './isDescendant-61c67ccc.js';
160
+ export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, I as generateColorFromString, F as generateHslFromString, J as getHashOfString, D as hexToRgb, G as hslToColorString, K as normalize, E as rgbToHex } from './color-911f1122.js';
161
+ export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from './isDescendant-4434a968.js';
162
162
  export { M as MutationObs, f as addClass, c as cancelAF, e as contains, m as getAttr, t as getBCR, g as getById, u as getCS, x as getMaxZIndex, q as getStyle, n as hasAttr, j as hasClass, i as isVisible, v as offset, w as position, b as reflow, l as removeAttr, h as removeClass, a as removeNode, p as removeStyle, r as requestAF, d as select, s as selectAll, k as setAttr, o as setStyle } from './dom-aecadd9a.js';
163
163
  export { p as pxToRem } from './px-to-rem-0b26b83e.js';
164
164
  export { i as isAncestor } from './isAncestor-9acec98b.js';
@@ -214,7 +214,7 @@ import './codemirrorView-020fe885.js';
214
214
  import 'prosemirror-state';
215
215
  import 'prosemirror-commands';
216
216
  import 'lodash/keyBy';
217
- import './OrSelectMultipleControl-300ba243.js';
217
+ import './OrSelectMultipleControl-b449de97.js';
218
218
  import './OrSelectControlInput-d968f1b8.js';
219
219
  import './OrSelectPlaceholder-d03c1076.js';
220
220
  import './OrSelectSingleControl-6804ef1b.js';
@@ -1,4 +1,4 @@
1
- import { t as RX_ABBREVIATION_FROM_STRING } from './color-6b0fc765.js';
1
+ import { t as RX_ABBREVIATION_FROM_STRING } from './color-911f1122.js';
2
2
 
3
3
  const CODE_BACKSPACE = 8;
4
4
  const CODE_BREAK = 19;
@@ -17,3 +17,7 @@ export declare function hslToColorString(hsl: {
17
17
  s: number;
18
18
  l: number;
19
19
  }): string;
20
+ export declare function generateColorFromString(str: string, limits?: Partial<Record<'h' | 's' | 'l', {
21
+ min: number;
22
+ max: number;
23
+ }>>): string;
@@ -1,5 +1,5 @@
1
- export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, F as generateHslFromString, I as getHashOfString, D as hexToRgb, G as hslToColorString, J as normalize, E as rgbToHex } from '../color-6b0fc765.js';
2
- export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from '../isDescendant-61c67ccc.js';
1
+ export { H as HSL_LIMITS, t as RX_ABBREVIATION_FROM_STRING, R as RX_ARRAY_NOTATION, a as RX_BV_PREFIX, u as RX_DATE, v as RX_DATE_SPLIT, b as RX_DIGITS, y as RX_ENCODED_COMMA, z as RX_ENCODE_REVERSE, c as RX_EXTENSION, d as RX_HASH, e as RX_HASH_ID, x as RX_HREF, f as RX_HTML_TAGS, g as RX_HYPHENATE, C as RX_LONG_COLOR, h as RX_LOWER_UPPER, i as RX_NUMBER, j as RX_PLUS, A as RX_QUERY_START, k as RX_REGEXP_REPLACE, B as RX_SHORT_COLOR, l as RX_SPACES, m as RX_SPACE_SPLIT, n as RX_STAR, o as RX_START_SPACE_WORD, w as RX_TIME, p as RX_TRIM_LEFT, q as RX_TRIM_RIGHT, r as RX_UNDERSCORE, s as RX_UN_KEBAB, I as generateColorFromString, F as generateHslFromString, J as getHashOfString, D as hexToRgb, G as hslToColorString, K as normalize, E as rgbToHex } from '../color-911f1122.js';
2
+ export { C as CODE_BACKSPACE, a as CODE_BREAK, b as CODE_DELETE, c as CODE_DOWN, d as CODE_END, e as CODE_ENTER, f as CODE_ESC, g as CODE_HOME, h as CODE_LEFT, i as CODE_PAGEDOWN, j as CODE_PAGEUP, k as CODE_RIGHT, l as CODE_SPACE, m as CODE_UP, p as PLACEMENT_BOTTOM_END, o as PLACEMENT_BOTTOM_START, t as PLACEMENT_LEFT_END, s as PLACEMENT_LEFT_START, r as PLACEMENT_RIGHT_END, q as PLACEMENT_RIGHT_START, n as PLACEMENT_TOP_END, P as PLACEMENT_TOP_START, u as getAbbreviation, v as isDescendant } from '../isDescendant-4434a968.js';
3
3
  export { M as MutationObs, f as addClass, c as cancelAF, e as contains, m as getAttr, t as getBCR, g as getById, u as getCS, x as getMaxZIndex, q as getStyle, n as hasAttr, j as hasClass, i as isVisible, v as offset, w as position, b as reflow, l as removeAttr, h as removeClass, a as removeNode, p as removeStyle, r as requestAF, d as select, s as selectAll, k as setAttr, o as setStyle } from '../dom-aecadd9a.js';
4
4
  export { p as pxToRem } from '../px-to-rem-0b26b83e.js';
5
5
  export { i as isAncestor } from '../isAncestor-9acec98b.js';
@@ -1,5 +1,5 @@
1
1
  import { defineComponent, ref, computed } from 'vue-demi';
2
- import { G as hslToColorString, F as generateHslFromString } from './color-6b0fc765.js';
2
+ import { G as hslToColorString, F as generateHslFromString } from './color-911f1122.js';
3
3
  import { s as script$1 } from './OrIcon-b2e2d0aa.js';
4
4
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, renderSlot, createBlock, createCommentVNode } from 'vue';
5
5
 
@@ -1,4 +1,4 @@
1
- import { defineComponent, getCurrentInstance, ref, computed, toRefs, onMounted, watch } from 'vue-demi';
1
+ import { defineComponent, getCurrentInstance, ref, computed, toRefs, watch } from 'vue-demi';
2
2
  import { D as DropdownClose, a as DropdownOpen } from './dropdown-open-06d651cf.js';
3
3
  import '@vueuse/core';
4
4
  import './dom-aecadd9a.js';
@@ -17,8 +17,8 @@ import { s as script$9 } from './OrInput-c92be458.js';
17
17
  import { s as script$b } from './OrLabel-6c83afe4.js';
18
18
  import { s as script$c } from './OrMenuItem-2928ba60.js';
19
19
  import { s as script$d } from './OrPopover-1c87b4ed.js';
20
- import { T as TagsOverflow } from './OrTags-b5c62b28.js';
21
- import { s as script$1 } from './OrSelectMultipleControl-6476e58b.js';
20
+ import { T as TagsOverflow } from './OrTags-b5aea0be.js';
21
+ import { s as script$1, c as castToMultipleValue } from './OrSelectMultipleControl-9d33a012.js';
22
22
  import { s as script$2 } from './OrSelectSingleControl-384d4b45.js';
23
23
  import './OrSelectPlaceholder-fc5a2dbf.js';
24
24
  import { resolveComponent, resolveDirective, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, withDirectives, createElementVNode, withModifiers, createVNode, Fragment, renderList, vShow } from 'vue';
@@ -232,11 +232,6 @@ var script = defineComponent({
232
232
  const showClear = computed(() => {
233
233
  return enableClear.value && !isEmptyModelValue.value;
234
234
  });
235
- onMounted(() => {
236
- if (!proxyModelValue.value && props.multiple) {
237
- proxyModelValue.value = [];
238
- }
239
- });
240
235
  const focused = computed(() => {
241
236
  var _a, _b;
242
237
  if (multiple.value) {
@@ -321,11 +316,11 @@ var script = defineComponent({
321
316
  }
322
317
  function toggleOption(option) {
323
318
  const modelValue = proxyModelValue.value;
324
- if (Array.isArray(modelValue)) {
325
- if (modelValue.includes(option)) {
319
+ if (multiple.value) {
320
+ if (modelValue && Array.isArray(modelValue) && modelValue.includes(option)) {
326
321
  deselect(option);
327
322
  } else {
328
- proxyModelValue.value = [...modelValue, option];
323
+ proxyModelValue.value = [...castToMultipleValue(modelValue), option];
329
324
  }
330
325
  } else {
331
326
  proxyModelValue.value = option;
@@ -452,7 +447,17 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
452
447
  "enable-search": _ctx.enableSearch,
453
448
  "is-open": _ctx.popoverState === 'open',
454
449
  onReset: _ctx.deselect
455
- }, null, 8 /* PROPS */, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open", "onReset"])) : (openBlock(), createBlock(_component_OrSelectSingleControl, {
450
+ }, {
451
+ tag: withCtx(_ref => {
452
+ let {
453
+ item
454
+ } = _ref;
455
+ return [renderSlot(_ctx.$slots, "tag", {
456
+ item: item
457
+ })];
458
+ }),
459
+ _: 3 /* FORWARDED */
460
+ }, 8 /* PROPS */, ["modelValue", "model", "options", "overflow", "placeholder", "readonly", "disabled", "enable-search", "is-open", "onReset"])) : (openBlock(), createBlock(_component_OrSelectSingleControl, {
456
461
  key: 1,
457
462
  ref: "singleControl",
458
463
  modelValue: _ctx.searchText,
@@ -5,11 +5,11 @@ import { i as isEqualValue } from './isEqualValue-f8bf73d9.js';
5
5
  import { u as useProxyModelValue } from './useProxyModelValue-940010d2.js';
6
6
  import '@onereach/styles/tailwind/plugins/core';
7
7
  import '@onereach/styles/tailwind.config.json';
8
- import { s as script$3, T as TagsOverflow } from './OrTags-b5c62b28.js';
8
+ import { s as script$3, T as TagsOverflow } from './OrTags-b5aea0be.js';
9
9
  import { s as script$2 } from './OrSelectControlInput-266e9375.js';
10
10
  import { s as script$1 } from './OrSelectPlaceholder-fc5a2dbf.js';
11
11
  import { i as isEmptyValue } from './isEmptyValue-fd56a6e4.js';
12
- import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createVNode, createSlots, withCtx, createElementVNode, vShow, createBlock, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
12
+ import { resolveComponent, openBlock, createElementBlock, normalizeClass, withDirectives, createVNode, createSlots, withCtx, renderSlot, createTextVNode, toDisplayString, createElementVNode, vShow, createBlock, createCommentVNode } from 'vue';
13
13
 
14
14
  const SelectMultipleControlRoot = [
15
15
  // Layout
@@ -155,6 +155,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
155
155
  overflow: _ctx.overflow,
156
156
  onReset: _cache[1] || (_cache[1] = $event => _ctx.$emit('reset', $event))
157
157
  }, createSlots({
158
+ tag: withCtx(_ref => {
159
+ let {
160
+ item
161
+ } = _ref;
162
+ return [renderSlot(_ctx.$slots, "tag", {
163
+ item: item
164
+ }, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])];
165
+ }),
166
+
158
167
  _: 2 /* DYNAMIC */
159
168
  }, [_ctx.enableSearch ? {
160
169
  name: "tail",
@@ -180,4 +189,4 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
180
189
  script.render = render;
181
190
  script.__file = "src/components/or-select-v3/partials/or-select-multiple-control/OrSelectMultipleControl.vue";
182
191
 
183
- export { script as s };
192
+ export { castToMultipleValue as c, script as s };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent } from 'vue-demi';
2
2
  import { s as script$1 } from './OrIcon-eb0a5aa2.js';
3
- import { D as hexToRgb } from './color-6b0fc765.js';
3
+ import { D as hexToRgb } from './color-911f1122.js';
4
4
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, normalizeStyle, createVNode, createElementVNode, renderSlot, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
5
5
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
6
6
 
@@ -12,7 +12,7 @@ import { s as script$3 } from './OrIconButton-836a0621.js';
12
12
  import { s as script$4 } from './OrInputBox-be83fe16.js';
13
13
  import { s as script$5 } from './OrLabel-6c83afe4.js';
14
14
  import { a as TagColor } from './OrTag-1b111af7.js';
15
- import { s as script$6, T as TagsOverflow } from './OrTags-b5c62b28.js';
15
+ import { s as script$6, T as TagsOverflow } from './OrTags-b5aea0be.js';
16
16
  import { resolveComponent, openBlock, createElementBlock, normalizeClass, createBlock, withCtx, renderSlot, createTextVNode, toDisplayString, createCommentVNode, createVNode, createSlots, createElementVNode, withDirectives, mergeProps, withKeys, vModelDynamic, vShow } from 'vue';
17
17
  import { s as styleInject } from './style-inject.es-4c6f2515.js';
18
18
 
@@ -285,6 +285,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
285
285
  overflow: _ctx.overflow,
286
286
  onReset: _cache[5] || (_cache[5] = $event => _ctx.remove($event))
287
287
  }, createSlots({
288
+ tag: withCtx(_ref => {
289
+ let {
290
+ item
291
+ } = _ref;
292
+ return [renderSlot(_ctx.$slots, "tag", {
293
+ item: item
294
+ }, () => [createTextVNode(toDisplayString(item.label), 1 /* TEXT */)])];
295
+ }),
296
+
288
297
  _: 2 /* DYNAMIC */
289
298
  }, [_ctx.showControl ? {
290
299
  name: "tail",