@onereach/ui-components 22.2.0-beta.5480.0 → 22.2.0-beta.5482.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.
@@ -1,6 +1,6 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("input[data-v-e2132f34]{min-width:0;background:none;outline:none}")),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();
2
- import { onClickOutside as le } from "@vueuse/core";
3
- import { defineComponent as re, ref as f, toRefs as ae, computed as d, reactive as ne, watch as de, nextTick as A, resolveComponent as p, openBlock as B, createElementBlock as se, normalizeClass as E, createBlock as P, withCtx as r, renderSlot as v, createTextVNode as m, toDisplayString as i, createCommentVNode as D, createVNode as w, createSlots as I, createElementVNode as R, withDirectives as q, mergeProps as ie, withKeys as ue, vModelDynamic as pe, vShow as U } from "vue";
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode("input[data-v-8227a0f7]{min-width:0;background:none;outline:none}")),document.head.appendChild(e)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();
2
+ import { onClickOutside as te } from "@vueuse/core";
3
+ import { defineComponent as le, ref as f, toRefs as ae, computed as d, reactive as re, watch as de, nextTick as R, resolveComponent as p, openBlock as B, createElementBlock as se, normalizeClass as A, createBlock as E, withCtx as l, renderSlot as v, createTextVNode as m, toDisplayString as i, createCommentVNode as N, createVNode as w, createSlots as I, createElementVNode as K, withDirectives as P, mergeProps as ie, withKeys as ue, vModelDynamic as pe, vShow as U } from "vue";
4
4
  import { useResponsive as fe, useIdAttribute as ve, useControlAttributes as me, useValidationAttributes as ye, useProxyModelValue as ge } from "@onereach/ui-components-common/hooks";
5
5
  import { toArray as be, include as ce, exclude as he } from "@onereach/ui-components-common/utils";
6
6
  import { O as Oe } from "./OrError-B5ihH6-3.mjs";
@@ -12,13 +12,13 @@ import { O as ke } from "./OrLabel-DssheqEn.mjs";
12
12
  import { O as Se } from "./OrLoader-2SaTMxmZ.mjs";
13
13
  import { a as j } from "./OrTag-Bixe0EQq.mjs";
14
14
  import { O as $e, T as G } from "./OrTags-CS0bcLtx.mjs";
15
- import { _ as Le } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
16
- const Me = [
15
+ import { _ as Te } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
16
+ const Le = [
17
17
  // Layout
18
18
  "layout-column",
19
19
  // Spacing
20
20
  "gap-xs"
21
- ], Ce = [
21
+ ], Me = [
22
22
  // Layout
23
23
  // 'flex-auto',
24
24
  // Typography
@@ -26,10 +26,14 @@ const Me = [
26
26
  // Theme (placeholder)
27
27
  "placeholder:theme-foreground-outline",
28
28
  "dark:placeholder:theme-foreground-outline-dark"
29
- ], Te = [
29
+ ], Ce = [
30
30
  // Box
31
31
  "!min-h-0"
32
- ], Ae = re({
32
+ ], Re = [
33
+ "rounded-t-0"
34
+ ], Ae = [
35
+ "rounded-b-0"
36
+ ], Ee = le({
33
37
  name: "OrTagInput",
34
38
  components: {
35
39
  OrError: Oe,
@@ -101,6 +105,14 @@ const Me = [
101
105
  saveOnBlur: {
102
106
  type: Boolean,
103
107
  default: !1
108
+ },
109
+ nonRoundedTop: {
110
+ type: Boolean,
111
+ default: !1
112
+ },
113
+ nonRoundedBottom: {
114
+ type: Boolean,
115
+ default: !1
104
116
  }
105
117
  },
106
118
  emits: [
@@ -120,23 +132,25 @@ const Me = [
120
132
  "blur",
121
133
  "activate"
122
134
  ],
123
- setup(e, t) {
124
- const H = f(), g = f(), V = f(), b = f(), { modelValue: k, overflow: S, placeholder: $, disabled: y, readonly: c, saveOnBlur: L } = ae(e), { isMobile: M } = fe(), l = d(() => [
135
+ setup(e, n) {
136
+ const D = f(), g = f(), V = f(), b = f(), { modelValue: k, overflow: S, placeholder: $, disabled: y, readonly: c, saveOnBlur: T } = ae(e), { isMobile: L } = fe(), t = d(() => [
125
137
  "or-tag-input-v3",
126
- ...Me,
138
+ ...Le,
127
139
  ...e.variant === Ve.Embedded ? ["grow"] : []
128
140
  ]), J = d(() => [
129
- ...Ce
141
+ ...Me
130
142
  ]), Q = d(() => [
131
- ...Te
143
+ ...Ce
132
144
  ]), W = d(() => [
133
145
  "interactivity-select",
134
- ...e.additionalInputBoxStyles
135
- ]), N = ne({
146
+ ...e.additionalInputBoxStyles,
147
+ ...e.nonRoundedTop ? Re : [],
148
+ ...e.nonRoundedBottom ? Ae : []
149
+ ]), q = re({
136
150
  id: ve(),
137
151
  ...me(),
138
152
  ...ye()
139
- }), u = f(!1), n = ge(k, t.emit), s = f(), X = d(() => be(n.value).map((o) => ({
153
+ }), u = f(!1), r = ge(k, n.emit), s = f(), X = d(() => be(r.value).map((o) => ({
140
154
  label: o,
141
155
  value: o,
142
156
  tagProps: {
@@ -144,8 +158,8 @@ const Me = [
144
158
  }
145
159
  }))), h = d(() => {
146
160
  var o;
147
- return ((o = n.value) == null ? void 0 : o.length) ?? 0;
148
- }), C = d(() => N.maxlength), Y = d(() => {
161
+ return ((o = r.value) == null ? void 0 : o.length) ?? 0;
162
+ }), M = d(() => q.maxlength), Y = d(() => {
149
163
  var a;
150
164
  const o = s.value ? s.value.length : h.value === 0 ? ((a = $.value) == null ? void 0 : a.length) ?? 0 : 0;
151
165
  return {
@@ -155,97 +169,97 @@ const Me = [
155
169
  variant: c.value || y.value || !u.value ? "tag" : "reset",
156
170
  disabled: y.value
157
171
  }));
158
- function T() {
172
+ function C() {
159
173
  var o;
160
174
  (o = g.value) == null || o.focus();
161
175
  }
162
- function z() {
176
+ function H() {
163
177
  var o;
164
178
  (o = g.value) == null || o.blur();
165
179
  }
166
- function F() {
167
- u.value = !1, A(() => z()), t.emit("blur");
180
+ function z() {
181
+ u.value = !1, R(() => H()), n.emit("blur");
168
182
  }
169
183
  function _() {
170
- y.value || c.value || (u.value || (u.value = !0, t.emit("focus")), A(() => T()));
184
+ y.value || c.value || (u.value || (u.value = !0, n.emit("focus")), R(() => C()));
171
185
  }
172
- function K() {
186
+ function F() {
173
187
  var a;
174
188
  const o = s.value;
175
- o && ((a = n.value) != null && a.includes(o) || C.value && h.value >= C.value || (n.value = ce(o, n.value ?? []), s.value = "", A(() => T())));
189
+ o && ((a = r.value) != null && a.includes(o) || M.value && h.value >= M.value || (r.value = ce(o, r.value ?? []), s.value = "", R(() => C())));
176
190
  }
177
191
  function ee(o) {
178
- n.value = he(o, n.value ?? []);
192
+ r.value = he(o, r.value ?? []);
179
193
  }
180
194
  function oe() {
181
- n.value = [], s.value = "", t.emit("reset");
195
+ r.value = [], s.value = "", n.emit("reset");
182
196
  }
183
- function te() {
197
+ function ne() {
184
198
  s.value = "";
185
199
  }
186
- return le(V, () => {
200
+ return te(V, () => {
187
201
  var o, a;
188
- u.value === !1 || ((a = (o = b.value) == null ? void 0 : o.overflowPopover) == null ? void 0 : a.state) === "open" || (L.value && K(), F());
189
- }), de(n, (o, a) => {
202
+ u.value === !1 || ((a = (o = b.value) == null ? void 0 : o.overflowPopover) == null ? void 0 : a.state) === "open" || (T.value && F(), z());
203
+ }), de(r, (o, a) => {
190
204
  var O;
191
205
  S.value === G.Scroll && (o == null ? void 0 : o.length) !== (a == null ? void 0 : a.length) && ((O = b.value) == null ? void 0 : O.scrollToEnd).call(O);
192
206
  }), {
193
- root: H,
207
+ root: D,
194
208
  control: g,
195
209
  inputBox: V,
196
210
  tags: b,
197
- rootStyles: l,
211
+ rootStyles: t,
198
212
  controlStyles: J,
199
213
  itemStyles: Q,
200
214
  inputBoxStyles: W,
201
215
  controlInlineStyles: Y,
202
- controlAttributes: N,
203
- proxyModelValue: n,
216
+ controlAttributes: q,
217
+ proxyModelValue: r,
204
218
  draftModelValue: s,
205
219
  tagsItems: X,
206
220
  tagsProps: x,
207
221
  currentLength: h,
208
- maxLength: C,
222
+ maxLength: M,
209
223
  activated: u,
210
224
  showControl: Z,
211
- isMobile: M,
212
- focus: T,
213
- blur: z,
214
- add: K,
225
+ isMobile: L,
226
+ focus: C,
227
+ blur: H,
228
+ add: F,
215
229
  activate: _,
216
- deactivate: F,
230
+ deactivate: z,
217
231
  remove: ee,
218
232
  reset: oe,
219
- clear: te
233
+ clear: ne
220
234
  };
221
235
  }
222
- }), Ee = { class: "inline-flex w-fit max-w-full" }, Pe = ["placeholder", "readonly", "disabled"];
223
- function De(e, t, H, g, V, b) {
224
- const k = p("OrLabel"), S = p("OrTags"), $ = p("OrLoader"), y = p("OrIconButton"), c = p("OrInputBox"), L = p("OrHint"), M = p("OrError");
236
+ }), Ne = { class: "inline-flex w-fit max-w-full" }, Pe = ["placeholder", "readonly", "disabled"];
237
+ function De(e, n, D, g, V, b) {
238
+ const k = p("OrLabel"), S = p("OrTags"), $ = p("OrLoader"), y = p("OrIconButton"), c = p("OrInputBox"), T = p("OrHint"), L = p("OrError");
225
239
  return B(), se("div", {
226
240
  ref: "root",
227
- class: E(e.rootStyles)
241
+ class: A(e.rootStyles)
228
242
  }, [
229
- e.$slots.label || e.$slots.addon || e.label ? (B(), P(k, {
243
+ e.$slots.label || e.$slots.addon || e.label ? (B(), E(k, {
230
244
  key: 0,
231
245
  "control-id": e.controlAttributes.id,
232
246
  variant: "input",
233
247
  required: e.required,
234
248
  disabled: e.disabled
235
249
  }, {
236
- addon: r(() => [
250
+ addon: l(() => [
237
251
  v(e.$slots, "addon", {}, void 0, !0)
238
252
  ]),
239
- default: r(() => [
253
+ default: l(() => [
240
254
  v(e.$slots, "label", {}, () => [
241
255
  m(i(e.label), 1)
242
256
  ], !0)
243
257
  ]),
244
258
  _: 3
245
- }, 8, ["control-id", "required", "disabled"])) : D("", !0),
259
+ }, 8, ["control-id", "required", "disabled"])) : N("", !0),
246
260
  w(c, {
247
261
  ref: "inputBox",
248
- class: E(e.inputBoxStyles),
262
+ class: A(e.inputBoxStyles),
249
263
  variant: e.variant,
250
264
  invalid: !!e.error,
251
265
  readonly: e.readonly,
@@ -254,29 +268,29 @@ function De(e, t, H, g, V, b) {
254
268
  "force-state": e.activated ? "focus-within" : void 0,
255
269
  onFocus: e.activate
256
270
  }, I({
257
- default: r(() => [
271
+ default: l(() => [
258
272
  w(S, {
259
273
  ref: "tags",
260
- class: E(["grow"]),
274
+ class: A(["grow"]),
261
275
  items: e.tagsItems,
262
276
  disabled: e.disabled,
263
277
  "tag-props": e.tagsProps,
264
278
  overflow: e.overflow,
265
- onReset: t[6] || (t[6] = (l) => e.remove(l))
279
+ onReset: n[6] || (n[6] = (t) => e.remove(t))
266
280
  }, I({
267
- tag: r(({ item: l }) => [
268
- v(e.$slots, "tag", { item: l }, () => [
269
- m(i(l.label), 1)
281
+ tag: l(({ item: t }) => [
282
+ v(e.$slots, "tag", { item: t }, () => [
283
+ m(i(t.label), 1)
270
284
  ], !0)
271
285
  ]),
272
286
  _: 2
273
287
  }, [
274
288
  e.showControl ? {
275
289
  name: "tail",
276
- fn: r(() => [
277
- R("div", Ee, [
278
- q(R("input", ie({ ref: "control" }, e.controlAttributes, {
279
- "onUpdate:modelValue": t[0] || (t[0] = (l) => e.draftModelValue = l),
290
+ fn: l(() => [
291
+ K("div", Ne, [
292
+ P(K("input", ie({ ref: "control" }, e.controlAttributes, {
293
+ "onUpdate:modelValue": n[0] || (n[0] = (t) => e.draftModelValue = t),
280
294
  class: e.controlStyles,
281
295
  style: e.controlInlineStyles,
282
296
  type: "text",
@@ -286,13 +300,13 @@ function De(e, t, H, g, V, b) {
286
300
  autocomplete: "off",
287
301
  minlength: void 0,
288
302
  maxlength: void 0,
289
- onInput: t[1] || (t[1] = (l) => e.$emit("input", l)),
303
+ onInput: n[1] || (n[1] = (t) => e.$emit("input", t)),
290
304
  onKeydown: [
291
- t[2] || (t[2] = (l) => e.$emit("keydown", l)),
292
- t[3] || (t[3] = ue((l) => e.add(), ["enter"]))
305
+ n[2] || (n[2] = (t) => e.$emit("keydown", t)),
306
+ n[3] || (n[3] = ue((t) => e.add(), ["enter"]))
293
307
  ],
294
- onKeyup: t[4] || (t[4] = (l) => e.$emit("keyup", l)),
295
- onFocus: t[5] || (t[5] = (...l) => e.activate && e.activate(...l))
308
+ onKeyup: n[4] || (n[4] = (t) => e.$emit("keyup", t)),
309
+ onFocus: n[5] || (n[5] = (...t) => e.activate && e.activate(...t))
296
310
  }), null, 16, Pe), [
297
311
  [
298
312
  pe,
@@ -311,20 +325,20 @@ function De(e, t, H, g, V, b) {
311
325
  }, [
312
326
  e.$slots.prependInner ? {
313
327
  name: "prepend",
314
- fn: r(() => [
328
+ fn: l(() => [
315
329
  v(e.$slots, "prependInner", {}, void 0, !0)
316
330
  ]),
317
331
  key: "0"
318
332
  } : void 0,
319
333
  e.$slots.appendInner ? {
320
334
  name: "addon",
321
- fn: r(() => [
335
+ fn: l(() => [
322
336
  v(e.$slots, "appendInner", {}, void 0, !0)
323
337
  ]),
324
338
  key: "1"
325
339
  } : e.loading ? {
326
340
  name: "addon",
327
- fn: r(() => [
341
+ fn: l(() => [
328
342
  w($, {
329
343
  variant: "circular",
330
344
  color: e.error ? "danger" : "primary",
@@ -334,22 +348,22 @@ function De(e, t, H, g, V, b) {
334
348
  key: "2"
335
349
  } : e.enableClear && !e.readonly && !e.disabled ? {
336
350
  name: "addon",
337
- fn: r(() => [
338
- e.proxyModelValue && e.proxyModelValue.length > 0 || e.draftModelValue ? (B(), P(y, {
351
+ fn: l(() => [
352
+ e.proxyModelValue && e.proxyModelValue.length > 0 || e.draftModelValue ? (B(), E(y, {
339
353
  key: 0,
340
354
  icon: "close",
341
355
  color: "inherit",
342
- onClick: t[7] || (t[7] = (l) => e.reset())
343
- })) : D("", !0)
356
+ onClick: n[7] || (n[7] = (t) => e.reset())
357
+ })) : N("", !0)
344
358
  ]),
345
359
  key: "3"
346
360
  } : void 0
347
361
  ]), 1032, ["class", "variant", "invalid", "readonly", "disabled", "force-state", "onFocus"]),
348
- e.$slots.hint || e.hint || e.maxLength ? q((B(), P(L, {
362
+ e.$slots.hint || e.hint || e.maxLength ? P((B(), E(T, {
349
363
  key: 1,
350
364
  disabled: e.disabled
351
365
  }, I({
352
- default: r(() => [
366
+ default: l(() => [
353
367
  v(e.$slots, "hint", {}, () => [
354
368
  m(i(e.hint), 1)
355
369
  ], !0)
@@ -358,23 +372,23 @@ function De(e, t, H, g, V, b) {
358
372
  }, [
359
373
  e.maxLength ? {
360
374
  name: "addon",
361
- fn: r(() => [
375
+ fn: l(() => [
362
376
  m(i(e.currentLength) + " / " + i(e.maxLength), 1)
363
377
  ]),
364
378
  key: "0"
365
379
  } : void 0
366
380
  ]), 1032, ["disabled"])), [
367
381
  [U, !e.error]
368
- ]) : D("", !0),
369
- q(w(M, { disabled: e.disabled }, I({
370
- default: r(() => [
382
+ ]) : N("", !0),
383
+ P(w(L, { disabled: e.disabled }, I({
384
+ default: l(() => [
371
385
  m(i(e.error) + " ", 1)
372
386
  ]),
373
387
  _: 2
374
388
  }, [
375
389
  e.maxLength ? {
376
390
  name: "addon",
377
- fn: r(() => [
391
+ fn: l(() => [
378
392
  m(i(e.currentLength) + " / " + i(e.maxLength), 1)
379
393
  ]),
380
394
  key: "0"
@@ -384,8 +398,8 @@ function De(e, t, H, g, V, b) {
384
398
  ])
385
399
  ], 2);
386
400
  }
387
- const Ye = /* @__PURE__ */ Le(Ae, [["render", De], ["__scopeId", "data-v-e2132f34"]]);
401
+ const xe = /* @__PURE__ */ Te(Ee, [["render", De], ["__scopeId", "data-v-8227a0f7"]]);
388
402
  export {
389
- Ye as O
403
+ xe as O
390
404
  };
391
- //# sourceMappingURL=OrTagInput-CjYmyfIU.mjs.map
405
+ //# sourceMappingURL=OrTagInput-D4-z3jby.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"OrTagInput-D4-z3jby.mjs","sources":["../../../components/or-tag-input-v3/src/styles.ts","../../../components/or-tag-input-v3/src/OrTagInput.vue"],"sourcesContent":["export const TagInput: string[] = [\n // Layout\n 'layout-column',\n\n // Spacing\n 'gap-xs',\n];\n\nexport const TagInputControl: string[] = [\n // Layout\n // 'flex-auto',\n\n // Typography\n 'typography-inherit',\n\n // Theme (placeholder)\n 'placeholder:theme-foreground-outline',\n 'dark:placeholder:theme-foreground-outline-dark',\n];\n\nexport const TagInputItem: string[] = [\n // Box\n '!min-h-0',\n];\n\nexport const NonRoundedTop: string[] = [\n 'rounded-t-0',\n];\n\nexport const NonRoundedBottom: string[] = [\n 'rounded-b-0',\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=\"controlAttributes.id\"\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 :class=\"inputBoxStyles\"\n :variant=\"variant\"\n :invalid=\"!!error\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n :tabindex=\"0\"\n :force-state=\"activated ? 'focus-within': undefined\"\n @focus=\"activate\"\n >\n <template\n v-if=\"$slots.prependInner\"\n v-slot:prepend\n >\n <slot name=\"prependInner\" />\n </template>\n <OrTags\n :ref=\"'tags'\"\n :class=\"['grow']\"\n :items=\"tagsItems\"\n :disabled=\"disabled\"\n :tag-props=\"tagsProps\"\n :overflow=\"overflow\"\n @reset=\"remove($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=\"showControl\"\n v-slot:tail\n >\n <div class=\"inline-flex w-fit max-w-full\">\n <input\n :ref=\"'control'\"\n v-bind=\"controlAttributes\"\n v-model.trim=\"draftModelValue\"\n :class=\"controlStyles\"\n :style=\"controlInlineStyles\"\n :type=\"'text'\"\n :placeholder=\"!proxyModelValue || (proxyModelValue && proxyModelValue.length === 0) ? placeholder : undefined\"\n :readonly=\"readonly\"\n :disabled=\"disabled\"\n :autocomplete=\"'off'\"\n :minlength=\"undefined\"\n :maxlength=\"undefined\"\n @input=\"$emit('input', $event)\"\n @keydown=\"$emit('keydown', $event)\"\n @keydown.enter=\"add()\"\n @keyup=\"$emit('keyup', $event)\"\n @focus=\"activate\"\n >\n </div>\n </template>\n </OrTags>\n <template\n v-if=\"$slots.appendInner\"\n v-slot:addon\n >\n <slot name=\"appendInner\" />\n </template>\n <template\n v-else-if=\"loading\"\n v-slot:addon\n >\n <OrLoader\n :variant=\"'circular'\"\n :color=\"error ? 'danger' : 'primary'\"\n :size=\"isMobile ? 'm' : 's'\"\n />\n </template>\n\n <template\n v-else-if=\"enableClear && !readonly && !disabled\"\n v-slot:addon\n >\n <template v-if=\"proxyModelValue && proxyModelValue.length > 0 || draftModelValue\">\n <OrIconButton\n :icon=\"'close'\"\n :color=\"'inherit'\"\n @click=\"reset()\"\n />\n </template>\n </template>\n </OrInputBox>\n\n <template v-if=\"$slots.hint || hint || maxLength\">\n <OrHint\n v-show=\"!error\"\n :disabled=\"disabled\"\n >\n <slot name=\"hint\">\n {{ hint }}\n </slot>\n\n <template\n v-if=\"maxLength\"\n v-slot:addon\n >\n {{ currentLength }} / {{ maxLength }}\n </template>\n </OrHint>\n </template>\n\n <OrError\n v-show=\"typeof error === 'string' && error.length > 0\"\n :disabled=\"disabled\"\n >\n {{ error }}\n\n <template\n v-if=\"maxLength\"\n v-slot:addon\n >\n {{ currentLength }} / {{ maxLength }}\n </template>\n </OrError>\n </div>\n</template>\n\n<script lang=\"ts\">\nimport { MaybeElementRef, onClickOutside } from '@vueuse/core';\nimport { PropType, computed, defineComponent, nextTick, reactive, ref, toRefs, watch } from 'vue';\nimport { useControlAttributes, useIdAttribute, useProxyModelValue, useResponsive, useValidationAttributes } from '@onereach/ui-components-common/hooks';\nimport { exclude, include, toArray } from '@onereach/ui-components-common/utils';\nimport { OrErrorV3 as OrError } from '@onereach/ui-components.or-error-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 { InputBoxVariant, OrInputBoxV3 as OrInputBox } from '@onereach/ui-components.or-input-box-v3';\nimport { OrLabelV3 as OrLabel } from '@onereach/ui-components.or-label-v3';\nimport { OrLoaderV3 as OrLoader } from '@onereach/ui-components.or-loader-v3';\nimport { TagColor } from '@onereach/ui-components.or-tag-v3';\nimport { OrTagsV3 as OrTags, TagObject, TagsOverflow } from '@onereach/ui-components.or-tags-v3';\nimport { TagInput, TagInputControl, TagInputItem, NonRoundedTop, NonRoundedBottom } from './styles';\nimport { TagInputModelValue } from './types';\n\nexport default defineComponent({\n name: 'OrTagInput',\n\n components: {\n OrError,\n OrHint,\n OrIconButton,\n OrInputBox,\n OrLabel,\n OrLoader,\n OrTags,\n },\n\n model: {\n prop: 'modelValue',\n event: 'update:modelValue',\n },\n\n props: {\n modelValue: {\n type: undefined as unknown as PropType<TagInputModelValue>,\n default: () => [],\n },\n\n variant: {\n type: String as PropType<`${InputBoxVariant}`>,\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 required: {\n type: Boolean,\n default: false,\n },\n\n readonly: {\n type: Boolean,\n default: false,\n },\n\n disabled: {\n type: Boolean,\n default: false,\n },\n\n overflow: {\n type: String as PropType<`${TagsOverflow}`>,\n default: () => TagsOverflow.Hidden,\n },\n\n // todo: review default state, disabling will breaking\n enableClear: {\n type: Boolean,\n default: true,\n },\n\n additionalInputBoxStyles: {\n type: Array as PropType<string[]>,\n default: () => [],\n },\n\n saveOnBlur: {\n type: Boolean,\n default: false,\n },\n\n nonRoundedTop: {\n type: Boolean,\n default: false,\n },\n\n nonRoundedBottom: {\n type: Boolean,\n default: false,\n },\n },\n\n emits: [\n 'update:modelValue',\n\n 'input',\n 'keydown',\n 'keyup',\n 'focus',\n 'blur',\n\n 'reset',\n ],\n\n expose: [\n 'root',\n\n 'reset',\n 'clear',\n\n 'focus',\n 'blur',\n\n 'activate',\n ],\n\n setup(props, context) {\n // Refs\n const root = ref<HTMLElement>();\n const control = ref<HTMLInputElement>();\n const inputBox = ref<InstanceType<typeof OrInputBox>>();\n const tags = ref<InstanceType<typeof OrTags>>();\n\n // Props\n const { modelValue, overflow, placeholder, disabled, readonly, saveOnBlur } = toRefs(props);\n const { isMobile } = useResponsive();\n\n // Styles\n const rootStyles = computed(() => [\n 'or-tag-input-v3',\n ...TagInput,\n ...props.variant === InputBoxVariant.Embedded ? ['grow'] : [],\n ]);\n\n const controlStyles = computed(() => [\n ...TagInputControl,\n ]);\n\n const itemStyles = computed(() => [\n ...TagInputItem,\n ]);\n\n const inputBoxStyles = computed(() => [\n 'interactivity-select',\n ...props.additionalInputBoxStyles,\n ...(props.nonRoundedTop ? NonRoundedTop : []),\n ...(props.nonRoundedBottom ? NonRoundedBottom : []),\n ]);\n\n // State\n const controlAttributes = reactive({\n id: useIdAttribute(),\n ...useControlAttributes(),\n ...useValidationAttributes(),\n });\n\n const activated = ref(false);\n const proxyModelValue = useProxyModelValue(modelValue, context.emit);\n const draftModelValue = ref<string>();\n\n const tagsItems = computed(() => {\n return toArray(proxyModelValue.value).map((item) => ({\n label: item,\n value: item,\n\n tagProps: {\n color: item === draftModelValue.value ? TagColor.Danger : TagColor.Default,\n },\n } as TagObject));\n });\n\n const currentLength = computed(() => proxyModelValue.value?.length ?? 0);\n const maxLength = computed(() => controlAttributes.maxlength);\n\n const controlInlineStyles = computed(() => {\n const chars = draftModelValue.value\n ? draftModelValue.value.length\n : currentLength.value === 0\n ? placeholder.value?.length ?? 0\n : 0;\n return {\n width: `${Math.max(chars + 1 || 0, 3)}ch`,\n };\n });\n\n const showControl = computed(() => {\n return draftModelValue.value\n || currentLength.value === 0\n || activated.value;\n });\n\n const tagsProps = computed(() => ({\n variant: readonly.value || disabled.value || !activated.value ? 'tag' : 'reset',\n disabled: disabled.value,\n }));\n\n // Methods\n function focus(): void {\n control.value?.focus();\n }\n\n function blur(): void {\n control.value?.blur();\n }\n\n function deactivate() {\n activated.value = false;\n nextTick(() => blur());\n context.emit('blur');\n }\n\n function activate() {\n if (disabled.value || readonly.value) return;\n\n if (!activated.value) {\n activated.value = true;\n context.emit('focus');\n }\n\n nextTick(() => focus());\n }\n\n function add(): void {\n const newItem = draftModelValue.value;\n\n if (!newItem) return;\n if (proxyModelValue.value?.includes(newItem)) return;\n if (maxLength.value && currentLength.value >= maxLength.value) return;\n\n proxyModelValue.value = include(newItem, proxyModelValue.value ?? []);\n draftModelValue.value = '';\n\n nextTick(() => focus());\n }\n\n function remove(value: string): void {\n proxyModelValue.value = exclude(value, proxyModelValue.value ?? []);\n }\n\n function reset(): void {\n proxyModelValue.value = [];\n draftModelValue.value = '';\n context.emit('reset');\n }\n\n function clear(): void {\n draftModelValue.value = '';\n }\n\n // Effects\n onClickOutside((inputBox as MaybeElementRef), () => {\n if (activated.value === false || (tags.value?.overflowPopover as any)?.state === 'open') return;\n if (saveOnBlur.value) add();\n deactivate();\n });\n\n watch(proxyModelValue, (items, prevItems) => {\n if (overflow.value !== TagsOverflow.Scroll) return;\n if (items?.length !== prevItems?.length) {\n (tags.value?.scrollToEnd as any)();\n }\n });\n\n return {\n root,\n control,\n inputBox,\n tags,\n rootStyles,\n controlStyles,\n itemStyles,\n inputBoxStyles,\n controlInlineStyles,\n controlAttributes,\n proxyModelValue,\n draftModelValue,\n tagsItems,\n tagsProps,\n currentLength,\n maxLength,\n activated,\n showControl,\n isMobile,\n focus,\n blur,\n add,\n activate,\n deactivate,\n remove,\n reset,\n clear,\n };\n },\n});\n</script>\n\n<style scoped>\ninput {\n min-width: 0;\n background: none;\n outline: none;\n}\n</style>\n"],"names":["TagInput","TagInputControl","TagInputItem","NonRoundedTop","NonRoundedBottom","_sfc_main","defineComponent","OrError","OrHint","OrIconButton","OrInputBox","OrLabel","OrLoader","OrTags","TagsOverflow","props","context","root","ref","control","inputBox","tags","modelValue","overflow","placeholder","disabled","readonly","saveOnBlur","toRefs","isMobile","useResponsive","rootStyles","computed","InputBoxVariant","controlStyles","itemStyles","inputBoxStyles","controlAttributes","reactive","useIdAttribute","useControlAttributes","useValidationAttributes","activated","proxyModelValue","useProxyModelValue","draftModelValue","tagsItems","toArray","item","TagColor","currentLength","_a","maxLength","controlInlineStyles","chars","showControl","tagsProps","focus","blur","deactivate","nextTick","activate","add","newItem","include","remove","value","exclude","reset","clear","onClickOutside","_b","watch","items","prevItems","_resolveComponent","_openBlock","_createElementBlock","_normalizeClass","_ctx","_createBlock","_component_OrLabel","_renderSlot","_createCommentVNode","_createVNode","_component_OrInputBox","_createSlots","_withCtx","_component_OrTags","_cache","$event","_createElementVNode","_mergeProps","_withKeys","_component_OrLoader","_component_OrIconButton","_withDirectives","_component_OrHint","_component_OrError"],"mappings":";;;;;;;;;;;;;;AAAO,MAAMA,KAAqB;AAAA;AAAA,EAEhC;AAAA;AAAA,EAGA;AACF,GAEaC,KAA4B;AAAA;AAAA;AAAA;AAAA,EAKvC;AAAA;AAAA,EAGA;AAAA,EACA;AACF,GAEaC,KAAyB;AAAA;AAAA,EAEpC;AACF,GAEaC,KAA0B;AAAA,EACrC;AACF,GAEaC,KAA6B;AAAA,EACxC;AACF,GCsIAC,KAAeC,GAAgB;AAAA,EAC7B,MAAM;AAAA,EAEN,YAAY;AAAA,IACV,SAAAC;AAAA,IACA,QAAAC;AAAA,IACA,cAAAC;AAAA,IACA,YAAAC;AAAA,IACA,SAAAC;AAAA,IACA,UAAAC;AAAA,IACA,QAAAC;AAAA,EACF;AAAA,EAEA,OAAO;AAAA,IACL,MAAM;AAAA,IACN,OAAO;AAAA,EACT;AAAA,EAEA,OAAO;AAAA,IACL,YAAY;AAAA,MACV,MAAM;AAAA,MACN,SAAS,MAAM,CAAC;AAAA,IAClB;AAAA,IAEA,SAAS;AAAA,MACP,MAAM;AAAA,MACN,SAAS;AAAA,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EAAA,MAAA;AAAA,yFAEEP,EAAAe,GAAA;AAAA,YACb,KAAK;AAAA,YACL,MAAA;AAAA,YAAA,OAAA;AAAA;;;;MAMO,IAAA;AAAA,IAAA,CAAA,GAAA,MAAA,CAAA,SAAA,WAAA,WACd,YAcS,YAAA,eAAA,SAAA,CAAA;AAAA,IAAAhB,EAAA,OAAA,QAAAA,EAAA,QAAAA,EAAA,YAAAiB,GAZIpB,KAAQI,EAAAiB,GAAA;AAAA,MAAA,KAAA;AAAA;IAIZ,GAAAX,EAAA;AAAA,MAAA,SAAAC,EAAA,MAAA;AAAA;;;;MAGC,GAAA;AAAA,IAAA,GAAA;AAAA;;;;;;;;;IAYC,CAAA,IAAAJ,EAAA,IAAA,EAAA;AAAA,IAAAa,EAAAZ,EAAAc,GAAH,EAER,UAAAnB,EAAA,SAAA,GAAAO,EAAA;AAAA,MAAA,SAAAC,EAAA,MAAA;AAAA;;MACQ,GAAA;AAAA,IAAA,GAAA;AAAA;;;;;;;;;;;;;"}
@@ -1,4 +1,4 @@
1
- import { O as a } from "../OrAutocomplete-ds-VkL_e.mjs";
1
+ import { O as a } from "../OrAutocomplete-eskOHnRl.mjs";
2
2
  import { a as t, A as s, O } from "../OrAvatar-XcP_rrT3.mjs";
3
3
  import { B as p, O as m } from "../OrBottomSheet-CJxmY84p.mjs";
4
4
  import { O as x } from "../OrButtonGroup-Cd6tpyP3.mjs";
@@ -19,7 +19,7 @@ import { EditorState as X } from "@codemirror/state";
19
19
  import { O as Z } from "../OrCombinedInput-CLIIindo.mjs";
20
20
  import { C as $, O as rr } from "../OrConfirm-o50DtKQg.mjs";
21
21
  import { O as ar } from "../OrContextMenu-L14E1lLm.mjs";
22
- import { D as tr, O as sr } from "../OrDataGrid-D2FFVgHK.mjs";
22
+ import { D as tr, O as sr } from "../OrDataGrid-DLVkDA8L.mjs";
23
23
  import { O as ir } from "../OrDateFormat-DKgu_p6Y.mjs";
24
24
  import { O as mr } from "../OrDatePicker-C2QFP1NK.mjs";
25
25
  import { O as xr } from "../OrDateRangePicker-B8atNK11.mjs";
@@ -81,7 +81,7 @@ import { O as Pe, a as Ce, S as Ie } from "../OrStatus-D4QIuE7R.mjs";
81
81
  import { O as De } from "../OrSwitch-Cmi57-QB.mjs";
82
82
  import { O as ke } from "../OrTab-Cl_ZBFjH.mjs";
83
83
  import { O as Be, a as Ee, T as he } from "../OrTabs-Dgii4fCQ.mjs";
84
- import { O as ve } from "../OrTagInput-CjYmyfIU.mjs";
84
+ import { O as ve } from "../OrTagInput-D4-z3jby.mjs";
85
85
  import { O as Le, a as Me, T as we } from "../OrTag-Bixe0EQq.mjs";
86
86
  import { O as Ge, T as Ae } from "../OrTags-CS0bcLtx.mjs";
87
87
  import { O as je } from "../OrTeleport.vue3-C9kW_8PS.mjs";
@@ -1,4 +1,4 @@
1
- import { O as r } from "../../OrAutocomplete-ds-VkL_e.mjs";
1
+ import { O as r } from "../../OrAutocomplete-eskOHnRl.mjs";
2
2
  export {
3
3
  r as OrAutocompleteV3
4
4
  };
@@ -1,4 +1,4 @@
1
- import { D as t, O as i } from "../../OrDataGrid-D2FFVgHK.mjs";
1
+ import { D as t, O as i } from "../../OrDataGrid-DLVkDA8L.mjs";
2
2
  export {
3
3
  t as DataGridVariant,
4
4
  i as OrDataGridV3
@@ -1,4 +1,4 @@
1
- import { O as o } from "../../OrTagInput-CjYmyfIU.mjs";
1
+ import { O as o } from "../../OrTagInput-D4-z3jby.mjs";
2
2
  export {
3
3
  o as OrTagInputV3
4
4
  };
@@ -1,4 +1,4 @@
1
- import { O as a } from "./OrAutocomplete-ds-VkL_e.mjs";
1
+ import { O as a } from "./OrAutocomplete-eskOHnRl.mjs";
2
2
  import { a as t, A as s, O } from "./OrAvatar-XcP_rrT3.mjs";
3
3
  import { B as p, O as m } from "./OrBottomSheet-CJxmY84p.mjs";
4
4
  import { O as x } from "./OrButtonGroup-Cd6tpyP3.mjs";
@@ -19,7 +19,7 @@ import { EditorState as X } from "@codemirror/state";
19
19
  import { O as Z } from "./OrCombinedInput-CLIIindo.mjs";
20
20
  import { C as $, O as rr } from "./OrConfirm-o50DtKQg.mjs";
21
21
  import { O as ar } from "./OrContextMenu-L14E1lLm.mjs";
22
- import { D as tr, O as sr } from "./OrDataGrid-D2FFVgHK.mjs";
22
+ import { D as tr, O as sr } from "./OrDataGrid-DLVkDA8L.mjs";
23
23
  import { O as ir } from "./OrDateFormat-DKgu_p6Y.mjs";
24
24
  import { O as mr } from "./OrDatePicker-C2QFP1NK.mjs";
25
25
  import { O as xr } from "./OrDateRangePicker-B8atNK11.mjs";
@@ -81,7 +81,7 @@ import { O as Pe, a as Ce, S as Ie } from "./OrStatus-D4QIuE7R.mjs";
81
81
  import { O as De } from "./OrSwitch-Cmi57-QB.mjs";
82
82
  import { O as ke } from "./OrTab-Cl_ZBFjH.mjs";
83
83
  import { O as Be, a as Ee, T as he } from "./OrTabs-Dgii4fCQ.mjs";
84
- import { O as ve } from "./OrTagInput-CjYmyfIU.mjs";
84
+ import { O as ve } from "./OrTagInput-D4-z3jby.mjs";
85
85
  import { O as Le, a as Me, T as we } from "./OrTag-Bixe0EQq.mjs";
86
86
  import { O as Ge, T as Ae } from "./OrTags-CS0bcLtx.mjs";
87
87
  import { O as je } from "./OrTeleport.vue3-C9kW_8PS.mjs";
@@ -106,6 +106,8 @@ declare const _default: import("vue").DefineComponent<{
106
106
  enableClear?: boolean | undefined;
107
107
  additionalInputBoxStyles?: string[] | undefined;
108
108
  saveOnBlur?: boolean | undefined;
109
+ nonRoundedTop?: boolean | undefined;
110
+ nonRoundedBottom?: boolean | undefined;
109
111
  key?: string | number | symbol | undefined;
110
112
  ref?: import("vue").VNodeRef | undefined;
111
113
  ref_for?: boolean | undefined;
@@ -228,6 +230,14 @@ declare const _default: import("vue").DefineComponent<{
228
230
  type: BooleanConstructor;
229
231
  default: boolean;
230
232
  };
233
+ nonRoundedTop: {
234
+ type: BooleanConstructor;
235
+ default: boolean;
236
+ };
237
+ nonRoundedBottom: {
238
+ type: BooleanConstructor;
239
+ default: boolean;
240
+ };
231
241
  }>> & {
232
242
  onFocus?: ((...args: any[]) => any) | undefined;
233
243
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -2791,6 +2801,8 @@ declare const _default: import("vue").DefineComponent<{
2791
2801
  enableClear: boolean;
2792
2802
  additionalInputBoxStyles: string[];
2793
2803
  saveOnBlur: boolean;
2804
+ nonRoundedTop: boolean;
2805
+ nonRoundedBottom: boolean;
2794
2806
  }, {}, string, {}> & {
2795
2807
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
2796
2808
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -2868,6 +2880,14 @@ declare const _default: import("vue").DefineComponent<{
2868
2880
  type: BooleanConstructor;
2869
2881
  default: boolean;
2870
2882
  };
2883
+ nonRoundedTop: {
2884
+ type: BooleanConstructor;
2885
+ default: boolean;
2886
+ };
2887
+ nonRoundedBottom: {
2888
+ type: BooleanConstructor;
2889
+ default: boolean;
2890
+ };
2871
2891
  }>> & {
2872
2892
  onFocus?: ((...args: any[]) => any) | undefined;
2873
2893
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -5904,6 +5924,8 @@ declare const _default: import("vue").DefineComponent<{
5904
5924
  enableClear?: boolean | undefined;
5905
5925
  additionalInputBoxStyles?: string[] | undefined;
5906
5926
  saveOnBlur?: boolean | undefined;
5927
+ nonRoundedTop?: boolean | undefined;
5928
+ nonRoundedBottom?: boolean | undefined;
5907
5929
  key?: string | number | symbol | undefined;
5908
5930
  ref?: import("vue").VNodeRef | undefined;
5909
5931
  ref_for?: boolean | undefined;
@@ -6026,6 +6048,14 @@ declare const _default: import("vue").DefineComponent<{
6026
6048
  type: BooleanConstructor;
6027
6049
  default: boolean;
6028
6050
  };
6051
+ nonRoundedTop: {
6052
+ type: BooleanConstructor;
6053
+ default: boolean;
6054
+ };
6055
+ nonRoundedBottom: {
6056
+ type: BooleanConstructor;
6057
+ default: boolean;
6058
+ };
6029
6059
  }>> & {
6030
6060
  onFocus?: ((...args: any[]) => any) | undefined;
6031
6061
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -8589,6 +8619,8 @@ declare const _default: import("vue").DefineComponent<{
8589
8619
  enableClear: boolean;
8590
8620
  additionalInputBoxStyles: string[];
8591
8621
  saveOnBlur: boolean;
8622
+ nonRoundedTop: boolean;
8623
+ nonRoundedBottom: boolean;
8592
8624
  }, {}, string, {}> & {
8593
8625
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
8594
8626
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -8666,6 +8698,14 @@ declare const _default: import("vue").DefineComponent<{
8666
8698
  type: BooleanConstructor;
8667
8699
  default: boolean;
8668
8700
  };
8701
+ nonRoundedTop: {
8702
+ type: BooleanConstructor;
8703
+ default: boolean;
8704
+ };
8705
+ nonRoundedBottom: {
8706
+ type: BooleanConstructor;
8707
+ default: boolean;
8708
+ };
8669
8709
  }>> & {
8670
8710
  onFocus?: ((...args: any[]) => any) | undefined;
8671
8711
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -12036,6 +12076,8 @@ declare const _default: import("vue").DefineComponent<{
12036
12076
  focus: () => void;
12037
12077
  blur: () => void;
12038
12078
  isMobile: import("vue").ComputedRef<boolean>;
12079
+ nonRoundedTop: import("vue").ComputedRef<boolean | undefined>;
12080
+ nonRoundedBottom: import("vue").ComputedRef<boolean>;
12039
12081
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "blur" | "input" | "update:modelValue" | "keydown" | "keyup")[], "focus" | "blur" | "input" | "update:modelValue" | "keydown" | "keyup", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
12040
12082
  modelValue: {
12041
12083
  type: PropType<AutocompleteModelValue>;
@@ -59,6 +59,14 @@ declare const _default: import("vue").DefineComponent<{
59
59
  type: BooleanConstructor;
60
60
  default: boolean;
61
61
  };
62
+ nonRoundedTop: {
63
+ type: BooleanConstructor;
64
+ default: boolean;
65
+ };
66
+ nonRoundedBottom: {
67
+ type: BooleanConstructor;
68
+ default: boolean;
69
+ };
62
70
  }, {
63
71
  root: import("vue").Ref<HTMLElement | undefined>;
64
72
  control: import("vue").Ref<HTMLInputElement | undefined>;
@@ -2656,6 +2664,14 @@ declare const _default: import("vue").DefineComponent<{
2656
2664
  type: BooleanConstructor;
2657
2665
  default: boolean;
2658
2666
  };
2667
+ nonRoundedTop: {
2668
+ type: BooleanConstructor;
2669
+ default: boolean;
2670
+ };
2671
+ nonRoundedBottom: {
2672
+ type: BooleanConstructor;
2673
+ default: boolean;
2674
+ };
2659
2675
  }>> & {
2660
2676
  onFocus?: ((...args: any[]) => any) | undefined;
2661
2677
  onBlur?: ((...args: any[]) => any) | undefined;
@@ -2679,5 +2695,7 @@ declare const _default: import("vue").DefineComponent<{
2679
2695
  enableClear: boolean;
2680
2696
  additionalInputBoxStyles: string[];
2681
2697
  saveOnBlur: boolean;
2698
+ nonRoundedTop: boolean;
2699
+ nonRoundedBottom: boolean;
2682
2700
  }, {}>;
2683
2701
  export default _default;