@nivaro/react 0.3.40 → 0.3.42
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/components/LayoutForm.js +100 -98
- package/dist/full.css +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +645 -16
- package/dist/index.js +814 -775
- package/dist/shared/components/ActivityEntry.js +154 -0
- package/dist/shared/components/AudienceConfirmPanel.js +98 -0
- package/dist/shared/components/BackgroundRunOffer.js +43 -31
- package/dist/shared/components/BroadcastView.js +225 -204
- package/dist/shared/components/CollectionBrowserView.js +3924 -3584
- package/dist/shared/components/ConfigHistory.js +153 -0
- package/dist/shared/components/ConfigReadBack.js +65 -0
- package/dist/shared/components/DataTable.js +379 -346
- package/dist/shared/components/ForceReloadBanner.js +47 -40
- package/dist/shared/components/IdleReloadWatcher.js +69 -0
- package/dist/shared/components/ItemEditForm.js +4041 -3853
- package/dist/shared/components/MyWorkView.js +278 -213
- package/dist/shared/components/NotificationBell.js +130 -121
- package/dist/shared/components/PickerExcludedRows.js +3 -3
- package/dist/shared/components/ProfileView.js +776 -1003
- package/dist/shared/components/RecentRecordsRail.js +34 -16
- package/dist/shared/components/RecordReadView.js +500 -477
- package/dist/shared/components/Skeletons.js +199 -0
- package/dist/shared/components/SlowNotice.js +63 -0
- package/dist/shared/components/Term.js +23 -0
- package/dist/shared/components/WidgetSlot.js +350 -353
- package/dist/shared/components/access/PermissionSummary.js +106 -0
- package/dist/shared/components/bulk/BulkActionButtons.js +76 -73
- package/dist/shared/components/chat/ChatPanel.js +902 -886
- package/dist/shared/components/chat/MemberPaging.js +70 -0
- package/dist/shared/components/chat/RoomParts.js +147 -117
- package/dist/shared/components/chat/ScreenClip.js +73 -69
- package/dist/shared/components/chat/chat-core.js +449 -396
- package/dist/shared/components/chat/huddle/huddle-store.js +48 -43
- package/dist/shared/components/help-videos/api.js +2 -5
- package/dist/shared/components/help-videos/viewer/HelpVideoMatchChip.js +79 -0
- package/dist/shared/components/help-videos/viewer/matchChip.js +50 -0
- package/dist/shared/components/imports/CollectionImportPanel.js +139 -133
- package/dist/shared/components/imports/RunDetailSheet.js +222 -227
- package/dist/shared/components/integrations/console/ErrorExplanation.js +121 -0
- package/dist/shared/components/integrations/console/PartnerDetail.js +175 -174
- package/dist/shared/components/integrations/console/SubmissionRow.js +36 -34
- package/dist/shared/components/integrations/console/drill/SubmissionDrill.js +50 -48
- package/dist/shared/components/item-edit/FieldComments.js +212 -0
- package/dist/shared/components/item-edit/FieldRow.js +340 -336
- package/dist/shared/components/item-edit/RecordGrantTools.js +28 -28
- package/dist/shared/components/item-edit/RecordHeaderActions.js +23 -22
- package/dist/shared/components/item-edit/RelationCombobox.js +231 -222
- package/dist/shared/components/item-edit/RuleHiddenNotes.js +55 -0
- package/dist/shared/components/item-edit/field-comments-context.js +6 -0
- package/dist/shared/components/item-edit/field-sources.js +33 -0
- package/dist/shared/components/item-edit/rule-hidden.js +30 -0
- package/dist/shared/components/layout-editor/HistoryPanel.js +113 -96
- package/dist/shared/components/layout-editor/editors/cascade-filters.js +170 -145
- package/dist/shared/components/layout-editor/inspector/Breadcrumb.js +22 -18
- package/dist/shared/components/layout-editor/inspector/GroupInspector.js +177 -159
- package/dist/shared/components/layout-editor/inspector/PickerTab.js +35 -34
- package/dist/shared/components/layout-editor/inspector/RulesTab.js +124 -111
- package/dist/shared/components/layout-editor/inspector/kit.js +292 -277
- package/dist/shared/components/layout-editor/parity-keys.json.js +1 -1
- package/dist/shared/components/layout-editor/settings/settings-registry.js +1 -1
- package/dist/shared/components/list/CopyListLinkButton.js +41 -0
- package/dist/shared/components/list/InlineEdit.js +363 -0
- package/dist/shared/components/notifications/NotificationCenterView.js +213 -181
- package/dist/shared/components/notifications/NotificationDetailBits.js +205 -82
- package/dist/shared/components/notifications/NotificationRulesEditor.js +515 -0
- package/dist/shared/components/notifications/TestMyRules.js +137 -0
- package/dist/shared/components/notifications/changes-lines.js +24 -0
- package/dist/shared/components/notifications/why-lines.js +64 -0
- package/dist/shared/components/panels/CommentPanel.js +316 -281
- package/dist/shared/components/panels/LegalHoldBanner.js +38 -0
- package/dist/shared/components/panels/PipelinePanel.js +201 -196
- package/dist/shared/components/panels/RevisionsPanel.js +496 -479
- package/dist/shared/components/pipeline/PipelineEditorView.js +1587 -1560
- package/dist/shared/components/pipeline/PipelineStateOwners.js +116 -103
- package/dist/shared/components/profile/PersonDidPanel.js +188 -0
- package/dist/shared/components/profile/PersonProfile.js +57 -52
- package/dist/shared/components/queue/QueueWorklist.js +1526 -1365
- package/dist/shared/hooks/useSlowReason.js +39 -0
- package/dist/shared/lib/activity-sentence.js +670 -0
- package/dist/shared/lib/config-sentences.js +418 -0
- package/dist/shared/lib/core-glossary.js +229 -0
- package/dist/shared/lib/error-hints.js +159 -0
- package/dist/shared/lib/error-message.js +105 -0
- package/dist/shared/lib/error-toast.js +22 -0
- package/dist/shared/lib/field-comments.js +25 -0
- package/dist/shared/lib/filter-sentence.js +261 -0
- package/dist/shared/lib/glossary.js +55 -48
- package/dist/shared/lib/idle-reload.js +138 -0
- package/dist/shared/lib/layout-resolve.js +42 -29
- package/dist/shared/lib/list-inline-edit.js +190 -0
- package/dist/shared/lib/list-link.js +147 -0
- package/dist/shared/lib/prefetch.js +259 -106
- package/dist/shared/lib/record-ref.js +72 -0
- package/dist/shared/lib/reload-holds.js +25 -0
- package/dist/shared/lib/safe-error.js +52 -24
- package/dist/shared/lib/skeleton-shapes.js +72 -0
- package/dist/shared/lib/slow-reason.js +63 -0
- package/package.json +1 -1
|
@@ -1,70 +1,72 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import { NivaroField as
|
|
4
|
-
import { CommentsSlot as
|
|
5
|
-
import { PipelineSlot as
|
|
6
|
-
import { TasksSlot as
|
|
7
|
-
import { GridFlushContext as
|
|
8
|
-
const
|
|
9
|
-
__pipeline__: (o) => /* @__PURE__ */
|
|
10
|
-
__comments__: (o) => /* @__PURE__ */
|
|
11
|
-
__tasks__: (o) => /* @__PURE__ */
|
|
1
|
+
import { jsx as r, jsxs as d, Fragment as k } from "react/jsx-runtime";
|
|
2
|
+
import P, { useMemo as pe, useState as G } from "react";
|
|
3
|
+
import { NivaroField as fe } from "./NivaroField.js";
|
|
4
|
+
import { CommentsSlot as he } from "./slots/CommentsSlot.js";
|
|
5
|
+
import { PipelineSlot as ye } from "./slots/PipelineSlot.js";
|
|
6
|
+
import { TasksSlot as _e } from "./slots/TasksSlot.js";
|
|
7
|
+
import { GridFlushContext as be } from "../shared/context.js";
|
|
8
|
+
const T = {
|
|
9
|
+
__pipeline__: (o) => /* @__PURE__ */ r(ye, { ...o }),
|
|
10
|
+
__comments__: (o) => /* @__PURE__ */ r(he, { ...o }),
|
|
11
|
+
__tasks__: (o) => /* @__PURE__ */ r(_e, { ...o })
|
|
12
12
|
};
|
|
13
|
-
function
|
|
13
|
+
function me(o) {
|
|
14
14
|
return { gridColumn: `span ${o ?? 12}` };
|
|
15
15
|
}
|
|
16
|
-
function
|
|
16
|
+
function ge(o) {
|
|
17
17
|
var b;
|
|
18
18
|
return ((b = o.options) == null ? void 0 : b.col_span) ?? 12;
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function Ge({
|
|
21
21
|
form: o,
|
|
22
22
|
components: b,
|
|
23
|
-
className:
|
|
24
|
-
style:
|
|
25
|
-
sectionClassName:
|
|
26
|
-
tabStripClassName:
|
|
27
|
-
activeTabClassName:
|
|
28
|
-
inactiveTabClassName:
|
|
29
|
-
gridClassName:
|
|
23
|
+
className: U,
|
|
24
|
+
style: j,
|
|
25
|
+
sectionClassName: D,
|
|
26
|
+
tabStripClassName: I,
|
|
27
|
+
activeTabClassName: V,
|
|
28
|
+
inactiveTabClassName: A,
|
|
29
|
+
gridClassName: $ = "nivaro-grid",
|
|
30
30
|
slotRenderers: u,
|
|
31
31
|
itemId: m,
|
|
32
|
-
stepperClassName:
|
|
33
|
-
stepNavClassName:
|
|
34
|
-
prevButtonClassName:
|
|
35
|
-
nextButtonClassName:
|
|
36
|
-
lastStepActions:
|
|
37
|
-
layoutSlug:
|
|
32
|
+
stepperClassName: q,
|
|
33
|
+
stepNavClassName: z,
|
|
34
|
+
prevButtonClassName: H,
|
|
35
|
+
nextButtonClassName: L,
|
|
36
|
+
lastStepActions: J,
|
|
37
|
+
layoutSlug: ve,
|
|
38
|
+
loadingFallback: x
|
|
38
39
|
}) {
|
|
39
|
-
var
|
|
40
|
-
const { schema: s, values:
|
|
40
|
+
var O;
|
|
41
|
+
const { schema: s, values: Q, errors: W, setValue: X, isVisible: f, isLocked: Y, isSubmitting: B, gridFlushersRef: C } = o, Z = pe(
|
|
41
42
|
() => ({
|
|
42
43
|
register: (e, n) => {
|
|
43
|
-
|
|
44
|
+
C.current.set(e, n);
|
|
44
45
|
},
|
|
45
46
|
unregister: (e) => {
|
|
46
|
-
|
|
47
|
+
C.current.delete(e);
|
|
47
48
|
}
|
|
48
49
|
}),
|
|
49
|
-
[
|
|
50
|
-
), [
|
|
51
|
-
if (!s) return null;
|
|
52
|
-
|
|
50
|
+
[C]
|
|
51
|
+
), [R, N] = G(0), [ee, te] = G(/* @__PURE__ */ new Set()), [ne, E] = G(null);
|
|
52
|
+
if (!s) return x ?? null;
|
|
53
|
+
if (x !== void 0 && o.isLoading) return x;
|
|
54
|
+
const c = s.groups.filter((e) => e.type === "tab"), h = s.groups.filter((e) => e.type === "section"), K = c.length > 0, re = K && s.tabMode === "steps", y = ne ?? ((O = c[0]) == null ? void 0 : O.key) ?? null, M = (o.fieldsByGroup.get(null) ?? []).filter((e) => f(e.field));
|
|
53
55
|
function le(e) {
|
|
54
|
-
return f(e.field) ? /* @__PURE__ */
|
|
56
|
+
return f(e.field) ? /* @__PURE__ */ r(
|
|
55
57
|
"div",
|
|
56
58
|
{
|
|
57
|
-
style:
|
|
59
|
+
style: me(ge(e)),
|
|
58
60
|
"data-nivaro-field": e.field,
|
|
59
|
-
children: /* @__PURE__ */
|
|
60
|
-
|
|
61
|
+
children: /* @__PURE__ */ r(
|
|
62
|
+
fe,
|
|
61
63
|
{
|
|
62
64
|
field: e,
|
|
63
|
-
value:
|
|
64
|
-
onChange: (n) =>
|
|
65
|
-
error:
|
|
65
|
+
value: Q[e.field],
|
|
66
|
+
onChange: (n) => X(e.field, n),
|
|
67
|
+
error: W[e.field],
|
|
66
68
|
disabled: B,
|
|
67
|
-
readOnly:
|
|
69
|
+
readOnly: Y(e.field),
|
|
68
70
|
components: b,
|
|
69
71
|
itemId: m
|
|
70
72
|
}
|
|
@@ -75,27 +77,27 @@ function Me({
|
|
|
75
77
|
}
|
|
76
78
|
function g(e) {
|
|
77
79
|
const n = e.filter((t) => f(t.field));
|
|
78
|
-
return n.length === 0 ? null : /* @__PURE__ */
|
|
80
|
+
return n.length === 0 ? null : /* @__PURE__ */ r(
|
|
79
81
|
"div",
|
|
80
82
|
{
|
|
81
|
-
className:
|
|
83
|
+
className: $,
|
|
82
84
|
style: { display: "grid", gridTemplateColumns: "repeat(12, minmax(0, 1fr))", gap: "1rem" },
|
|
83
85
|
children: n.map(le)
|
|
84
86
|
}
|
|
85
87
|
);
|
|
86
88
|
}
|
|
87
|
-
function
|
|
89
|
+
function F(e) {
|
|
88
90
|
const t = (o.fieldsByGroup.get(e.key) ?? []).filter((p) => f(p.field));
|
|
89
91
|
if (t.length === 0) return null;
|
|
90
|
-
const a =
|
|
91
|
-
return /* @__PURE__ */ d("div", { className:
|
|
92
|
-
/* @__PURE__ */
|
|
92
|
+
const a = ee.has(e.key);
|
|
93
|
+
return /* @__PURE__ */ d("div", { className: D, "data-nivaro-section": e.key, children: [
|
|
94
|
+
/* @__PURE__ */ r(
|
|
93
95
|
"button",
|
|
94
96
|
{
|
|
95
97
|
type: "button",
|
|
96
98
|
"data-nivaro-section-toggle": e.key,
|
|
97
99
|
"aria-expanded": !a,
|
|
98
|
-
onClick: () =>
|
|
100
|
+
onClick: () => te((p) => {
|
|
99
101
|
const _ = new Set(p);
|
|
100
102
|
return a ? _.delete(e.key) : _.add(e.key), _;
|
|
101
103
|
}),
|
|
@@ -106,12 +108,12 @@ function Me({
|
|
|
106
108
|
] }, e.key);
|
|
107
109
|
}
|
|
108
110
|
function v() {
|
|
109
|
-
return
|
|
111
|
+
return M.length === 0 ? null : /* @__PURE__ */ r("div", { "data-nivaro-ungrouped": !0, children: g(M) }, "__ungrouped__");
|
|
110
112
|
}
|
|
111
113
|
function S(e) {
|
|
112
114
|
if (!e.isVisible) return null;
|
|
113
|
-
const n = (u == null ? void 0 : u[e.slot]) ??
|
|
114
|
-
return n ? /* @__PURE__ */
|
|
115
|
+
const n = (u == null ? void 0 : u[e.slot]) ?? T[e.slot];
|
|
116
|
+
return n ? /* @__PURE__ */ r("div", { "data-nivaro-slot": e.slot, children: n({
|
|
115
117
|
slot: e.slot,
|
|
116
118
|
collection: s.collection,
|
|
117
119
|
itemId: m ?? null,
|
|
@@ -119,53 +121,53 @@ function Me({
|
|
|
119
121
|
defaultExpanded: e.defaultExpanded
|
|
120
122
|
}) }, e.slot) : null;
|
|
121
123
|
}
|
|
122
|
-
function
|
|
124
|
+
function oe() {
|
|
123
125
|
const e = [];
|
|
124
126
|
for (const t of h)
|
|
125
|
-
e.push({ key: t.key, sort: t.sort, render: () =>
|
|
127
|
+
e.push({ key: t.key, sort: t.sort, render: () => F(t) });
|
|
126
128
|
const n = s.ungroupedSort ?? h.length;
|
|
127
129
|
e.push({ key: "__ungrouped__", sort: n, render: v });
|
|
128
130
|
for (const t of s.slotAssignments)
|
|
129
|
-
!t.isVisible || !((u == null ? void 0 : u[t.slot]) ??
|
|
131
|
+
!t.isVisible || !((u == null ? void 0 : u[t.slot]) ?? T[t.slot]) || e.push({ key: t.slot, sort: t.sort, render: () => S(t) });
|
|
130
132
|
return e.sort((t, a) => t.sort - a.sort);
|
|
131
133
|
}
|
|
132
|
-
function oe() {
|
|
133
|
-
return /* @__PURE__ */ l(k, { children: re().map((e) => /* @__PURE__ */ l(w.Fragment, { children: e.render() }, e.key)) });
|
|
134
|
-
}
|
|
135
134
|
function ie() {
|
|
135
|
+
return /* @__PURE__ */ r(k, { children: oe().map((e) => /* @__PURE__ */ r(P.Fragment, { children: e.render() }, e.key)) });
|
|
136
|
+
}
|
|
137
|
+
function se() {
|
|
136
138
|
const e = s.ungroupedSort != null && s.ungroupedSort >= s.groups.length, n = s.slotAssignments.filter(
|
|
137
|
-
(t) => t.isVisible && t.groupKey == null && !!((u == null ? void 0 : u[t.slot]) ??
|
|
139
|
+
(t) => t.isVisible && t.groupKey == null && !!((u == null ? void 0 : u[t.slot]) ?? T[t.slot])
|
|
138
140
|
);
|
|
139
141
|
return /* @__PURE__ */ d(k, { children: [
|
|
140
142
|
!e && v(),
|
|
141
|
-
/* @__PURE__ */ d("div", { className:
|
|
142
|
-
c.map((t) => /* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ d("div", { className: I, "data-nivaro-tab-strip": !0, role: "tablist", children: [
|
|
144
|
+
c.map((t) => /* @__PURE__ */ r(
|
|
143
145
|
"button",
|
|
144
146
|
{
|
|
145
147
|
type: "button",
|
|
146
148
|
role: "tab",
|
|
147
149
|
"aria-selected": y === t.key,
|
|
148
150
|
onClick: () => E(t.key),
|
|
149
|
-
className: y === t.key ?
|
|
151
|
+
className: y === t.key ? V : A,
|
|
150
152
|
children: t.label
|
|
151
153
|
},
|
|
152
154
|
t.key
|
|
153
155
|
)),
|
|
154
|
-
h.length > 0 && /* @__PURE__ */
|
|
156
|
+
h.length > 0 && /* @__PURE__ */ r(
|
|
155
157
|
"button",
|
|
156
158
|
{
|
|
157
159
|
type: "button",
|
|
158
160
|
role: "tab",
|
|
159
161
|
"aria-selected": y === "__general__",
|
|
160
162
|
onClick: () => E("__general__"),
|
|
161
|
-
className: y === "__general__" ?
|
|
163
|
+
className: y === "__general__" ? V : A,
|
|
162
164
|
children: "General"
|
|
163
165
|
}
|
|
164
166
|
)
|
|
165
167
|
] }),
|
|
166
168
|
c.map((t) => {
|
|
167
169
|
const a = (o.fieldsByGroup.get(t.key) ?? []).filter((p) => f(p.field));
|
|
168
|
-
return /* @__PURE__ */
|
|
170
|
+
return /* @__PURE__ */ r(
|
|
169
171
|
"div",
|
|
170
172
|
{
|
|
171
173
|
role: "tabpanel",
|
|
@@ -176,21 +178,21 @@ function Me({
|
|
|
176
178
|
t.key
|
|
177
179
|
);
|
|
178
180
|
}),
|
|
179
|
-
y === "__general__" && h.length > 0 && /* @__PURE__ */
|
|
181
|
+
y === "__general__" && h.length > 0 && /* @__PURE__ */ r("div", { role: "tabpanel", "data-nivaro-tab": "__general__", children: h.map(F) }),
|
|
180
182
|
e && v(),
|
|
181
183
|
n.sort((t, a) => t.sort - a.sort).map(S)
|
|
182
184
|
] });
|
|
183
185
|
}
|
|
184
|
-
function
|
|
185
|
-
const e = c.length, n = Math.min(Math.max(
|
|
186
|
-
(
|
|
187
|
-
), _ = s.ungroupedSort,
|
|
186
|
+
function ae() {
|
|
187
|
+
const e = c.length, n = Math.min(Math.max(R, 0), e - 1), t = c[n], a = s.slotAssignments.filter((l) => l.isVisible && l.groupKey == null && l.slot !== "__pipeline__").sort((l, i) => l.sort - i.sort), p = s.slotAssignments.find(
|
|
188
|
+
(l) => l.slot === "__pipeline__" && l.isVisible
|
|
189
|
+
), _ = s.ungroupedSort, de = M.length > 0 && (_ == null || _ >= c.length) ? n === e - 1 : !1;
|
|
188
190
|
return (o.fieldsByGroup.get((t == null ? void 0 : t.key) ?? "") ?? []).filter(
|
|
189
|
-
(
|
|
191
|
+
(l) => f(l.field)
|
|
190
192
|
), /* @__PURE__ */ d(k, { children: [
|
|
191
193
|
p && S(p),
|
|
192
|
-
/* @__PURE__ */
|
|
193
|
-
i > 0 && /* @__PURE__ */
|
|
194
|
+
/* @__PURE__ */ r("div", { className: q, "data-nf-stepper": !0, "data-nf-steps": e, children: c.map((l, i) => /* @__PURE__ */ d(P.Fragment, { children: [
|
|
195
|
+
i > 0 && /* @__PURE__ */ r(
|
|
194
196
|
"div",
|
|
195
197
|
{
|
|
196
198
|
"data-nf-step-connector": !0,
|
|
@@ -201,45 +203,45 @@ function Me({
|
|
|
201
203
|
"button",
|
|
202
204
|
{
|
|
203
205
|
type: "button",
|
|
204
|
-
"data-nf-step":
|
|
206
|
+
"data-nf-step": l.key,
|
|
205
207
|
"data-nf-step-index": i,
|
|
206
208
|
"data-active": i === n ? "true" : "false",
|
|
207
209
|
"data-completed": (m != null ? i !== n : i < n) ? "true" : "false",
|
|
208
|
-
onClick: () =>
|
|
210
|
+
onClick: () => N(i),
|
|
209
211
|
"aria-current": i === n ? "step" : void 0,
|
|
210
212
|
children: [
|
|
211
|
-
/* @__PURE__ */
|
|
212
|
-
/* @__PURE__ */
|
|
213
|
+
/* @__PURE__ */ r("span", { "data-nf-step-circle": !0, children: (m != null ? i !== n : i < n) ? "✓" : i + 1 }),
|
|
214
|
+
/* @__PURE__ */ r("span", { "data-nf-step-label": !0, children: l.label })
|
|
213
215
|
]
|
|
214
216
|
}
|
|
215
217
|
)
|
|
216
|
-
] },
|
|
217
|
-
c.map((
|
|
218
|
-
const
|
|
218
|
+
] }, l.key)) }),
|
|
219
|
+
c.map((l, i) => {
|
|
220
|
+
const ue = (o.fieldsByGroup.get(l.key) ?? []).filter((ce) => f(ce.field)), w = i === e - 1;
|
|
219
221
|
return /* @__PURE__ */ d(
|
|
220
222
|
"div",
|
|
221
223
|
{
|
|
222
|
-
"data-nf-step-content":
|
|
224
|
+
"data-nf-step-content": l.key,
|
|
223
225
|
style: i !== n ? { display: "none" } : void 0,
|
|
224
226
|
children: [
|
|
225
|
-
g(
|
|
226
|
-
|
|
227
|
-
|
|
227
|
+
g(ue),
|
|
228
|
+
w && de && v(),
|
|
229
|
+
w && h.map(F)
|
|
228
230
|
]
|
|
229
231
|
},
|
|
230
|
-
|
|
232
|
+
l.key
|
|
231
233
|
);
|
|
232
234
|
}),
|
|
233
235
|
a.map(S),
|
|
234
|
-
/* @__PURE__ */ d("div", { className:
|
|
235
|
-
/* @__PURE__ */
|
|
236
|
+
/* @__PURE__ */ d("div", { className: z, "data-nf-step-nav": !0, children: [
|
|
237
|
+
/* @__PURE__ */ r(
|
|
236
238
|
"button",
|
|
237
239
|
{
|
|
238
240
|
type: "button",
|
|
239
241
|
"data-nf-prev": !0,
|
|
240
|
-
className:
|
|
242
|
+
className: H,
|
|
241
243
|
disabled: n === 0,
|
|
242
|
-
onClick: () =>
|
|
244
|
+
onClick: () => N((l) => Math.max(0, l - 1)),
|
|
243
245
|
children: "Previous"
|
|
244
246
|
}
|
|
245
247
|
),
|
|
@@ -249,23 +251,23 @@ function Me({
|
|
|
249
251
|
" of ",
|
|
250
252
|
e
|
|
251
253
|
] }),
|
|
252
|
-
n < e - 1 ? /* @__PURE__ */
|
|
254
|
+
n < e - 1 ? /* @__PURE__ */ r(
|
|
253
255
|
"button",
|
|
254
256
|
{
|
|
255
257
|
type: "button",
|
|
256
258
|
"data-nf-next": !0,
|
|
257
|
-
className:
|
|
258
|
-
onClick: () =>
|
|
259
|
+
className: L,
|
|
260
|
+
onClick: () => N((l) => Math.min(e - 1, l + 1)),
|
|
259
261
|
children: "Next"
|
|
260
262
|
}
|
|
261
263
|
) : /* @__PURE__ */ d(k, { children: [
|
|
262
|
-
|
|
263
|
-
/* @__PURE__ */
|
|
264
|
+
J,
|
|
265
|
+
/* @__PURE__ */ r(
|
|
264
266
|
"button",
|
|
265
267
|
{
|
|
266
268
|
type: "submit",
|
|
267
269
|
"data-nf-save": !0,
|
|
268
|
-
className:
|
|
270
|
+
className: L,
|
|
269
271
|
disabled: B,
|
|
270
272
|
children: "Save"
|
|
271
273
|
}
|
|
@@ -274,8 +276,8 @@ function Me({
|
|
|
274
276
|
] })
|
|
275
277
|
] });
|
|
276
278
|
}
|
|
277
|
-
return /* @__PURE__ */
|
|
279
|
+
return /* @__PURE__ */ r(be.Provider, { value: Z, children: /* @__PURE__ */ r("form", { className: U, style: j, onSubmit: o.handleSubmit, children: re ? ae() : K ? se() : ie() }) });
|
|
278
280
|
}
|
|
279
281
|
export {
|
|
280
|
-
|
|
282
|
+
Ge as LayoutForm
|
|
281
283
|
};
|