@rebilly/revel 12.12.0 → 12.12.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,6 @@
1
- ## [12.12.0](https://github.com/Rebilly/rebilly/compare/revel-v12.11.1...revel-v12.12.0) (2026-01-08)
1
+ ## [12.12.2](https://github.com/Rebilly/rebilly/compare/revel-v12.12.1...revel-v12.12.2) (2026-01-14)
2
2
 
3
3
 
4
- ### Features
4
+ ### Bug Fixes
5
5
 
6
- * Upgrade ESLint and Prettier ([#17793](https://github.com/Rebilly/rebilly/issues/17793)) ([8883216](https://github.com/Rebilly/rebilly/commit/88832162761efa08569e6dcc03366f727eebd96a))
6
+ * **recomm:** fix fragile 403 on CI ([#17968](https://github.com/Rebilly/rebilly/issues/17968)) ([a469a85](https://github.com/Rebilly/rebilly/commit/a469a852cf7d70e55593eaf61c8732c65f123349))
@@ -353,6 +353,7 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
353
353
  isAbove(): boolean;
354
354
  isComplexOptions(): boolean;
355
355
  isPlaceholderVisible(): boolean;
356
+ shouldShowPlaceholder(): boolean;
356
357
  isSingleLabelVisible(): boolean;
357
358
  optionKeys(): string[];
358
359
  pointerPosition(): number;
package/dist/revel.mjs CHANGED
@@ -10195,7 +10195,11 @@ const Uf = (M) => M.reduce(
10195
10195
  };
10196
10196
  },
10197
10197
  inputStyle() {
10198
- return this.searchable || this.multiple && this.modelValue && typeof this.modelValue == "string" && this.modelValue.length ? this.isOpen ? { width: "100%" } : { width: "0", position: "absolute", padding: "0" } : {};
10198
+ if (this.searchable || this.multiple && this.modelValue && typeof this.modelValue == "string" && this.modelValue.length) {
10199
+ const M = this.preserveSearch && this.search.length > 0;
10200
+ return this.isOpen || M ? { width: "100%" } : { width: "0", position: "absolute", padding: "0" };
10201
+ }
10202
+ return {};
10199
10203
  },
10200
10204
  internalValue() {
10201
10205
  const M = !!this.modelValue && (this.computedOptions.find(
@@ -10215,7 +10219,12 @@ const Uf = (M) => M.reduce(
10215
10219
  return !1;
10216
10220
  },
10217
10221
  isPlaceholderVisible() {
10218
- return !this.internalValue.length && (!this.searchable || !this.isOpen);
10222
+ const M = this.preserveSearch && this.search.length > 0;
10223
+ return !this.internalValue.length && (!this.searchable || !this.isOpen) && !M;
10224
+ },
10225
+ shouldShowPlaceholder() {
10226
+ const M = this.preserveSearch && this.search.length > 0;
10227
+ return (this.isPlaceholderVisible || this.loading) && !M;
10219
10228
  },
10220
10229
  isSingleLabelVisible() {
10221
10230
  return !!((this.singleValue || this.singleValue !== void 0) && (!this.isOpen || !this.searchable) && !this.visibleValues.length);
@@ -10542,7 +10551,7 @@ function q8(M, b, z, p, o, O) {
10542
10551
  onMouseenter: b[19] || (b[19] = (t) => M.isHovered = !0),
10543
10552
  onMouseleave: b[20] || (b[20] = (t) => M.isHovered = !1)
10544
10553
  }, [
10545
- M.loading ? $("", !0) : j(M.$slots, "selection", {
10554
+ !M.loading || M.visibleValues.length > 0 ? j(M.$slots, "selection", {
10546
10555
  key: 0,
10547
10556
  search: M.search,
10548
10557
  remove: M.removeElement,
@@ -10584,7 +10593,7 @@ function q8(M, b, z, p, o, O) {
10584
10593
  textContent: U(M.limitText(M.internalValue.length - M.limit))
10585
10594
  }, null, 8, Qf)
10586
10595
  ]) : $("", !0)
10587
- ]),
10596
+ ]) : $("", !0),
10588
10597
  Y(o2, { name: "r-select-loading" }, {
10589
10598
  default: O0(() => [
10590
10599
  j(M.$slots, "loading", {}, () => [
@@ -10637,7 +10646,7 @@ function q8(M, b, z, p, o, O) {
10637
10646
  ], 64))
10638
10647
  ])
10639
10648
  ], 32)) : $("", !0),
10640
- M.isPlaceholderVisible || M.loading ? (q(), u("span", {
10649
+ M.shouldShowPlaceholder ? (q(), u("span", {
10641
10650
  key: 3,
10642
10651
  class: "r-select-placeholder",
10643
10652
  onMousedown: b[18] || (b[18] = B0((...t) => M.toggle && M.toggle(...t), ["prevent"]))