@cregis/ui 0.2.2 → 0.2.3

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,4 +1,4 @@
1
- import { defineComponent as G, useSlots as ur, computed as m, createElementBlock as x, openBlock as b, createElementVNode as V, createCommentVNode as I, mergeProps as xe, createBlock as Le, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as q, normalizeClass as j, toDisplayString as M, unref as ne, ref as _, watch as J, withDirectives as je, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as U, withCtx as Z, createTextVNode as $e, nextTick as Ke, reactive as Me, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ee, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Et, vShow as mt } from "vue";
1
+ import { defineComponent as G, useSlots as ur, computed as m, createElementBlock as x, openBlock as h, createElementVNode as V, createCommentVNode as I, mergeProps as xe, createBlock as Le, resolveDynamicComponent as Ft, normalizeStyle as ie, renderSlot as q, normalizeClass as j, toDisplayString as M, unref as ne, ref as _, watch as J, withDirectives as je, vModelDynamic as dr, withModifiers as fr, vModelText as pr, createVNode as U, withCtx as Z, createTextVNode as $e, nextTick as Ke, reactive as Me, provide as Ht, toRef as vr, Fragment as lt, renderList as ct, inject as qt, onMounted as et, onUnmounted as Ee, onBeforeUnmount as Ut, Transition as vt, render as Qe, h as Yt, toHandlers as Et, vShow as mt } from "vue";
2
2
  import { EdsLoad as mr, EdsCloseCircleFill as gr, EdsWarningFill as hr, EdsSearch as Xt, EdsArrowDownMiniIos as Kt, EdsArrowRightMiniIos as br } from "@cregis/icon";
3
3
  const yr = {
4
4
  key: 0,
@@ -44,7 +44,7 @@ const yr = {
44
44
  else
45
45
  return t.type === "secondary" ? "var(--material-foreground-base-secondary)" : t.type === "foreground" ? "var(--text-face-primary)" : t.type === "sameWhite" ? "var(--text-same-black)" : "var(--material-same-white)";
46
46
  });
47
- return (s, d) => e.icon || s.$slots.icon ? (b(), x("div", yr, [
47
+ return (s, d) => e.icon || s.$slots.icon ? (h(), x("div", yr, [
48
48
  V("button", xe(s.$attrs, {
49
49
  class: ["cregis-button__icon", {
50
50
  [`cregis-button__icon--${e.iconType}`]: e.iconType,
@@ -55,10 +55,10 @@ const yr = {
55
55
  }],
56
56
  disabled: e.disabled || e.loading
57
57
  }), [
58
- e.icon ? (b(), Le(Ft(e.icon), {
58
+ e.icon ? (h(), Le(Ft(e.icon), {
59
59
  key: 0,
60
60
  size: a.value
61
- }, null, 8, ["size"])) : (b(), x("span", {
61
+ }, null, 8, ["size"])) : (h(), x("span", {
62
62
  key: 1,
63
63
  class: "cregis-button__icon-slot-inner",
64
64
  style: ie({ "--cregis-btn-icon-slot-size": a.value })
@@ -66,11 +66,11 @@ const yr = {
66
66
  q(s.$slots, "icon")
67
67
  ], 4))
68
68
  ], 16, wr),
69
- e.iconText ? (b(), x("span", {
69
+ e.iconText ? (h(), x("span", {
70
70
  key: 0,
71
71
  class: j(["cregis-button__icon-text", { "is-disabled": e.disabled }])
72
72
  }, M(e.iconText), 3)) : I("", !0)
73
- ])) : e.link ? (b(), x("button", xe({ key: 1 }, s.$attrs, {
73
+ ])) : e.link ? (h(), x("button", xe({ key: 1 }, s.$attrs, {
74
74
  class: ["cregis-button__link", {
75
75
  [`cregis-button__link--${e.type}`]: e.type,
76
76
  [`cregis-button__link--${e.size}`]: e.size,
@@ -80,7 +80,7 @@ const yr = {
80
80
  disabled: e.disabled || e.loading
81
81
  }), [
82
82
  q(s.$slots, "default")
83
- ], 16, xr)) : (b(), x("button", xe({
83
+ ], 16, xr)) : (h(), x("button", xe({
84
84
  key: 2,
85
85
  ref: "buttonRef"
86
86
  }, s.$attrs, {
@@ -98,7 +98,7 @@ const yr = {
98
98
  }],
99
99
  disabled: e.disabled || e.loading
100
100
  }), [
101
- e.loading ? (b(), Le(ne(mr), {
101
+ e.loading ? (h(), Le(ne(mr), {
102
102
  key: 0,
103
103
  class: "loading",
104
104
  size: i.value,
@@ -124,12 +124,14 @@ const yr = {
124
124
  modelValue: {},
125
125
  size: { default: "medium" },
126
126
  width: { default: "300px" },
127
- placeholder: { default: "please input" },
127
+ placeholder: { default: "" },
128
128
  disabled: { type: Boolean },
129
129
  clearable: { type: Boolean },
130
130
  inputStyle: {},
131
131
  unit: {},
132
- rows: { default: 3 }
132
+ rows: { default: 3 },
133
+ pasteText: { default: "Paste" },
134
+ clearText: { default: "Clear" }
133
135
  },
134
136
  emits: ["update:modelValue", "input", "change", "focus", "blur", "clear"],
135
137
  setup(e, { expose: t, emit: r }) {
@@ -157,8 +159,8 @@ const yr = {
157
159
  }, C = () => {
158
160
  d && cancelAnimationFrame(d), d = requestAnimationFrame(() => {
159
161
  if (!l.value || l.value.tagName !== "INPUT") return;
160
- const f = l.value, g = f.value, u = document.createElement("span");
161
- u.style.position = "absolute", u.style.visibility = "hidden", u.style.whiteSpace = "pre", u.style.font = window.getComputedStyle(f).font, u.style.letterSpacing = window.getComputedStyle(f).letterSpacing, u.textContent = g || " ", document.body.appendChild(u), o.value = u.getBoundingClientRect().width, document.body.removeChild(u);
162
+ const f = l.value, y = f.value, u = document.createElement("span");
163
+ u.style.position = "absolute", u.style.visibility = "hidden", u.style.whiteSpace = "pre", u.style.font = window.getComputedStyle(f).font, u.style.letterSpacing = window.getComputedStyle(f).letterSpacing, u.textContent = y || " ", document.body.appendChild(u), o.value = u.getBoundingClientRect().width, document.body.removeChild(u);
162
164
  });
163
165
  }, E = m(() => {
164
166
  const f = {};
@@ -173,7 +175,7 @@ const yr = {
173
175
  return t({
174
176
  focus: c,
175
177
  updateTextWidth: C
176
- }), (f, g) => e.type !== "textarea" ? (b(), x("div", {
178
+ }), (f, y) => e.type !== "textarea" ? (h(), x("div", {
177
179
  key: 0,
178
180
  class: j(["cregis-input", {
179
181
  [`cregis-input--${e.size}`]: e.size,
@@ -186,17 +188,18 @@ const yr = {
186
188
  V("div", {
187
189
  class: j(["cregis-input__wrapper", { "is-focus": s.value }])
188
190
  }, [
189
- f.$slots.prefix ? (b(), x("span", $r, [
191
+ f.$slots.prefix ? (h(), x("span", $r, [
190
192
  q(f.$slots, "prefix")
191
193
  ])) : I("", !0),
192
194
  je(V("input", xe({
193
195
  class: "cregis-input__inner",
194
- "onUpdate:modelValue": g[0] || (g[0] = (u) => i.value = u),
196
+ "onUpdate:modelValue": y[0] || (y[0] = (u) => i.value = u),
195
197
  ref_key: "inputRef",
196
198
  ref: l,
197
199
  type: e.type,
198
200
  placeholder: e.placeholder
199
201
  }, f.$attrs, {
202
+ spellcheck: "false",
200
203
  disabled: e.disabled,
201
204
  onInput: w,
202
205
  onChange: k,
@@ -205,35 +208,36 @@ const yr = {
205
208
  }), null, 16, kr), [
206
209
  [dr, i.value]
207
210
  ]),
208
- e.unit && i.value ? (b(), x("span", {
211
+ e.unit && i.value ? (h(), x("span", {
209
212
  key: 1,
210
213
  style: ie(E.value),
211
214
  class: "cregis-input__unit"
212
215
  }, M(e.unit), 5)) : I("", !0),
213
- f.$slots.suffix || O.value ? (b(), x("span", Tr, [
216
+ f.$slots.suffix || O.value ? (h(), x("span", Tr, [
214
217
  q(f.$slots, "suffix"),
215
- O.value ? (b(), Le(Ye, {
218
+ O.value ? (h(), Le(Ye, {
216
219
  key: 0,
217
220
  icon: ne(gr),
218
221
  "icon-type": "square",
219
222
  onClick: $,
220
- onMousedown: g[1] || (g[1] = fr(() => {
223
+ onMousedown: y[1] || (y[1] = fr(() => {
221
224
  }, ["prevent"]))
222
225
  }, null, 8, ["icon"])) : I("", !0)
223
226
  ])) : I("", !0)
224
227
  ], 2)
225
- ], 6)) : (b(), x("div", {
228
+ ], 6)) : (h(), x("div", {
226
229
  key: 1,
227
230
  class: j(["cregis-textarea", { "is-disabled": e.disabled }]),
228
231
  style: ie([{ width: e.width }, e.inputStyle])
229
232
  }, [
230
233
  je(V("textarea", xe({ class: "cregis-textarea__wrapper" }, f.$attrs, {
234
+ spellcheck: "false",
231
235
  ref_key: "inputRef",
232
236
  ref: l,
233
237
  disabled: e.disabled,
234
238
  placeholder: e.placeholder,
235
239
  rows: e.rows,
236
- "onUpdate:modelValue": g[2] || (g[2] = (u) => i.value = u),
240
+ "onUpdate:modelValue": y[2] || (y[2] = (u) => i.value = u),
237
241
  onInput: w,
238
242
  onChange: k,
239
243
  onFocus: v,
@@ -241,16 +245,16 @@ const yr = {
241
245
  }), null, 16, Sr), [
242
246
  [pr, i.value]
243
247
  ]),
244
- e.disabled ? I("", !0) : (b(), x("div", Cr, [
248
+ e.disabled ? I("", !0) : (h(), x("div", Cr, [
245
249
  U(Ye, {
246
250
  class: "cregis-textarea__button",
247
251
  link: "",
248
252
  size: "small",
249
253
  onClick: R
250
254
  }, {
251
- default: Z(() => [...g[3] || (g[3] = [
252
- $e(" Paste ", -1)
253
- ])]),
255
+ default: Z(() => [
256
+ $e(M(e.pasteText), 1)
257
+ ]),
254
258
  _: 1
255
259
  }),
256
260
  U(Ye, {
@@ -260,9 +264,9 @@ const yr = {
260
264
  disabled: !i.value,
261
265
  onClick: $
262
266
  }, {
263
- default: Z(() => [...g[4] || (g[4] = [
264
- $e(" Clear ", -1)
265
- ])]),
267
+ default: Z(() => [
268
+ $e(M(e.clearText), 1)
269
+ ]),
266
270
  _: 1
267
271
  }, 8, ["disabled"])
268
272
  ]))
@@ -279,7 +283,7 @@ const yr = {
279
283
  size: { default: "16px" }
280
284
  },
281
285
  setup(e) {
282
- return (t, r) => (b(), x("svg", {
286
+ return (t, r) => (h(), x("svg", {
283
287
  width: e.size,
284
288
  height: e.size,
285
289
  viewBox: "0 0 16 16",
@@ -329,7 +333,7 @@ const yr = {
329
333
  () => {
330
334
  n("change", a.value);
331
335
  }
332
- ), (l, o) => (b(), x("div", {
336
+ ), (l, o) => (h(), x("div", {
333
337
  class: "cregis-checkbox__wrapper",
334
338
  onClick: i
335
339
  }, [
@@ -341,12 +345,12 @@ const yr = {
341
345
  "is-indeterminate": e.indeterminate
342
346
  }])
343
347
  }, [
344
- e.indeterminate ? (b(), x("div", Dr)) : (b(), Le(Rr, {
348
+ e.indeterminate ? (h(), x("div", Dr)) : (h(), Le(Rr, {
345
349
  key: 1,
346
350
  size: "10px"
347
351
  }))
348
352
  ], 2),
349
- l.$slots.default || e.label ? (b(), x("span", {
353
+ l.$slots.default || e.label ? (h(), x("span", {
350
354
  key: 0,
351
355
  class: j(["cregis-checkbox__label", { "is-disabled": e.disabled }])
352
356
  }, [
@@ -370,7 +374,7 @@ const yr = {
370
374
  const r = e, n = t, a = m(() => r.modelValue === r.value), i = () => {
371
375
  r.disabled || (n("update:modelValue", r.value), n("change", r.value));
372
376
  };
373
- return (l, o) => (b(), x("div", {
377
+ return (l, o) => (h(), x("div", {
374
378
  class: "cregis-radio__wrapper",
375
379
  onClick: i
376
380
  }, [
@@ -382,7 +386,7 @@ const yr = {
382
386
  }, [...o[0] || (o[0] = [
383
387
  V("div", { class: "cregis-radio__inner" }, null, -1)
384
388
  ])], 2),
385
- l.$slots.default || e.label ? (b(), x("span", {
389
+ l.$slots.default || e.label ? (h(), x("span", {
386
390
  key: 0,
387
391
  class: j(["cregis-radio__label", { "is-disabled": e.disabled }])
388
392
  }, [
@@ -423,7 +427,7 @@ const yr = {
423
427
  borderLeftColor: t.color,
424
428
  margin: r.value
425
429
  });
426
- return (a, i) => (b(), x("div", {
430
+ return (a, i) => (h(), x("div", {
427
431
  class: j(["cregis-divider", {
428
432
  [`cregis-divider--${e.direction}`]: e.direction
429
433
  }]),
@@ -458,13 +462,13 @@ const yr = {
458
462
  activeName: vr(t, "modelValue"),
459
463
  registerTab: n,
460
464
  unregisterTab: a
461
- }), (l, o) => (b(), x("div", {
465
+ }), (l, o) => (h(), x("div", {
462
466
  class: j(["cregis-tabs", {
463
467
  [`cregis-tabs--${e.type}`]: e.type,
464
468
  [`cregis-tabs--${e.size}`]: e.size
465
469
  }])
466
470
  }, [
467
- (b(!0), x(lt, null, ct(r, (s) => (b(), x("div", {
471
+ (h(!0), x(lt, null, ct(r, (s) => (h(), x("div", {
468
472
  key: s.name,
469
473
  class: j(["cregis-tabs__item", { "is-active": e.modelValue === s.name }]),
470
474
  style: ie(i.value),
@@ -525,14 +529,14 @@ const yr = {
525
529
  n !== void 0 && clearTimeout(n);
526
530
  }), Ke(() => {
527
531
  r.value = !0;
528
- }), (l, o) => (b(), x("div", Lr, [
532
+ }), (l, o) => (h(), x("div", Lr, [
529
533
  U(vt, {
530
534
  name: "cregis-message",
531
535
  onAfterEnter: a,
532
536
  onAfterLeave: i
533
537
  }, {
534
538
  default: Z(() => [
535
- r.value ? (b(), x("div", jr, M(e.message), 1)) : I("", !0)
539
+ r.value ? (h(), x("div", jr, M(e.message), 1)) : I("", !0)
536
540
  ]),
537
541
  _: 1
538
542
  })
@@ -586,14 +590,14 @@ const Ir = { class: "cregis-notification__wrapper" }, Nr = {
586
590
  return Ut(() => {
587
591
  }), Ke(() => {
588
592
  r.value = !0;
589
- }), (i, l) => (b(), x("div", Ir, [
593
+ }), (i, l) => (h(), x("div", Ir, [
590
594
  U(vt, {
591
595
  name: "cregis-notification",
592
596
  onAfterLeave: a
593
597
  }, {
594
598
  default: Z(() => [
595
- r.value ? (b(), x("div", Nr, [
596
- (b(), Le(Ft(ne(hr)), {
599
+ r.value ? (h(), x("div", Nr, [
600
+ (h(), Le(Ft(ne(hr)), {
597
601
  size: "18px",
598
602
  color: "var(--material-vibrant-error-primary)"
599
603
  })),
@@ -654,9 +658,9 @@ const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress
654
658
  })), a = m(() => ({
655
659
  "--cregis-progress-tip-left": `${r.value}%`
656
660
  })), i = m(() => `${Math.round(t.percentage)}%`);
657
- return (l, o) => (b(), x("div", Yr, [
661
+ return (l, o) => (h(), x("div", Yr, [
658
662
  V("div", Xr, [
659
- e.showPercentage && t.percentage > 0 ? (b(), x("div", {
663
+ e.showPercentage && t.percentage > 0 ? (h(), x("div", {
660
664
  key: 0,
661
665
  class: "cregis-progress__tip",
662
666
  style: ie(a.value),
@@ -667,7 +671,7 @@ const Yr = { class: "cregis-progress__wrapper" }, Xr = { class: "cregis-progress
667
671
  class: "cregis-progress__bar",
668
672
  style: ie(n.value)
669
673
  }, null, 4),
670
- t.percentage === 0 ? (b(), x("div", Qr)) : I("", !0)
674
+ t.percentage === 0 ? (h(), x("div", Qr)) : I("", !0)
671
675
  ])
672
676
  ])
673
677
  ]));
@@ -881,7 +885,7 @@ var ma = function(t, r) {
881
885
  function ga(e) {
882
886
  var t, r = e.state, n = e.name, a = e.options, i = r.elements.arrow, l = r.modifiersData.popperOffsets, o = pe(r.placement), s = yt(o), d = [te, le].indexOf(o) >= 0, c = d ? "height" : "width";
883
887
  if (!(!i || !l)) {
884
- var w = ma(a.padding, r), k = bt(i), v = s === "y" ? ee : te, S = s === "y" ? se : le, O = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], $ = l[s] - r.rects.reference[s], C = Fe(i), E = C ? s === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0, R = O / 2 - $ / 2, f = w[v], g = E - k[c] - w[S], u = E / 2 - k[c] / 2 + R, T = ze(f, u, g), B = s;
888
+ var w = ma(a.padding, r), k = bt(i), v = s === "y" ? ee : te, S = s === "y" ? se : le, O = r.rects.reference[c] + r.rects.reference[s] - l[s] - r.rects.popper[c], $ = l[s] - r.rects.reference[s], C = Fe(i), E = C ? s === "y" ? C.clientHeight || 0 : C.clientWidth || 0 : 0, R = O / 2 - $ / 2, f = w[v], y = E - k[c] - w[S], u = E / 2 - k[c] / 2 + R, T = ze(f, u, y), B = s;
885
889
  r.modifiersData[n] = (t = {}, t[B] = T, t.centerOffset = T - u, t);
886
890
  }
887
891
  }
@@ -923,12 +927,12 @@ function Rt(e) {
923
927
  y: O
924
928
  };
925
929
  v = $.x, O = $.y;
926
- var C = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), R = te, f = ee, g = window;
930
+ var C = l.hasOwnProperty("x"), E = l.hasOwnProperty("y"), R = te, f = ee, y = window;
927
931
  if (d) {
928
932
  var u = Fe(r), T = "clientHeight", B = "clientWidth";
929
933
  if (u === re(r) && (u = be(r), ge(u).position !== "static" && o === "absolute" && (T = "scrollHeight", B = "scrollWidth")), u = u, a === ee || (a === te || a === le) && i === _e) {
930
934
  f = se;
931
- var D = w && u === g && g.visualViewport ? g.visualViewport.height : (
935
+ var D = w && u === y && y.visualViewport ? y.visualViewport.height : (
932
936
  // $FlowFixMe[prop-missing]
933
937
  u[T]
934
938
  );
@@ -936,14 +940,14 @@ function Rt(e) {
936
940
  }
937
941
  if (a === te || (a === ee || a === se) && i === _e) {
938
942
  R = le;
939
- var W = w && u === g && g.visualViewport ? g.visualViewport.width : (
943
+ var W = w && u === y && y.visualViewport ? y.visualViewport.width : (
940
944
  // $FlowFixMe[prop-missing]
941
945
  u[B]
942
946
  );
943
947
  v -= W - n.width, v *= s ? 1 : -1;
944
948
  }
945
949
  }
946
- var y = Object.assign({
950
+ var b = Object.assign({
947
951
  position: o
948
952
  }, d && ya), A = c === !0 ? wa({
949
953
  x: v,
@@ -954,9 +958,9 @@ function Rt(e) {
954
958
  };
955
959
  if (v = A.x, O = A.y, s) {
956
960
  var z;
957
- return Object.assign({}, y, (z = {}, z[f] = E ? "0" : "", z[R] = C ? "0" : "", z.transform = (g.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + O + "px)" : "translate3d(" + v + "px, " + O + "px, 0)", z));
961
+ return Object.assign({}, b, (z = {}, z[f] = E ? "0" : "", z[R] = C ? "0" : "", z.transform = (y.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + O + "px)" : "translate3d(" + v + "px, " + O + "px, 0)", z));
958
962
  }
959
- return Object.assign({}, y, (t = {}, t[f] = E ? O + "px" : "", t[R] = C ? v + "px" : "", t.transform = "", t));
963
+ return Object.assign({}, b, (t = {}, t[f] = E ? O + "px" : "", t[R] = C ? v + "px" : "", t.transform = "", t));
960
964
  }
961
965
  function xa(e) {
962
966
  var t = e.state, r = e.options, n = r.gpuAcceleration, a = n === void 0 ? !0 : n, i = r.adaptive, l = i === void 0 ? !0 : i, o = r.roundOffsets, s = o === void 0 ? !0 : o, d = {
@@ -1156,18 +1160,18 @@ function or(e) {
1156
1160
  }
1157
1161
  function Ie(e, t) {
1158
1162
  t === void 0 && (t = {});
1159
- var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, d = r.rootBoundary, c = d === void 0 ? Zt : d, w = r.elementContext, k = w === void 0 ? Re : w, v = r.altBoundary, S = v === void 0 ? !1 : v, O = r.padding, $ = O === void 0 ? 0 : O, C = ar(typeof $ != "number" ? $ : nr($, Ne)), E = k === Re ? Zr : Re, R = e.rects.popper, f = e.elements[S ? E : k], g = Ba(ke(f) ? f : f.contextElement || be(e.elements.popper), s, c, l), u = Pe(e.elements.reference), T = or({
1163
+ var r = t, n = r.placement, a = n === void 0 ? e.placement : n, i = r.strategy, l = i === void 0 ? e.strategy : i, o = r.boundary, s = o === void 0 ? Gr : o, d = r.rootBoundary, c = d === void 0 ? Zt : d, w = r.elementContext, k = w === void 0 ? Re : w, v = r.altBoundary, S = v === void 0 ? !1 : v, O = r.padding, $ = O === void 0 ? 0 : O, C = ar(typeof $ != "number" ? $ : nr($, Ne)), E = k === Re ? Zr : Re, R = e.rects.popper, f = e.elements[S ? E : k], y = Ba(ke(f) ? f : f.contextElement || be(e.elements.popper), s, c, l), u = Pe(e.elements.reference), T = or({
1160
1164
  reference: u,
1161
1165
  element: R,
1162
1166
  placement: a
1163
1167
  }), B = dt(Object.assign({}, R, T)), D = k === Re ? B : u, W = {
1164
- top: g.top - D.top + C.top,
1165
- bottom: D.bottom - g.bottom + C.bottom,
1166
- left: g.left - D.left + C.left,
1167
- right: D.right - g.right + C.right
1168
- }, y = e.modifiersData.offset;
1169
- if (k === Re && y) {
1170
- var A = y[a];
1168
+ top: y.top - D.top + C.top,
1169
+ bottom: D.bottom - y.bottom + C.bottom,
1170
+ left: y.left - D.left + C.left,
1171
+ right: D.right - y.right + C.right
1172
+ }, b = e.modifiersData.offset;
1173
+ if (k === Re && b) {
1174
+ var A = b[a];
1171
1175
  Object.keys(W).forEach(function(z) {
1172
1176
  var Y = [le, se].indexOf(z) >= 0 ? 1 : -1, X = [ee, se].indexOf(z) >= 0 ? "y" : "x";
1173
1177
  W[z] += A[X] * Y;
@@ -1213,26 +1217,26 @@ function Da(e) {
1213
1217
  flipVariations: S,
1214
1218
  allowedAutoPlacements: O
1215
1219
  }) : fe);
1216
- }, []), g = t.rects.reference, u = t.rects.popper, T = /* @__PURE__ */ new Map(), B = !0, D = f[0], W = 0; W < f.length; W++) {
1217
- var y = f[W], A = pe(y), z = Ve(y) === Se, Y = [ee, se].indexOf(A) >= 0, X = Y ? "width" : "height", F = Ie(t, {
1218
- placement: y,
1220
+ }, []), y = t.rects.reference, u = t.rects.popper, T = /* @__PURE__ */ new Map(), B = !0, D = f[0], W = 0; W < f.length; W++) {
1221
+ var b = f[W], A = pe(b), z = Ve(b) === Se, Y = [ee, se].indexOf(A) >= 0, X = Y ? "width" : "height", F = Ie(t, {
1222
+ placement: b,
1219
1223
  boundary: c,
1220
1224
  rootBoundary: w,
1221
1225
  altBoundary: k,
1222
1226
  padding: d
1223
1227
  }), H = Y ? z ? le : te : z ? se : ee;
1224
- g[X] > u[X] && (H = Xe(H));
1228
+ y[X] > u[X] && (H = Xe(H));
1225
1229
  var de = Xe(H), ce = [];
1226
1230
  if (i && ce.push(F[A] <= 0), o && ce.push(F[H] <= 0, F[de] <= 0), ce.every(function(he) {
1227
1231
  return he;
1228
1232
  })) {
1229
- D = y, B = !1;
1233
+ D = b, B = !1;
1230
1234
  break;
1231
1235
  }
1232
- T.set(y, ce);
1236
+ T.set(b, ce);
1233
1237
  }
1234
1238
  if (B)
1235
- for (var h = S ? 3 : 1, N = function(fe) {
1239
+ for (var g = S ? 3 : 1, N = function(fe) {
1236
1240
  var ye = f.find(function(Te) {
1237
1241
  var me = T.get(Te);
1238
1242
  if (me)
@@ -1242,7 +1246,7 @@ function Da(e) {
1242
1246
  });
1243
1247
  if (ye)
1244
1248
  return D = ye, "break";
1245
- }, K = h; K > 0; K--) {
1249
+ }, K = g; K > 0; K--) {
1246
1250
  var ue = N(K);
1247
1251
  if (ue === "break") break;
1248
1252
  }
@@ -1347,7 +1351,7 @@ function Ha(e) {
1347
1351
  rootBoundary: d,
1348
1352
  padding: w,
1349
1353
  altBoundary: c
1350
- }), C = pe(t.placement), E = Ve(t.placement), R = !E, f = yt(C), g = Fa(f), u = t.modifiersData.popperOffsets, T = t.rects.reference, B = t.rects.popper, D = typeof O == "function" ? O(Object.assign({}, t.rects, {
1354
+ }), C = pe(t.placement), E = Ve(t.placement), R = !E, f = yt(C), y = Fa(f), u = t.modifiersData.popperOffsets, T = t.rects.reference, B = t.rects.popper, D = typeof O == "function" ? O(Object.assign({}, t.rects, {
1351
1355
  placement: t.placement
1352
1356
  })) : O, W = typeof D == "number" ? {
1353
1357
  mainAxis: D,
@@ -1355,21 +1359,21 @@ function Ha(e) {
1355
1359
  } : Object.assign({
1356
1360
  mainAxis: 0,
1357
1361
  altAxis: 0
1358
- }, D), y = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, A = {
1362
+ }, D), b = t.modifiersData.offset ? t.modifiersData.offset[t.placement] : null, A = {
1359
1363
  x: 0,
1360
1364
  y: 0
1361
1365
  };
1362
1366
  if (u) {
1363
1367
  if (i) {
1364
- var z, Y = f === "y" ? ee : te, X = f === "y" ? se : le, F = f === "y" ? "height" : "width", H = u[f], de = H + $[Y], ce = H - $[X], h = v ? -B[F] / 2 : 0, N = E === Se ? T[F] : B[F], K = E === Se ? -B[F] : -T[F], ue = t.elements.arrow, he = v && ue ? bt(ue) : {
1368
+ var z, Y = f === "y" ? ee : te, X = f === "y" ? se : le, F = f === "y" ? "height" : "width", H = u[f], de = H + $[Y], ce = H - $[X], g = v ? -B[F] / 2 : 0, N = E === Se ? T[F] : B[F], K = E === Se ? -B[F] : -T[F], ue = t.elements.arrow, he = v && ue ? bt(ue) : {
1365
1369
  width: 0,
1366
1370
  height: 0
1367
- }, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[Y], Te = fe[X], me = ze(0, T[F], he[F]), Be = R ? T[F] / 2 - h - me - ye - W.mainAxis : N - me - ye - W.mainAxis, He = R ? -T[F] / 2 + h + me + Te + W.mainAxis : K + me + Te + W.mainAxis, Ae = t.elements.arrow && Fe(t.elements.arrow), rt = Ae ? f === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, p = (z = y?.[f]) != null ? z : 0, L = H + Be - p - rt, P = H + He - p, ae = ze(v ? Ge(de, L) : de, H, v ? Oe(ce, P) : ce);
1371
+ }, fe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : rr(), ye = fe[Y], Te = fe[X], me = ze(0, T[F], he[F]), Be = R ? T[F] / 2 - g - me - ye - W.mainAxis : N - me - ye - W.mainAxis, He = R ? -T[F] / 2 + g + me + Te + W.mainAxis : K + me + Te + W.mainAxis, Ae = t.elements.arrow && Fe(t.elements.arrow), rt = Ae ? f === "y" ? Ae.clientTop || 0 : Ae.clientLeft || 0 : 0, p = (z = b?.[f]) != null ? z : 0, L = H + Be - p - rt, P = H + He - p, ae = ze(v ? Ge(de, L) : de, H, v ? Oe(ce, P) : ce);
1368
1372
  u[f] = ae, A[f] = ae - H;
1369
1373
  }
1370
1374
  if (o) {
1371
- var Q, at = f === "x" ? ee : te, $t = f === "x" ? se : le, we = u[g], qe = g === "y" ? "height" : "width", kt = we + $[at], Tt = we - $[$t], nt = [ee, te].indexOf(C) !== -1, St = (Q = y?.[g]) != null ? Q : 0, Ct = nt ? kt : we - T[qe] - B[qe] - St + W.altAxis, Pt = nt ? we + T[qe] + B[qe] - St - W.altAxis : Tt, Vt = v && nt ? va(Ct, we, Pt) : ze(v ? Ct : kt, we, v ? Pt : Tt);
1372
- u[g] = Vt, A[g] = Vt - we;
1375
+ var Q, at = f === "x" ? ee : te, $t = f === "x" ? se : le, we = u[y], qe = y === "y" ? "height" : "width", kt = we + $[at], Tt = we - $[$t], nt = [ee, te].indexOf(C) !== -1, St = (Q = b?.[y]) != null ? Q : 0, Ct = nt ? kt : we - T[qe] - B[qe] - St + W.altAxis, Pt = nt ? we + T[qe] + B[qe] - St - W.altAxis : Tt, Vt = v && nt ? va(Ct, we, Pt) : ze(v ? Ct : kt, we, v ? Pt : Tt);
1376
+ u[y] = Vt, A[y] = Vt - we;
1373
1377
  }
1374
1378
  t.modifiersData[n] = A;
1375
1379
  }
@@ -1521,7 +1525,7 @@ function en(e) {
1521
1525
  c.reset = !1, f = -1;
1522
1526
  continue;
1523
1527
  }
1524
- var g = c.orderedModifiers[f], u = g.fn, T = g.options, B = T === void 0 ? {} : T, D = g.name;
1528
+ var y = c.orderedModifiers[f], u = y.fn, T = y.options, B = T === void 0 ? {} : T, D = y.name;
1525
1529
  typeof u == "function" && (c = u({
1526
1530
  state: c,
1527
1531
  options: B,
@@ -1552,14 +1556,14 @@ function en(e) {
1552
1556
  c.orderedModifiers.forEach(function($) {
1553
1557
  var C = $.name, E = $.options, R = E === void 0 ? {} : E, f = $.effect;
1554
1558
  if (typeof f == "function") {
1555
- var g = f({
1559
+ var y = f({
1556
1560
  state: c,
1557
1561
  name: C,
1558
1562
  instance: v,
1559
1563
  options: R
1560
1564
  }), u = function() {
1561
1565
  };
1562
- w.push(g || u);
1566
+ w.push(y || u);
1563
1567
  }
1564
1568
  });
1565
1569
  }
@@ -1667,7 +1671,7 @@ function ft(e, t, r) {
1667
1671
  function f() {
1668
1672
  return o === void 0 ? l : E(st());
1669
1673
  }
1670
- function g() {
1674
+ function y() {
1671
1675
  var u = st(), T = $(u);
1672
1676
  if (n = arguments, a = this, s = u, T) {
1673
1677
  if (o === void 0)
@@ -1677,7 +1681,7 @@ function ft(e, t, r) {
1677
1681
  }
1678
1682
  return o === void 0 && (o = setTimeout(C, t)), l;
1679
1683
  }
1680
- return g.cancel = R, g.flush = f, g;
1684
+ return y.cancel = R, y.flush = f, y;
1681
1685
  }
1682
1686
  var Vn = "Expected a function";
1683
1687
  function En(e, t, r) {
@@ -1721,16 +1725,16 @@ const Bn = (e, t) => {
1721
1725
  setup(e, { expose: t, emit: r }) {
1722
1726
  const n = _(!1), a = e, i = m(() => a.preserveContentMount || n.value), l = m(() => !a.preserveContentMount || n.value), o = r, s = _(), d = _(), c = _();
1723
1727
  let w = null, k = Me({}), v = Me({});
1724
- const S = (y) => typeof y == "number" ? `${y}px` : y, O = m(() => {
1725
- const y = a.maxPopperHeight;
1726
- return y != null && y !== "";
1728
+ const S = (b) => typeof b == "number" ? `${b}px` : b, O = m(() => {
1729
+ const b = a.maxPopperHeight;
1730
+ return b != null && b !== "";
1727
1731
  }), $ = m(() => {
1728
- const y = {}, A = a.popperWidth;
1729
- if (A != null && A !== "" && (y.width = S(A)), O.value) {
1732
+ const b = {}, A = a.popperWidth;
1733
+ if (A != null && A !== "" && (b.width = S(A)), O.value) {
1730
1734
  const z = a.maxPopperHeight;
1731
- y.maxHeight = S(z), y.overflowY = "auto", y.scrollbarWidth = "none", y.msOverflowStyle = "none";
1735
+ b.maxHeight = S(z), b.overflowY = "auto", b.scrollbarWidth = "none", b.msOverflowStyle = "none";
1732
1736
  }
1733
- return y.padding = S(a.padding), y;
1737
+ return b.padding = S(a.padding), b;
1734
1738
  }), C = m(() => ({
1735
1739
  placement: a.placement,
1736
1740
  modifiers: [
@@ -1746,10 +1750,10 @@ const Bn = (e, t) => {
1746
1750
  a.disabled || (n.value = !0, o("visible-change", !0));
1747
1751
  }, R = () => {
1748
1752
  n.value = !1, o("visible-change", !1);
1749
- }, f = ft(E, a.openDelay), g = ft(R, a.closeDelay), u = () => {
1750
- a.disabled || (g.cancel(), f());
1753
+ }, f = ft(E, a.openDelay), y = ft(R, a.closeDelay), u = () => {
1754
+ a.disabled || (y.cancel(), f());
1751
1755
  }, T = () => {
1752
- f.cancel(), g();
1756
+ f.cancel(), y();
1753
1757
  };
1754
1758
  Bn(s, () => {
1755
1759
  a.trigger === "click" && n.value && !a.manual && T(), n.value && o("click-outside", !0);
@@ -1761,30 +1765,30 @@ const Bn = (e, t) => {
1761
1765
  };
1762
1766
  J(
1763
1767
  () => n.value,
1764
- (y) => {
1765
- y && (d.value && c.value ? w = rn(d.value, c.value, C.value) : w?.destroy());
1768
+ (b) => {
1769
+ b && (d.value && c.value ? w = rn(d.value, c.value, C.value) : w?.destroy());
1766
1770
  },
1767
1771
  { flush: "post" }
1768
1772
  ), J(
1769
1773
  () => a.manual,
1770
- (y) => {
1771
- y ? (v = {}, k = {}) : D();
1774
+ (b) => {
1775
+ b ? (v = {}, k = {}) : D();
1772
1776
  }
1773
1777
  ), J(
1774
1778
  () => a.trigger,
1775
- (y, A) => {
1776
- y !== A && (v = {}, k = {}, D());
1779
+ (b, A) => {
1780
+ b !== A && (v = {}, k = {}, D());
1777
1781
  }
1778
1782
  ), J(
1779
1783
  () => a.disabled,
1780
- (y) => {
1781
- y && T();
1784
+ (b) => {
1785
+ b && T();
1782
1786
  }
1783
1787
  ), et(() => {
1784
1788
  a.manual || D();
1785
1789
  });
1786
- const W = En((y) => {
1787
- const A = y.target;
1790
+ const W = En((b) => {
1791
+ const A = b.target;
1788
1792
  o("scroll", { scrollTop: A.scrollTop, scrollLeft: A.scrollLeft });
1789
1793
  }, An);
1790
1794
  return Ee(() => {
@@ -1793,7 +1797,7 @@ const Bn = (e, t) => {
1793
1797
  isOpen: n,
1794
1798
  open: u,
1795
1799
  close: T
1796
- }), (y, A) => (b(), x("div", xe({
1800
+ }), (b, A) => (h(), x("div", xe({
1797
1801
  class: "cregis-popover",
1798
1802
  ref_key: "popoverRef",
1799
1803
  ref: s
@@ -1803,11 +1807,11 @@ const Bn = (e, t) => {
1803
1807
  ref_key: "popoverTriggerRef",
1804
1808
  ref: d
1805
1809
  }, Et(ne(v), !0)), [
1806
- q(y.$slots, "reference")
1810
+ q(b.$slots, "reference")
1807
1811
  ], 16),
1808
1812
  U(vt, { name: "fade" }, {
1809
1813
  default: Z(() => [
1810
- i.value ? je((b(), x("div", {
1814
+ i.value ? je((h(), x("div", {
1811
1815
  key: 0,
1812
1816
  class: j(["cregis-popover__content", { "cregis-popover__content--hide-scrollbar": O.value }]),
1813
1817
  ref_key: "popoverContentRef",
@@ -1816,7 +1820,7 @@ const Bn = (e, t) => {
1816
1820
  onScroll: A[0] || (A[0] = //@ts-ignore
1817
1821
  (...z) => ne(W) && ne(W)(...z))
1818
1822
  }, [
1819
- q(y.$slots, "default")
1823
+ q(b.$slots, "default")
1820
1824
  ], 38)), [
1821
1825
  [mt, l.value]
1822
1826
  ]) : I("", !0)
@@ -1842,7 +1846,7 @@ const Bn = (e, t) => {
1842
1846
  type: { default: "default" },
1843
1847
  size: { default: "large" },
1844
1848
  align: { default: "center" },
1845
- placeholder: { default: "Please select" },
1849
+ placeholder: { default: "" },
1846
1850
  disabled: { type: Boolean },
1847
1851
  filterable: { type: Boolean },
1848
1852
  filterDebounceMs: { default: 200 },
@@ -1858,55 +1862,55 @@ const Bn = (e, t) => {
1858
1862
  let l = null;
1859
1863
  const o = () => {
1860
1864
  l !== null && (clearTimeout(l), l = null);
1861
- }, s = (h) => {
1862
- i.value = h, n("visible-change", h), !h && r.filterable && (f.value = "", g.value = "", o());
1863
- }, d = (h) => typeof h == "number" ? `n:${h}` : `s:${h}`, c = Me({}), w = Me({}), k = _(0), v = _(null), S = (h, N, K) => {
1864
- const ue = d(h);
1865
+ }, s = (g) => {
1866
+ i.value = g, n("visible-change", g), !g && r.filterable && (f.value = "", y.value = "", o());
1867
+ }, d = (g) => typeof g == "number" ? `n:${g}` : `s:${g}`, c = Me({}), w = Me({}), k = _(0), v = _(null), S = (g, N, K) => {
1868
+ const ue = d(g);
1865
1869
  return k.value++, c[ue] = N, w[ue] = K ?? N, () => {
1866
1870
  k.value--, delete c[ue], delete w[ue];
1867
1871
  };
1868
1872
  }, O = m(() => k.value === 0);
1869
1873
  J(
1870
1874
  () => r.modelValue,
1871
- (h) => {
1872
- if (h == null || h === "") {
1875
+ (g) => {
1876
+ if (g == null || g === "") {
1873
1877
  v.value = null;
1874
1878
  return;
1875
1879
  }
1876
- v.value && v.value.value !== h && (v.value = null);
1880
+ v.value && v.value.value !== g && (v.value = null);
1877
1881
  }
1878
1882
  );
1879
1883
  const $ = m(() => {
1880
- const h = r.modelValue;
1881
- return h != null && h !== "";
1884
+ const g = r.modelValue;
1885
+ return g != null && g !== "";
1882
1886
  }), C = m(() => {
1883
1887
  if (!$.value) return "";
1884
- const h = r.modelValue;
1885
- return v.value?.value === h ? v.value.label : c[d(h)] ?? String(h);
1886
- }), E = (h) => r.modelValue === h, R = (h, N) => {
1887
- r.disabled || (v.value = { value: h, label: N }, n("update:modelValue", h), n("change", h), a.value?.close());
1888
- }, f = _(""), g = _(""), u = m(() => g.value.trim().toLowerCase()), T = m(() => {
1889
- const h = u.value;
1890
- return !r.filterable || !h ? !0 : Object.keys(c).some((N) => (w[N] ?? c[N]).toLowerCase().includes(h));
1888
+ const g = r.modelValue;
1889
+ return v.value?.value === g ? v.value.label : c[d(g)] ?? String(g);
1890
+ }), E = (g) => r.modelValue === g, R = (g, N) => {
1891
+ r.disabled || (v.value = { value: g, label: N }, n("update:modelValue", g), n("change", g), a.value?.close());
1892
+ }, f = _(""), y = _(""), u = m(() => y.value.trim().toLowerCase()), T = m(() => {
1893
+ const g = u.value;
1894
+ return !r.filterable || !g ? !0 : Object.keys(c).some((N) => (w[N] ?? c[N]).toLowerCase().includes(g));
1891
1895
  }), B = m(
1892
1896
  () => r.filterable && !!u.value && !T.value && !O.value
1893
1897
  ), D = () => {
1894
1898
  r.filterable && (o(), l = setTimeout(() => {
1895
- g.value = f.value.trim(), l = null;
1899
+ y.value = f.value.trim(), l = null;
1896
1900
  }, r.filterDebounceMs));
1897
1901
  };
1898
1902
  J(f, () => {
1899
1903
  r.filterable && D();
1900
1904
  }), J(
1901
1905
  () => r.filterable,
1902
- (h) => {
1903
- h || (f.value = "", g.value = "", o());
1906
+ (g) => {
1907
+ g || (f.value = "", y.value = "", o());
1904
1908
  }
1905
1909
  ), Ee(() => o());
1906
- const W = (h) => {
1907
- n("filter-input", String(h ?? ""));
1908
- }, y = () => {
1909
- g.value = "", o(), n("filter-clear");
1910
+ const W = (g) => {
1911
+ n("filter-input", String(g ?? ""));
1912
+ }, b = () => {
1913
+ y.value = "", o(), n("filter-clear");
1910
1914
  };
1911
1915
  Ht(cr, {
1912
1916
  modelValue: m(() => r.modelValue),
@@ -1916,16 +1920,16 @@ const Bn = (e, t) => {
1916
1920
  registerOption: S,
1917
1921
  filterQuery: u
1918
1922
  });
1919
- const A = (h) => typeof h == "number" ? `${h}px` : h, z = m(() => {
1923
+ const A = (g) => typeof g == "number" ? `${g}px` : g, z = m(() => {
1920
1924
  if (r.popperWidth) return A(r.popperWidth);
1921
- const h = r.triggerWidth;
1922
- return typeof h == "number" ? h + 8 : `calc(${h} + 8px)`;
1925
+ const g = r.triggerWidth;
1926
+ return typeof g == "number" ? g + 8 : `calc(${g} + 8px)`;
1923
1927
  }), Y = m(() => typeof z.value == "number" ? `${z.value - 12}px` : `calc(${z.value} - 12px)`), X = m(() => r.align === "center" ? "bottom" : r.align === "left" ? "bottom-start" : "bottom-end"), F = m(() => ({
1924
1928
  width: A(r.triggerWidth)
1925
- })), H = m(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), de = _(0), ce = (h) => {
1926
- de.value = h.scrollTop;
1929
+ })), H = m(() => r.size === "large" ? "20px" : r.size === "medium" ? "14px" : "12px"), de = _(0), ce = (g) => {
1930
+ de.value = g.scrollTop;
1927
1931
  };
1928
- return (h, N) => (b(), x("div", {
1932
+ return (g, N) => (h(), x("div", {
1929
1933
  class: j(["cregis-select", { "is-disabled": e.disabled }])
1930
1934
  }, [
1931
1935
  U(pt, {
@@ -1946,7 +1950,7 @@ const Bn = (e, t) => {
1946
1950
  style: ie(F.value)
1947
1951
  }, [
1948
1952
  V("div", Rn, [
1949
- $.value ? q(h.$slots, "label", {
1953
+ $.value ? q(g.$slots, "label", {
1950
1954
  key: 0,
1951
1955
  modelValue: e.modelValue,
1952
1956
  displayText: C.value,
@@ -1954,7 +1958,7 @@ const Bn = (e, t) => {
1954
1958
  hasSelection: $.value
1955
1959
  }, () => [
1956
1960
  V("p", Dn, M(C.value), 1)
1957
- ]) : (b(), x("p", zn, M(e.placeholder), 1))
1961
+ ]) : (h(), x("p", zn, M(e.placeholder), 1))
1958
1962
  ]),
1959
1963
  V("span", {
1960
1964
  class: j(["cregis-select__icon", { "is-open": i.value }])
@@ -1970,8 +1974,8 @@ const Bn = (e, t) => {
1970
1974
  V("div", {
1971
1975
  class: j(["cregis-select__dropdown", { "is-empty": O.value }])
1972
1976
  }, [
1973
- O.value ? (b(), x("p", Wn, M(e.noDataText), 1)) : I("", !0),
1974
- e.filterable ? (b(), x("div", {
1977
+ O.value ? (h(), x("p", Wn, M(e.noDataText), 1)) : I("", !0),
1978
+ e.filterable ? (h(), x("div", {
1975
1979
  key: 1,
1976
1980
  class: j(["cregis-select__dropdown-filter", { "backdrop-fixed-header": de.value > 10 }])
1977
1981
  }, [
@@ -1983,7 +1987,7 @@ const Bn = (e, t) => {
1983
1987
  size: "small",
1984
1988
  clearable: "",
1985
1989
  onInput: W,
1986
- onClear: y
1990
+ onClear: b
1987
1991
  }, {
1988
1992
  prefix: Z(() => [
1989
1993
  U(ne(Xt), { size: "14px" })
@@ -1991,9 +1995,9 @@ const Bn = (e, t) => {
1991
1995
  _: 1
1992
1996
  }, 8, ["modelValue", "width"])
1993
1997
  ], 2)) : I("", !0),
1994
- B.value ? (b(), x("p", Ln, M(e.noMatchText), 1)) : I("", !0),
1998
+ B.value ? (h(), x("p", Ln, M(e.noMatchText), 1)) : I("", !0),
1995
1999
  V("div", jn, [
1996
- q(h.$slots, "default")
2000
+ q(g.$slots, "default")
1997
2001
  ])
1998
2002
  ], 2)
1999
2003
  ]),
@@ -2023,7 +2027,7 @@ const Bn = (e, t) => {
2023
2027
  const c = s.value;
2024
2028
  return c ? a().toLowerCase().includes(c) : !0;
2025
2029
  });
2026
- return (c, w) => je((b(), x("div", {
2030
+ return (c, w) => je((h(), x("div", {
2027
2031
  class: j(["cregis-select__option", { "is-selected": l.value, "is-disabled": e.disabled }]),
2028
2032
  role: "option",
2029
2033
  "aria-selected": l.value,
@@ -2065,7 +2069,7 @@ const Bn = (e, t) => {
2065
2069
  type: { default: "default" },
2066
2070
  size: { default: "large" },
2067
2071
  align: { default: "center" },
2068
- placeholder: { default: "Please select" },
2072
+ placeholder: {},
2069
2073
  disabled: { type: Boolean },
2070
2074
  filterable: { type: Boolean },
2071
2075
  filterDebounceMs: { default: 200 },
@@ -2109,7 +2113,7 @@ const Bn = (e, t) => {
2109
2113
  return !P || S(p).includes(P) ? !0 : S(L).includes(P);
2110
2114
  }, C = m(() => r.options.filter((p) => O(p))), E = m(() => r.options.length === 0), R = m(() => (c.value, r.options.some((p) => O(p)))), f = m(
2111
2115
  () => r.filterable && !!d.value.trim() && !R.value && !E.value
2112
- ), g = (p) => {
2116
+ ), y = (p) => {
2113
2117
  i.value = p, n("visible-change", p), !p && r.filterable && (s.value = "", d.value = "", o());
2114
2118
  }, u = _(null), T = (p) => {
2115
2119
  const L = r.options.find((P) => P.value === p);
@@ -2160,12 +2164,12 @@ const Bn = (e, t) => {
2160
2164
  u.value !== null && u.value.value !== p && (u.value = null);
2161
2165
  }
2162
2166
  );
2163
- const D = m(() => B.value.level > 0), W = m(() => B.value.label), y = m(() => r.modelValue), A = m(() => W.value), z = m(() => B.value.level), Y = m(() => B.value.primary), X = m(() => B.value.sub), F = (p) => (p.children?.length ?? 0) > 0, H = (p) => r.modelValue === p, de = (p) => {
2167
+ const D = m(() => B.value.level > 0), W = m(() => B.value.label), b = m(() => r.modelValue), A = m(() => W.value), z = m(() => B.value.level), Y = m(() => B.value.primary), X = m(() => B.value.sub), F = (p) => (p.children?.length ?? 0) > 0, H = (p) => r.modelValue === p, de = (p) => {
2164
2168
  const L = r.modelValue;
2165
2169
  return L == null || L === "" ? !1 : (p.children ?? []).some((P) => P.value === L);
2166
2170
  }, ce = (p, L) => {
2167
2171
  r.disabled || p.disabled || L.disabled || (u.value = { value: L.value, label: L.label, level: 2, primary: p, sub: L }, n("update:modelValue", L.value), n("change", L.value), a.value?.close());
2168
- }, h = (p) => {
2172
+ }, g = (p) => {
2169
2173
  r.disabled || p.disabled || F(p) || (u.value = { value: p.value, label: p.label, level: 1, primary: p }, n("update:modelValue", p.value), n("change", p.value), a.value?.close());
2170
2174
  }, N = (p) => typeof p == "number" ? `${p}px` : p, K = m(() => {
2171
2175
  if (r.popperWidth !== void 0 && r.popperWidth !== null && r.popperWidth !== "")
@@ -2181,7 +2185,7 @@ const Bn = (e, t) => {
2181
2185
  const L = p.target;
2182
2186
  He.value = L.scrollTop;
2183
2187
  }, rt = [-16, -8];
2184
- return (p, L) => (b(), x("div", {
2188
+ return (p, L) => (h(), x("div", {
2185
2189
  class: j(["cregis-cascader", { "is-disabled": e.disabled }])
2186
2190
  }, [
2187
2191
  U(pt, {
@@ -2193,12 +2197,12 @@ const Bn = (e, t) => {
2193
2197
  offset: e.offset,
2194
2198
  disabled: !!e.disabled,
2195
2199
  padding: 0,
2196
- onVisibleChange: g
2200
+ onVisibleChange: y
2197
2201
  }, {
2198
2202
  reference: Z(() => [
2199
2203
  p.$slots.trigger ? q(p.$slots, "trigger", {
2200
2204
  key: 0,
2201
- modelValue: y.value,
2205
+ modelValue: b.value,
2202
2206
  selectedLabel: A.value,
2203
2207
  level: z.value,
2204
2208
  primaryOption: Y.value,
@@ -2207,7 +2211,7 @@ const Bn = (e, t) => {
2207
2211
  hasSelection: D.value,
2208
2212
  open: i.value,
2209
2213
  disabled: !!e.disabled
2210
- }) : (b(), x("div", {
2214
+ }) : (h(), x("div", {
2211
2215
  key: 1,
2212
2216
  class: j(["cregis-cascader__trigger", { [`cregis-cascader__trigger--${e.size}`]: e.size, [`cregis-cascader__trigger--${e.type}`]: e.type }]),
2213
2217
  style: ie(me.value)
@@ -2215,7 +2219,7 @@ const Bn = (e, t) => {
2215
2219
  V("div", _n, [
2216
2220
  D.value ? q(p.$slots, "label", {
2217
2221
  key: 0,
2218
- modelValue: y.value,
2222
+ modelValue: b.value,
2219
2223
  selectedLabel: A.value,
2220
2224
  level: z.value,
2221
2225
  primaryOption: Y.value,
@@ -2224,7 +2228,7 @@ const Bn = (e, t) => {
2224
2228
  hasSelection: D.value
2225
2229
  }, () => [
2226
2230
  V("p", In, M(W.value), 1)
2227
- ]) : (b(), x("p", Nn, M(e.placeholder), 1))
2231
+ ]) : (h(), x("p", Nn, M(e.placeholder), 1))
2228
2232
  ]),
2229
2233
  V("span", {
2230
2234
  class: j(["cregis-cascader__icon", { "is-open": i.value }])
@@ -2242,8 +2246,8 @@ const Bn = (e, t) => {
2242
2246
  style: ie(fe.value),
2243
2247
  onScroll: Ae
2244
2248
  }, [
2245
- E.value ? (b(), x("p", Fn, M(e.noDataText), 1)) : I("", !0),
2246
- e.filterable ? (b(), x("div", {
2249
+ E.value ? (h(), x("p", Fn, M(e.noDataText), 1)) : I("", !0),
2250
+ e.filterable ? (h(), x("div", {
2247
2251
  key: 1,
2248
2252
  class: j(["cregis-cascader__dropdown-filter", { "backdrop-fixed-header": He.value > 10 }])
2249
2253
  }, [
@@ -2263,13 +2267,13 @@ const Bn = (e, t) => {
2263
2267
  _: 1
2264
2268
  }, 8, ["modelValue", "width"])
2265
2269
  ], 2)) : I("", !0),
2266
- f.value ? (b(), x("p", Hn, M(e.noMatchText), 1)) : I("", !0),
2270
+ f.value ? (h(), x("p", Hn, M(e.noMatchText), 1)) : I("", !0),
2267
2271
  V("ul", qn, [
2268
- (b(!0), x(lt, null, ct(C.value, (P, ae) => (b(), x("li", {
2272
+ (h(!0), x(lt, null, ct(C.value, (P, ae) => (h(), x("li", {
2269
2273
  key: P.value,
2270
2274
  class: j(["cregis-cascader__dropdown-item", { "is-disabled": P.disabled }])
2271
2275
  }, [
2272
- F(P) ? (b(), x("div", Un, [
2276
+ F(P) ? (h(), x("div", Un, [
2273
2277
  U(pt, {
2274
2278
  trigger: "hover",
2275
2279
  placement: "right-start",
@@ -2287,7 +2291,7 @@ const Bn = (e, t) => {
2287
2291
  }])
2288
2292
  }, [
2289
2293
  q(p.$slots, "option", {
2290
- modelValue: y.value,
2294
+ modelValue: b.value,
2291
2295
  selectedLabel: A.value,
2292
2296
  level: z.value,
2293
2297
  primaryOption: Y.value,
@@ -2301,7 +2305,7 @@ const Bn = (e, t) => {
2301
2305
  V("p", null, M(P.label), 1)
2302
2306
  ]),
2303
2307
  V("div", Yn, [
2304
- e.showSubOptionAmount ? (b(), x("div", Xn, M(P.children.length), 1)) : I("", !0),
2308
+ e.showSubOptionAmount ? (h(), x("div", Xn, M(P.children.length), 1)) : I("", !0),
2305
2309
  U(ne(br), {
2306
2310
  size: "14px",
2307
2311
  color: "currentColor"
@@ -2311,7 +2315,7 @@ const Bn = (e, t) => {
2311
2315
  ]),
2312
2316
  default: Z(() => [
2313
2317
  V("div", Kn, [
2314
- (b(!0), x(lt, null, ct(P.children, (Q, at) => je((b(), x("div", {
2318
+ (h(!0), x(lt, null, ct(P.children, (Q, at) => je((h(), x("div", {
2315
2319
  key: Q.value,
2316
2320
  class: j(["cregis-cascader__suboption-row", {
2317
2321
  "is-active": H(Q.value),
@@ -2321,7 +2325,7 @@ const Bn = (e, t) => {
2321
2325
  onClick: ($t) => ce(P, Q)
2322
2326
  }, [
2323
2327
  q(p.$slots, "subOption", {
2324
- modelValue: y.value,
2328
+ modelValue: b.value,
2325
2329
  selectedLabel: A.value,
2326
2330
  level: z.value,
2327
2331
  primaryOption: Y.value,
@@ -2342,13 +2346,13 @@ const Bn = (e, t) => {
2342
2346
  ]),
2343
2347
  _: 2
2344
2348
  }, 1032, ["popper-width", "disabled"])
2345
- ])) : (b(), x("div", {
2349
+ ])) : (h(), x("div", {
2346
2350
  key: 1,
2347
2351
  class: "cregis-cascader__leaf-only",
2348
- onClick: (Q) => h(P)
2352
+ onClick: (Q) => g(P)
2349
2353
  }, [
2350
2354
  q(p.$slots, "option", {
2351
- modelValue: y.value,
2355
+ modelValue: b.value,
2352
2356
  selectedLabel: A.value,
2353
2357
  level: z.value,
2354
2358
  primaryOption: Y.value,