@ryuzaki13/react-foundation-ui 3.4.3 → 3.5.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.
Files changed (168) hide show
  1. package/dist/badge/index.js +65 -2
  2. package/dist/badge/index.js.map +1 -0
  3. package/dist/barcode-scanner/index.js +18 -18
  4. package/dist/base-table/index.js +2 -2
  5. package/dist/button/index.js +1 -1
  6. package/dist/check-box/index.js +1 -1
  7. package/dist/chunks/{CalendarView-Dm55k0bN.js → CalendarView-CwbPJG2Y.js} +86 -86
  8. package/dist/chunks/{CalendarView-Dm55k0bN.js.map → CalendarView-CwbPJG2Y.js.map} +1 -1
  9. package/dist/chunks/{ImageViewerRuntime-HGBWp9NM.js → ImageViewerRuntime-DZpgxzF1.js} +25 -25
  10. package/dist/chunks/{ImageViewerRuntime-HGBWp9NM.js.map → ImageViewerRuntime-DZpgxzF1.js.map} +1 -1
  11. package/dist/chunks/{TextEditorLexicalClient-C8nSoz85.js → TextEditorLexicalClient-BRp8jHId.js} +354 -354
  12. package/dist/chunks/{TextEditorLexicalClient-C8nSoz85.js.map → TextEditorLexicalClient-BRp8jHId.js.map} +1 -1
  13. package/dist/chunks/{base-table-BWvKfI2W.js → base-table-BHmboNzl.js} +138 -138
  14. package/dist/chunks/{base-table-BWvKfI2W.js.map → base-table-BHmboNzl.js.map} +1 -1
  15. package/dist/chunks/{button-DF21yxVp.js → button-D7GAU2Wa.js} +20 -20
  16. package/dist/chunks/{button-DF21yxVp.js.map → button-D7GAU2Wa.js.map} +1 -1
  17. package/dist/chunks/{check-box-CZyhzmR0.js → check-box-D_Y6iIWv.js} +19 -19
  18. package/dist/chunks/{check-box-CZyhzmR0.js.map → check-box-D_Y6iIWv.js.map} +1 -1
  19. package/dist/chunks/{context-menu-DgvXGCuI.js → context-menu-BQePxRpu.js} +159 -159
  20. package/dist/chunks/{context-menu-DgvXGCuI.js.map → context-menu-BQePxRpu.js.map} +1 -1
  21. package/dist/chunks/{date-input-D7aBsPJc.js → date-input-Crijdmmq.js} +67 -67
  22. package/dist/chunks/{date-input-D7aBsPJc.js.map → date-input-Crijdmmq.js.map} +1 -1
  23. package/dist/chunks/{date-range-preset-select-BLnY47cv.js → date-range-preset-select-CyzGMvVp.js} +6 -6
  24. package/dist/chunks/{date-range-preset-select-BLnY47cv.js.map → date-range-preset-select-CyzGMvVp.js.map} +1 -1
  25. package/dist/chunks/{dialog-1Z1zCNCe.js → dialog-BcQGVNbu.js} +13 -13
  26. package/dist/chunks/{dialog-1Z1zCNCe.js.map → dialog-BcQGVNbu.js.map} +1 -1
  27. package/dist/chunks/{flex-C7njxZ74.js → flex-DtXK7OM4.js} +29 -29
  28. package/dist/chunks/{flex-C7njxZ74.js.map → flex-DtXK7OM4.js.map} +1 -1
  29. package/dist/chunks/{floating-arrow-DPKwJfww.js → floating-arrow-DKUKx2ZQ.js} +7 -7
  30. package/dist/chunks/{floating-arrow-DPKwJfww.js.map → floating-arrow-DKUKx2ZQ.js.map} +1 -1
  31. package/dist/chunks/{input-DSPKgiCK.js → input-CuRK9Vbz.js} +78 -78
  32. package/dist/chunks/{input-DSPKgiCK.js.map → input-CuRK9Vbz.js.map} +1 -1
  33. package/dist/chunks/{input-files-tIS17-zX.js → input-files-B8j6Pb_M.js} +31 -31
  34. package/dist/chunks/{input-files-tIS17-zX.js.map → input-files-B8j6Pb_M.js.map} +1 -1
  35. package/dist/chunks/{misc-DeGboAt-.js → misc-CGQOXXCy.js} +110 -110
  36. package/dist/chunks/{misc-DeGboAt-.js.map → misc-CGQOXXCy.js.map} +1 -1
  37. package/dist/chunks/{modal-dplfAaER.js → modal-febBsMyR.js} +58 -58
  38. package/dist/chunks/{modal-dplfAaER.js.map → modal-febBsMyR.js.map} +1 -1
  39. package/dist/chunks/{picker-lvm82d0A.js → picker-BA6okKnz.js} +91 -91
  40. package/dist/chunks/{picker-lvm82d0A.js.map → picker-BA6okKnz.js.map} +1 -1
  41. package/dist/chunks/popover-yl5DVe06.js +245 -0
  42. package/dist/chunks/{popover-Bne-Ljbs.js.map → popover-yl5DVe06.js.map} +1 -1
  43. package/dist/chunks/radio-group-CW-K1n9c.js +125 -0
  44. package/dist/chunks/{radio-group-sSnlYjAX.js.map → radio-group-CW-K1n9c.js.map} +1 -1
  45. package/dist/chunks/select-DblNSc5H.js +363 -0
  46. package/dist/chunks/{select-aTGupQan.js.map → select-DblNSc5H.js.map} +1 -1
  47. package/dist/chunks/{separator-B72Aq-6a.js → separator-CIqnk2z9.js} +2 -2
  48. package/dist/chunks/{separator-B72Aq-6a.js.map → separator-CIqnk2z9.js.map} +1 -1
  49. package/dist/chunks/{sortable-BKIwlqhI.js → sortable-CQmMHAF8.js} +38 -38
  50. package/dist/chunks/{sortable-BKIwlqhI.js.map → sortable-CQmMHAF8.js.map} +1 -1
  51. package/dist/chunks/{table-DxoSOvQK.js → table-BnvjPaE1.js} +18 -18
  52. package/dist/chunks/{table-DxoSOvQK.js.map → table-BnvjPaE1.js.map} +1 -1
  53. package/dist/chunks/{table-column-interactions-DzEvVuXe.js → table-column-interactions-Do8LFtiv.js} +20 -20
  54. package/dist/chunks/{table-column-interactions-DzEvVuXe.js.map → table-column-interactions-Do8LFtiv.js.map} +1 -1
  55. package/dist/chunks/{types-D9Wj9wrg.js → types-CxXyru6U.js} +21 -21
  56. package/dist/chunks/{types-D9Wj9wrg.js.map → types-CxXyru6U.js.map} +1 -1
  57. package/dist/chunks/{useODataSelectBase-DR4PrY1j.js → useODataSelectBase-DwR4Lfv-.js} +5 -5
  58. package/dist/chunks/{useODataSelectBase-DR4PrY1j.js.map → useODataSelectBase-DwR4Lfv-.js.map} +1 -1
  59. package/dist/chunks/{wheel-picker-FS58cRsQ.js → wheel-picker-DUHGy7wE.js} +23 -23
  60. package/dist/chunks/{wheel-picker-FS58cRsQ.js.map → wheel-picker-DUHGy7wE.js.map} +1 -1
  61. package/dist/context-menu/index.js +1 -1
  62. package/dist/date-input/index.js +2 -2
  63. package/dist/date-range-preset-select/index.js +1 -1
  64. package/dist/date-time-input/index.js +122 -122
  65. package/dist/date-time-input/index.js.map +1 -1
  66. package/dist/detail/index.js +22 -22
  67. package/dist/dialog/index.js +1 -1
  68. package/dist/disclosure/index.js +9 -9
  69. package/dist/drop-zone/index.js +21 -21
  70. package/dist/errors/index.js +50 -50
  71. package/dist/expandable-action-panel/index.js +24 -24
  72. package/dist/flex/index.js +1 -1
  73. package/dist/flex/useFlexClasses.d.ts +1 -1
  74. package/dist/floating-arrow/index.js +1 -1
  75. package/dist/fullscreen-portal/index.js +8 -8
  76. package/dist/image/index.js +119 -119
  77. package/dist/input/index.js +1 -1
  78. package/dist/input-date-time/index.js +55 -55
  79. package/dist/input-file/index.js +16 -16
  80. package/dist/input-files/index.js +1 -1
  81. package/dist/input-image/index.js +17 -17
  82. package/dist/input-search/index.js +30 -2
  83. package/dist/input-search/index.js.map +1 -0
  84. package/dist/layout-picker/index.js +93 -93
  85. package/dist/layout-picker/index.js.map +1 -1
  86. package/dist/list/index.js +39 -39
  87. package/dist/listbox/index.js +33 -33
  88. package/dist/misc/index.js +1 -1
  89. package/dist/modal/index.js +1 -1
  90. package/dist/multi-select/index.js +466 -2
  91. package/dist/multi-select/index.js.map +1 -0
  92. package/dist/notifications/index.js +45 -45
  93. package/dist/option/index.js +30 -30
  94. package/dist/period-select/index.js +7 -7
  95. package/dist/picker/index.js +1 -1
  96. package/dist/popover/index.js +1 -1
  97. package/dist/preset-range-date-input/index.js +10 -10
  98. package/dist/preset-select/index.js +1 -1
  99. package/dist/radio-button/index.js +9 -9
  100. package/dist/radio-group/index.js +1 -1
  101. package/dist/select/index.js +1 -1
  102. package/dist/separator/index.js +1 -1
  103. package/dist/simple-table/index.js +5 -5
  104. package/dist/slider/index.js +82 -82
  105. package/dist/slider/index.js.map +1 -1
  106. package/dist/sortable/index.js +1 -1
  107. package/dist/splitter/index.js +55 -55
  108. package/dist/state-select/index.js +17 -17
  109. package/dist/styles.css +1 -1
  110. package/dist/switch/index.js +18 -18
  111. package/dist/table/index.js +1 -1
  112. package/dist/table-column-interactions/index.js +1 -1
  113. package/dist/table-editor/index.js +99 -99
  114. package/dist/table-sorting/index.js +13 -13
  115. package/dist/tabs/index.js +83 -83
  116. package/dist/tag-input/index.js +58 -58
  117. package/dist/tag-input/index.js.map +1 -1
  118. package/dist/text/index.js +18 -18
  119. package/dist/text-editor/index.js +3 -3
  120. package/dist/textarea/index.js +1 -1
  121. package/dist/three-scene/index.js +7 -7
  122. package/dist/toggle/index.js +20 -20
  123. package/dist/toolbar/index.js +16 -16
  124. package/dist/tree/index.js +24 -24
  125. package/dist/tree-select/index.js +189 -189
  126. package/dist/tree-select/index.js.map +1 -1
  127. package/dist/tree-table/index.js +33 -33
  128. package/dist/tree-table/index.js.map +1 -1
  129. package/dist/wheel-picker/index.js +1 -1
  130. package/package.json +1 -5
  131. package/storybook-static/project.json +1 -1
  132. package/dist/advanced-search/index.d.ts +0 -3
  133. package/dist/advanced-search/index.d.ts.map +0 -1
  134. package/dist/advanced-search/index.js +0 -399
  135. package/dist/advanced-search/index.js.map +0 -1
  136. package/dist/advanced-search/lib/index.d.ts +0 -2
  137. package/dist/advanced-search/lib/index.d.ts.map +0 -1
  138. package/dist/advanced-search/lib/searchParts.d.ts +0 -3
  139. package/dist/advanced-search/lib/searchParts.d.ts.map +0 -1
  140. package/dist/advanced-search/model/index.d.ts +0 -5
  141. package/dist/advanced-search/model/index.d.ts.map +0 -1
  142. package/dist/advanced-search/model/types.d.ts +0 -55
  143. package/dist/advanced-search/model/types.d.ts.map +0 -1
  144. package/dist/advanced-search/model/useAdvancedSearch.d.ts +0 -11
  145. package/dist/advanced-search/model/useAdvancedSearch.d.ts.map +0 -1
  146. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts +0 -6
  147. package/dist/advanced-search/model/useAdvancedSearchInitialSelected.d.ts.map +0 -1
  148. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts +0 -13
  149. package/dist/advanced-search/model/useAdvancedSearchSelection.d.ts.map +0 -1
  150. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts +0 -23
  151. package/dist/advanced-search/ui/AdvancedSearchModal.d.ts.map +0 -1
  152. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts +0 -16
  153. package/dist/advanced-search/ui/AdvancedSearchModalSession.d.ts.map +0 -1
  154. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts +0 -9
  155. package/dist/advanced-search/ui/AdvancedSearchSelect.d.ts.map +0 -1
  156. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts +0 -9
  157. package/dist/advanced-search/ui/AdvancedSearchSelectUI.d.ts.map +0 -1
  158. package/dist/advanced-search/ui/index.d.ts +0 -2
  159. package/dist/advanced-search/ui/index.d.ts.map +0 -1
  160. package/dist/chunks/badge-6mXO9BWP.js +0 -65
  161. package/dist/chunks/badge-6mXO9BWP.js.map +0 -1
  162. package/dist/chunks/input-search-Cat4c7SM.js +0 -30
  163. package/dist/chunks/input-search-Cat4c7SM.js.map +0 -1
  164. package/dist/chunks/multi-select-BZ9N6Dal.js +0 -466
  165. package/dist/chunks/multi-select-BZ9N6Dal.js.map +0 -1
  166. package/dist/chunks/popover-Bne-Ljbs.js +0 -245
  167. package/dist/chunks/radio-group-sSnlYjAX.js +0 -125
  168. package/dist/chunks/select-aTGupQan.js +0 -363
@@ -1,10 +1,10 @@
1
- import { n as e } from "../chunks/button-DF21yxVp.js";
1
+ import { n as e } from "../chunks/button-D7GAU2Wa.js";
2
2
  import { r as t } from "../chunks/grid-dI94AAbi.js";
3
- import { i as n, n as r, r as i } from "../chunks/modal-dplfAaER.js";
4
- import { s as a } from "../chunks/input-DSPKgiCK.js";
5
- import { t as o } from "../chunks/input-files-tIS17-zX.js";
6
- import { Suspense as s, lazy as c, useCallback as l, useEffect as u, useMemo as d, useRef as f, useState as p } from "react";
7
- import { Fragment as m, jsx as h, jsxs as g } from "react/jsx-runtime";
3
+ import { i as n, n as r, r as i } from "../chunks/modal-febBsMyR.js";
4
+ import { s as a } from "../chunks/input-CuRK9Vbz.js";
5
+ import { t as o } from "../chunks/input-files-B8j6Pb_M.js";
6
+ import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
7
+ import { Suspense as u, lazy as d, useCallback as f, useEffect as p, useMemo as m, useRef as h, useState as g } from "react";
8
8
  import _ from "react-easy-crop";
9
9
  //#region src/image/lib/buildImageSrcSet.ts
10
10
  function v(e) {
@@ -25,58 +25,58 @@ var b = {
25
25
  x: 0,
26
26
  y: 0
27
27
  };
28
- function x({ image: e, aspect: t = 16 / 9, width: n = "100%", className: r, style: i, crop: a, defaultCrop: o = b, zoom: s, defaultZoom: c = 1, minZoom: u = 1, maxZoom: d = 3, zoomSpeed: f = .1, objectFit: m = "contain", disabled: g = !1, onCropChange: v, onZoomChange: y, onCropComplete: x }) {
29
- let [S, C] = p(o), [w, T] = p(c), E = a ?? S, D = s ?? w, O = l((e) => {
30
- g || (a === void 0 && C(e), v?.(e));
28
+ function x({ image: e, aspect: t = 16 / 9, width: n = "100%", className: r, style: i, crop: a, defaultCrop: o = b, zoom: s, defaultZoom: l = 1, minZoom: u = 1, maxZoom: d = 3, zoomSpeed: p = .1, objectFit: m = "contain", disabled: h = !1, onCropChange: v, onZoomChange: y, onCropComplete: x }) {
29
+ let [S, C] = g(o), [w, T] = g(l), E = a ?? S, D = s ?? w, O = f((e) => {
30
+ h || (a === void 0 && C(e), v?.(e));
31
31
  }, [
32
32
  a,
33
- g,
33
+ h,
34
34
  v
35
- ]), k = l((e) => {
36
- g || (s === void 0 && T(e), y?.(e));
35
+ ]), k = f((e) => {
36
+ h || (s === void 0 && T(e), y?.(e));
37
37
  }, [
38
- g,
38
+ h,
39
39
  y,
40
40
  s
41
- ]), A = l((e, t) => {
42
- g || x?.(t, e);
43
- }, [g, x]);
44
- return /* @__PURE__ */ h("div", {
41
+ ]), A = f((e, t) => {
42
+ h || x?.(t, e);
43
+ }, [h, x]);
44
+ return /* @__PURE__ */ c("div", {
45
45
  className: r,
46
46
  style: {
47
47
  position: "relative",
48
48
  width: n,
49
49
  aspectRatio: t,
50
- pointerEvents: g ? "none" : void 0,
50
+ pointerEvents: h ? "none" : void 0,
51
51
  ...i
52
52
  },
53
- children: /* @__PURE__ */ h(_, {
53
+ children: /* @__PURE__ */ c(_, {
54
54
  image: e,
55
55
  crop: E,
56
56
  zoom: D,
57
57
  aspect: t,
58
58
  minZoom: u,
59
59
  maxZoom: d,
60
- zoomSpeed: f,
60
+ zoomSpeed: p,
61
61
  objectFit: m,
62
62
  onCropChange: O,
63
63
  onZoomChange: k,
64
64
  onCropComplete: A,
65
- cropperProps: { "aria-disabled": g || void 0 }
65
+ cropperProps: { "aria-disabled": h || void 0 }
66
66
  })
67
67
  });
68
68
  }
69
69
  //#endregion
70
70
  //#region src/image/ui/ImagePlaceholder.tsx
71
71
  function S({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", className: r }) {
72
- return /* @__PURE__ */ h("div", {
72
+ return /* @__PURE__ */ c("div", {
73
73
  style: {
74
74
  width: e,
75
75
  height: t,
76
76
  aspectRatio: n
77
77
  },
78
78
  className: r,
79
- children: /* @__PURE__ */ h("svg", {
79
+ children: /* @__PURE__ */ c("svg", {
80
80
  width: e,
81
81
  height: t,
82
82
  viewBox: "0 0 200 200",
@@ -87,31 +87,31 @@ function S({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
87
87
  ry: "10",
88
88
  style: { display: "block" },
89
89
  "aria-label": "Изображение недоступно",
90
- children: /* @__PURE__ */ g("g", {
90
+ children: /* @__PURE__ */ l("g", {
91
91
  fill: "var(--surface-0)",
92
92
  children: [
93
- /* @__PURE__ */ h("rect", {
93
+ /* @__PURE__ */ c("rect", {
94
94
  x: "40",
95
95
  y: "50",
96
96
  width: "120",
97
97
  height: "100",
98
98
  rx: "10"
99
99
  }),
100
- /* @__PURE__ */ h("circle", {
100
+ /* @__PURE__ */ c("circle", {
101
101
  cx: "60",
102
102
  cy: "70",
103
103
  r: "8",
104
104
  fill: "var(--surface-2)"
105
105
  }),
106
- /* @__PURE__ */ h("path", {
106
+ /* @__PURE__ */ c("path", {
107
107
  d: "M50 130 L75 100 L100 130 Z",
108
108
  fill: "var(--surface-2)"
109
109
  }),
110
- /* @__PURE__ */ h("path", {
110
+ /* @__PURE__ */ c("path", {
111
111
  d: "M90 130 L120 90 L150 130 Z",
112
112
  fill: "var(--surface-2)"
113
113
  }),
114
- /* @__PURE__ */ h("line", {
114
+ /* @__PURE__ */ c("line", {
115
115
  x1: "160",
116
116
  y1: "40",
117
117
  x2: "40",
@@ -120,7 +120,7 @@ function S({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
120
120
  strokeWidth: "15",
121
121
  strokeLinecap: "round"
122
122
  }),
123
- /* @__PURE__ */ h("line", {
123
+ /* @__PURE__ */ c("line", {
124
124
  x1: "160",
125
125
  y1: "40",
126
126
  x2: "40",
@@ -136,9 +136,9 @@ function S({ width: e = "100%", height: t = "100%", aspectRatio: n = "16 / 9", c
136
136
  }
137
137
  //#endregion
138
138
  //#region src/image/ui/ImageRenderer.tsx
139
- function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: s = !1, layout: c = "cover", width: l = "100%", height: d = "100%", aspectRatio: _, intrinsicWidth: v, intrinsicHeight: y, onLoad: b, onError: x, style: C, wrapperStyle: w, ...T }) {
140
- let E = f(null), [D, O] = p(0), [k, A] = p(!1), [j, M] = p(!1), [N, P] = p(!1);
141
- u(() => {
139
+ function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fallback: o, useFigure: u = !1, layout: d = "cover", width: f = "100%", height: m = "100%", aspectRatio: _, intrinsicWidth: v, intrinsicHeight: y, onLoad: b, onError: x, style: C, wrapperStyle: w, ...T }) {
140
+ let E = h(null), [D, O] = g(0), [k, A] = g(!1), [j, M] = g(!1), [N, P] = g(!1);
141
+ p(() => {
142
142
  if (typeof IntersectionObserver > "u") {
143
143
  let e = window.setTimeout(() => A(!0), 0);
144
144
  return () => window.clearTimeout(e);
@@ -154,8 +154,8 @@ function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
154
154
  });
155
155
  return E.current && e.observe(E.current), () => e.disconnect();
156
156
  }, []);
157
- let F = c === "intrinsic", I = F ? "auto" : d, L = v && y ? `${v} / ${y}` : void 0, R = F ? L ?? _ ?? "auto" : _ ?? "16 / 9", z = F && R !== "auto" && R !== "unset" ? "100%" : I, B = D ? `${D}px` : "100vw", V = /* @__PURE__ */ h(S, {
158
- width: l,
157
+ let F = d === "intrinsic", I = F ? "auto" : m, L = v && y ? `${v} / ${y}` : void 0, R = F ? L ?? _ ?? "auto" : _ ?? "16 / 9", z = F && R !== "auto" && R !== "unset" ? "100%" : I, B = D ? `${D}px` : "100vw", V = /* @__PURE__ */ c(S, {
158
+ width: f,
159
159
  height: z,
160
160
  aspectRatio: R
161
161
  }), H = F ? {
@@ -168,15 +168,15 @@ function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
168
168
  display: "block",
169
169
  width: "100%",
170
170
  height: "100%",
171
- objectFit: c,
171
+ objectFit: d,
172
172
  ...C
173
- }, U = /* @__PURE__ */ g(m, { children: [
173
+ }, U = /* @__PURE__ */ l(s, { children: [
174
174
  !j && !N && (o || V),
175
- k && !N && /* @__PURE__ */ g("picture", { children: [t?.map((e) => /* @__PURE__ */ h("source", {
175
+ k && !N && /* @__PURE__ */ l("picture", { children: [t?.map((e) => /* @__PURE__ */ c("source", {
176
176
  srcSet: e.srcSet,
177
177
  type: e.type,
178
178
  sizes: e.sizes ?? B
179
- }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ h("img", {
179
+ }, `${e.type ?? "source"}-${e.srcSet}`)), /* @__PURE__ */ c("img", {
180
180
  src: e,
181
181
  alt: n,
182
182
  role: r,
@@ -194,19 +194,19 @@ function C({ src: e, sources: t, alt: n, role: r, ariaLabel: i, caption: a, fall
194
194
  ...T
195
195
  })] }),
196
196
  N && V
197
- ] }), W = /* @__PURE__ */ h("div", {
197
+ ] }), W = /* @__PURE__ */ c("div", {
198
198
  ref: E,
199
199
  style: {
200
- width: l,
200
+ width: f,
201
201
  height: I,
202
202
  aspectRatio: R,
203
203
  ...w
204
204
  },
205
205
  children: U
206
206
  });
207
- return s ? /* @__PURE__ */ g("figure", {
207
+ return u ? /* @__PURE__ */ l("figure", {
208
208
  className: "relative",
209
- children: [W, a && /* @__PURE__ */ h("figcaption", {
209
+ children: [W, a && /* @__PURE__ */ c("figcaption", {
210
210
  style: {
211
211
  bottom: 2,
212
212
  right: 2,
@@ -232,15 +232,15 @@ var T = {
232
232
  zoom: 1
233
233
  };
234
234
  function E({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i }) {
235
- let [a, o] = p(t ?? []), [s, c] = p(0), [u, f] = p({}), m = e ?? a, h = l((t) => {
236
- let n = t(m);
235
+ let [a, o] = g(t ?? []), [s, c] = g(0), [l, u] = g({}), d = e ?? a, p = f((t) => {
236
+ let n = t(d);
237
237
  e === void 0 && o(n), r?.(n);
238
238
  }, [
239
239
  r,
240
- m,
240
+ d,
241
241
  e
242
- ]), g = d(() => m.map((e) => e.file), [m]), _ = m.length === 0 ? 0 : Math.min(s, m.length - 1), v = m[_], y = v ? w(v, _) : void 0, b = y ? u[y] ?? T : T, x = m.length > 0, S = !n && x && m.every((e) => e.alt.trim() && e.crop), C = l((e) => {
243
- h((t) => e.map((e) => {
242
+ ]), h = m(() => d.map((e) => e.file), [d]), _ = d.length === 0 ? 0 : Math.min(s, d.length - 1), v = d[_], y = v ? w(v, _) : void 0, b = y ? l[y] ?? T : T, x = d.length > 0, S = !n && x && d.every((e) => e.alt.trim() && e.crop), C = f((e) => {
243
+ p((t) => e.map((e) => {
244
244
  let n = t.find((t) => t.file.file === e.file);
245
245
  return n ? {
246
246
  ...n,
@@ -250,26 +250,26 @@ function E({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
250
250
  alt: ""
251
251
  };
252
252
  }));
253
- }, [h]), E = l((e) => {
254
- h((t) => t.map((t, n) => n === _ ? {
253
+ }, [p]), E = f((e) => {
254
+ p((t) => t.map((t, n) => n === _ ? {
255
255
  ...t,
256
256
  alt: e
257
257
  } : t));
258
- }, [_, h]), D = l((e) => {
259
- h((t) => t.map((t, n) => n === _ ? {
258
+ }, [_, p]), D = f((e) => {
259
+ p((t) => t.map((t, n) => n === _ ? {
260
260
  ...t,
261
261
  crop: e
262
262
  } : t));
263
- }, [_, h]), O = l((e) => {
264
- y && f((t) => ({
263
+ }, [_, p]), O = f((e) => {
264
+ y && u((t) => ({
265
265
  ...t,
266
266
  [y]: {
267
267
  crop: e,
268
268
  zoom: t[y]?.zoom ?? 1
269
269
  }
270
270
  }));
271
- }, [y]), k = l((e) => {
272
- y && f((t) => ({
271
+ }, [y]), k = f((e) => {
272
+ y && u((t) => ({
273
273
  ...t,
274
274
  [y]: {
275
275
  crop: t[y]?.crop ?? {
@@ -281,16 +281,16 @@ function E({ value: e, defaultValue: t, disabled: n, onChange: r, onApply: i })
281
281
  }));
282
282
  }, [y]);
283
283
  return {
284
- value: m,
285
- files: g,
284
+ value: d,
285
+ files: h,
286
286
  activeIndex: _,
287
287
  activeImage: v,
288
288
  activeCropperState: b,
289
289
  hasSelected: x,
290
290
  canApply: S,
291
- apply: l(() => {
292
- i?.(m);
293
- }, [i, m]),
291
+ apply: f(() => {
292
+ i?.(d);
293
+ }, [i, d]),
294
294
  setFiles: C,
295
295
  setActiveIndex: c,
296
296
  setActiveAlt: E,
@@ -326,37 +326,37 @@ var O = [
326
326
  "image/webp",
327
327
  "image/avif"
328
328
  ];
329
- function k({ aspect: e = 16 / 9, disabled: n, allowedMime: r = O, maxBytes: i, minimumCropWidth: s, onReadError: c, state: l }) {
330
- let u = l.activeImage?.crop, [d, f] = p({});
331
- return /* @__PURE__ */ g(t, {
329
+ function k({ aspect: e = 16 / 9, disabled: n, allowedMime: r = O, maxBytes: i, minimumCropWidth: s, onReadError: u, state: d }) {
330
+ let f = d.activeImage?.crop, [p, m] = g({});
331
+ return /* @__PURE__ */ l(t, {
332
332
  gap: "md",
333
333
  children: [
334
- /* @__PURE__ */ h(o, {
334
+ /* @__PURE__ */ c(o, {
335
335
  label: "Файл изображения",
336
336
  allowedMime: r,
337
- value: l.files,
338
- onChange: l.setFiles,
337
+ value: d.files,
338
+ onChange: d.setFiles,
339
339
  maxBytes: i,
340
340
  disabled: n,
341
- onReadError: c
341
+ onReadError: u
342
342
  }),
343
- l.hasSelected && l.activeImage && /* @__PURE__ */ g("div", { children: [
344
- /* @__PURE__ */ h(t, {
343
+ d.hasSelected && d.activeImage && /* @__PURE__ */ l("div", { children: [
344
+ /* @__PURE__ */ c(t, {
345
345
  templateColumns: "repeat(auto-fill, minmax(10em, 1fr))",
346
346
  gap: "xs",
347
- children: l.value.map((t, r) => {
347
+ children: d.value.map((t, r) => {
348
348
  let i = w(t, r);
349
- return /* @__PURE__ */ h("button", {
349
+ return /* @__PURE__ */ c("button", {
350
350
  type: "button",
351
351
  disabled: n,
352
- onClick: () => l.setActiveIndex(r),
352
+ onClick: () => d.setActiveIndex(r),
353
353
  style: {
354
354
  padding: 0,
355
- border: r === l.activeIndex ? "2px solid var(--accent-border)" : "2px solid transparent",
355
+ border: r === d.activeIndex ? "2px solid var(--accent-border)" : "2px solid transparent",
356
356
  background: "transparent",
357
357
  cursor: n ? "default" : "pointer"
358
358
  },
359
- children: /* @__PURE__ */ h("span", {
359
+ children: /* @__PURE__ */ c("span", {
360
360
  style: {
361
361
  position: "relative",
362
362
  display: "block",
@@ -364,13 +364,13 @@ function k({ aspect: e = 16 / 9, disabled: n, allowedMime: r = O, maxBytes: i, m
364
364
  aspectRatio: e,
365
365
  overflow: "hidden"
366
366
  },
367
- children: /* @__PURE__ */ h("img", {
367
+ children: /* @__PURE__ */ c("img", {
368
368
  src: t.file.dataUrl,
369
369
  alt: t.alt || `Предпросмотр изображения ${r + 1}`,
370
- style: D(t, d[i], e),
370
+ style: D(t, p[i], e),
371
371
  onLoad: (e) => {
372
372
  let t = e.currentTarget;
373
- f((e) => ({
373
+ m((e) => ({
374
374
  ...e,
375
375
  [i]: {
376
376
  width: t.naturalWidth,
@@ -383,77 +383,77 @@ function k({ aspect: e = 16 / 9, disabled: n, allowedMime: r = O, maxBytes: i, m
383
383
  }, i);
384
384
  })
385
385
  }),
386
- /* @__PURE__ */ g("div", { children: [
386
+ /* @__PURE__ */ l("div", { children: [
387
387
  "Выберите область изображения",
388
388
  " ",
389
- u && /* @__PURE__ */ g("code", {
390
- className: s && u.width < s ? "statusError" : "statusSuccess",
389
+ f && /* @__PURE__ */ l("code", {
390
+ className: s && f.width < s ? "statusError" : "statusSuccess",
391
391
  children: [
392
- u.width,
392
+ f.width,
393
393
  "x",
394
- u.height,
395
- s && u.width < s ? " — недостаточная ширина" : ""
394
+ f.height,
395
+ s && f.width < s ? " — недостаточная ширина" : ""
396
396
  ]
397
397
  })
398
398
  ] }),
399
- /* @__PURE__ */ h(x, {
400
- image: l.activeImage.file.dataUrl,
401
- crop: l.activeCropperState.crop,
402
- zoom: l.activeCropperState.zoom,
399
+ /* @__PURE__ */ c(x, {
400
+ image: d.activeImage.file.dataUrl,
401
+ crop: d.activeCropperState.crop,
402
+ zoom: d.activeCropperState.zoom,
403
403
  aspect: e,
404
404
  disabled: n,
405
- onCropChange: l.setActiveCropperCrop,
406
- onZoomChange: l.setActiveCropperZoom,
407
- onCropComplete: l.setActiveCrop
408
- }, w(l.activeImage, l.activeIndex))
405
+ onCropChange: d.setActiveCropperCrop,
406
+ onZoomChange: d.setActiveCropperZoom,
407
+ onCropComplete: d.setActiveCrop
408
+ }, w(d.activeImage, d.activeIndex))
409
409
  ] }),
410
- /* @__PURE__ */ h(a, {
410
+ /* @__PURE__ */ c(a, {
411
411
  required: !0,
412
- disabled: !l.hasSelected || n,
412
+ disabled: !d.hasSelected || n,
413
413
  label: "Краткое описание изображения",
414
414
  placeholder: "",
415
- value: l.activeImage?.alt ?? "",
416
- onChange: l.setActiveAlt
415
+ value: d.activeImage?.alt ?? "",
416
+ onChange: d.setActiveAlt
417
417
  })
418
418
  ]
419
419
  });
420
420
  }
421
421
  //#endregion
422
422
  //#region src/image/ui/ImageSelectionModal.tsx
423
- function A({ disabled: t, isOpen: a = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...c }) {
424
- let l = E({
425
- ...c,
423
+ function A({ disabled: t, isOpen: a = !0, onClose: o = () => {}, title: s = "Загрузка нового изображения", ...u }) {
424
+ let d = E({
425
+ ...u,
426
426
  disabled: t
427
427
  });
428
- return c.onApply ? /* @__PURE__ */ g(r, {
428
+ return u.onApply ? /* @__PURE__ */ l(r, {
429
429
  isOpen: a,
430
430
  onClose: o,
431
431
  title: s,
432
432
  size: "xl",
433
- children: [/* @__PURE__ */ h(i, {
433
+ children: [/* @__PURE__ */ c(i, {
434
434
  scrollable: !0,
435
- children: /* @__PURE__ */ h(k, {
436
- ...c,
435
+ children: /* @__PURE__ */ c(k, {
436
+ ...u,
437
437
  disabled: t,
438
- state: l
438
+ state: d
439
439
  })
440
- }), /* @__PURE__ */ h(n, { children: /* @__PURE__ */ h(e, {
441
- disabled: !l.canApply,
440
+ }), /* @__PURE__ */ c(n, { children: /* @__PURE__ */ c(e, {
441
+ disabled: !d.canApply,
442
442
  tone: "success",
443
- onClick: l.apply,
443
+ onClick: d.apply,
444
444
  children: "Применить"
445
445
  }) })]
446
- }) : /* @__PURE__ */ h(r, {
446
+ }) : /* @__PURE__ */ c(r, {
447
447
  isOpen: a,
448
448
  onClose: o,
449
449
  title: s,
450
450
  size: "xl",
451
- children: /* @__PURE__ */ h(i, {
451
+ children: /* @__PURE__ */ c(i, {
452
452
  scrollable: !0,
453
- children: /* @__PURE__ */ h(k, {
454
- ...c,
453
+ children: /* @__PURE__ */ c(k, {
454
+ ...u,
455
455
  disabled: t,
456
- state: l
456
+ state: d
457
457
  })
458
458
  })
459
459
  });
@@ -471,11 +471,11 @@ function j({ disabled: t, renderActions: n, ...r }) {
471
471
  canApply: i.canApply,
472
472
  apply: i.apply
473
473
  };
474
- return /* @__PURE__ */ g(m, { children: [/* @__PURE__ */ h(k, {
474
+ return /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c(k, {
475
475
  ...r,
476
476
  disabled: t,
477
477
  state: i
478
- }), n ? n(a) : r.onApply && /* @__PURE__ */ h("div", { children: /* @__PURE__ */ h(e, {
478
+ }), n ? n(a) : r.onApply && /* @__PURE__ */ c("div", { children: /* @__PURE__ */ c(e, {
479
479
  disabled: !i.canApply,
480
480
  tone: "success",
481
481
  onClick: i.apply,
@@ -486,7 +486,7 @@ function j({ disabled: t, renderActions: n, ...r }) {
486
486
  //#region src/image/ui/ImageView.tsx
487
487
  function M({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
488
488
  let a = y(e.sources, n), o = e.candidates ? v(e.candidates) : void 0, s = r ?? (e.intrinsicWidth && e.intrinsicHeight ? `${e.intrinsicWidth} / ${e.intrinsicHeight}` : void 0);
489
- return /* @__PURE__ */ h(C, {
489
+ return /* @__PURE__ */ c(C, {
490
490
  ...i,
491
491
  src: e.src,
492
492
  srcSet: o || void 0,
@@ -500,12 +500,12 @@ function M({ image: e, alt: t, sizes: n, aspectRatio: r, ...i }) {
500
500
  }
501
501
  //#endregion
502
502
  //#region src/image/ui/ImageViewer.tsx
503
- var N = c(() => import("../chunks/ImageViewerRuntime-HGBWp9NM.js"));
503
+ var N = d(() => import("../chunks/ImageViewerRuntime-DZpgxzF1.js"));
504
504
  function P(e) {
505
- let [t, n] = p(!1), r = l(() => n(!0), []);
506
- return typeof document < "u" && (e.open || t) ? /* @__PURE__ */ h(s, {
505
+ let [t, n] = g(!1), r = f(() => n(!0), []);
506
+ return typeof document < "u" && (e.open || t) ? /* @__PURE__ */ c(u, {
507
507
  fallback: null,
508
- children: /* @__PURE__ */ h(N, {
508
+ children: /* @__PURE__ */ c(N, {
509
509
  ...e,
510
510
  onRuntimeMounted: r
511
511
  })
@@ -1,2 +1,2 @@
1
- import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/input-DSPKgiCK.js";
1
+ import { a as e, c as t, d as n, i as r, l as i, n as a, o, r as s, s as c, t as l, u } from "../chunks/input-CuRK9Vbz.js";
2
2
  export { a as Input, s as InputClearButton, r as InputControl, l as InputErrorComponent, e as InputLoadingFrame, o as InputNumber, c as InputText, t as InputUI, i as InputUIFrame, u as InputUILoading, n as useInputFieldIds };