@hortiview/shared-components 0.0.4722 → 0.0.4724
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/dist/_getTag-DyrzUAbj.js +494 -0
- package/dist/assets/DeleteModal.css +1 -1
- package/dist/components/BaseView/BaseView.js +43 -297
- package/dist/components/BasicHeading/BasicHeading.js +24 -25
- package/dist/components/BasicHeading/BasicHeading.test.js +4 -4
- package/dist/components/BlockView/BlockView.js +14 -14
- package/dist/components/DeleteModal/DeleteModal.js +49 -4687
- package/dist/components/Disclaimer/Disclaimer.js +8 -10
- package/dist/components/EmptyView/EmptyView.js +8 -247
- package/dist/components/HashTabView/HashTabView.js +52 -1838
- package/dist/components/HeaderFilter/HeaderFilter.js +18 -7595
- package/dist/components/Iconify/Iconify.js +1 -1
- package/dist/components/ListArea/ListArea.js +316 -261
- package/dist/components/ListArea/ListArea.test.js +1 -1
- package/dist/components/ListArea/ListAreaService.js +34 -35
- package/dist/components/SearchBar/SearchBar.js +21 -2043
- package/dist/main.d.ts +1 -0
- package/package.json +1 -1
- package/dist/_getTag-DNUtgXkb.js +0 -136
- package/dist/_stringToPath-BfzwTbL6.js +0 -54
- package/dist/component-Rx4bNsGO.js +0 -680
- package/dist/index.es-Ba9oZK_n.js +0 -769
- package/dist/index.es-C1ojb4Lq.js +0 -106
- package/dist/index.es-CNBieliG.js +0 -151
- package/dist/index.es-CQ3ep412.js +0 -305
- package/dist/index.es-CVCp4d0C.js +0 -45
- package/dist/index.es-Cct4Uapb.js +0 -1776
- package/dist/index.es-Cj9DW-2T.js +0 -430
- package/dist/index.es-Cm4X20_S.js +0 -673
- package/dist/index.es-InSNsV4f.js +0 -1067
- package/dist/index.es-L0ZCcbUf.js +0 -4939
- package/dist/tslib.es6-CIXEwqhg.js +0 -72
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { jsx as o, Fragment as c } from "react/jsx-runtime";
|
|
2
|
+
import { Button as g } from "@element/react-components";
|
|
2
3
|
import { BasicHeading as a } from "./BasicHeading.js";
|
|
3
4
|
import { r as i, s as n } from "../../react.esm-BeDwcQWb.js";
|
|
4
|
-
import { d as
|
|
5
|
-
|
|
6
|
-
g("BasicHeading-Test", () => {
|
|
5
|
+
import { d as h, t as s, g as e } from "../../vi.JYQecGiw-BbUbJcT8.js";
|
|
6
|
+
h("BasicHeading-Test", () => {
|
|
7
7
|
s("render small container without content", () => {
|
|
8
8
|
i(/* @__PURE__ */ o(a, { heading: "Test" }));
|
|
9
9
|
const t = n.getByTestId("HeaderContainer");
|
|
@@ -14,7 +14,7 @@ g("BasicHeading-Test", () => {
|
|
|
14
14
|
e(d).toBeDefined();
|
|
15
15
|
}), s("render large container with children", () => {
|
|
16
16
|
i(
|
|
17
|
-
/* @__PURE__ */ o(a, { heading: "Test", marginBottom: "large", children: /* @__PURE__ */ o(
|
|
17
|
+
/* @__PURE__ */ o(a, { heading: "Test", marginBottom: "large", children: /* @__PURE__ */ o(g, { children: "Extracontent" }) })
|
|
18
18
|
);
|
|
19
19
|
const t = n.getByTestId("HeaderContainer");
|
|
20
20
|
e(t).toBeDefined();
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as f, jsx as i } from "react/jsx-runtime";
|
|
2
|
-
import {
|
|
2
|
+
import { TypoSubtitle as B, TypoDisplay as C } from "@element/react-components";
|
|
3
|
+
import { useState as A, useEffect as D, useMemo as E } from "react";
|
|
3
4
|
import { s as e } from "../../BlockView.module-8kbPxxc4.js";
|
|
4
|
-
import { getBlockNumberByDto as
|
|
5
|
-
import { a as E, c as S } from "../../index.es-Cm4X20_S.js";
|
|
5
|
+
import { getBlockNumberByDto as S } from "../../services/BlockService.js";
|
|
6
6
|
const R = ({
|
|
7
7
|
rows: s,
|
|
8
8
|
columns: t,
|
|
@@ -17,28 +17,28 @@ const R = ({
|
|
|
17
17
|
blockViewTitle: v,
|
|
18
18
|
blockLabel: $
|
|
19
19
|
}) => {
|
|
20
|
-
const [p, h] =
|
|
21
|
-
|
|
20
|
+
const [p, h] = A(0);
|
|
21
|
+
D(() => {
|
|
22
22
|
if (!c)
|
|
23
23
|
return;
|
|
24
|
-
const o =
|
|
24
|
+
const o = S(c, t);
|
|
25
25
|
h(o);
|
|
26
26
|
}, [c, t]);
|
|
27
|
-
const g =
|
|
27
|
+
const g = E(() => s * t, [s, t]), w = (o) => {
|
|
28
28
|
u && u(o, c ?? void 0);
|
|
29
|
-
}, x = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((
|
|
29
|
+
}, x = ({ row: o, column: l }) => b.length === 0 ? !0 : b.some((m) => m.position?.row === o && m.position?.column === l);
|
|
30
30
|
return /* @__PURE__ */ f("div", { className: e.grid, children: [
|
|
31
|
-
!n && /* @__PURE__ */ i(
|
|
32
|
-
/* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((
|
|
33
|
-
const r = t * l +
|
|
31
|
+
!n && /* @__PURE__ */ i(B, { level: 1, bold: !0, className: e.black, children: v }),
|
|
32
|
+
/* @__PURE__ */ i("div", { className: e.blockLayout, style: { width: `${d}rem`, height: `${d}rem` }, children: Array.from({ length: s }).map((o, l) => /* @__PURE__ */ i("div", { className: e.blockRow, children: Array.from({ length: t }).map((m, a) => {
|
|
33
|
+
const r = t * l + a + 1;
|
|
34
34
|
return /* @__PURE__ */ i(
|
|
35
35
|
"div",
|
|
36
36
|
{
|
|
37
37
|
"data-testid": "blockViewBlock",
|
|
38
|
-
className: `${e.block} ${p === r ? e.active : ""} ${x({ row: l + 1, column:
|
|
38
|
+
className: `${e.block} ${p === r ? e.active : ""} ${x({ row: l + 1, column: a + 1 }) ? "" : e.empty} ${k.includes(r) ? e.error : ""}`,
|
|
39
39
|
id: `block${r}`,
|
|
40
40
|
onClick: N ? () => {
|
|
41
|
-
h(r), w({ row: l + 1, column:
|
|
41
|
+
h(r), w({ row: l + 1, column: a + 1 });
|
|
42
42
|
} : void 0,
|
|
43
43
|
children: y && /* @__PURE__ */ i(
|
|
44
44
|
"div",
|
|
@@ -51,7 +51,7 @@ const R = ({
|
|
|
51
51
|
r
|
|
52
52
|
);
|
|
53
53
|
}) }, l)) }),
|
|
54
|
-
!n && /* @__PURE__ */ f(
|
|
54
|
+
!n && /* @__PURE__ */ f(C, { themeColor: "primary", level: 6, children: [
|
|
55
55
|
g,
|
|
56
56
|
" ",
|
|
57
57
|
$
|