@fy-/fws-vue 2.3.92 → 2.3.94

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.
@@ -279,7 +279,7 @@ defineExpose({ focus, blur, getInputRef })
279
279
  >
280
280
  {{ label }}
281
281
  </label>
282
- <div class="grow-wrap">
282
+ <div class="grow-wrap" :data-replicated-value="model?.toString() || ''">
283
283
  <!-- @vue-skip -->
284
284
  <textarea
285
285
  :id="id"
@@ -342,7 +342,7 @@ defineExpose({ focus, blur, getInputRef })
342
342
  rounded-lg border border-fv-neutral-300 focus:ring-2 focus:ring-fv-primary-300 focus:border-fv-primary-500
343
343
  dark:bg-fv-neutral-700 dark:border-fv-neutral-600 dark:placeholder-fv-neutral-300
344
344
  dark:text-white dark:focus:ring-fv-primary-800 dark:focus:border-fv-primary-500
345
- transition-colors duration-200 shadow-sm min-h-[100px]"
345
+ transition-colors duration-200 shadow-sm min-h-[100px] max-h-[50vh] overflow-y-auto"
346
346
  @focus="handleFocus"
347
347
  @blur="handleBlur"
348
348
  />
@@ -563,7 +563,8 @@ input[type="range"]:focus::-moz-range-thumb {
563
563
  }
564
564
  .grow-wrap > textarea {
565
565
  resize: none;
566
- overflow: hidden;
566
+ overflow-y: auto;
567
+ max-height: 50vh;
567
568
  }
568
569
  .grow-wrap > textarea,
569
570
  .grow-wrap::after {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fy-/fws-vue",
3
- "version": "2.3.92",
3
+ "version": "2.3.94",
4
4
  "author": "Florian 'Fy' Gasquez <m@fy.to>",
5
5
  "license": "MIT",
6
6
  "homepage": "https://github.com/fy-to/FWJS#readme",
@@ -30,12 +30,18 @@ export const useServerRouter = defineStore('routerStore', {
30
30
  },
31
31
  push(path: any, status = 302) {
32
32
  this.status = status
33
- if (status !== 302) this.redirect = path
33
+ if (status !== 302) {
34
+ // Resolve path to string if it's a route location object
35
+ this.redirect = typeof path === 'string' ? path : this._router?.resolve(path)?.fullPath || path
36
+ }
34
37
  return this._router?.push(path)
35
38
  },
36
39
  replace(path: any, status = 302) {
37
40
  this.status = status
38
- if (status !== 302) this.redirect = path
41
+ if (status !== 302) {
42
+ // Resolve path to string if it's a route location object
43
+ this.redirect = typeof path === 'string' ? path : this._router?.resolve(path)?.fullPath || path
44
+ }
39
45
  return this._router?.replace(path)
40
46
  },
41
47
  go(delta: number) {