@onereach/ui-components 25.3.4 → 25.3.5-beta.5816.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.
@@ -16,9 +16,9 @@ import { O as Je } from "./OrLoader-2SaTMxmZ.mjs";
16
16
  import { O as Ke } from "./OrMenuItem-VyCCXA7Z.mjs";
17
17
  import { O as Qe } from "./OrPopover-GBPJ4IDN.mjs";
18
18
  import { O as Xe, T as ae } from "./OrTags-Ce70YtZr.mjs";
19
- import { defineComponent as G, ref as m, toRefs as oe, computed as a, withDirectives as z, openBlock as r, createElementBlock as O, normalizeStyle as Ye, normalizeClass as y, vModelDynamic as Ze, renderSlot as C, watch as _, resolveComponent as i, createVNode as L, createSlots as xe, withCtx as h, createTextVNode as B, toDisplayString as E, createElementVNode as q, vShow as x, createBlock as k, createCommentVNode as W, Fragment as F, getCurrentInstance as _e, nextTick as ue, resolveDirective as pe, withModifiers as Y, renderList as j } from "vue";
19
+ import { defineComponent as J, ref as m, toRefs as oe, computed as a, withDirectives as z, openBlock as r, createElementBlock as O, normalizeStyle as Ye, normalizeClass as y, vModelDynamic as Ze, renderSlot as C, watch as _, resolveComponent as i, createVNode as L, createSlots as xe, withCtx as h, createTextVNode as B, toDisplayString as E, createElementVNode as q, vShow as x, createBlock as k, createCommentVNode as G, Fragment as F, getCurrentInstance as _e, nextTick as ue, resolveDirective as pe, withModifiers as j, renderList as W } from "vue";
20
20
  import { useFocus as eo } from "@vueuse/core";
21
- import { _ as J } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
21
+ import { _ as K } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
22
22
  import { O as oo } from "./OrTooltip-BCrAH95l.mjs";
23
23
  const lo = [
24
24
  // Base
@@ -30,7 +30,7 @@ const lo = [
30
30
  "dark:placeholder:theme-foreground-outline-dark",
31
31
  "theme-background-transparent",
32
32
  "outline-none"
33
- ], to = G({
33
+ ], to = J({
34
34
  name: "OrSelectControlInput",
35
35
  model: {
36
36
  prop: "modelValue",
@@ -102,7 +102,7 @@ function no(e, o, w, f, v, u) {
102
102
  [Ze, e.proxyModelValue]
103
103
  ]);
104
104
  }
105
- const fe = /* @__PURE__ */ J(to, [["render", no]]), ro = [
105
+ const fe = /* @__PURE__ */ K(to, [["render", no]]), ro = [
106
106
  // Interactivity
107
107
  "interactivity-click",
108
108
  // Typography
@@ -110,7 +110,7 @@ const fe = /* @__PURE__ */ J(to, [["render", no]]), ro = [
110
110
  // Theme
111
111
  "theme-foreground-outline",
112
112
  "dark:theme-foreground-outline-dark"
113
- ], so = G({
113
+ ], so = J({
114
114
  name: "OrSelectPlaceholder",
115
115
  props: {
116
116
  disabled: {
@@ -141,11 +141,11 @@ function uo(e, o, w, f, v, u) {
141
141
  C(e.$slots, "default")
142
142
  ], 10, io);
143
143
  }
144
- const ve = /* @__PURE__ */ J(so, [["render", uo]]), po = [
144
+ const ve = /* @__PURE__ */ K(so, [["render", uo]]), po = [
145
145
  // Layout
146
146
  "layout-row",
147
147
  "w-full"
148
- ], co = G({
148
+ ], co = J({
149
149
  name: "OrSelectMultipleControl",
150
150
  components: {
151
151
  OrSelectPlaceholder: ve,
@@ -287,13 +287,13 @@ function fo(e, o, w, f, v, u) {
287
287
  B(E(e.placeholder), 1)
288
288
  ]),
289
289
  _: 1
290
- }, 8, ["disabled"])) : W("", !0)
290
+ }, 8, ["disabled"])) : G("", !0)
291
291
  ], 2);
292
292
  }
293
- const vo = /* @__PURE__ */ J(co, [["render", fo]]), yo = [
293
+ const vo = /* @__PURE__ */ K(co, [["render", fo]]), yo = [
294
294
  // Layout
295
295
  "w-full"
296
- ], bo = G({
296
+ ], bo = J({
297
297
  name: "OrSelectSingleControl",
298
298
  components: {
299
299
  OrSelectPlaceholder: ve,
@@ -430,7 +430,7 @@ function So(e, o, w, f, v, u) {
430
430
  ], 64))
431
431
  ], 2);
432
432
  }
433
- const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
433
+ const go = /* @__PURE__ */ K(bo, [["render", So]]), Oo = [
434
434
  // Layout
435
435
  "layout-column",
436
436
  // Spacing
@@ -508,7 +508,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
508
508
  "typography-body-2-regular",
509
509
  // Theme
510
510
  "text-outline dark:text-outline-dark"
511
- ], Lo = G({
511
+ ], Lo = J({
512
512
  name: "OrSelect",
513
513
  components: {
514
514
  OrCheckbox: Fe,
@@ -649,10 +649,10 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
649
649
  }), P = a(() => I.value === "open"), { enableClear: $, enableSearch: A, modelValue: c, multiple: T } = oe(e), N = m(o.attrs.id ?? w.uid.toString()), n = ee(c, o.emit), le = a(() => {
650
650
  var l, b;
651
651
  return (b = (l = g.value) == null ? void 0 : l.bottomSheet) == null ? void 0 : b.fullscreen;
652
- }), K = a(() => me(n.value)), t = a(() => $.value && !K.value), R = a(() => {
652
+ }), Q = a(() => me(n.value)), t = a(() => $.value && !Q.value), R = a(() => {
653
653
  var l, b;
654
654
  return T.value ? (l = S.value) == null ? void 0 : l.focused : (b = V.value) == null ? void 0 : b.focused;
655
- }), d = a(() => o.attrs.readonly), D = m(e.options), Q = a(() => e.externalControl ? e.searchOptions : D.value), te = m("");
655
+ }), d = a(() => o.attrs.readonly), D = m(e.options), X = a(() => e.externalControl ? e.searchOptions : D.value), te = m("");
656
656
  _([
657
657
  () => e.externalControl,
658
658
  te,
@@ -660,7 +660,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
660
660
  ], async ([l, b, U]) => {
661
661
  l ? o.emit("search", b) : D.value = await e.searchFunction(b, U);
662
662
  }, { deep: !0 }), _(P, (l) => {
663
- l || X();
663
+ l || Y();
664
664
  });
665
665
  const ye = a(() => {
666
666
  const l = e.groupByFunction;
@@ -735,7 +735,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
735
735
  }
736
736
  }
737
737
  function Me(l) {
738
- e.multiple ? n.value = de(l, Z(n.value)) : n.value = l, X();
738
+ e.multiple ? n.value = de(l, Z(n.value)) : n.value = l, Y();
739
739
  }
740
740
  function Ie(l) {
741
741
  e.multiple ? n.value = ie(l, Z(n.value)) : n.value = void 0;
@@ -746,9 +746,9 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
746
746
  b.includes(l) ? n.value = ie(l, b) : n.value = de(l, b);
747
747
  } else
748
748
  n.value = n.value !== l ? l : void 0;
749
- X();
749
+ Y();
750
750
  }
751
- function X() {
751
+ function Y() {
752
752
  ue(() => {
753
753
  setTimeout(() => te.value = "");
754
754
  });
@@ -776,12 +776,12 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
776
776
  controlId: N,
777
777
  proxyModelValue: n,
778
778
  readonly: d,
779
- isEmptyModelValue: K,
779
+ isEmptyModelValue: Q,
780
780
  isOpen: P,
781
781
  showClear: t,
782
782
  searchText: te,
783
783
  internalSearchOptions: D,
784
- resolvedSearchOptions: Q,
784
+ resolvedSearchOptions: X,
785
785
  groupedOptions: ye,
786
786
  toggle: Ce,
787
787
  close: re,
@@ -789,7 +789,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
789
789
  selectOption: Me,
790
790
  deselectOption: Ie,
791
791
  toggleOption: Te,
792
- resetSearch: X,
792
+ resetSearch: Y,
793
793
  isDesktop: Be,
794
794
  isMobile: H
795
795
  };
@@ -801,7 +801,7 @@ const go = /* @__PURE__ */ J(bo, [["render", So]]), Oo = [
801
801
  class: /* @__PURE__ */ y(["px-sm+", "py-xs"])
802
802
  }, Ao = ["onClick"];
803
803
  function Uo(e, o, w, f, v, u) {
804
- const p = i("OrLabel"), S = i("OrSelectMultipleControl"), V = i("OrSelectSingleControl"), s = i("OrIconButton"), g = i("OrIcon"), M = i("OrInput"), I = i("OrLoader"), P = i("OrCheckbox"), $ = i("OrMenuItem"), A = i("OrExpansionPanel"), c = i("OrPopover"), T = i("OrInputBox"), N = i("OrHint"), n = i("OrError"), le = pe("dropdown-open"), K = pe("dropdown-close");
804
+ const p = i("OrLabel"), S = i("OrSelectMultipleControl"), V = i("OrSelectSingleControl"), s = i("OrIconButton"), g = i("OrIcon"), M = i("OrInput"), I = i("OrLoader"), P = i("OrCheckbox"), $ = i("OrMenuItem"), A = i("OrExpansionPanel"), c = i("OrPopover"), T = i("OrInputBox"), N = i("OrHint"), n = i("OrError"), le = pe("dropdown-open"), Q = pe("dropdown-close");
805
805
  return r(), O("div", {
806
806
  ref: "root",
807
807
  class: y(e.rootStyles)
@@ -822,7 +822,7 @@ function Uo(e, o, w, f, v, u) {
822
822
  ])
823
823
  ]),
824
824
  _: 3
825
- }, 8, ["control-id", "required", "disabled"])) : W("", !0),
825
+ }, 8, ["control-id", "required", "disabled"])) : G("", !0),
826
826
  z((r(), k(T, {
827
827
  ref: "inputBox",
828
828
  class: y(["interactivity-click", [e.popoverState === "open" && (e.popover && e.popover.isFlipped ? "rounded-t-0" : "rounded-b-0"), { "outline-none": e.variant === "embedded" }]]),
@@ -884,8 +884,8 @@ function Uo(e, o, w, f, v, u) {
884
884
  color: "inherit",
885
885
  "additional-styles": ["!text-outline", "!dark:text-outline-dark"],
886
886
  disabled: e.readonly || e.disabled,
887
- onClick: o[5] || (o[5] = Y((t) => e.$emit("update:modelValue", e.multiple ? [] : void 0), ["stop"]))
888
- }, null, 8, ["disabled"])) : W("", !0),
887
+ onClick: o[5] || (o[5] = j((t) => e.$emit("update:modelValue", e.multiple ? [] : void 0), ["stop"]))
888
+ }, null, 8, ["disabled"])) : G("", !0),
889
889
  z(L(g, {
890
890
  icon: e.popoverState === "open" ? e.enableSearch ? "search" : "arrow_drop_up" : "arrow_drop_down",
891
891
  class: y(e.popoverState === "open" && e.enableSearch ? "!text-outline !dark:text-outline-dark" : ""),
@@ -915,7 +915,7 @@ function Uo(e, o, w, f, v, u) {
915
915
  class: y(e.searchControlStyles),
916
916
  type: "search",
917
917
  placeholder: e.placeholder
918
- }, null, 8, ["modelValue", "class", "placeholder"])) : W("", !0),
918
+ }, null, 8, ["modelValue", "class", "placeholder"])) : G("", !0),
919
919
  q("div", {
920
920
  class: y(e.dropdownContainerStyles)
921
921
  }, [
@@ -928,12 +928,12 @@ function Uo(e, o, w, f, v, u) {
928
928
  }, null, 8, ["class", "text"])
929
929
  ])
930
930
  ])) : e.resolvedSearchOptions.length > 0 ? (r(), O(F, { key: 1 }, [
931
- e.groupByFunction ? (r(!0), O(F, { key: 0 }, j(e.groupedOptions, (t, R) => (r(), k(A, {
931
+ e.groupByFunction ? (r(!0), O(F, { key: 0 }, W(e.groupedOptions, (t, R) => (r(), k(A, {
932
932
  key: R,
933
933
  label: R
934
934
  }, {
935
935
  default: h(() => [
936
- e.multiple ? (r(!0), O(F, { key: 0 }, j(t, (d, D) => (r(), k($, {
936
+ e.multiple ? (r(!0), O(F, { key: 0 }, W(t, (d, D) => (r(), k($, {
937
937
  key: D,
938
938
  "tooltip-text": d.label,
939
939
  selected: e.proxyModelValue && e.proxyModelValue.includes(d.value),
@@ -946,7 +946,7 @@ function Uo(e, o, w, f, v, u) {
946
946
  }, () => [
947
947
  L(P, {
948
948
  modelValue: e.proxyModelValue,
949
- "onUpdate:modelValue": o[7] || (o[7] = (Q) => e.proxyModelValue = Q),
949
+ "onUpdate:modelValue": o[7] || (o[7] = (X) => e.proxyModelValue = X),
950
950
  value: d.value,
951
951
  label: d.label,
952
952
  "label-variant": "menu-item",
@@ -955,13 +955,13 @@ function Uo(e, o, w, f, v, u) {
955
955
  ])
956
956
  ]),
957
957
  _: 2
958
- }, 1032, ["tooltip-text", "selected", "disabled"]))), 128)) : (r(!0), O(F, { key: 1 }, j(t, (d, D) => (r(), k($, {
958
+ }, 1032, ["tooltip-text", "selected", "disabled"]))), 128)) : (r(!0), O(F, { key: 1 }, W(t, (d, D) => (r(), k($, {
959
959
  key: D,
960
960
  class: y(e.dropdownItemStyles),
961
961
  "tooltip-text": d.label,
962
962
  selected: e.proxyModelValue === d.value,
963
963
  disabled: d.disabled,
964
- onClick: Y((Q) => e.selectOption(d.value), ["stop"])
964
+ onClick: j((X) => e.selectOption(d.value), ["stop"])
965
965
  }, {
966
966
  default: h(() => [
967
967
  C(e.$slots, "optionTemplate", {
@@ -976,14 +976,14 @@ function Uo(e, o, w, f, v, u) {
976
976
  ]),
977
977
  _: 2
978
978
  }, 1032, ["label"]))), 128)) : (r(), O(F, { key: 1 }, [
979
- e.multiple ? (r(!0), O(F, { key: 0 }, j(e.resolvedSearchOptions, (t, R) => (r(), k($, {
979
+ e.multiple ? (r(!0), O(F, { key: 0 }, W(e.resolvedSearchOptions, (t, R) => (r(), k($, {
980
980
  key: R,
981
981
  "tooltip-text": t.label,
982
982
  class: y(e.dropdownItemStyles),
983
983
  selected: e.proxyModelValue && e.proxyModelValue.includes(t.value),
984
984
  disabled: t.disabled,
985
985
  "data-value": t.value,
986
- onClick: Y((d) => !t.disabled && e.toggleOption(t.value), ["stop"])
986
+ onClick: j((d) => !t.disabled && e.toggleOption(t.value), ["stop"])
987
987
  }, {
988
988
  default: h(() => [
989
989
  L(P, {
@@ -994,7 +994,7 @@ function Uo(e, o, w, f, v, u) {
994
994
  }, {
995
995
  default: h(() => [
996
996
  q("div", {
997
- onClick: (d) => !t.disabled && e.toggleOption(t.value)
997
+ onClick: j((d) => !t.disabled && e.toggleOption(t.value), ["stop", "prevent"])
998
998
  }, [
999
999
  C(e.$slots, "optionTemplate", {
1000
1000
  model: e.proxyModelValue,
@@ -1008,14 +1008,14 @@ function Uo(e, o, w, f, v, u) {
1008
1008
  }, 1032, ["model-value", "value", "disabled"])
1009
1009
  ]),
1010
1010
  _: 2
1011
- }, 1032, ["tooltip-text", "class", "selected", "disabled", "data-value", "onClick"]))), 128)) : (r(!0), O(F, { key: 1 }, j(e.resolvedSearchOptions, (t, R) => (r(), k($, {
1011
+ }, 1032, ["tooltip-text", "class", "selected", "disabled", "data-value", "onClick"]))), 128)) : (r(!0), O(F, { key: 1 }, W(e.resolvedSearchOptions, (t, R) => (r(), k($, {
1012
1012
  key: R,
1013
1013
  class: y(e.dropdownItemStyles),
1014
1014
  selected: e.proxyModelValue === t.value,
1015
1015
  "tooltip-text": t.label,
1016
1016
  "data-value": t.value,
1017
1017
  disabled: t.disabled,
1018
- onClick: Y((d) => {
1018
+ onClick: j((d) => {
1019
1019
  e.selectOption(t.value), e.close();
1020
1020
  }, ["stop"])
1021
1021
  }, {
@@ -1047,7 +1047,7 @@ function Uo(e, o, w, f, v, u) {
1047
1047
  _: 3
1048
1048
  }, 8, ["class", "variant", "size", "invalid", "readonly", "disabled", "force-state", "tabindex"])), [
1049
1049
  [le, e.toggle],
1050
- [K, e.close]
1050
+ [Q, e.close]
1051
1051
  ]),
1052
1052
  e.$slots.hint || e.hint ? z((r(), k(N, {
1053
1053
  key: 1,
@@ -1061,7 +1061,7 @@ function Uo(e, o, w, f, v, u) {
1061
1061
  _: 3
1062
1062
  }, 8, ["disabled"])), [
1063
1063
  [x, !e.error]
1064
- ]) : W("", !0),
1064
+ ]) : G("", !0),
1065
1065
  z(L(n, { disabled: e.disabled }, {
1066
1066
  default: h(() => [
1067
1067
  B(E(e.error), 1)
@@ -1072,8 +1072,8 @@ function Uo(e, o, w, f, v, u) {
1072
1072
  ])
1073
1073
  ], 2);
1074
1074
  }
1075
- const sl = /* @__PURE__ */ J(Lo, [["render", Uo]]);
1075
+ const sl = /* @__PURE__ */ K(Lo, [["render", Uo]]);
1076
1076
  export {
1077
1077
  sl as O
1078
1078
  };
1079
- //# sourceMappingURL=OrSelect-Ch1X9fVC.mjs.map
1079
+ //# sourceMappingURL=OrSelect-ZitJ7RzV.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrSelect-ZitJ7RzV.mjs","sources":["../../../components/or-select-v3/src/partials/or-select-control-input/styles.ts","../../../components/or-select-v3/src/partials/or-select-control-input/OrSelectControlInput.vue","../../../components/or-select-v3/src/partials/or-select-placeholder/styles.ts","../../../components/or-select-v3/src/partials/or-select-placeholder/OrSelectPlaceholder.vue","../../../components/or-select-v3/src/partials/or-select-multiple-control/styles.ts","../../../components/or-select-v3/src/partials/or-select-multiple-control/OrSelectMultipleControl.vue","../../../components/or-select-v3/src/partials/or-select-single-control/styles.ts","../../../components/or-select-v3/src/partials/or-select-single-control/OrSelectSingleControl.vue","../../../components/or-select-v3/src/styles.ts","../../../components/or-select-v3/src/OrSelect.vue"],"sourcesContent":["export const SelectControlInput: string[] = [\n // Base\n 'appearance-none',\n\n // Typography\n 'typography-inherit',\n\n // Theme (placeholder)\n 'placeholder:theme-foreground-outline',\n 'dark:placeholder:theme-foreground-outline-dark',\n 'theme-background-transparent',\n 'outline-none',\n];\n","<template>\n <input\n :ref=\"'root'\"\n v-model=\"proxyModelValue\"\n :style=\"controlInlineStyles\"\n :class=\"controlStyles\"\n :type=\"'text'\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n :autocomplete=\"'off'\"\n :minlength=\"undefined\"\n :maxlength=\"undefined\"\n >\n</template>\n\n<script lang=\"ts\">\nimport { useProxyModelValue } from '@onereach/ui-components-common/hooks';\nimport { useFocus } from '@vueuse/core';\nimport { computed, defineComponent, ref, toRefs } from 'vue';\n\nimport { SelectControlInput } from './styles';\n\nexport default defineComponent({\n name: 'OrSelectControlInput',\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: String,\n default: '',\n },\n\n placeholder: {\n type: String,\n default: '',\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n readonly: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n 'update:modelValue',\n ],\n\n expose: [\n 'root',\n\n 'focus',\n 'focused',\n ],\n\n setup(props, context) {\n // Refs\n const root = ref<HTMLInputElement>();\n\n // Props\n const { placeholder, modelValue } = toRefs(props);\n\n // State\n const proxyModelValue = useProxyModelValue(modelValue, context.emit);\n const { focused } = useFocus(root);\n\n // Styles\n const controlStyles = computed(() => [\n ...SelectControlInput,\n ]);\n\n const controlInlineStyles = computed(() => {\n const chars = proxyModelValue.value.length > 0\n ? proxyModelValue.value.length\n : placeholder.value?.length;\n\n return {\n width: `${Math.max(chars + 1 || 0, 2)}ch`,\n };\n });\n\n // Methods\n function focus() {\n focused.value = true;\n }\n\n return {\n root,\n proxyModelValue,\n controlStyles,\n controlInlineStyles,\n focused,\n focus,\n };\n },\n});\n</script>\n","export const SelectPlaceholder: string[] = [\n // Interactivity\n 'interactivity-click',\n\n // Typography\n 'typography-inherit truncate',\n\n // Theme\n 'theme-foreground-outline',\n 'dark:theme-foreground-outline-dark',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n :disabled=\"disabled\"\n >\n <slot />\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { computed, defineComponent, ref } from 'vue';\n\nimport { SelectPlaceholder } from './styles';\n\nexport default defineComponent({\n name: 'OrSelectPlaceholder',\n\n props: {\n disabled: {\n type: Boolean,\n default: false,\n },\n },\n\n expose: [\n 'root',\n ],\n\n setup() {\n // Refs\n const root = ref<HTMLElement>();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-select-placeholder-v3',\n ...SelectPlaceholder,\n ]);\n\n return {\n root,\n rootStyles,\n };\n },\n});\n</script>\n","export const SelectMultipleControlRoot: string[] = [\n // Layout\n 'layout-row',\n 'w-full',\n];\n\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <OrTags\n v-show=\"!isEmpty || enableSearch\"\n :ref=\"'tags'\"\n :items=\"selection\"\n class=\"grow\"\n :disabled=\"disabled\"\n :tag-props=\"{\n variant: readonly || disabled ? 'tag' : 'reset',\n disabled: disabled\n }\"\n :overflow=\"overflow\"\n @reset=\"$emit('reset', $event)\"\n >\n <template v-slot:tag=\"{item}\">\n <slot\n name=\"tag\"\n :item=\"item\"\n >\n {{ item.label }}\n </slot>\n </template>\n\n <template\n v-if=\"enableSearch\"\n v-slot:tail\n >\n <div class=\"inline-flex w-fit max-w-full\">\n <OrSelectControlInput\n :ref=\"'searchControl'\"\n v-model=\"searchModelValue\"\n :placeholder=\"isEmpty ? placeholder: ''\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n />\n </div>\n </template>\n </OrTags>\n\n <template v-if=\"isEmpty && !enableSearch\">\n <OrSelectPlaceholder :disabled=\"disabled\">\n {{ placeholder }}\n </OrSelectPlaceholder>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useProxyModelValue } from '@onereach/ui-components-common/hooks';\nimport { isEqual, isNil, toArray } from '@onereach/ui-components-common/utils';\nimport { OrTagsV3 as OrTags, Tag, TagsOverflow } from '@onereach/ui-components.or-tags-v3';\nimport { PropType, computed, defineComponent, ref, toRefs, watch } from 'vue';\n\nimport { SelectItem, SelectModelValue } from '../../types';\nimport { OrSelectControlInput } from '../or-select-control-input';\nimport OrSelectPlaceholder from '../or-select-placeholder/OrSelectPlaceholder.vue';\n\nimport { SelectMultipleControlRoot } from './styles';\n\nexport default defineComponent({\n name: 'OrSelectMultipleControl',\n\n components: {\n OrSelectPlaceholder,\n OrSelectControlInput,\n OrTags,\n },\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: String,\n default: '',\n },\n\n model: {\n type: undefined as unknown as PropType<SelectModelValue>,\n default: () => [],\n },\n\n options: {\n type: Array as PropType<SelectItem[]>,\n default: () => [],\n },\n\n overflow: {\n type: String as PropType<`${TagsOverflow}`>,\n default: () => TagsOverflow.Hidden,\n },\n\n placeholder: {\n type: String,\n default: undefined,\n },\n\n readonly: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n enableSearch: {\n type: Boolean,\n default: false,\n },\n\n isOpen: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n 'update:modelValue',\n 'reset',\n ],\n\n expose: [\n 'root',\n\n 'focus',\n 'focused',\n ],\n\n setup(props, context) {\n // Refs\n const root = ref<HTMLDivElement>();\n\n const searchControl = ref<InstanceType<typeof OrSelectControlInput>>();\n const tags = ref<InstanceType<typeof OrTags>>();\n\n // Props\n const { modelValue, model, options, overflow } = toRefs(props);\n\n // State\n const searchModelValue = useProxyModelValue(modelValue, context.emit);\n\n const focused = computed(() => {\n return searchControl.value?.focused;\n });\n\n // Styles\n const rootStyles = computed(() => [\n 'or-select-multiple-control-v3',\n ...SelectMultipleControlRoot,\n ]);\n\n // Computed\n const value = computed(() => isNil(model.value) ? [] : toArray(model.value));\n const isEmpty = computed(() => value.value.length === 0);\n\n const selection = computed(() => {\n if (model.value === undefined || model.value === null) {\n return [];\n }\n\n return value.value\n .map((value) => options.value.find((option) => isEqual(option.value, value)))\n .filter<SelectItem>((value): value is SelectItem => !!value)\n .map((option) => ({\n value: option.value,\n label: option.label,\n tagProps: option.disabled && { disabled: option.disabled },\n } as Tag));\n });\n\n watch(selection, (items, prevItems) => {\n if (items.length != prevItems.length && overflow.value === TagsOverflow.Scroll && tags.value) {\n (tags.value.scrollToEnd as () => void)();\n }\n });\n\n // Methods\n function focus(): void {\n if (searchControl.value) {\n (searchControl.value.focus as () => void)();\n }\n }\n\n return {\n root,\n tags,\n rootStyles,\n searchControl,\n searchModelValue,\n isEmpty,\n selection,\n value,\n focus,\n focused,\n };\n },\n});\n</script>\n","export const SelectSingleControlInput: string[] = [\n // Layout\n 'w-full',\n];\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"isOpen && enableSearch\">\n <OrSelectControlInput\n :ref=\"'searchControl'\"\n v-model=\"searchModelValue\"\n :placeholder=\"isEmptyModelValue ? placeholder : selectionLabel\"\n />\n </template>\n\n <template v-else>\n <template v-if=\"isEmptyModelValue\">\n <OrSelectPlaceholder :disabled=\"disabled\">\n {{ placeholder }}\n </OrSelectPlaceholder>\n </template>\n\n <template v-else>\n <div class=\"flex\">\n <div\n ref=\"selectionLabelRef\"\n class=\"truncate w-full\"\n @mouseenter=\"checkTooltip\"\n @mouseleave=\"closeTooltip\"\n >\n {{ selectionLabel }}\n </div>\n <OrTooltip\n ref=\"tooltipRef\"\n :content=\"selectionLabel\"\n :trigger=\"selectionLabelRef\"\n />\n </div>\n </template>\n </template>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { useProxyModelValue } from '@onereach/ui-components-common/hooks';\nimport { isEmpty, isEqual } from '@onereach/ui-components-common/utils';\nimport { OrTooltipV3 as OrTooltip } from '@onereach/ui-components.or-tooltip-v3';\nimport { PropType, computed, defineComponent, ref, toRefs, watch } from 'vue';\n\n\nimport { SelectItem, SelectModelValue } from '../../types';\nimport OrSelectControlInput from '../or-select-control-input/OrSelectControlInput.vue';\nimport OrSelectPlaceholder from '../or-select-placeholder/OrSelectPlaceholder.vue';\n\n\nimport { SelectSingleControlInput } from './styles';\n\nexport default defineComponent({\n name: 'OrSelectSingleControl',\n\n components: {\n OrSelectPlaceholder,\n OrSelectControlInput,\n OrTooltip,\n },\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: String,\n default: '',\n },\n\n model: {\n type: undefined as unknown as PropType<SelectModelValue>,\n default: undefined,\n },\n\n options: {\n type: Array as PropType<SelectItem[]>,\n default: () => [],\n },\n\n placeholder: {\n type: String,\n default: undefined,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n enableSearch: {\n type: Boolean,\n default: false,\n },\n\n isOpen: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n 'update:modelValue',\n ],\n\n expose: [\n 'root',\n\n 'focus',\n 'focused',\n ],\n\n setup(props, context) {\n // Refs\n const root = ref<HTMLDivElement>();\n const searchControl = ref<InstanceType<typeof OrSelectControlInput>>();\n const selectionLabelRef = ref<HTMLDialogElement>();\n const tooltipRef = ref<InstanceType<typeof OrTooltip>>();\n\n // Props\n const { modelValue, model, options } = toRefs(props);\n\n // State\n const searchModelValue = useProxyModelValue(modelValue, context.emit);\n\n const isEmptyModelValue = computed(() => {\n return isEmpty(model.value);\n });\n\n const selection = computed(() => {\n return options.value.find((option) => isEqual(option.value, model.value));\n });\n\n const selectionLabel = computed(() => {\n return selection.value?.label;\n });\n\n watch(\n () => props.isOpen,\n () => {\n tooltipRef.value?.close();\n },\n );\n\n const focused = computed(() => {\n return searchControl.value?.focused;\n });\n\n const openTooltip = () => {\n if (tooltipRef.value) tooltipRef.value.open();\n };\n\n const closeTooltip = () => {\n if (tooltipRef.value) tooltipRef.value.close();\n };\n\n // Styles\n const rootStyles = computed(() => ([\n 'or-select-single-control-v3',\n ...SelectSingleControlInput,\n ]));\n\n // Methods\n function focus() {\n if (searchControl.value) {\n (searchControl.value.focus as () => void)();\n }\n }\n\n function checkTooltip() {\n if (!selectionLabelRef.value) return; // to prevent fro TS error; normally ref will always be available here since the method is a mouse event callback\n const isContentTruncated = selectionLabelRef.value.scrollWidth > selectionLabelRef.value.clientWidth;\n if (isContentTruncated) openTooltip();\n }\n\n return {\n root,\n rootStyles,\n searchControl,\n searchModelValue,\n isEmptyModelValue,\n selection,\n selectionLabel,\n focus,\n focused,\n selectionLabelRef,\n tooltipRef,\n openTooltip,\n closeTooltip,\n checkTooltip,\n };\n },\n});\n</script>\n","export const Select: string[] = [\n // Layout\n 'layout-column',\n\n // Spacing\n 'gap-xs',\n];\n\nexport const SelectControl: string[] = [\n // Layout\n 'layout-row',\n 'w-full',\n\n // Layout (empty)\n 'empty:hidden',\n\n // Overflow\n 'overflow-hidden',\n\n // Spacing\n 'gap-xs',\n\n // Typography\n 'typography-inherit',\n];\n\nexport const SelectSearchControl: string[] = [\n // Spacing\n '!mx-lg md:!-mx-sm+',\n '!my-sm md:!my-0',\n];\n\nexport const SelectDropdown: string[] = [\n // Overflow\n 'overflow-y-auto',\n\n // Box\n 'max-h-[172px]', // equals 5 items\n\n // Theme\n 'theme-background-default',\n 'dark:theme-background-default-dark',\n\n 'theme-border-outline border-1',\n 'dark:theme-border-outline-dark',\n];\n\nexport const SelectDropdownDefault: string[] = [\n // Shape\n 'rounded-b-md',\n\n // Theme\n '!border-t-0',\n];\n\nexport const SelectDropdownFlipped: string[] = [\n // Shape\n 'rounded-t-md',\n\n // Theme\n '!border-b-0',\n];\n\nexport const SelectDropdownItem: string[] = [\n // Typography\n '!typography-body-2-regular',\n\n // Padding Override todo: check design\n 'md:!pt-[6px] md:!pb-[7px]',\n\n // Typography (selected)\n 'selected:!typography-body-2-semibold',\n\n // Theme\n '!theme-foreground-default dark:!theme-foreground-default-dark',\n];\n\nexport const SelectDropdownItemPaddingSingle = [\n // Padding Override\n '!py-md md:!pt-[6px] md:!pb-[7px]',\n];\n\nexport const SelectDropdownItemPaddingMultiple = [\n // Padding Override\n 'md:!pt-[6px] md:!pb-[7px]',\n];\n\nexport const SelectDropdownItemPaddingMultipleMobile = [\n // Padding Override\n 'px-md',\n];\n\nexport const SelectNoSearchResults: string[] = [\n // Layout\n 'layout-row justify-center',\n\n // Spacing\n 'px-md',\n 'py-md',\n\n // Typography\n 'typography-caption-regular',\n\n // Theme\n 'theme-foreground-outline',\n 'dark:theme-foreground-outline-dark',\n];\n\nexport const SelectLoader: string[] = [\n // Layout\n 'w-fit',\n\n // Typography\n 'typography-body-2-regular',\n\n // Theme\n 'text-outline dark:text-outline-dark',\n];\n\n","<template>\n <div\n :ref=\"'root'\"\n :class=\"rootStyles\"\n >\n <template v-if=\"$slots.label || $slots.addon || label\">\n <OrLabel\n :control-id=\"controlId\"\n :variant=\"'input'\"\n :required=\"required\"\n :disabled=\"disabled\"\n >\n <slot name=\"label\">\n {{ label }}\n </slot>\n\n <template v-slot:addon>\n <slot name=\"addon\" />\n </template>\n </OrLabel>\n </template>\n\n <OrInputBox\n :ref=\"'inputBox'\"\n v-dropdown-open=\"toggle\"\n v-dropdown-close=\"close\"\n class=\"interactivity-click\"\n :class=\"[popoverState === 'open' && (popover && popover.isFlipped ? 'rounded-t-0' : 'rounded-b-0'), { 'outline-none': variant === 'embedded' }]\"\n :variant=\"variant\"\n :size=\"size\"\n :invalid=\"!!error\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n :force-state=\"isOpen ? 'focus-within': undefined\"\n :tabindex=\"!disabled ? 0 : null\"\n >\n <div\n :id=\"controlId\"\n :ref=\"'control'\"\n :class=\"controlStyles\"\n :disabled=\"disabled\"\n @focus=\"$emit('focus', $event)\"\n @blur=\"$emit('blur', $event)\"\n >\n <slot\n name=\"valueTemplate\"\n :model=\"proxyModelValue\"\n >\n <template v-if=\"multiple\">\n <OrSelectMultipleControl\n :ref=\"'multipleControl'\"\n v-model=\"searchText\"\n :model=\"proxyModelValue\"\n :options=\"options\"\n :overflow=\"overflow\"\n :placeholder=\"placeholder\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n :enable-search=\"enableSearch\"\n :is-open=\"popoverState === 'open'\"\n @reset=\"deselectOption($event)\"\n >\n <template v-slot:tag=\"{item}\">\n <slot\n name=\"tag\"\n :item=\"item\"\n />\n </template>\n </OrSelectMultipleControl>\n </template>\n\n <template v-else>\n <OrSelectSingleControl\n :ref=\"'singleControl'\"\n v-model=\"searchText\"\n :model=\"proxyModelValue\"\n :options=\"options\"\n :placeholder=\"placeholder\"\n :disabled=\"disabled\"\n :enable-search=\"enableSearch\"\n :is-open=\"popoverState === 'open'\"\n />\n </template>\n </slot>\n </div>\n\n <div :class=\"['layout-inline-row', 'gap-sm']\">\n <template v-if=\"showClear\">\n <OrIconButton\n :icon=\"'close'\"\n :color=\"'inherit'\"\n :additional-styles=\"['!text-outline', '!dark:text-outline-dark']\"\n :disabled=\"readonly || disabled\"\n @click.stop=\"$emit('update:modelValue', multiple ? [] : undefined)\"\n />\n </template>\n\n <OrIcon\n v-show=\"!(popoverState === 'open' && enableSearch && enableClear && !isEmptyModelValue)\"\n :icon=\"popoverState === 'open' ? enableSearch ? 'search' : 'arrow_drop_up' : 'arrow_drop_down'\"\n :class=\" popoverState === 'open' && enableSearch ? '!text-outline !dark:text-outline-dark' : ''\"\n :variant=\"'outlined'\"\n />\n </div>\n\n <OrPopover\n :ref=\"'popover'\"\n :variant=\"'auto'\"\n :trigger=\"anchor || inputBoxRoot\"\n :placement=\"'bottom'\"\n :offset=\"0\"\n :full-width=\"true\"\n :disable-default-styles=\"true\"\n >\n <div :class=\"dropdownStyles\">\n <template v-if=\"popoverState === 'open' && enableSearch && isMobile\">\n <OrInput\n :ref=\"'searchControl'\"\n v-model=\"searchText\"\n :class=\"searchControlStyles\"\n :type=\"'search'\"\n :placeholder=\"placeholder\"\n />\n </template>\n <div :class=\"dropdownContainerStyles\">\n <template v-if=\"loading\">\n <div :class=\"['px-sm+', 'py-xs']\">\n <slot name=\"loading\">\n <OrLoader\n :class=\"loaderStyles\"\n variant=\"text\"\n :text=\"loadingText\"\n />\n </slot>\n </div>\n </template>\n\n <template v-else-if=\"resolvedSearchOptions.length > 0\">\n <template v-if=\"groupByFunction\">\n <OrExpansionPanel\n v-for=\"(group, groupName) in groupedOptions\"\n :key=\"groupName\"\n :label=\"groupName\"\n >\n <template v-if=\"multiple\">\n <OrMenuItem\n v-for=\"(option, i) in group\"\n :key=\"i\"\n :tooltip-text=\"option.label\"\n :selected=\"proxyModelValue && proxyModelValue.includes(option.value)\"\n :disabled=\"option.disabled\"\n >\n <slot\n name=\"optionTemplate\"\n :model=\"proxyModelValue\"\n :option=\"option\"\n >\n <OrCheckbox\n v-model=\"proxyModelValue\"\n :value=\"option.value\"\n :label=\"option.label\"\n :label-variant=\"'menu-item'\"\n :disabled=\"option.disabled\"\n />\n </slot>\n </OrMenuItem>\n </template>\n\n <template v-else>\n <OrMenuItem\n v-for=\"(option, i) in group\"\n :key=\"i\"\n :class=\"dropdownItemStyles\"\n :tooltip-text=\"option.label\"\n :selected=\"proxyModelValue === option.value\"\n :disabled=\"option.disabled\"\n @click.stop=\"selectOption(option.value)\"\n >\n <slot\n name=\"optionTemplate\"\n :model=\"proxyModelValue\"\n :option=\"option\"\n >\n {{ option.label }}\n </slot>\n </OrMenuItem>\n </template>\n </OrExpansionPanel>\n </template>\n\n <template v-else>\n <template v-if=\"multiple\">\n <OrMenuItem\n v-for=\"(option, i) in resolvedSearchOptions\"\n :key=\"i\"\n :tooltip-text=\"option.label\"\n :class=\"dropdownItemStyles\"\n :selected=\"proxyModelValue && proxyModelValue.includes(option.value)\"\n :disabled=\"option.disabled\"\n :data-value=\"option.value\"\n @click.stop=\"!option.disabled && toggleOption(option.value)\"\n >\n <OrCheckbox\n :model-value=\"proxyModelValue\"\n :value=\"option.value\"\n :label-variant=\"'menu-item'\"\n :disabled=\"option.disabled\"\n >\n <div @click.stop.prevent=\"!option.disabled && toggleOption(option.value)\">\n <slot\n name=\"optionTemplate\"\n :model=\"proxyModelValue\"\n :option=\"option\"\n >\n {{ option.label }}\n </slot>\n </div>\n </OrCheckbox>\n </OrMenuItem>\n </template>\n\n <template v-else>\n <OrMenuItem\n v-for=\"(option, i) in resolvedSearchOptions\"\n :key=\"i\"\n :class=\"dropdownItemStyles\"\n :selected=\"proxyModelValue === option.value\"\n :tooltip-text=\"option.label\"\n :data-value=\"option.value\"\n :disabled=\"option.disabled\"\n @click.stop=\"selectOption(option.value); close()\"\n >\n <slot\n name=\"optionTemplate\"\n :model=\"proxyModelValue\"\n :option=\"option\"\n >\n {{ option.label }}\n </slot>\n </OrMenuItem>\n </template>\n </template>\n </template>\n\n <template v-else>\n <div :class=\"noSearchResultsStyles\">\n <slot\n name=\"noSearchResultsTemplate\"\n :search-text=\"searchText\"\n >\n No results\n </slot>\n </div>\n </template>\n </div>\n </div>\n </OrPopover>\n </OrInputBox>\n\n <template v-if=\"$slots.hint || hint\">\n <OrHint\n v-show=\"!error\"\n :disabled=\"disabled\"\n >\n <slot name=\"hint\">\n {{ hint }}\n </slot>\n </OrHint>\n </template>\n\n <OrError\n v-show=\"typeof error === 'string' && error.length > 0\"\n :disabled=\"disabled\"\n >\n {{ error }}\n </OrError>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { ReferenceElement } from '@floating-ui/dom';\nimport { DropdownClose, DropdownOpen } from '@onereach/ui-components-common/directives';\nimport { searchItemsByLabel } from '@onereach/ui-components-common/helpers';\nimport { useProxyModelValue, useResponsive } from '@onereach/ui-components-common/hooks';\nimport { GroupFunction, SearchFunction } from '@onereach/ui-components-common/types';\nimport { exclude, include, isEmpty, toArray } from '@onereach/ui-components-common/utils';\nimport { OrCheckboxV3 as OrCheckbox } from '@onereach/ui-components.or-checkbox-v3';\nimport { OrErrorV3 as OrError } from '@onereach/ui-components.or-error-v3';\nimport { OrExpansionPanelV3 as OrExpansionPanel } from '@onereach/ui-components.or-expansion-panel-v3';\nimport { OrHintV3 as OrHint } from '@onereach/ui-components.or-hint-v3';\nimport { OrIconButtonV3 as OrIconButton } from '@onereach/ui-components.or-icon-button-v3';\nimport { OrIconV3 as OrIcon } from '@onereach/ui-components.or-icon-v3';\nimport { InputBoxSize, InputBoxVariant, OrInputBoxV3 as OrInputBox } from '@onereach/ui-components.or-input-box-v3';\nimport { OrInputV3 as OrInput } from '@onereach/ui-components.or-input-v3';\nimport { OrLabelV3 as OrLabel } from '@onereach/ui-components.or-label-v3';\nimport { OrLoaderV3 as OrLoader } from '@onereach/ui-components.or-loader-v3';\nimport { OrMenuItemV3 as OrMenuItem } from '@onereach/ui-components.or-menu-item-v3';\nimport { OrPopoverV3 as OrPopover } from '@onereach/ui-components.or-popover-v3';\nimport { TagsOverflow } from '@onereach/ui-components.or-tags-v3';\nimport { computed, defineComponent, getCurrentInstance, PropType, ref, toRefs, watch, nextTick } from 'vue';\n\nimport { OrSelectMultipleControl, OrSelectSingleControl } from './partials';\nimport * as Styles from './styles';\nimport { SelectItem, SelectModelValue } from './types';\n\n\nexport default defineComponent({\n name: 'OrSelect',\n\n components: {\n OrCheckbox,\n OrError,\n OrExpansionPanel,\n OrHint,\n OrIcon,\n OrIconButton,\n OrInput,\n OrInputBox,\n OrLabel,\n OrMenuItem,\n OrPopover,\n OrSelectMultipleControl,\n OrSelectSingleControl,\n OrLoader,\n },\n\n directives: {\n DropdownClose,\n DropdownOpen,\n },\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: undefined as unknown as PropType<SelectModelValue>,\n default: undefined,\n },\n\n options: {\n type: Array as PropType<SelectItem[]>,\n default: () => [],\n },\n\n searchOptions: {\n type: Array as PropType<SelectItem[]>,\n default: () => [],\n },\n\n multiple: {\n type: Boolean,\n default: false,\n },\n\n overflow: {\n type: String as PropType<`${TagsOverflow}`>,\n default: () => TagsOverflow.Hidden,\n },\n\n variant: {\n type: String as PropType<`${InputBoxVariant}`>,\n default: undefined,\n },\n\n size: {\n type: String as PropType<`${InputBoxSize}`>,\n default: undefined,\n },\n\n anchor: {\n type: Object as PropType<ReferenceElement>,\n default: undefined,\n },\n\n label: {\n type: String,\n default: undefined,\n },\n\n placeholder: {\n type: String,\n default: undefined,\n },\n\n hint: {\n type: String,\n default: undefined,\n },\n\n error: {\n type: [String, Boolean],\n default: undefined,\n },\n\n loading: {\n type: Boolean,\n default: false,\n },\n\n loadingText: {\n type: String,\n default: 'Loading',\n },\n\n required: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n enableSearch: {\n type: Boolean,\n default: false,\n },\n\n enableClear: {\n type: Boolean,\n default: false,\n },\n\n searchFunction: {\n type: Function as PropType<SearchFunction<SelectItem>>,\n default: searchItemsByLabel as SearchFunction<SelectItem>,\n },\n\n groupByFunction: {\n type: Function as PropType<GroupFunction<SelectItem>>,\n default: undefined,\n },\n\n externalControl: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n 'update:modelValue',\n\n 'focus',\n 'blur',\n\n 'search',\n ],\n\n expose: [\n 'root',\n\n 'open',\n 'close',\n 'toggle',\n\n 'toggleOption',\n 'resetSearch',\n\n 'popover',\n 'popoverState',\n ],\n\n setup(props, context) {\n const currentInstance = getCurrentInstance()!;\n\n // Refs\n const root = ref<HTMLElement>();\n\n const inputBox = ref<InstanceType<typeof OrInputBox>>();\n const inputBoxRoot = computed(() => inputBox.value?.root);\n\n const control = ref<HTMLElement>();\n const multipleControl = ref<InstanceType<typeof OrSelectMultipleControl>>();\n const singleControl = ref<InstanceType<typeof OrSelectSingleControl>>();\n const searchControl = ref<HTMLElement>();\n\n const popover = ref<InstanceType<typeof OrPopover>>();\n\n const popoverRoot = computed(() => popover.value?.root);\n const popoverState = computed(() => popover.value?.state);\n\n const isOpen = computed(() => popoverState.value === 'open');\n\n // Props\n const { enableClear, enableSearch, modelValue, multiple } = toRefs(props);\n\n // State\n const controlId = ref(context.attrs.id as string ?? currentInstance.uid.toString());\n\n const proxyModelValue = useProxyModelValue(modelValue, context.emit);\n\n const bottomSheetFullscreen = computed(() => {\n return popover.value?.bottomSheet?.fullscreen;\n });\n\n const isEmptyModelValue = computed(() => {\n return isEmpty(proxyModelValue.value);\n });\n\n const showClear = computed(() => {\n return enableClear.value && !isEmptyModelValue.value;\n });\n\n\n const focused = computed(() => {\n if (multiple.value) {\n return multipleControl.value?.focused;\n } else {\n return singleControl.value?.focused;\n }\n });\n\n const readonly = computed(() => context.attrs.readonly as boolean);\n\n const internalSearchOptions = ref<SelectItem[]>(props.options);\n\n const resolvedSearchOptions = computed(() => {\n return props.externalControl ? props.searchOptions : internalSearchOptions.value;\n });\n\n const searchText = ref<string>('');\n\n watch([\n () => props.externalControl,\n searchText,\n () => props.options,\n ], async ([externalControl, searchText, options]) => {\n if (externalControl) {\n context.emit('search', searchText);\n } else {\n internalSearchOptions.value = await props.searchFunction(searchText, options);\n }\n }, { deep: true });\n\n\n watch(isOpen, (value) => {\n if (!value) {\n resetSearch();\n }\n });\n\n const groupedOptions = computed(() => {\n const groupBy = props.groupByFunction;\n\n if (groupBy) {\n return internalSearchOptions.value.reduce((accumulator, option) => {\n const group = groupBy(option);\n\n return {\n ...accumulator,\n [group]: [\n ...accumulator[group] ?? [],\n option,\n ],\n };\n }, {} as Record<string, SelectItem[]>);\n }\n\n return {\n '': props.options,\n };\n });\n\n // Styles\n const rootStyles = computed(() => [\n 'or-select-v3',\n ...Styles.Select,\n ...props.variant === InputBoxVariant.Embedded ? ['grow'] : [],\n ]);\n\n const controlStyles = computed(() => [\n ...Styles.SelectControl,\n ]);\n\n const searchControlStyles = computed(() => [\n ...Styles.SelectSearchControl,\n ]);\n\n const dropdownStyles = computed(() => [\n 'or-select-popover-v3',\n ...(isMobile.value ? [] : [\n ...Styles.SelectDropdown,\n ...popover.value?.isFlipped ? Styles.SelectDropdownFlipped : Styles.SelectDropdownDefault,\n ]),\n ]);\n\n const dropdownContainerStyles = computed(() => [\n isMobile.value ? 'layout-column' : 'contains',\n bottomSheetFullscreen.value ? 'overflow-y-auto' : 'overflow-hidden',\n ]);\n\n const dropdownItemStyles = computed(() => [\n ...Styles.SelectDropdownItem,\n ...(props.multiple ? Styles.SelectDropdownItemPaddingMultiple : Styles.SelectDropdownItemPaddingSingle),\n ...(isMobile.value ? Styles.SelectDropdownItemPaddingMultipleMobile : []),\n ]);\n\n const noSearchResultsStyles = computed(() => [\n ...Styles.SelectNoSearchResults,\n ]);\n\n const loaderStyles = computed(() => [\n ...Styles.SelectLoader,\n ]);\n\n // Methods\n function toggle(): void {\n if (!readonly.value && !props.disabled) {\n const popoverInstance = popover.value;\n\n if (popoverInstance) {\n if (popoverState.value === 'open' && !focused.value) {\n close();\n } else {\n open();\n\n setTimeout(() => {\n focus();\n });\n }\n }\n }\n }\n\n function open(): void {\n nextTick(() => {\n const popoverInstance = popover.value;\n if (popoverInstance) {\n (popoverInstance.open as () => void)();\n }\n if (proxyModelValue.value) {\n const value = Array.isArray(proxyModelValue.value) ? proxyModelValue.value[0] : proxyModelValue.value;\n const selectedOptionElement = document.querySelector(`[data-value=\"${value}\"]`);\n if (selectedOptionElement) {\n setTimeout(() => {\n selectedOptionElement.scrollIntoView({\n behavior: 'auto',\n block: 'start',\n });\n });\n }\n }\n });\n }\n\n function close(): void {\n const popoverInstance = popover.value;\n\n if (popoverInstance) {\n (popoverInstance.close as () => void)();\n }\n }\n\n function focus(): void {\n if (enableSearch.value) {\n const controlInstance = isMobile.value\n ? searchControl.value\n : multiple.value\n ? multipleControl.value\n : singleControl.value;\n\n if (controlInstance) {\n (controlInstance.focus as () => void)();\n }\n }\n }\n\n function selectOption(value: SelectItem['value']): void {\n if (props.multiple) {\n proxyModelValue.value = include(value, toArray(proxyModelValue.value));\n } else {\n proxyModelValue.value = value;\n }\n\n resetSearch();\n }\n\n function deselectOption(value: SelectItem['value']): void {\n if (props.multiple) {\n proxyModelValue.value = exclude(value, toArray(proxyModelValue.value));\n } else {\n proxyModelValue.value = undefined;\n }\n }\n\n function toggleOption(value: SelectItem['value']): void {\n if (props.multiple) {\n const model = toArray(proxyModelValue.value);\n\n if (!model.includes(value)) {\n proxyModelValue.value = include(value, model);\n } else {\n proxyModelValue.value = exclude(value, model);\n }\n } else {\n proxyModelValue.value = proxyModelValue.value !== value ? value : undefined;\n }\n\n resetSearch();\n }\n\n function resetSearch(): void {\n nextTick(() => {\n setTimeout(() => searchText.value = '');\n });\n }\n\n // Utils\n const { isDesktop, isMobile } = useResponsive();\n\n return {\n root,\n inputBox,\n inputBoxRoot,\n control,\n multipleControl,\n singleControl,\n searchControl,\n popover,\n popoverRoot,\n popoverState,\n rootStyles,\n controlStyles,\n searchControlStyles,\n dropdownStyles,\n dropdownContainerStyles,\n dropdownItemStyles,\n noSearchResultsStyles,\n loaderStyles,\n controlId,\n proxyModelValue,\n readonly,\n isEmptyModelValue,\n isOpen,\n showClear,\n searchText,\n internalSearchOptions,\n resolvedSearchOptions,\n groupedOptions,\n\n toggle,\n close,\n open,\n\n selectOption,\n deselectOption,\n toggleOption,\n resetSearch,\n\n isDesktop,\n isMobile,\n };\n },\n});\n</script>\n"],"names":["SelectControlInput","_sfc_main$4","defineComponent","props","context","root","ref","placeholder","modelValue","toRefs","proxyModelValue","useProxyModelValue","focused","useFocus","controlStyles","computed","controlInlineStyles","chars","_a","focus","_sfc_render","_ctx","_cache","$props","$setup","$data","$options","_withDirectives","_openBlock","_createElementBlock","$event","_normalizeStyle","SelectPlaceholder","_sfc_main$3","rootStyles","_normalizeClass","SelectMultipleControlRoot","_sfc_main$2","OrSelectPlaceholder","OrSelectControlInput","OrTags","TagsOverflow","searchControl","tags","model","options","overflow","searchModelValue","value","isNil","toArray","isEmpty","selection","option","isEqual","watch","items","prevItems","_resolveComponent","_createVNode","_component_OrTags","_createSlots","_withCtx","item","_createElementVNode","_hoisted_1","_component_OrSelectControlInput","_vShow","_createBlock","_component_OrSelectPlaceholder","SelectSingleControlInput","_sfc_main$1","OrTooltip","selectionLabelRef","tooltipRef","isEmptyModelValue","selectionLabel","openTooltip","closeTooltip","checkTooltip","_Fragment","args","_toDisplayString","_component_OrTooltip","Select","SelectControl","SelectSearchControl","SelectDropdown","SelectDropdownDefault","SelectDropdownFlipped","SelectDropdownItem","SelectDropdownItemPaddingSingle","SelectDropdownItemPaddingMultiple","SelectDropdownItemPaddingMultipleMobile","SelectNoSearchResults","SelectLoader","_sfc_main","OrCheckbox","OrError","OrExpansionPanel","OrHint","OrIcon","OrIconButton","OrInput","OrInputBox","OrLabel","OrMenuItem","OrPopover","OrSelectMultipleControl","OrSelectSingleControl","OrLoader","DropdownClose","DropdownOpen","searchItemsByLabel","currentInstance","getCurrentInstance","inputBox","inputBoxRoot","control","multipleControl","singleControl","popover","popoverRoot","popoverState","isOpen","enableClear","enableSearch","multiple","controlId","bottomSheetFullscreen","_b","showClear","readonly","internalSearchOptions","resolvedSearchOptions","searchText","externalControl","resetSearch","groupedOptions","groupBy","accumulator","group","Styles.Select","InputBoxVariant","Styles.SelectControl","searchControlStyles","Styles.SelectSearchControl","dropdownStyles","isMobile","Styles.SelectDropdown","Styles.SelectDropdownFlipped","Styles.SelectDropdownDefault","dropdownContainerStyles","dropdownItemStyles","Styles.SelectDropdownItem","Styles.SelectDropdownItemPaddingMultiple","Styles.SelectDropdownItemPaddingSingle","Styles.SelectDropdownItemPaddingMultipleMobile","noSearchResultsStyles","Styles.SelectNoSearchResults","loaderStyles","Styles.SelectLoader","toggle","close","open","nextTick","popoverInstance","selectedOptionElement","controlInstance","selectOption","include","deselectOption","exclude","toggleOption","isDesktop","useResponsive","_hoisted_3","_resolveDirective","_component_OrLabel","_renderSlot","_createCommentVNode","_component_OrInputBox","_component_OrSelectMultipleControl","_component_OrSelectSingleControl","_hoisted_2","_component_OrIconButton","_component_OrIcon","_component_OrPopover","_component_OrInput","_component_OrLoader","_renderList","groupName","_component_OrExpansionPanel","i","_component_OrMenuItem","_withModifiers","_component_OrCheckbox","_directive_dropdown_open","_directive_dropdown_close","_component_OrHint","_component_OrError"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAO,MAAMA,KAA+B;AAAA;AAAA,EAE1C;AAAA;AAAA,EAGA;AAAA;AAAA,EAGA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GCWAC,KAAeC,EAAgB;AAAA,EAC7B,MAAM;AAAA,EAEN,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EAEA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,aAAa;AAAA,MACX,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,IAEA,UAAU;AAAA,MACR,MAAM;AAAA,MACN,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EAEA,OAAO;AAAA,IACL;AAAA,EACF;AAAA,EAEA,QAAQ;AAAA,IACN;AAAA,IAEA;AAAA,IACA;AAAA,EACF;AAAA,EAEA,MAAMC,GAAOC,GAAS;AAEpB,UAAMC,IAAOC,KAGP,EAAE,aAAAC,GAAa,YAAAC,EAAW,IAAIC,GAAON,CAAK,GAG1CO,IAAkBC,GAAmBH,GAAYJ,EAAQ,IAAI,GAC7D,EAAE,SAAAQ,EAAA,IAAYC,GAASR,CAAI,GAG3BS,IAAgBC,EAAS,MAAM;AAAA,MACnC,GAAGf;AAAA,IAAA,CACJ,GAE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;AAAA,oBAAA,GAAA;AAAA,+BAJCyC,EAAE,MAAA;AAAA,wBAAAqH,EACC9J,EAAM,QAAA,kBAAA;AAAA,0BAGV,OAAAA,EAAA;AAAA,0BAAA,QAAAgC;AAAA;;;;;;;gCAOAxB,EAAA,OAAA;AAAA,kBAAA,KAAA;AAAA,kBACX,OAKOM,EAAAd,EAAA,qBAAA;AAAA,gBAAA,GAAA;AAAA;;;;;;;;;;;uCAlOC,WAAK,YAAA,YAAA,eAAA,UAAA,CAAA,IAAA;AAAA,MAAA,CAAAgL,IAAAhL,EAAA,MAAA;AAAA,MA0OT,CAAmBiL,GAAAjL,EAAA,KAAA;AAAA,IAAA,CAAA;AAAA,iCAGpBO,EAAQ,GAAAwC,EAAAmI,GAAA;AAAA,MAAA,KAAA;AAAA;;;;;;;;;;IAYV,CAAA,IAAAnB,EAAA,IAAA,EAAA;AAAA,IAAHzJ,EAAAgC,EAAA6I,GAAA,EAAA,UAAAnL,EAAA,YAAA;AAAA,MAAA,SAAAyC,EAAA,MAAA;AAAA;;;;;;;;;"}
@@ -19,7 +19,7 @@ import { EditorState as X } from "@codemirror/state";
19
19
  import { O as Z } from "../OrCombinedInput-BNkXzDBe.mjs";
20
20
  import { C as $, O as rr } from "../OrConfirm-DEfngEi9.mjs";
21
21
  import { O as or } from "../OrContextMenu-BJ4R2qpI.mjs";
22
- import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as ur } from "../OrDataGrid-BYojYWqx.mjs";
22
+ import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as ur } from "../OrDataGrid-BAfTYVHn.mjs";
23
23
  import { O as Pr } from "../OrDateFormat-tizCaRnI.mjs";
24
24
  import { O as gr } from "../OrDatePicker-B_N24Q-T.mjs";
25
25
  import { O as Gr } from "../OrDateRangePicker-B1WDbBMb.mjs";
@@ -70,7 +70,7 @@ import { F as Oe, O as ie, R as pe, a as me } from "../OrRichTextEditor-D0UmlBKz
70
70
  import { O as xe, R as Ve } from "../OrRichTooltip-8ybIdsqK.mjs";
71
71
  import { O as le } from "../OrSearch-CRFuNmg2.mjs";
72
72
  import { O as de, S as ce } from "../OrSegmentedControl-DfPHDw7E.mjs";
73
- import { O as Ce } from "../OrSelect-Ch1X9fVC.mjs";
73
+ import { O as Ce } from "../OrSelect-ZitJ7RzV.mjs";
74
74
  import { O as ue, S as be } from "../props-Dx-rjh3U.mjs";
75
75
  import { b as Ie, O as ge, a as ke } from "../OrSkeletonArea-fMhHFyo1.mjs";
76
76
  import { O as Re } from "../OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
@@ -1,4 +1,4 @@
1
- import { D as e, a as t, b as d, o as i, m as o, e as l, c as D, d as s, p as G, h as O, f as b, g as T, k as n, i as C, j as w, l as F, n as H, O as R } from "../../OrDataGrid-BYojYWqx.mjs";
1
+ import { D as e, a as t, b as d, o as i, m as o, e as l, c as D, d as s, p as G, h as O, f as b, g as T, k as n, i as C, j as w, l as F, n as H, O as R } from "../../OrDataGrid-BAfTYVHn.mjs";
2
2
  export {
3
3
  e as DataGridVariant,
4
4
  t as OrDataGridFooter,
@@ -1,4 +1,4 @@
1
- import { O as o } from "../../OrSelect-Ch1X9fVC.mjs";
1
+ import { O as o } from "../../OrSelect-ZitJ7RzV.mjs";
2
2
  export {
3
3
  o as OrSelectV3
4
4
  };
@@ -19,7 +19,7 @@ import { EditorState as X } from "@codemirror/state";
19
19
  import { O as Z } from "./OrCombinedInput-BNkXzDBe.mjs";
20
20
  import { C as $, O as rr } from "./OrConfirm-DEfngEi9.mjs";
21
21
  import { O as or } from "./OrContextMenu-BJ4R2qpI.mjs";
22
- import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as ur } from "./OrDataGrid-BYojYWqx.mjs";
22
+ import { D as tr, a as sr, b as Or, o as ir, m as pr, e as mr, c as nr, d as xr, p as Vr, h as fr, f as lr, g as Tr, k as dr, i as cr, j as Dr, l as Cr, n as Sr, O as ur } from "./OrDataGrid-BAfTYVHn.mjs";
23
23
  import { O as Pr } from "./OrDateFormat-tizCaRnI.mjs";
24
24
  import { O as gr } from "./OrDatePicker-B_N24Q-T.mjs";
25
25
  import { O as Gr } from "./OrDateRangePicker-B1WDbBMb.mjs";
@@ -70,7 +70,7 @@ import { F as Oe, O as ie, R as pe, a as me } from "./OrRichTextEditor-D0UmlBKz.
70
70
  import { O as xe, R as Ve } from "./OrRichTooltip-8ybIdsqK.mjs";
71
71
  import { O as le } from "./OrSearch-CRFuNmg2.mjs";
72
72
  import { O as de, S as ce } from "./OrSegmentedControl-DfPHDw7E.mjs";
73
- import { O as Ce } from "./OrSelect-Ch1X9fVC.mjs";
73
+ import { O as Ce } from "./OrSelect-ZitJ7RzV.mjs";
74
74
  import { O as ue, S as be } from "./props-Dx-rjh3U.mjs";
75
75
  import { b as Ie, O as ge, a as ke } from "./OrSkeletonArea-fMhHFyo1.mjs";
76
76
  import { O as Re } from "./OrSkeletonArea.vue_vue_type_script_lang-jgRhbZ0X.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/ui-components",
3
- "version": "25.3.4",
3
+ "version": "25.3.5-beta.5816.0",
4
4
  "description": "Vue components library for v3",
5
5
  "license": "Apache-2.0",
6
6
  "sideEffects": false,
@@ -46,8 +46,8 @@
46
46
  "@codemirror/view": "^6",
47
47
  "@floating-ui/dom": "1.5.3",
48
48
  "@lezer/highlight": "*",
49
- "@onereach/styles": "^25.3.4",
50
- "@onereach/ui-components-common": "^25.3.4",
49
+ "@onereach/styles": "^25.3.5-beta.5816.0",
50
+ "@onereach/ui-components-common": "^25.3.5-beta.5816.0",
51
51
  "@splidejs/splide": "4.0.6",
52
52
  "@tiptap/core": "2.0.3",
53
53
  "@tiptap/extension-blockquote": "2.0.3",
@@ -102,6 +102,5 @@
102
102
  "publishConfig": {
103
103
  "access": "public"
104
104
  },
105
- "npmUnpacked": "4.15.2",
106
- "gitHead": "a2a5b7d2a84df62375ef776926471fc27713d8a7"
105
+ "npmUnpacked": "4.15.2"
107
106
  }