urfu-ui-kit-react 2.1.7-next.1 → 2.1.7-next.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.
Files changed (57) hide show
  1. package/dist/components/Calendar/Calendar.d.ts.map +1 -1
  2. package/dist/components/Calendar/Calendar.js +232 -194
  3. package/dist/components/Calendar/Calendar.types.d.ts +21 -0
  4. package/dist/components/Calendar/Calendar.types.d.ts.map +1 -1
  5. package/dist/components/Calendar/CalendarSelect.js +38 -38
  6. package/dist/components/Calendar/MaskedDateInput.d.ts +2 -0
  7. package/dist/components/Calendar/MaskedDateInput.d.ts.map +1 -1
  8. package/dist/components/Calendar/MaskedDateInput.js +120 -113
  9. package/dist/components/ColumnSettings/ColumnSettings.d.ts.map +1 -1
  10. package/dist/components/ColumnSettings/ColumnSettings.js +22 -21
  11. package/dist/components/ConfirmModal/ConfirmModal.d.ts +0 -1
  12. package/dist/components/ConfirmModal/ConfirmModal.d.ts.map +1 -1
  13. package/dist/components/ConfirmModal/ConfirmModal.js +11 -12
  14. package/dist/components/Drawer/Drawer.d.ts.map +1 -1
  15. package/dist/components/Drawer/Drawer.js +23 -22
  16. package/dist/components/ErrorScreen/ErrorScreenIllustration.js +28 -28
  17. package/dist/components/InputExpandTextarea/InputExpandTextarea.js +1 -1
  18. package/dist/components/InputTime/InputTime.js +12 -12
  19. package/dist/components/Menu/Menu.js +11 -11
  20. package/dist/components/Modal/Modal.js +33 -33
  21. package/dist/components/Pagination/Pagination.js +22 -22
  22. package/dist/components/Preloader/Preloader.d.ts.map +1 -1
  23. package/dist/components/Preloader/Preloader.js +13 -13
  24. package/dist/components/Search/Search.d.ts.map +1 -1
  25. package/dist/components/Search/Search.js +28 -23
  26. package/dist/components/Select/Select.d.ts +2 -0
  27. package/dist/components/Select/Select.d.ts.map +1 -1
  28. package/dist/components/Select/Select.js +21 -19
  29. package/dist/components/Switch/Switch.d.ts.map +1 -1
  30. package/dist/components/Switch/Switch.js +8 -8
  31. package/dist/components/Table/Filter/SelectFilter.d.ts.map +1 -1
  32. package/dist/components/Table/Filter/SelectFilter.js +24 -22
  33. package/dist/components/Table/TableHead.js +6 -6
  34. package/dist/components/Table/TableMobileCard.d.ts.map +1 -1
  35. package/dist/components/Table/TableMobileCard.js +27 -26
  36. package/dist/components/Table/TableMobileView.js +46 -46
  37. package/dist/components/Table/TableRow.js +1 -1
  38. package/dist/components/Tabs/Tabs.d.ts.map +1 -1
  39. package/dist/components/Tabs/Tabs.js +25 -24
  40. package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
  41. package/dist/components/Tooltip/Tooltip.js +37 -36
  42. package/dist/dev/index.js +16 -16
  43. package/dist/dev/types/vanilla/src/dev/panelStyles.d.ts +1 -1
  44. package/dist/hooks/useAutoId.js +3 -3
  45. package/dist/index.d.ts +1 -1
  46. package/dist/index.d.ts.map +1 -1
  47. package/dist/shared/kitCopy.js +1 -1
  48. package/dist/shared/kitRegistry.d.ts +2 -2
  49. package/dist/shared/optionStateColors.d.ts +2 -2
  50. package/dist/shared/optionStateColors.js +4 -4
  51. package/dist/style-no-fonts.css +1 -1
  52. package/dist/style.css +1 -1
  53. package/dist/style.layer.css +2 -2
  54. package/dist/style.shell.css +3 -3
  55. package/dist/vanilla/core/dateMask.js +1 -1
  56. package/dist/vanilla/core/describeError.js +10 -10
  57. package/package.json +1 -1
@@ -22,7 +22,7 @@ const h = (t) => {
22
22
  let r = Number(t);
23
23
  return r < 1 && (r = 1), r > n && (r = n), String(r).padStart(2, "0");
24
24
  }, y = (t) => {
25
- const n = t.replace(/\D/g, "").slice(0, 8), r = d(n.slice(0, 2), 31), e = d(n.slice(2, 4), 12), c = n.slice(4, 8), o = [];
25
+ const n = t.replaceAll(/\D/g, "").slice(0, 8), r = d(n.slice(0, 2), 31), e = d(n.slice(2, 4), 12), c = n.slice(4, 8), o = [];
26
26
  return n.length >= 1 && o.push(r), n.length > 2 && o.push(e), n.length > 4 && o.push(c), o.filter(Boolean).join(".");
27
27
  };
28
28
  export { f as getSegmentAtCaret$u, p as getSegmentRange$u, m as incrementDateSegment$u, y as maskDateValue$u, h as parseDateString$u };
@@ -55,7 +55,7 @@ function D(t) {
55
55
  if (typeof e == "string" && e) return e;
56
56
  }
57
57
  }
58
- function A(t) {
58
+ function T(t) {
59
59
  return !t || t.length > 300 || /\n\s+at |<\/?[a-z][\s\S]*>|Exception|Error:|ОШИБКА:|SQLSTATE|^[A-Z_]+$/.test(t) ? !1 : /[А-Яа-яЁё]/.test(t);
60
60
  }
61
61
  function O(t) {
@@ -95,7 +95,7 @@ function w(t, n = {}) {
95
95
  };
96
96
  if (o === "aborted")
97
97
  return { group: o, code: null, variant: "serverError", title: "", text: "", action: "none", actionLabel: "", message: "", details: r };
98
- const i = p[o], a = n.operation ? `Не удалось ${n.operation}` : n.subject ? `Не удалось загрузить ${n.subject}` : void 0, c = (a && (o === "server" || o === "parsing") ? a : void 0) ?? i.title, d = A(e.message) ? e.message : void 0, v = a && (o === "network" || o === "timeout") ? `${a}. ${i.text}` : void 0, y = d ?? v ?? i.text, E = d ? `${c}. ${d}` : c;
98
+ const i = p[o], a = n.operation ? `Не удалось ${n.operation}` : n.subject ? `Не удалось загрузить ${n.subject}` : void 0, c = (a && (o === "server" || o === "parsing") ? a : void 0) ?? i.title, d = T(e.message) ? e.message : void 0, v = a && (o === "network" || o === "timeout") ? `${a}. ${i.text}` : void 0, y = d ?? v ?? i.text, E = d ? `${c}. ${d}` : c;
99
99
  return { group: o, code: e.code, variant: P(o), title: c, text: y, action: i.action, actionLabel: i.actionLabel, message: E, details: r };
100
100
  }
101
101
  const U = ["field", "property", "path", "name", "key"], W = ["message", "msg", "detail", "error"];
@@ -151,7 +151,7 @@ function ot(t, n = {}) {
151
151
  if (!y.length) return { fields: v, message: w(t, o).message };
152
152
  if (!d)
153
153
  return { fields: v, firstField: y[0], message: w(t, o).message };
154
- const E = g.filter(A), I = E.length ? E.join("; ") : g.length ? w(t, o).title : "";
154
+ const E = g.filter(T), I = E.length ? E.join("; ") : g.length ? w(t, o).title : "";
155
155
  return { fields: v, firstField: y[0], message: I };
156
156
  }
157
157
  const Y = "support@urfu.ru", rt = "Написать в техподдержку";
@@ -173,7 +173,7 @@ function S() {
173
173
  if (s.service) return s.service;
174
174
  if (typeof document > "u") return;
175
175
  const t = document.querySelector(`[id^="${x}"]`);
176
- return t ? t.id.slice(x.length).replace(/_+$/, "").replace(/_/g, "-") : typeof location > "u" ? void 0 : location.host;
176
+ return t ? t.id.slice(x.length).replace(/_+$/, "").replaceAll("_", "-") : typeof location > "u" ? void 0 : location.host;
177
177
  }
178
178
  function X(t) {
179
179
  const n = [
@@ -197,7 +197,7 @@ function H(t) {
197
197
  const n = t.match(/Android ([\d.]+)/);
198
198
  if (n) return `Android ${n[1]}`;
199
199
  const e = t.match(/(?:iPhone|iPad).*OS ([\d_]+)/);
200
- return e ? `iOS ${e[1].replace(/_/g, ".")}` : /Mac OS X/.test(t) ? "macOS" : /Linux/.test(t) ? "Linux" : "не определена";
200
+ return e ? `iOS ${e[1].replaceAll("_", ".")}` : /Mac OS X/.test(t) ? "macOS" : /Linux/.test(t) ? "Linux" : "не определена";
201
201
  }
202
202
  function Q(t) {
203
203
  const n = new Date(t);
@@ -224,8 +224,8 @@ function G() {
224
224
  const e = window.innerWidth;
225
225
  return `${e <= 576 ? "mobile" : e <= 900 ? "tablet" : "desktop"} (по ширине окна, шкала urfu не включена)`;
226
226
  }
227
- function T() {
228
- return "2.1.7-next.1";
227
+ function A() {
228
+ return "2.1.7-next.2";
229
229
  }
230
230
  function z(t) {
231
231
  if (!(!s.roles && !t))
@@ -249,12 +249,12 @@ function J() {
249
249
  function tt(t, n) {
250
250
  const e = G(), o = z(n == null ? void 0 : n.roles);
251
251
  if (!t)
252
- return ["Дополнительные сведения: " + [`кит ${T()}`, e && `брейкпоинт ${e.split(" ")[0]}`, o && o.charAt(0).toLowerCase() + o.slice(1)].filter(Boolean).join("; ")];
252
+ return ["Дополнительные сведения: " + [`кит ${A()}`, e && `брейкпоинт ${e.split(" ")[0]}`, o && o.charAt(0).toLowerCase() + o.slice(1)].filter(Boolean).join("; ")];
253
253
  const r = n ? n.requests : k();
254
254
  return [
255
255
  "",
256
256
  "Дополнительные сведения:",
257
- `Версия кита: ${T()}`,
257
+ `Версия кита: ${A()}`,
258
258
  e ? `Брейкпоинт: ${e}` : void 0,
259
259
  o,
260
260
  ...r.length ? ["Последние запросы (время по Екатеринбургу):", ...r.map(Z)] : ["Последние запросы: нет"]
@@ -297,4 +297,4 @@ function at(t, n = Y) {
297
297
  `);
298
298
  return `mailto:${n}?subject=${encodeURIComponent(r)}&body=${encodeURIComponent(i)}`;
299
299
  }
300
- export { N as DEFAULT_ERROR_TEXTS$u, Y as DEFAULT_SUPPORT_EMAIL$u, rt as DEFAULT_SUPPORT_LABEL$u, it as configureErrorReport$u, nt as configureErrorTexts$u, w as describeError$u, ot as describeFieldErrors$u, ut as formatErrorDetails$u, st as getErrorReportConfig$u, A as isHumanMessage$u, at as supportMailto$u };
300
+ export { N as DEFAULT_ERROR_TEXTS$u, Y as DEFAULT_SUPPORT_EMAIL$u, rt as DEFAULT_SUPPORT_LABEL$u, it as configureErrorReport$u, nt as configureErrorTexts$u, w as describeError$u, ot as describeFieldErrors$u, ut as formatErrorDetails$u, st as getErrorReportConfig$u, T as isHumanMessage$u, at as supportMailto$u };
package/package.json CHANGED
@@ -12,7 +12,7 @@
12
12
  ],
13
13
  "license": "UNLICENSED",
14
14
  "private": false,
15
- "version": "2.1.7-next.1",
15
+ "version": "2.1.7-next.2",
16
16
  "type": "module",
17
17
  "main": "dist/urfu-ui-kit-react",
18
18
  "types": "dist/index.d.ts",