@altinn/altinn-components 0.62.0 → 0.63.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/dist/assets/SettingsListVirtual.css +1 -0
- package/dist/components/Settings/SettingsItemBase.js +31 -30
- package/dist/components/Settings/SettingsList.js +34 -25
- package/dist/components/Settings/SettingsListVirtual.js +115 -0
- package/dist/components/Settings/index.js +10 -8
- package/dist/components/index.js +71 -69
- package/dist/index.js +85 -83
- package/dist/types/lib/components/Settings/SettingsItem.stories.d.ts +1 -0
- package/dist/types/lib/components/Settings/SettingsItemBase.d.ts +2 -1
- package/dist/types/lib/components/Settings/SettingsList.d.ts +2 -1
- package/dist/types/lib/components/Settings/SettingsListVirtual.d.ts +9 -0
- package/dist/types/lib/components/Settings/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
._virtualScrollRefWrapper_5p35f_1{margin:0 -1rem}._virtualScrollRef_5p35f_1{height:100vh;overflow-y:auto;overflow-x:hidden;padding:0 1rem}._virtualList_5p35f_12{list-style-type:none;padding:0;margin:0;isolation:isolate}._virtualListItem_5p35f_19{position:absolute;top:0;left:0;width:100%}._virtualListItem_5p35f_19:focus-within,._virtualListItem_5p35f_19:has([aria-expanded=true]){z-index:20}._virtualListItem_5p35f_19>*{margin:0}._virtualTitleItem_5p35f_35{position:absolute;top:0;left:0;width:100%;padding-bottom:1.5rem}._groupCard_5p35f_43{background-color:var(--ds-color-surface-default);padding:0 .5rem;box-shadow:var(--ds-shadow-xs)}._groupCardFirst_5p35f_49{border-top-left-radius:1rem;border-top-right-radius:1rem;padding-top:.375rem}._groupCardLast_5p35f_55{border-bottom-left-radius:1rem;border-bottom-right-radius:1rem;padding-bottom:.375rem}._groupCardNotFirst_5p35f_61>*{border-top:1px solid var(--ds-color-border-subtle)}._groupGapDefault_5p35f_65{padding-bottom:1.5rem}._groupGapMenu_5p35f_69{padding-bottom:.5rem}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { h as
|
|
1
|
+
import { jsxs as t, jsx as a, Fragment as u } from "react/jsx-runtime";
|
|
2
|
+
import { h as B, H as c, B as C, v as b } from "../../ToolbarSearch-56Sm2j7P.js";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import { Typography as
|
|
5
|
+
import { Typography as w } from "../Typography/Typography.js";
|
|
6
6
|
import "../Typography/Link.js";
|
|
7
|
-
import { ItemControls as
|
|
8
|
-
import { ItemBase as
|
|
9
|
-
import { ItemLink as
|
|
7
|
+
import { ItemControls as R } from "../Item/ItemControls.js";
|
|
8
|
+
import { ItemBase as j } from "../Item/ItemBase.js";
|
|
9
|
+
import { ItemLink as H } from "../Item/ItemLink.js";
|
|
10
10
|
import "../Button/Button.js";
|
|
11
11
|
import "react-dom";
|
|
12
12
|
import "../Snackbar/useSnackbar.js";
|
|
13
|
-
import { S as
|
|
14
|
-
import { S as
|
|
15
|
-
import '../../assets/SettingsItemBase.css';const D = "_listItem_1p24v_1", F = "_summary_1p24v_23", L = "_item_1p24v_27", M = "_media_1p24v_45", T = "_link_1p24v_59", U = "_linkIcon_1p24v_69", q = "_label_1p24v_75",
|
|
13
|
+
import { S as z } from "../../ChevronUp-hn05LboH.js";
|
|
14
|
+
import { S as A } from "../../ChevronDown-D_a7nb-G.js";
|
|
15
|
+
import '../../assets/SettingsItemBase.css';const D = "_listItem_1p24v_1", F = "_summary_1p24v_23", L = "_item_1p24v_27", M = "_media_1p24v_45", T = "_link_1p24v_59", U = "_linkIcon_1p24v_69", q = "_label_1p24v_75", E = "_controls_1p24v_88", s = {
|
|
16
16
|
listItem: D,
|
|
17
17
|
summary: F,
|
|
18
18
|
item: L,
|
|
@@ -20,13 +20,13 @@ import '../../assets/SettingsItemBase.css';const D = "_listItem_1p24v_1", F = "_
|
|
|
20
20
|
link: T,
|
|
21
21
|
linkIcon: U,
|
|
22
22
|
label: q,
|
|
23
|
-
controls:
|
|
24
|
-
},
|
|
23
|
+
controls: E
|
|
24
|
+
}, ts = ({
|
|
25
25
|
as: p,
|
|
26
26
|
ref: _,
|
|
27
27
|
hidden: v,
|
|
28
28
|
disabled: e,
|
|
29
|
-
loading:
|
|
29
|
+
loading: m,
|
|
30
30
|
color: d,
|
|
31
31
|
collapsible: o,
|
|
32
32
|
expanded: i,
|
|
@@ -36,23 +36,24 @@ import '../../assets/SettingsItemBase.css';const D = "_listItem_1p24v_1", F = "_
|
|
|
36
36
|
descriptionProps: k = {},
|
|
37
37
|
summary: n,
|
|
38
38
|
children: f,
|
|
39
|
-
highlightWords:
|
|
40
|
-
badge:
|
|
39
|
+
highlightWords: r,
|
|
40
|
+
badge: l,
|
|
41
41
|
linkIcon: x,
|
|
42
42
|
controls: y,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
43
|
+
containerAs: S = "li",
|
|
44
|
+
...g
|
|
45
|
+
}) => /* @__PURE__ */ t(S, { className: s.listItem, "data-collapsible": o, "data-expanded": i, children: [
|
|
46
|
+
/* @__PURE__ */ t(j, { ref: _, as: "div", className: s.item, color: d, "aria-hidden": v, "data-loading": m, children: [
|
|
47
|
+
/* @__PURE__ */ t(H, { ...g, className: s.link, disabled: e, as: p, children: [
|
|
48
|
+
/* @__PURE__ */ a(B, { icon: I, className: s.media }),
|
|
49
|
+
N || /* @__PURE__ */ t("span", { className: s.label, children: [
|
|
49
50
|
/* @__PURE__ */ a(
|
|
50
51
|
c,
|
|
51
52
|
{
|
|
52
53
|
...h,
|
|
53
54
|
as: "span",
|
|
54
|
-
highlightWords:
|
|
55
|
-
loading:
|
|
55
|
+
highlightWords: r,
|
|
56
|
+
loading: m,
|
|
56
57
|
maxRows: 2,
|
|
57
58
|
className: s.title
|
|
58
59
|
}
|
|
@@ -62,23 +63,23 @@ import '../../assets/SettingsItemBase.css';const D = "_listItem_1p24v_1", F = "_
|
|
|
62
63
|
{
|
|
63
64
|
...k,
|
|
64
65
|
as: "span",
|
|
65
|
-
highlightWords:
|
|
66
|
-
loading:
|
|
66
|
+
highlightWords: r,
|
|
67
|
+
loading: m,
|
|
67
68
|
maxRows: 2,
|
|
68
69
|
className: s.description
|
|
69
70
|
}
|
|
70
71
|
)
|
|
71
72
|
] })
|
|
72
73
|
] }),
|
|
73
|
-
!e && /* @__PURE__ */
|
|
74
|
-
/* @__PURE__ */ a(
|
|
75
|
-
|
|
76
|
-
o && (i ? /* @__PURE__ */ a(
|
|
74
|
+
!e && /* @__PURE__ */ t(u, { children: [
|
|
75
|
+
/* @__PURE__ */ a(R, { className: s.controls, children: y }),
|
|
76
|
+
l && /* @__PURE__ */ a(C, { ...l }),
|
|
77
|
+
o && (i ? /* @__PURE__ */ a(z, { className: s.linkIcon }) : /* @__PURE__ */ a(A, { className: s.linkIcon })) || x && /* @__PURE__ */ a(b, { className: s.linkIcon })
|
|
77
78
|
] })
|
|
78
79
|
] }),
|
|
79
|
-
n && /* @__PURE__ */ a(
|
|
80
|
+
n && /* @__PURE__ */ a(w, { className: s.summary, size: "xs", variant: "subtle", children: n }),
|
|
80
81
|
f
|
|
81
82
|
] });
|
|
82
83
|
export {
|
|
83
|
-
|
|
84
|
+
ts as SettingsItemBase
|
|
84
85
|
};
|
|
@@ -1,42 +1,51 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { Fragment as
|
|
1
|
+
import { jsx as t, jsxs as u } from "react/jsx-runtime";
|
|
2
|
+
import { Fragment as f, createElement as g } from "react";
|
|
3
3
|
import "../../index-p1eeF8LQ.js";
|
|
4
|
-
import { useMenu as
|
|
5
|
-
import { H as
|
|
4
|
+
import { useMenu as x } from "../../hooks/useMenu.js";
|
|
5
|
+
import { H as h } from "../../ToolbarSearch-56Sm2j7P.js";
|
|
6
6
|
import "../Typography/Link.js";
|
|
7
7
|
import "../Button/Button.js";
|
|
8
8
|
import { s } from "../../settlingsList.module-So3_AYgj.js";
|
|
9
9
|
import "react-dom";
|
|
10
10
|
import "../Snackbar/useSnackbar.js";
|
|
11
|
-
import { SettingsItem as
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
11
|
+
import { SettingsItem as y } from "./SettingsItem.js";
|
|
12
|
+
import { SettingsListVirtual as P } from "./SettingsListVirtual.js";
|
|
13
|
+
const K = ({
|
|
14
|
+
items: p,
|
|
15
|
+
variant: i = "default",
|
|
16
|
+
groups: a = {},
|
|
17
|
+
sortGroupBy: c,
|
|
18
|
+
virtualized: N
|
|
19
|
+
}) => {
|
|
20
|
+
if (N)
|
|
21
|
+
return /* @__PURE__ */ t(P, { items: p, variant: i, groups: a, sortGroupBy: c });
|
|
22
|
+
const { menu: d } = x({
|
|
23
|
+
items: p,
|
|
24
|
+
groups: a,
|
|
16
25
|
groupByKey: "groupId",
|
|
17
26
|
keyboardEvents: !1,
|
|
18
|
-
sortGroupBy:
|
|
27
|
+
sortGroupBy: c
|
|
19
28
|
});
|
|
20
|
-
return i === "menu" ? /* @__PURE__ */ t("div", { className: s.section, "data-variant": i, children:
|
|
29
|
+
return i === "menu" ? /* @__PURE__ */ t("div", { className: s.section, "data-variant": i, children: d?.map((e, m) => {
|
|
21
30
|
const r = e.props || {};
|
|
22
|
-
return /* @__PURE__ */
|
|
23
|
-
r?.title && /* @__PURE__ */ t(
|
|
24
|
-
/* @__PURE__ */ t("ul", { className: s.list, children: e?.items.map((
|
|
25
|
-
const l =
|
|
26
|
-
return /* @__PURE__ */
|
|
31
|
+
return /* @__PURE__ */ u(f, { children: [
|
|
32
|
+
r?.title && /* @__PURE__ */ t(h, { size: "xs", weight: "normal", variant: "subtle", children: r.title }),
|
|
33
|
+
/* @__PURE__ */ t("ul", { className: s.list, children: e?.items.map((o, n) => {
|
|
34
|
+
const l = o.props || {};
|
|
35
|
+
return /* @__PURE__ */ g(y, { ...l, key: "settings-list-item" + n });
|
|
27
36
|
}) })
|
|
28
|
-
] },
|
|
29
|
-
}) }) : /* @__PURE__ */ t("div", { className: s.section, "data-variant": i, children:
|
|
37
|
+
] }, m);
|
|
38
|
+
}) }) : /* @__PURE__ */ t("div", { className: s.section, "data-variant": i, children: d?.map((e, m) => {
|
|
30
39
|
const r = e.props || {};
|
|
31
|
-
return /* @__PURE__ */
|
|
32
|
-
r?.title && /* @__PURE__ */ t(
|
|
33
|
-
/* @__PURE__ */ t("section", { className: s.group, children: /* @__PURE__ */ t("ul", { className: s.list, children: e?.items.map((
|
|
34
|
-
const l =
|
|
35
|
-
return /* @__PURE__ */
|
|
40
|
+
return /* @__PURE__ */ u(f, { children: [
|
|
41
|
+
r?.title && /* @__PURE__ */ t(h, { size: "lg", children: r.title }),
|
|
42
|
+
/* @__PURE__ */ t("section", { className: s.group, children: /* @__PURE__ */ t("ul", { className: s.list, children: e?.items.map((o, n) => {
|
|
43
|
+
const l = o.props || {};
|
|
44
|
+
return /* @__PURE__ */ g(y, { ...l, key: "settings-list-item" + n });
|
|
36
45
|
}) }) })
|
|
37
|
-
] },
|
|
46
|
+
] }, m);
|
|
38
47
|
}) });
|
|
39
48
|
};
|
|
40
49
|
export {
|
|
41
|
-
|
|
50
|
+
K as SettingsList
|
|
42
51
|
};
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
3
|
+
import { u as C } from "../../useMenuVirtualization-Cs426RCN.js";
|
|
4
|
+
import { useRef as h, useEffect as y } from "react";
|
|
5
|
+
import "../../index-p1eeF8LQ.js";
|
|
6
|
+
import { useMenu as L } from "../../hooks/useMenu.js";
|
|
7
|
+
import { H as f } from "../../ToolbarSearch-56Sm2j7P.js";
|
|
8
|
+
import "../Typography/Link.js";
|
|
9
|
+
import "../Button/Button.js";
|
|
10
|
+
import "react-dom";
|
|
11
|
+
import "../Snackbar/useSnackbar.js";
|
|
12
|
+
import { SettingsItem as G } from "./SettingsItem.js";
|
|
13
|
+
import '../../assets/SettingsListVirtual.css';const S = "_virtualScrollRefWrapper_5p35f_1", x = "_virtualScrollRef_5p35f_1", F = "_virtualList_5p35f_12", N = "_virtualListItem_5p35f_19", z = "_virtualTitleItem_5p35f_35", M = "_groupCard_5p35f_43", $ = "_groupCardFirst_5p35f_49", E = "_groupCardLast_5p35f_55", R = "_groupCardNotFirst_5p35f_61", T = "_groupGapDefault_5p35f_65", W = "_groupGapMenu_5p35f_69", e = {
|
|
14
|
+
virtualScrollRefWrapper: S,
|
|
15
|
+
virtualScrollRef: x,
|
|
16
|
+
virtualList: F,
|
|
17
|
+
virtualListItem: N,
|
|
18
|
+
virtualTitleItem: z,
|
|
19
|
+
groupCard: M,
|
|
20
|
+
groupCardFirst: $,
|
|
21
|
+
groupCardLast: E,
|
|
22
|
+
groupCardNotFirst: R,
|
|
23
|
+
groupGapDefault: T,
|
|
24
|
+
groupGapMenu: W
|
|
25
|
+
}, K = ({
|
|
26
|
+
items: d,
|
|
27
|
+
variant: o = "default",
|
|
28
|
+
groups: g = {},
|
|
29
|
+
sortGroupBy: _
|
|
30
|
+
}) => {
|
|
31
|
+
const a = h(null), { menu: I } = L({
|
|
32
|
+
items: d,
|
|
33
|
+
groups: g,
|
|
34
|
+
groupByKey: "groupId",
|
|
35
|
+
keyboardEvents: !1,
|
|
36
|
+
sortGroupBy: _
|
|
37
|
+
}), u = I.flatMap((r) => {
|
|
38
|
+
const t = r?.props || {}, { title: s } = t, n = r?.items || [], l = [];
|
|
39
|
+
return s && l.push({ type: "title", title: s }), n.forEach((v, m) => {
|
|
40
|
+
l.push({
|
|
41
|
+
type: "item",
|
|
42
|
+
itemProps: v.props || {},
|
|
43
|
+
isFirstInGroup: m === 0,
|
|
44
|
+
isLastInGroup: m === n.length - 1
|
|
45
|
+
});
|
|
46
|
+
}), l;
|
|
47
|
+
}), p = C({
|
|
48
|
+
count: u.length,
|
|
49
|
+
useAnimationFrameWithResizeObserver: !0,
|
|
50
|
+
gap: 0,
|
|
51
|
+
estimateSize: (r) => {
|
|
52
|
+
const t = u[r];
|
|
53
|
+
if (!t) return 56;
|
|
54
|
+
if (t.type === "title") return r === 0 ? 48 : 72;
|
|
55
|
+
const s = o === "menu" ? 8 : 24;
|
|
56
|
+
return t.isLastInGroup ? 56 + s : 56;
|
|
57
|
+
},
|
|
58
|
+
getScrollElement: () => a.current
|
|
59
|
+
}), c = p.getVirtualItems();
|
|
60
|
+
return y(() => {
|
|
61
|
+
for (const r of c) {
|
|
62
|
+
const t = a.current?.querySelector(`[data-index="${r.index}"]`) ?? a.current?.querySelector(`[dataindex="${r.index}"]`) ?? a.current?.querySelector(`[dataIndex="${r.index}"]`);
|
|
63
|
+
t && p.measureElement(t);
|
|
64
|
+
}
|
|
65
|
+
}, [c]), /* @__PURE__ */ i("div", { className: e.virtualScrollRefWrapper, children: /* @__PURE__ */ i("div", { ref: a, className: e.virtualScrollRef, children: /* @__PURE__ */ i(
|
|
66
|
+
"ul",
|
|
67
|
+
{
|
|
68
|
+
className: e.virtualList,
|
|
69
|
+
style: {
|
|
70
|
+
position: "relative",
|
|
71
|
+
height: `${p.getTotalSize()}px`
|
|
72
|
+
},
|
|
73
|
+
children: c.map((r) => {
|
|
74
|
+
const t = u[r.index];
|
|
75
|
+
if (!t) return null;
|
|
76
|
+
if (t.type === "title")
|
|
77
|
+
return /* @__PURE__ */ i(
|
|
78
|
+
"li",
|
|
79
|
+
{
|
|
80
|
+
"data-index": r.index,
|
|
81
|
+
className: e.virtualTitleItem,
|
|
82
|
+
style: {
|
|
83
|
+
transform: `translateY(${r.start}px)`,
|
|
84
|
+
paddingBottom: o === "menu" ? "0.5rem" : "1.5rem"
|
|
85
|
+
},
|
|
86
|
+
children: o === "menu" ? /* @__PURE__ */ i(f, { size: "xs", weight: "normal", variant: "subtle", children: t.title }) : /* @__PURE__ */ i(f, { size: "lg", children: t.title })
|
|
87
|
+
},
|
|
88
|
+
r.key
|
|
89
|
+
);
|
|
90
|
+
const s = o === "default", n = [
|
|
91
|
+
e.virtualListItem,
|
|
92
|
+
t.isLastInGroup ? o === "menu" ? e.groupGapMenu : e.groupGapDefault : ""
|
|
93
|
+
].filter(Boolean).join(" "), l = [
|
|
94
|
+
s ? e.groupCard : "",
|
|
95
|
+
s && t.isFirstInGroup ? e.groupCardFirst : "",
|
|
96
|
+
s && t.isLastInGroup ? e.groupCardLast : "",
|
|
97
|
+
s && !t.isFirstInGroup ? e.groupCardNotFirst : ""
|
|
98
|
+
].filter(Boolean).join(" ");
|
|
99
|
+
return /* @__PURE__ */ i(
|
|
100
|
+
"li",
|
|
101
|
+
{
|
|
102
|
+
"data-index": r.index,
|
|
103
|
+
className: n,
|
|
104
|
+
style: { transform: `translateY(${r.start}px)` },
|
|
105
|
+
children: /* @__PURE__ */ i("div", { className: l, children: /* @__PURE__ */ i(G, { ...t.itemProps, containerAs: "div" }) })
|
|
106
|
+
},
|
|
107
|
+
r.key
|
|
108
|
+
);
|
|
109
|
+
})
|
|
110
|
+
}
|
|
111
|
+
) }) });
|
|
112
|
+
};
|
|
113
|
+
export {
|
|
114
|
+
K as SettingsListVirtual
|
|
115
|
+
};
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import { SettingsItem as o } from "./SettingsItem.js";
|
|
2
2
|
import { SettingsItemBase as m } from "./SettingsItemBase.js";
|
|
3
|
-
import { SettingsList as
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { SettingsList as i } from "./SettingsList.js";
|
|
4
|
+
import { SettingsListVirtual as g } from "./SettingsListVirtual.js";
|
|
5
|
+
import { SettingsSection as x } from "./SettingsSection.js";
|
|
6
|
+
import { SettingsModal as S } from "./SettingsModal.js";
|
|
7
|
+
import { UsedByLog as a } from "./UsedByLog.js";
|
|
7
8
|
import { UsedByLogItem as B } from "./UsedByLogItem.js";
|
|
8
9
|
export {
|
|
9
10
|
o as SettingsItem,
|
|
10
11
|
m as SettingsItemBase,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
12
|
+
i as SettingsList,
|
|
13
|
+
g as SettingsListVirtual,
|
|
14
|
+
S as SettingsModal,
|
|
15
|
+
x as SettingsSection,
|
|
16
|
+
a as UsedByLog,
|
|
15
17
|
B as UsedByLogItem
|
|
16
18
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -170,33 +170,34 @@ import { CheckboxOptions as Ya } from "./Forms/CheckboxOptions.js";
|
|
|
170
170
|
import { SettingsItem as _a } from "./Settings/SettingsItem.js";
|
|
171
171
|
import { SettingsItemBase as op } from "./Settings/SettingsItemBase.js";
|
|
172
172
|
import { SettingsList as ep } from "./Settings/SettingsList.js";
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import { B as
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
173
|
+
import { SettingsListVirtual as mp } from "./Settings/SettingsListVirtual.js";
|
|
174
|
+
import { SettingsSection as pp } from "./Settings/SettingsSection.js";
|
|
175
|
+
import { SettingsModal as fp } from "./Settings/SettingsModal.js";
|
|
176
|
+
import { UsedByLog as sp } from "./Settings/UsedByLog.js";
|
|
177
|
+
import { UsedByLogItem as lp } from "./Settings/UsedByLogItem.js";
|
|
178
|
+
import { DashboardHeader as up } from "./Dashboard/DashboardHeader.js";
|
|
179
|
+
import { DashboardCard as gp } from "./Dashboard/DashboardCard.js";
|
|
180
|
+
import { ActivityLog as Lp } from "./ActivityLog/ActivityLog.js";
|
|
181
|
+
import { ActivityLogSegment as Ip } from "./ActivityLog/ActivityLogSegment.js";
|
|
182
|
+
import { ActivityLogItem as bp } from "./ActivityLog/ActivityLogItem.js";
|
|
183
|
+
import { ArticleHeader as Mp } from "./Article/ArticleHeader.js";
|
|
184
|
+
import { ArticleContact as Tp } from "./Article/ArticleContact.js";
|
|
185
|
+
import { Article as hp } from "./Article/Article.js";
|
|
186
|
+
import { ModalBase as Cp } from "./Modal/ModalBase.js";
|
|
187
|
+
import { ModalHeader as Hp } from "./Modal/ModalHeader.js";
|
|
188
|
+
import { ModalFooter as wp } from "./Modal/ModalFooter.js";
|
|
189
|
+
import { ModalIcon as Rp } from "./Modal/ModalIcon.js";
|
|
190
|
+
import { ModalBody as Np } from "./Modal/ModalBody.js";
|
|
191
|
+
import { Modal as Vp } from "./Modal/Modal.js";
|
|
192
|
+
import { Tooltip as zp } from "./Tooltip/Tooltip.js";
|
|
193
|
+
import { A as jp } from "../alert-BzifOfXl.js";
|
|
194
|
+
import { B as Jp, C as Kp, a as Wp, b as Xp, D as Yp, L as Zp, c as _p, P as $p, d as ox, e as rx, f as ex, S as tx, g as mx, T as ax, u as px } from "../textfield-f4Za2qt6.js";
|
|
195
|
+
import { B as fx, S as ix } from "../button-BB5sYVKY.js";
|
|
196
|
+
import { D as nx } from "../index-Q0EA2XB0.js";
|
|
197
|
+
import { H as cx } from "../heading-C_XYsUfi.js";
|
|
198
|
+
import { L as dx } from "../link-D1SA3LCe.js";
|
|
199
|
+
import { P as Dx } from "../paragraph-BRiIBpbY.js";
|
|
200
|
+
import { V as Bx } from "../index-z82sbSVU.js";
|
|
200
201
|
export {
|
|
201
202
|
fa as AccessAreaListItem,
|
|
202
203
|
sa as AccessPackageListItem,
|
|
@@ -208,13 +209,13 @@ export {
|
|
|
208
209
|
b as AccountNotificationSettings,
|
|
209
210
|
M as AccountOrganization,
|
|
210
211
|
T as AccountSelector,
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
Lp as ActivityLog,
|
|
213
|
+
bp as ActivityLogItem,
|
|
214
|
+
Ip as ActivityLogSegment,
|
|
214
215
|
h as Alert,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
216
|
+
hp as Article,
|
|
217
|
+
Tp as ArticleContact,
|
|
218
|
+
Mp as ArticleHeader,
|
|
218
219
|
m as AttachmentLink,
|
|
219
220
|
p as AttachmentList,
|
|
220
221
|
Rt as Autocomplete,
|
|
@@ -249,8 +250,8 @@ export {
|
|
|
249
250
|
qm as ContactButtons,
|
|
250
251
|
Qm as ContactSection,
|
|
251
252
|
Go as ContextMenu,
|
|
252
|
-
|
|
253
|
-
|
|
253
|
+
gp as DashboardCard,
|
|
254
|
+
up as DashboardHeader,
|
|
254
255
|
Oo as Dialog,
|
|
255
256
|
ar as DialogActions,
|
|
256
257
|
xr as DialogActivityLog,
|
|
@@ -281,28 +282,28 @@ export {
|
|
|
281
282
|
Fr as DrawerHeader,
|
|
282
283
|
N as Dropdown,
|
|
283
284
|
Ar as DropdownBase,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
285
|
+
jp as DsAlert,
|
|
286
|
+
Jp as DsBadge,
|
|
287
|
+
fx as DsButton,
|
|
288
|
+
Kp as DsCheckbox,
|
|
289
|
+
Wp as DsChip,
|
|
290
|
+
Xp as DsCombobox,
|
|
291
|
+
nx as DsDetails,
|
|
292
|
+
Yp as DsDialog,
|
|
293
|
+
cx as DsHeading,
|
|
294
|
+
dx as DsLink,
|
|
295
|
+
Zp as DsListItem,
|
|
296
|
+
_p as DsListUnordered,
|
|
297
|
+
$p as DsPagination,
|
|
298
|
+
Dx as DsParagraph,
|
|
299
|
+
ox as DsPopover,
|
|
300
|
+
rx as DsSearch,
|
|
301
|
+
ex as DsSkeleton,
|
|
302
|
+
ix as DsSpinner,
|
|
303
|
+
tx as DsSwitch,
|
|
304
|
+
mx as DsTabs,
|
|
305
|
+
ax as DsTextfield,
|
|
306
|
+
Bx as DsValidationMessage,
|
|
306
307
|
ua as Field,
|
|
307
308
|
O as FieldBase,
|
|
308
309
|
ga as Fieldset,
|
|
@@ -360,12 +361,12 @@ export {
|
|
|
360
361
|
X as MetaItemIcon,
|
|
361
362
|
st as MetaTimestamp,
|
|
362
363
|
lt as Metadata,
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
364
|
+
Vp as Modal,
|
|
365
|
+
Cp as ModalBase,
|
|
366
|
+
Np as ModalBody,
|
|
367
|
+
wp as ModalFooter,
|
|
368
|
+
Hp as ModalHeader,
|
|
369
|
+
Rp as ModalIcon,
|
|
369
370
|
ut as NotificationItem,
|
|
370
371
|
gt as NotificationItemBase,
|
|
371
372
|
Lt as NotificationItemControls,
|
|
@@ -400,8 +401,9 @@ export {
|
|
|
400
401
|
_a as SettingsItem,
|
|
401
402
|
op as SettingsItemBase,
|
|
402
403
|
ep as SettingsList,
|
|
403
|
-
|
|
404
|
-
|
|
404
|
+
mp as SettingsListVirtual,
|
|
405
|
+
fp as SettingsModal,
|
|
406
|
+
pp as SettingsSection,
|
|
405
407
|
e as SizeEnum,
|
|
406
408
|
Xt as Skeleton,
|
|
407
409
|
Vt as Snackbar,
|
|
@@ -429,21 +431,21 @@ export {
|
|
|
429
431
|
Dm as ToolbarFilterMenu,
|
|
430
432
|
_ as ToolbarMenu,
|
|
431
433
|
$ as ToolbarSearch,
|
|
432
|
-
|
|
434
|
+
zp as Tooltip,
|
|
433
435
|
Xm as Transmission,
|
|
434
436
|
oa as TransmissionList,
|
|
435
437
|
Zm as TransmissionType,
|
|
436
438
|
_m as TransmissionTypeEnum,
|
|
437
439
|
ea as Typography,
|
|
438
|
-
|
|
439
|
-
|
|
440
|
+
sp as UsedByLog,
|
|
441
|
+
lp as UsedByLogItem,
|
|
440
442
|
la as UserListItem,
|
|
441
443
|
oo as VirtualizedMenuItems,
|
|
442
444
|
l as isAvatarGroupProps,
|
|
443
445
|
i as isAvatarProps,
|
|
444
446
|
Ne as isHeadingProps,
|
|
445
447
|
ro as isIconProps,
|
|
446
|
-
|
|
448
|
+
px as useDsPagination,
|
|
447
449
|
Bm as useFilter,
|
|
448
450
|
eo as useRootContext,
|
|
449
451
|
Kt as useSnackbar
|
package/dist/index.js
CHANGED
|
@@ -170,40 +170,41 @@ import { CheckboxOptions as Ya } from "./components/Forms/CheckboxOptions.js";
|
|
|
170
170
|
import { SettingsItem as _a } from "./components/Settings/SettingsItem.js";
|
|
171
171
|
import { SettingsItemBase as op } from "./components/Settings/SettingsItemBase.js";
|
|
172
172
|
import { SettingsList as ep } from "./components/Settings/SettingsList.js";
|
|
173
|
-
import {
|
|
174
|
-
import {
|
|
175
|
-
import {
|
|
176
|
-
import {
|
|
177
|
-
import {
|
|
178
|
-
import {
|
|
179
|
-
import {
|
|
180
|
-
import {
|
|
181
|
-
import {
|
|
182
|
-
import {
|
|
183
|
-
import {
|
|
184
|
-
import {
|
|
185
|
-
import {
|
|
186
|
-
import {
|
|
187
|
-
import {
|
|
188
|
-
import {
|
|
189
|
-
import {
|
|
190
|
-
import {
|
|
191
|
-
import {
|
|
192
|
-
import {
|
|
193
|
-
import {
|
|
194
|
-
import {
|
|
195
|
-
import {
|
|
196
|
-
import {
|
|
197
|
-
import {
|
|
198
|
-
import {
|
|
199
|
-
import {
|
|
200
|
-
import {
|
|
201
|
-
import { B as
|
|
202
|
-
import {
|
|
203
|
-
import {
|
|
204
|
-
import {
|
|
205
|
-
import {
|
|
206
|
-
import {
|
|
173
|
+
import { SettingsListVirtual as mp } from "./components/Settings/SettingsListVirtual.js";
|
|
174
|
+
import { SettingsSection as pp } from "./components/Settings/SettingsSection.js";
|
|
175
|
+
import { SettingsModal as fp } from "./components/Settings/SettingsModal.js";
|
|
176
|
+
import { UsedByLog as sp } from "./components/Settings/UsedByLog.js";
|
|
177
|
+
import { UsedByLogItem as lp } from "./components/Settings/UsedByLogItem.js";
|
|
178
|
+
import { DashboardHeader as up } from "./components/Dashboard/DashboardHeader.js";
|
|
179
|
+
import { DashboardCard as gp } from "./components/Dashboard/DashboardCard.js";
|
|
180
|
+
import { ActivityLog as Lp } from "./components/ActivityLog/ActivityLog.js";
|
|
181
|
+
import { ActivityLogSegment as Ip } from "./components/ActivityLog/ActivityLogSegment.js";
|
|
182
|
+
import { ActivityLogItem as bp } from "./components/ActivityLog/ActivityLogItem.js";
|
|
183
|
+
import { ArticleHeader as Mp } from "./components/Article/ArticleHeader.js";
|
|
184
|
+
import { ArticleContact as Tp } from "./components/Article/ArticleContact.js";
|
|
185
|
+
import { Article as hp } from "./components/Article/Article.js";
|
|
186
|
+
import { ModalBase as Cp } from "./components/Modal/ModalBase.js";
|
|
187
|
+
import { ModalHeader as Hp } from "./components/Modal/ModalHeader.js";
|
|
188
|
+
import { ModalFooter as wp } from "./components/Modal/ModalFooter.js";
|
|
189
|
+
import { ModalIcon as Np } from "./components/Modal/ModalIcon.js";
|
|
190
|
+
import { ModalBody as Ep } from "./components/Modal/ModalBody.js";
|
|
191
|
+
import { Modal as Vp } from "./components/Modal/Modal.js";
|
|
192
|
+
import { Tooltip as zp } from "./components/Tooltip/Tooltip.js";
|
|
193
|
+
import { useClickOutside as jp } from "./hooks/useClickOutside.js";
|
|
194
|
+
import { useEscapeKey as qp } from "./hooks/useEscapeKey.js";
|
|
195
|
+
import { useMenu as Wp } from "./hooks/useMenu.js";
|
|
196
|
+
import { useAccountSelector as Yp } from "./hooks/useAccountSelector.js";
|
|
197
|
+
import { formatDisplayName as _p } from "./functions/name/name.js";
|
|
198
|
+
import { formatDate as ox } from "./functions/date/date.js";
|
|
199
|
+
import { formatOrgNo as ex } from "./functions/orgno/orgno.js";
|
|
200
|
+
import { A as mx } from "./alert-BzifOfXl.js";
|
|
201
|
+
import { B as px, C as xx, a as fx, b as ix, D as sx, L as nx, c as lx, P as cx, d as ux, e as dx, f as gx, S as Dx, g as Lx, T as Bx, u as Ix } from "./textfield-f4Za2qt6.js";
|
|
202
|
+
import { B as bx, S as Ax } from "./button-BB5sYVKY.js";
|
|
203
|
+
import { D as yx } from "./index-Q0EA2XB0.js";
|
|
204
|
+
import { H as kx } from "./heading-C_XYsUfi.js";
|
|
205
|
+
import { L as Fx } from "./link-D1SA3LCe.js";
|
|
206
|
+
import { P as Px } from "./paragraph-BRiIBpbY.js";
|
|
207
|
+
import { V as vx } from "./index-z82sbSVU.js";
|
|
207
208
|
export {
|
|
208
209
|
fa as AccessAreaListItem,
|
|
209
210
|
sa as AccessPackageListItem,
|
|
@@ -215,13 +216,13 @@ export {
|
|
|
215
216
|
b as AccountNotificationSettings,
|
|
216
217
|
M as AccountOrganization,
|
|
217
218
|
T as AccountSelector,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
219
|
+
Lp as ActivityLog,
|
|
220
|
+
bp as ActivityLogItem,
|
|
221
|
+
Ip as ActivityLogSegment,
|
|
221
222
|
h as Alert,
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
223
|
+
hp as Article,
|
|
224
|
+
Tp as ArticleContact,
|
|
225
|
+
Mp as ArticleHeader,
|
|
225
226
|
m as AttachmentLink,
|
|
226
227
|
p as AttachmentList,
|
|
227
228
|
Nt as Autocomplete,
|
|
@@ -256,8 +257,8 @@ export {
|
|
|
256
257
|
Km as ContactButtons,
|
|
257
258
|
Qm as ContactSection,
|
|
258
259
|
Go as ContextMenu,
|
|
259
|
-
|
|
260
|
-
|
|
260
|
+
gp as DashboardCard,
|
|
261
|
+
up as DashboardHeader,
|
|
261
262
|
Ro as Dialog,
|
|
262
263
|
ar as DialogActions,
|
|
263
264
|
xr as DialogActivityLog,
|
|
@@ -288,28 +289,28 @@ export {
|
|
|
288
289
|
Fr as DrawerHeader,
|
|
289
290
|
E as Dropdown,
|
|
290
291
|
Ar as DropdownBase,
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
292
|
+
mx as DsAlert,
|
|
293
|
+
px as DsBadge,
|
|
294
|
+
bx as DsButton,
|
|
295
|
+
xx as DsCheckbox,
|
|
296
|
+
fx as DsChip,
|
|
297
|
+
ix as DsCombobox,
|
|
298
|
+
yx as DsDetails,
|
|
299
|
+
sx as DsDialog,
|
|
300
|
+
kx as DsHeading,
|
|
301
|
+
Fx as DsLink,
|
|
302
|
+
nx as DsListItem,
|
|
303
|
+
lx as DsListUnordered,
|
|
304
|
+
cx as DsPagination,
|
|
305
|
+
Px as DsParagraph,
|
|
306
|
+
ux as DsPopover,
|
|
307
|
+
dx as DsSearch,
|
|
308
|
+
gx as DsSkeleton,
|
|
309
|
+
Ax as DsSpinner,
|
|
310
|
+
Dx as DsSwitch,
|
|
311
|
+
Lx as DsTabs,
|
|
312
|
+
Bx as DsTextfield,
|
|
313
|
+
vx as DsValidationMessage,
|
|
313
314
|
ua as Field,
|
|
314
315
|
R as FieldBase,
|
|
315
316
|
ga as Fieldset,
|
|
@@ -367,12 +368,12 @@ export {
|
|
|
367
368
|
X as MetaItemIcon,
|
|
368
369
|
st as MetaTimestamp,
|
|
369
370
|
lt as Metadata,
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
371
|
+
Vp as Modal,
|
|
372
|
+
Cp as ModalBase,
|
|
373
|
+
Ep as ModalBody,
|
|
374
|
+
wp as ModalFooter,
|
|
375
|
+
Hp as ModalHeader,
|
|
376
|
+
Np as ModalIcon,
|
|
376
377
|
ut as NotificationItem,
|
|
377
378
|
gt as NotificationItemBase,
|
|
378
379
|
Lt as NotificationItemControls,
|
|
@@ -407,8 +408,9 @@ export {
|
|
|
407
408
|
_a as SettingsItem,
|
|
408
409
|
op as SettingsItemBase,
|
|
409
410
|
ep as SettingsList,
|
|
410
|
-
|
|
411
|
-
|
|
411
|
+
mp as SettingsListVirtual,
|
|
412
|
+
fp as SettingsModal,
|
|
413
|
+
pp as SettingsSection,
|
|
412
414
|
e as SizeEnum,
|
|
413
415
|
Xt as Skeleton,
|
|
414
416
|
Vt as Snackbar,
|
|
@@ -436,29 +438,29 @@ export {
|
|
|
436
438
|
Dm as ToolbarFilterMenu,
|
|
437
439
|
_ as ToolbarMenu,
|
|
438
440
|
$ as ToolbarSearch,
|
|
439
|
-
|
|
441
|
+
zp as Tooltip,
|
|
440
442
|
Xm as Transmission,
|
|
441
443
|
oa as TransmissionList,
|
|
442
444
|
Zm as TransmissionType,
|
|
443
445
|
_m as TransmissionTypeEnum,
|
|
444
446
|
ea as Typography,
|
|
445
|
-
|
|
446
|
-
|
|
447
|
+
sp as UsedByLog,
|
|
448
|
+
lp as UsedByLogItem,
|
|
447
449
|
la as UserListItem,
|
|
448
450
|
oo as VirtualizedMenuItems,
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
451
|
+
ox as formatDate,
|
|
452
|
+
_p as formatDisplayName,
|
|
453
|
+
ex as formatOrgNo,
|
|
452
454
|
l as isAvatarGroupProps,
|
|
453
455
|
i as isAvatarProps,
|
|
454
456
|
Ee as isHeadingProps,
|
|
455
457
|
ro as isIconProps,
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
458
|
+
Yp as useAccountSelector,
|
|
459
|
+
jp as useClickOutside,
|
|
460
|
+
Ix as useDsPagination,
|
|
461
|
+
qp as useEscapeKey,
|
|
460
462
|
Bm as useFilter,
|
|
461
|
-
|
|
463
|
+
Wp as useMenu,
|
|
462
464
|
eo as useRootContext,
|
|
463
465
|
Jt as useSnackbar
|
|
464
466
|
};
|
|
@@ -37,6 +37,7 @@ declare const meta: {
|
|
|
37
37
|
linkIcon?: boolean | undefined;
|
|
38
38
|
controls?: import('react').ReactNode;
|
|
39
39
|
summary?: import('react').ReactNode;
|
|
40
|
+
containerAs?: "li" | "div" | undefined;
|
|
40
41
|
as?: import('react').ElementType | undefined;
|
|
41
42
|
href?: string | undefined;
|
|
42
43
|
onClick?: (() => void) | undefined;
|
|
@@ -19,5 +19,6 @@ export interface SettingsItemBaseProps extends ItemLinkProps {
|
|
|
19
19
|
controls?: ReactNode;
|
|
20
20
|
children?: ReactNode;
|
|
21
21
|
summary?: ReactNode;
|
|
22
|
+
containerAs?: 'li' | 'div';
|
|
22
23
|
}
|
|
23
|
-
export declare const SettingsItemBase: ({ as, ref, hidden, disabled, loading, color, collapsible, expanded, icon, label, titleProps, descriptionProps, summary, children, highlightWords, badge, linkIcon, controls, ...rest }: SettingsItemBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
+
export declare const SettingsItemBase: ({ as, ref, hidden, disabled, loading, color, collapsible, expanded, icon, label, titleProps, descriptionProps, summary, children, highlightWords, badge, linkIcon, controls, containerAs: ContainerTag, ...rest }: SettingsItemBaseProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -8,5 +8,6 @@ export interface SettingsListProps {
|
|
|
8
8
|
items: SettingsItemProps[];
|
|
9
9
|
groups?: Record<string, SettingsGroupProps>;
|
|
10
10
|
sortGroupBy?: (a: [string, SettingsItemProps[]], b: [string, SettingsItemProps[]]) => number;
|
|
11
|
+
virtualized?: boolean;
|
|
11
12
|
}
|
|
12
|
-
export declare const SettingsList: ({ items, variant, groups, sortGroupBy }: SettingsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const SettingsList: ({ items, variant, groups, sortGroupBy, virtualized, }: SettingsListProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { SettingsItemProps } from '..';
|
|
2
|
+
import { SettingsGroupProps, SettingsListProps } from './SettingsList';
|
|
3
|
+
export interface SettingsListVirtualProps {
|
|
4
|
+
variant?: SettingsListProps['variant'];
|
|
5
|
+
items: SettingsItemProps[];
|
|
6
|
+
groups?: Record<string, SettingsGroupProps>;
|
|
7
|
+
sortGroupBy?: SettingsListProps['sortGroupBy'];
|
|
8
|
+
}
|
|
9
|
+
export declare const SettingsListVirtual: ({ items, variant, groups, sortGroupBy, }: SettingsListVirtualProps) => import("react/jsx-runtime").JSX.Element;
|