@1337exp/taoui 5.11.0 → 5.12.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,19 @@
1
1
  # Changelog
2
2
 
3
+ ## 5.12.0
4
+
5
+ Nothing to migrate.
6
+
7
+ - **`TaoTextarea` `maxHeight`.** The field grew with its text up to 500px, written into the component. Now `maxHeight` sets it: a number is px, a string any CSS length (`50vh`, `20rem`), `none` — no limit; 500 stays the default. Dragging the corner stops there too. A framed field (`variant="outline"`) no longer scrolls by 2px: the height counts its border.
8
+
9
+ ## 5.11.1
10
+
11
+ A fix; nothing to migrate.
12
+
13
+ - **Secondary text reads in the dark theme.** `--tao-color-text-muted` (labels, hints, legends, the names in TaoNav and the charts) was `#666`: 3.2:1 on the page and 2.9:1 on a card, below the 4.5:1 of normal text, in every dark palette. It was the grey of the neutral fill too, where a white label needs it dark. The two are apart now: the new `--tao-color-neutral` keeps `#666` for `tone="neutral"` (its white label stays 5.7:1), and muted text is `#8a8a8a` (`--tao-gray-350`): 5.3:1 on the page and 4.8:1 on a card. The light theme was fine (5.7:1) and does not change. The carousel dots and the knob of a switch that is off take the muted grey too and are a little lighter. A test now holds muted text at 4.5:1 on the page and on a card in both themes.
14
+ - **`TaoHeatmap` stripes, even.** The hatched levels were one gradient over the whole cell with 1.5px lines, and the browser drew them thicker and thinner by turns. Now a 6px tile repeats, so every stripe is the same: about 1px, 4px apart, at 135°, and lighter (45% of the tone), so they do not ripple.
15
+ - Showcase: the «Orders by time» caption stands off the map.
16
+
3
17
  ## 5.11.0
4
18
 
5
19
  Nothing to migrate.
package/dist/index.d.ts CHANGED
@@ -7287,6 +7287,13 @@ readonly?: boolean;
7287
7287
  /** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
7288
7288
  noSpace?: boolean;
7289
7289
  rows?: number;
7290
+ /**
7291
+ * How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
7292
+ * `20rem`), `none` — no limit. Dragging the corner stops there too.
7293
+ * До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
7294
+ * (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
7295
+ */
7296
+ maxHeight?: number | string;
7290
7297
  resize?: boolean;
7291
7298
  modelValue?: string;
7292
7299
  /** Focus on mount. / Фокус при монтировании. */
@@ -7313,6 +7320,7 @@ disabled: boolean;
7313
7320
  readonly: boolean;
7314
7321
  noSpace: boolean;
7315
7322
  rows: number;
7323
+ maxHeight: number;
7316
7324
  resize: boolean;
7317
7325
  modelValue: string;
7318
7326
  autofocus: boolean;
@@ -7345,6 +7353,13 @@ readonly?: boolean;
7345
7353
  /** Spaces are not entered: neither typed nor pasted. / Пробелы не вводятся — ни с клавиатуры, ни вставкой. */
7346
7354
  noSpace?: boolean;
7347
7355
  rows?: number;
7356
+ /**
7357
+ * How tall the field grows with its text before it scrolls: a number is px, a string any CSS length (`50vh`,
7358
+ * `20rem`), `none` — no limit. Dragging the corner stops there too.
7359
+ * До какой высоты поле растёт с текстом, прежде чем прокручиваться: число — px, строка — любая длина CSS
7360
+ * (`50vh`, `20rem`), `none` — без предела. Растягивание за угол тоже останавливается на ней.
7361
+ */
7362
+ maxHeight?: number | string;
7348
7363
  resize?: boolean;
7349
7364
  modelValue?: string;
7350
7365
  /** Focus on mount. / Фокус при монтировании. */
@@ -7371,6 +7386,7 @@ disabled: boolean;
7371
7386
  readonly: boolean;
7372
7387
  noSpace: boolean;
7373
7388
  rows: number;
7389
+ maxHeight: number;
7374
7390
  resize: boolean;
7375
7391
  modelValue: string;
7376
7392
  autofocus: boolean;
@@ -7395,6 +7411,7 @@ modelValue: string;
7395
7411
  align: "start" | "center" | "end";
7396
7412
  autocomplete: string;
7397
7413
  rows: number;
7414
+ maxHeight: number | string;
7398
7415
  maxlength: number;
7399
7416
  spellcheck: boolean;
7400
7417
  minlength: number;
package/dist/index.js CHANGED
@@ -3743,6 +3743,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3743
3743
  readonly: { type: Boolean, default: false },
3744
3744
  noSpace: { type: Boolean, default: false },
3745
3745
  rows: { default: 3 },
3746
+ maxHeight: { default: 500 },
3746
3747
  resize: { type: Boolean, default: true },
3747
3748
  modelValue: { default: "" },
3748
3749
  autofocus: { type: Boolean, default: false },
@@ -3815,8 +3816,10 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3815
3816
  return;
3816
3817
  }
3817
3818
  textarea.style.height = "auto";
3818
- textarea.style.height = `${Math.min(textarea.scrollHeight, 500)}px`;
3819
+ const borders = textarea.offsetHeight - textarea.clientHeight;
3820
+ textarea.style.height = `${textarea.scrollHeight + borders}px`;
3819
3821
  }
3822
+ const maxHeightCss = computed(() => typeof props.maxHeight === "number" ? `${props.maxHeight}px` : props.maxHeight);
3820
3823
  watch(
3821
3824
  () => props.modelValue,
3822
3825
  () => {
@@ -3853,6 +3856,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3853
3856
  disabled: __props.disabled,
3854
3857
  readonly: __props.readonly,
3855
3858
  rows: __props.rows,
3859
+ style: { maxHeight: maxHeightCss.value },
3856
3860
  value: __props.modelValue,
3857
3861
  "aria-invalid": unref(invalid) || void 0,
3858
3862
  "aria-describedby": describedBy.value,
@@ -3872,7 +3876,7 @@ const _sfc_main$P = /* @__PURE__ */ defineComponent({
3872
3876
  };
3873
3877
  }
3874
3878
  });
3875
- const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-a428dc8a"]]);
3879
+ const TaoTextarea = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["__scopeId", "data-v-9aaf7131"]]);
3876
3880
  const _hoisted_1$L = ["aria-label"];
3877
3881
  const _hoisted_2$F = { class: "tao-scroll-top__content" };
3878
3882
  const _hoisted_3$A = {
@@ -5880,7 +5884,7 @@ const _sfc_main$A = /* @__PURE__ */ defineComponent({
5880
5884
  };
5881
5885
  }
5882
5886
  });
5883
- const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-dad386aa"]]);
5887
+ const TaoHeatmap = /* @__PURE__ */ _export_sfc(_sfc_main$A, [["__scopeId", "data-v-496996ae"]]);
5884
5888
  const _hoisted_1$y = { class: "tao-nav__shell" };
5885
5889
  const _hoisted_2$v = ["aria-label"];
5886
5890
  const _hoisted_3$r = { class: "tao-nav__column" };