@nivaro/react 0.3.10 → 0.3.11
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/full.css +1 -1
- package/dist/hooks/useNivaroForm.js +1 -1
- package/dist/hooks/useSessionRecorder.js +1 -1
- package/dist/index.d.ts +34 -3
- package/dist/shared/components/CollectionBrowserView.js +1546 -1477
- package/dist/shared/components/ItemEditForm.js +4332 -4195
- package/dist/shared/components/PageRenderer.js +512 -465
- package/dist/shared/components/QueryStatStrip.js +74 -70
- package/dist/shared/components/ReportView.js +818 -827
- package/dist/shared/components/SheetHeaderBody.js +16 -14
- package/dist/shared/components/item-edit/CatalogPickerField.js +1029 -933
- package/dist/shared/components/item-edit/FieldRenderer.js +161 -156
- package/dist/shared/components/item-edit/FieldRow.js +20 -19
- package/dist/shared/components/item-edit/FilePickerField.js +52 -40
- package/dist/shared/components/item-edit/GroupSection.js +221 -221
- package/dist/shared/components/item-edit/InlineGridField.js +41 -41
- package/dist/shared/components/item-edit/InlineTableField.js +2249 -2238
- package/dist/shared/components/item-edit/M2MCombobox.js +46 -44
- package/dist/shared/components/item-edit/NestedRelationEditor.js +11 -11
- package/dist/shared/components/item-edit/QuickPicker.js +263 -216
- package/dist/shared/components/item-edit/RelationCombobox.js +285 -245
- package/dist/shared/components/item-edit/RichTextEditorImpl.js +42 -32
- package/dist/shared/components/item-edit/RowHistorySheet.js +130 -134
- package/dist/shared/components/item-edit/SummaryPanel.js +305 -279
- package/dist/shared/components/item-edit/helpers.js +133 -134
- package/dist/shared/components/item-edit/line-qty.js +57 -0
- package/dist/shared/components/item-edit/option-disambiguate.js +53 -0
- package/dist/shared/components/panels/AddendumLinesDiff.js +87 -90
- package/dist/shared/components/panels/CommentPanel.js +350 -315
- package/dist/shared/components/panels/ItemLockBanner.js +297 -230
- package/dist/shared/components/panels/PipelinePanel.js +719 -701
- package/dist/shared/components/queue/QueueQuickFilters.js +43 -41
- package/dist/shared/components/queue/QueueWorklist.js +1005 -935
- package/dist/shared/components/widgets/ReviewListWidget.js +99 -93
- package/dist/shared/lib/obligation-banner.js +14 -13
- package/dist/shared/lib/obligation-reason-text.js +13 -0
- package/dist/shared/lib/query-filter-seed.js +34 -11
- package/dist/shared/lib/sanitize-html.js +24 -15
- package/dist/shared/lib/sheet-def.js +38 -22
- package/dist/shared/lib/unique-options.js +10 -0
- package/dist/shared/lib/utils.js +57 -43
- package/dist/shared/lib/validation-rules.js +58 -34
- package/package.json +1 -1
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { latestAsOf as
|
|
3
|
-
import { formatDate as
|
|
1
|
+
import { jsx as t, jsxs as d, Fragment as x } from "react/jsx-runtime";
|
|
2
|
+
import { latestAsOf as h } from "../lib/sheet-def.js";
|
|
3
|
+
import { formatDate as n } from "../lib/utils.js";
|
|
4
4
|
import { QueryStatStrip as p } from "./QueryStatStrip.js";
|
|
5
5
|
function y({
|
|
6
6
|
stats: o,
|
|
7
|
-
rows:
|
|
8
|
-
params:
|
|
9
|
-
loading:
|
|
7
|
+
rows: r,
|
|
8
|
+
params: m,
|
|
9
|
+
loading: a,
|
|
10
10
|
error: i,
|
|
11
|
-
asOf: e
|
|
11
|
+
asOf: e,
|
|
12
|
+
note: s
|
|
12
13
|
}) {
|
|
13
14
|
if (i)
|
|
14
|
-
return /* @__PURE__ */
|
|
15
|
-
const
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
/* @__PURE__ */
|
|
18
|
-
e &&
|
|
15
|
+
return /* @__PURE__ */ t("p", { className: "text-[12px] text-slate-500 dark:text-slate-400", "data-sheet-header-error": !0, children: "Couldn't load these figures. Close the sheet and open it again to retry." });
|
|
16
|
+
const l = !a && e ? h(r, e.field) : null;
|
|
17
|
+
return /* @__PURE__ */ d(x, { children: [
|
|
18
|
+
/* @__PURE__ */ t(p, { stats: o, rows: r, effectiveParams: m, loading: a }),
|
|
19
|
+
e && l && /* @__PURE__ */ d(
|
|
19
20
|
"p",
|
|
20
21
|
{
|
|
21
22
|
className: "mt-1.5 text-[11px] text-slate-500 dark:text-slate-400",
|
|
@@ -23,10 +24,11 @@ function y({
|
|
|
23
24
|
children: [
|
|
24
25
|
e.label,
|
|
25
26
|
" ",
|
|
26
|
-
|
|
27
|
+
n(l)
|
|
27
28
|
]
|
|
28
29
|
}
|
|
29
|
-
)
|
|
30
|
+
),
|
|
31
|
+
s && /* @__PURE__ */ t("p", { className: "mt-1 text-[11px] text-slate-500 dark:text-slate-400", "data-sheet-header-note": !0, children: s })
|
|
30
32
|
] });
|
|
31
33
|
}
|
|
32
34
|
export {
|