@middag-io/react 0.18.0 → 0.19.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/LICENSE +202 -0
- package/README.md +12 -1
- package/dist-lib/{MarkdownContent-Bt6q-Y_1.js → MarkdownContent-NiKKjJ9H.js} +4812 -1554
- package/dist-lib/app/ContractPage.d.ts +1 -1
- package/dist-lib/app/ContractPage.d.ts.map +1 -1
- package/dist-lib/app/HostSlot.d.ts +2 -2
- package/dist-lib/app/providers/locales/pt-BR.d.ts +1 -1
- package/dist-lib/app/register-defaults.d.ts +6 -6
- package/dist-lib/app/register-defaults.d.ts.map +1 -1
- package/dist-lib/app/registries.d.ts +4 -4
- package/dist-lib/app/registries.d.ts.map +1 -1
- package/dist-lib/base/blocks/ActionGridBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/DenseTableBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/DetailPanelBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/EmptyStateBlock.d.ts.map +1 -1
- package/dist-lib/base/blocks/MarkdownPanelBlock.d.ts.map +1 -1
- package/dist-lib/base/hooks/usePolling.d.ts.map +1 -1
- package/dist-lib/base/layout/DashboardLayout.d.ts.map +1 -1
- package/dist-lib/base/partials/ActionBar/index.d.ts.map +1 -1
- package/dist-lib/base/partials/DataTable/index.d.ts.map +1 -1
- package/dist-lib/base/shell/ImmersiveShell.d.ts.map +1 -1
- package/dist-lib/base/shell/partials/InspectorContext.d.ts +2 -15
- package/dist-lib/base/shell/partials/InspectorContext.d.ts.map +1 -1
- package/dist-lib/base/shell/partials/PageActionButton.d.ts +5 -1
- package/dist-lib/base/shell/partials/PageActionButton.d.ts.map +1 -1
- package/dist-lib/components/reui/accordion.d.ts +8 -0
- package/dist-lib/components/reui/accordion.d.ts.map +1 -0
- package/dist-lib/components/reui/alert-dialog.d.ts +19 -0
- package/dist-lib/components/reui/alert-dialog.d.ts.map +1 -0
- package/dist-lib/components/reui/alert.d.ts +1 -1
- package/dist-lib/components/reui/aspect-ratio.d.ts +4 -0
- package/dist-lib/components/reui/aspect-ratio.d.ts.map +1 -0
- package/dist-lib/components/reui/autocomplete.d.ts +41 -0
- package/dist-lib/components/reui/autocomplete.d.ts.map +1 -0
- package/dist-lib/components/reui/badge.d.ts +1 -1
- package/dist-lib/components/reui/breadcrumb.d.ts +12 -0
- package/dist-lib/components/reui/breadcrumb.d.ts.map +1 -0
- package/dist-lib/components/reui/button-group.d.ts +12 -0
- package/dist-lib/components/reui/button-group.d.ts.map +1 -0
- package/dist-lib/components/reui/button.d.ts +1 -1
- package/dist-lib/components/reui/carousel.d.ts +20 -0
- package/dist-lib/components/reui/carousel.d.ts.map +1 -0
- package/dist-lib/components/reui/collapsible.d.ts +6 -0
- package/dist-lib/components/reui/collapsible.d.ts.map +1 -0
- package/dist-lib/components/reui/command.d.ts +19 -0
- package/dist-lib/components/reui/command.d.ts.map +1 -0
- package/dist-lib/components/reui/context-menu.d.ts +26 -0
- package/dist-lib/components/reui/context-menu.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-filter.d.ts +15 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-filter.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-header.d.ts +15 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-header.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-visibility.d.ts +8 -0
- package/dist-lib/components/reui/data-grid/data-grid-column-visibility.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-pagination.d.ts +20 -0
- package/dist-lib/components/reui/data-grid/data-grid-pagination.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-scroll-area.d.ts +11 -0
- package/dist-lib/components/reui/data-grid/data-grid-scroll-area.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-dnd-rows.d.ts +12 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-dnd-rows.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-dnd.d.ts +8 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-dnd.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-virtual.d.ts +28 -0
- package/dist-lib/components/reui/data-grid/data-grid-table-virtual.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid-table.d.ts +98 -0
- package/dist-lib/components/reui/data-grid/data-grid-table.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid/data-grid.d.ts +94 -0
- package/dist-lib/components/reui/data-grid/data-grid.d.ts.map +1 -0
- package/dist-lib/components/reui/data-grid-pagination.d.ts +20 -0
- package/dist-lib/components/reui/data-grid-pagination.d.ts.map +1 -0
- package/dist-lib/components/reui/drawer.d.ts +14 -0
- package/dist-lib/components/reui/drawer.d.ts.map +1 -0
- package/dist-lib/components/reui/empty.d.ts +12 -0
- package/dist-lib/components/reui/empty.d.ts.map +1 -0
- package/dist-lib/components/reui/field.d.ts +25 -0
- package/dist-lib/components/reui/field.d.ts.map +1 -0
- package/dist-lib/components/reui/filters.d.ts +165 -0
- package/dist-lib/components/reui/filters.d.ts.map +1 -0
- package/dist-lib/components/reui/frame.d.ts +1 -1
- package/dist-lib/components/reui/hover-card.d.ts +7 -0
- package/dist-lib/components/reui/hover-card.d.ts.map +1 -0
- package/dist-lib/components/reui/icon-placeholder.d.ts +18 -0
- package/dist-lib/components/reui/icon-placeholder.d.ts.map +1 -0
- package/dist-lib/components/reui/input-otp.d.ts +12 -0
- package/dist-lib/components/reui/input-otp.d.ts.map +1 -0
- package/dist-lib/components/reui/item.d.ts +24 -0
- package/dist-lib/components/reui/item.d.ts.map +1 -0
- package/dist-lib/components/reui/kbd.d.ts +4 -0
- package/dist-lib/components/reui/kbd.d.ts.map +1 -0
- package/dist-lib/components/reui/menubar.d.ts +27 -0
- package/dist-lib/components/reui/menubar.d.ts.map +1 -0
- package/dist-lib/components/reui/native-select.d.ts +8 -0
- package/dist-lib/components/reui/native-select.d.ts.map +1 -0
- package/dist-lib/components/reui/navigation-menu.d.ts +15 -0
- package/dist-lib/components/reui/navigation-menu.d.ts.map +1 -0
- package/dist-lib/components/reui/pagination.d.ts +14 -0
- package/dist-lib/components/reui/pagination.d.ts.map +1 -0
- package/dist-lib/components/reui/progress.d.ts +5 -0
- package/dist-lib/components/reui/progress.d.ts.map +1 -0
- package/dist-lib/components/reui/resizable.d.ts +8 -0
- package/dist-lib/components/reui/resizable.d.ts.map +1 -0
- package/dist-lib/components/reui/scrollspy.d.ts +15 -0
- package/dist-lib/components/reui/scrollspy.d.ts.map +1 -0
- package/dist-lib/components/reui/slider.d.ts +5 -0
- package/dist-lib/components/reui/slider.d.ts.map +1 -0
- package/dist-lib/components/reui/sortable.d.ts +39 -0
- package/dist-lib/components/reui/sortable.d.ts.map +1 -0
- package/dist-lib/components/reui/svgs/claudeAiIcon.d.ts +4 -0
- package/dist-lib/components/reui/svgs/claudeAiIcon.d.ts.map +1 -0
- package/dist-lib/components/reui/svgs/gemini.d.ts +4 -0
- package/dist-lib/components/reui/svgs/gemini.d.ts.map +1 -0
- package/dist-lib/components/reui/svgs/openai.d.ts +4 -0
- package/dist-lib/components/reui/svgs/openai.d.ts.map +1 -0
- package/dist-lib/components/reui/svgs/openaiDark.d.ts +4 -0
- package/dist-lib/components/reui/svgs/openaiDark.d.ts.map +1 -0
- package/dist-lib/components/reui/table.d.ts +11 -0
- package/dist-lib/components/reui/table.d.ts.map +1 -0
- package/dist-lib/components/reui/timeline.d.ts +26 -0
- package/dist-lib/components/reui/timeline.d.ts.map +1 -0
- package/dist-lib/components/reui/toggle-group.d.ts +10 -0
- package/dist-lib/components/reui/toggle-group.d.ts.map +1 -0
- package/dist-lib/components/reui/toggle.d.ts +10 -0
- package/dist-lib/components/reui/toggle.d.ts.map +1 -0
- package/dist-lib/components/reui/tree.d.ts +24 -0
- package/dist-lib/components/reui/tree.d.ts.map +1 -0
- package/dist-lib/contracts/block-data/actions.d.ts +32 -31
- package/dist-lib/contracts/block-data/actions.d.ts.map +1 -1
- package/dist-lib/contracts/block-data/data-display.d.ts +0 -25
- package/dist-lib/contracts/block-data/data-display.d.ts.map +1 -1
- package/dist-lib/contracts/block-data/form.d.ts +0 -15
- package/dist-lib/contracts/block-data/form.d.ts.map +1 -1
- package/dist-lib/contracts/block-data/interactive.d.ts +11 -114
- package/dist-lib/contracts/block-data/interactive.d.ts.map +1 -1
- package/dist-lib/contracts/generated/contract-schema.d.ts +182 -0
- package/dist-lib/contracts/generated/contract-schema.d.ts.map +1 -0
- package/dist-lib/contracts/generated/contract-types.d.ts +278 -0
- package/dist-lib/contracts/generated/contract-types.d.ts.map +1 -0
- package/dist-lib/contracts/generated/index.d.ts +16 -0
- package/dist-lib/contracts/generated/index.d.ts.map +1 -0
- package/dist-lib/contracts/page-contract-schema.d.ts +81 -33
- package/dist-lib/contracts/page-contract-schema.d.ts.map +1 -1
- package/dist-lib/contracts/page-contract.d.ts +26 -168
- package/dist-lib/contracts/page-contract.d.ts.map +1 -1
- package/dist-lib/index.d.ts +3 -14
- package/dist-lib/index.d.ts.map +1 -1
- package/dist-lib/lib/actions/resolve-action-target.d.ts +76 -0
- package/dist-lib/lib/actions/resolve-action-target.d.ts.map +1 -0
- package/dist-lib/lib/i18n/render-label.d.ts +31 -0
- package/dist-lib/lib/i18n/render-label.d.ts.map +1 -0
- package/dist-lib/middag-react.css +1 -1
- package/dist-lib/middag-react.js +23960 -8210
- package/package.json +9 -10
- package/dist-lib/ChartPanelBlock-CSQd3YU7.js +0 -18005
- package/dist-lib/ConditionTreeBlock-BX_2p3Yz.js +0 -86
- package/dist-lib/DateField-BxYJUlk4.js +0 -121
- package/dist-lib/DateRangeField-DK02BwDy.js +0 -663
- package/dist-lib/DocumentField-Mc-FrWZt.js +0 -221
- package/dist-lib/FlowEditorBlock-NrPOi3mS.js +0 -7180
- package/dist-lib/FormBuilderBlock-Yzy7KaAI.js +0 -240
- package/dist-lib/FormPanelBlock-C9facP0m.js +0 -8827
- package/dist-lib/FormPanelBlock-ulvxaRzJ.js +0 -2
- package/dist-lib/HugeiconsIcon-Bh8XgTFo.js +0 -1346
- package/dist-lib/KanbanBoardBlock-DhiQZzqL.js +0 -399
- package/dist-lib/PhoneField-B1EDgorM.js +0 -18585
- package/dist-lib/SentenceBuilderBlock--JBOCkXI.js +0 -91
- package/dist-lib/badge-AMZPvmLD.js +0 -63
- package/dist-lib/base/blocks/ChartPanelBlock.d.ts +0 -11
- package/dist-lib/base/blocks/ChartPanelBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/ConditionTreeBlock.d.ts +0 -13
- package/dist-lib/base/blocks/ConditionTreeBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/FlowEditorBlock.d.ts +0 -15
- package/dist-lib/base/blocks/FlowEditorBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/FormBuilderBlock.d.ts +0 -17
- package/dist-lib/base/blocks/FormBuilderBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/FormPanelBlock.d.ts +0 -18
- package/dist-lib/base/blocks/FormPanelBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/KanbanBoardBlock.d.ts +0 -11
- package/dist-lib/base/blocks/KanbanBoardBlock.d.ts.map +0 -1
- package/dist-lib/base/blocks/SentenceBuilderBlock.d.ts +0 -15
- package/dist-lib/base/blocks/SentenceBuilderBlock.d.ts.map +0 -1
- package/dist-lib/base/form/form-schema-builder.d.ts +0 -27
- package/dist-lib/base/form/form-schema-builder.d.ts.map +0 -1
- package/dist-lib/base/shell/ProductShell.d.ts +0 -34
- package/dist-lib/base/shell/ProductShell.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/AdminTabBar.d.ts +0 -12
- package/dist-lib/base/shell/partials/AdminTabBar.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/AppearanceToggle.d.ts +0 -8
- package/dist-lib/base/shell/partials/AppearanceToggle.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/BoostSearchBar.d.ts +0 -32
- package/dist-lib/base/shell/partials/BoostSearchBar.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/CommandPalette.d.ts +0 -24
- package/dist-lib/base/shell/partials/CommandPalette.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/HelpContext.d.ts +0 -15
- package/dist-lib/base/shell/partials/HelpContext.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/HelpPanel.d.ts +0 -15
- package/dist-lib/base/shell/partials/HelpPanel.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/InlineInspector.d.ts +0 -16
- package/dist-lib/base/shell/partials/InlineInspector.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/PageFilterTabs.d.ts +0 -22
- package/dist-lib/base/shell/partials/PageFilterTabs.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/PageHeader.d.ts +0 -22
- package/dist-lib/base/shell/partials/PageHeader.d.ts.map +0 -1
- package/dist-lib/base/shell/partials/SidebarNav.d.ts +0 -17
- package/dist-lib/base/shell/partials/SidebarNav.d.ts.map +0 -1
- package/dist-lib/button-D5Y6A1RJ.js +0 -242
- package/dist-lib/calendar-bwe48kor.js +0 -4503
- package/dist-lib/chevron-right-C6BILigO.js +0 -7
- package/dist-lib/chunk-DeC0fbbY.js +0 -22
- package/dist-lib/combobox-BDHFCl2n.js +0 -5303
- package/dist-lib/contracts/page-contract-data.d.ts +0 -63
- package/dist-lib/contracts/page-contract-data.d.ts.map +0 -1
- package/dist-lib/dist-BpzJKgoL.js +0 -1196
- package/dist-lib/dist-DkjgjvZx.js +0 -123
- package/dist-lib/dist-FCfSQ65-.js +0 -15
- package/dist-lib/dist-a1sZXfE3.js +0 -54
- package/dist-lib/dist-igfsCvSN.js +0 -235
- package/dist-lib/document-validation-DfjoJeek.js +0 -1249
- package/dist-lib/floating-ui.react-dom-62M1nRNP.js +0 -1089
- package/dist-lib/i18n-BMTYOmLT.js +0 -329
- package/dist-lib/input-DzdJK5AV.js +0 -14
- package/dist-lib/popover-DmaFo0PE.js +0 -242
- package/dist-lib/scroll-area-f_LkBXTB.js +0 -557
- package/dist-lib/skeleton-DzfTvSIA.js +0 -12
- package/dist-lib/sortable.esm-DsdSKGdv.js +0 -2499
- package/dist-lib/use-mobile-BADA7dx5.js +0 -205
- package/dist-lib/utils-CpaZ5_iF.js +0 -1692
- package/dist-lib/value-PnGnjGbr.js +0 -413
- package/dist-lib/with-selector-t6tzmyqE.js +0 -185
- /package/dist-lib/{dist-DEukRl4M.js → dist-CK9PErDU.js} +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { n as e } from "./i18n-BMTYOmLT.js";
|
|
2
|
-
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
|
-
//#region src/base/blocks/SentenceBuilderBlock.tsx
|
|
4
|
-
var r = {
|
|
5
|
-
equals: "middag.ui.sentence.op.equals",
|
|
6
|
-
not_equals: "middag.ui.sentence.op.not_equals",
|
|
7
|
-
contains: "middag.ui.sentence.op.contains",
|
|
8
|
-
not_contains: "middag.ui.sentence.op.not_contains",
|
|
9
|
-
greater_than: "middag.ui.sentence.op.greater_than",
|
|
10
|
-
less_than: "middag.ui.sentence.op.less_than",
|
|
11
|
-
in: "middag.ui.sentence.op.in",
|
|
12
|
-
not_in: "middag.ui.sentence.op.not_in"
|
|
13
|
-
};
|
|
14
|
-
function i(e, t) {
|
|
15
|
-
return e.replace(/\{(\w+)\}/g, (e, n) => t[n] ?? `{${n}}`);
|
|
16
|
-
}
|
|
17
|
-
function a({ matched: n, total: r }) {
|
|
18
|
-
let { t: a, formatNumber: o } = e();
|
|
19
|
-
return /* @__PURE__ */ t("span", {
|
|
20
|
-
className: "text-foreground text-sm font-semibold",
|
|
21
|
-
children: i(a("middag.ui.sentence.audience_text"), {
|
|
22
|
-
matched: o(n),
|
|
23
|
-
total: o(r)
|
|
24
|
-
})
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function o({ block: i }) {
|
|
28
|
-
let { t: o } = e(), { data: s } = i;
|
|
29
|
-
return /* @__PURE__ */ n("div", {
|
|
30
|
-
className: "space-y-6",
|
|
31
|
-
children: [
|
|
32
|
-
/* @__PURE__ */ t("div", {
|
|
33
|
-
className: "space-y-4",
|
|
34
|
-
children: s.groups.map((e, i) => /* @__PURE__ */ n("div", { children: [i > 0 && /* @__PURE__ */ n("div", {
|
|
35
|
-
className: "flex items-center gap-3 py-2",
|
|
36
|
-
children: [
|
|
37
|
-
/* @__PURE__ */ t("div", { className: "bg-border h-px flex-1" }),
|
|
38
|
-
/* @__PURE__ */ t("span", {
|
|
39
|
-
className: "text-warning text-sm font-bold uppercase",
|
|
40
|
-
children: o("middag.ui.sentence.or")
|
|
41
|
-
}),
|
|
42
|
-
/* @__PURE__ */ t("div", { className: "bg-border h-px flex-1" })
|
|
43
|
-
]
|
|
44
|
-
}), /* @__PURE__ */ t("div", {
|
|
45
|
-
className: "bg-muted/30 rounded-lg border p-4",
|
|
46
|
-
children: /* @__PURE__ */ n("p", {
|
|
47
|
-
className: "text-foreground text-sm leading-relaxed",
|
|
48
|
-
children: [/* @__PURE__ */ t("span", {
|
|
49
|
-
className: "text-muted-foreground",
|
|
50
|
-
children: o("middag.ui.sentence.users_where")
|
|
51
|
-
}), e.rules.map((e, i) => /* @__PURE__ */ n("span", { children: [
|
|
52
|
-
i > 0 && /* @__PURE__ */ t("span", {
|
|
53
|
-
className: "text-primary mx-1 text-sm font-bold uppercase",
|
|
54
|
-
children: o("middag.ui.sentence.and")
|
|
55
|
-
}),
|
|
56
|
-
/* @__PURE__ */ t("span", {
|
|
57
|
-
className: "mx-1 inline-flex items-center rounded-full px-3 py-1 text-sm font-medium",
|
|
58
|
-
children: e.field
|
|
59
|
-
}),
|
|
60
|
-
/* @__PURE__ */ t("span", {
|
|
61
|
-
className: "text-muted-foreground text-sm",
|
|
62
|
-
children: o(r[e.operator] ?? e.operator)
|
|
63
|
-
}),
|
|
64
|
-
/* @__PURE__ */ t("span", {
|
|
65
|
-
className: "bg-background text-foreground mx-1 inline-flex items-center rounded border px-3 py-1 text-sm",
|
|
66
|
-
children: e.value
|
|
67
|
-
})
|
|
68
|
-
] }, e.id))]
|
|
69
|
-
})
|
|
70
|
-
})] }, e.id))
|
|
71
|
-
}),
|
|
72
|
-
/* @__PURE__ */ t("button", {
|
|
73
|
-
type: "button",
|
|
74
|
-
className: "w-full rounded-lg border border-dashed px-4 py-3 text-sm font-medium transition-colors",
|
|
75
|
-
children: o("middag.ui.sentence.add_rule")
|
|
76
|
-
}),
|
|
77
|
-
s.audienceEstimate && /* @__PURE__ */ n("div", {
|
|
78
|
-
className: "bg-muted/50 flex items-center justify-between rounded-lg px-4 py-3",
|
|
79
|
-
children: [/* @__PURE__ */ t("span", {
|
|
80
|
-
className: "text-muted-foreground text-sm",
|
|
81
|
-
children: o("middag.ui.sentence.audience_estimate")
|
|
82
|
-
}), /* @__PURE__ */ t(a, {
|
|
83
|
-
matched: s.audienceEstimate.matched,
|
|
84
|
-
total: s.audienceEstimate.total
|
|
85
|
-
})]
|
|
86
|
-
})
|
|
87
|
-
]
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
//#endregion
|
|
91
|
-
export { o as SentenceBuilderBlock };
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./utils-CpaZ5_iF.js";
|
|
2
|
-
import { o as t, t as n } from "./dist-DkjgjvZx.js";
|
|
3
|
-
import { jsx as r } from "react/jsx-runtime";
|
|
4
|
-
//#region src/components/reui/badge.tsx
|
|
5
|
-
var i = t("relative inline-flex shrink-0 items-center justify-center w-fit border border-transparent font-medium whitespace-nowrap outline-none transition-shadow focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-1 focus-visible:ring-offset-background disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*=size-])]:size-3", {
|
|
6
|
-
variants: {
|
|
7
|
-
variant: {
|
|
8
|
-
default: "bg-primary text-primary-foreground",
|
|
9
|
-
outline: "border-border bg-transparent dark:bg-input/32",
|
|
10
|
-
secondary: "bg-secondary text-secondary-foreground",
|
|
11
|
-
info: "bg-info text-white",
|
|
12
|
-
success: "bg-success text-white",
|
|
13
|
-
warning: "bg-warning text-white",
|
|
14
|
-
destructive: "bg-destructive text-white",
|
|
15
|
-
focus: "bg-focus text-focus-foreground",
|
|
16
|
-
invert: "bg-invert text-invert-foreground",
|
|
17
|
-
"primary-light": "bg-primary/10 border-none text-primary dark:bg-primary/20",
|
|
18
|
-
"warning-light": "bg-warning/10 border-none text-warning-foreground dark:bg-warning/20",
|
|
19
|
-
"success-light": "bg-success/10 border-none text-success-foreground dark:bg-success/20",
|
|
20
|
-
"info-light": "bg-info/10 border-none text-info-foreground dark:bg-info/20",
|
|
21
|
-
"destructive-light": "bg-destructive/10 border-none text-destructive-foreground dark:bg-destructive/20",
|
|
22
|
-
"invert-light": "bg-invert/10 border-none text-foreground dark:bg-invert/20",
|
|
23
|
-
"focus-light": "bg-focus/10 border-none text-focus-foreground dark:bg-focus/20",
|
|
24
|
-
"primary-outline": "bg-background border-border text-primary dark:bg-input/30",
|
|
25
|
-
"warning-outline": "bg-background border-border text-warning-foreground dark:bg-input/30",
|
|
26
|
-
"success-outline": "bg-background border-border text-success-foreground dark:bg-input/30",
|
|
27
|
-
"info-outline": "bg-background border-border text-info-foreground dark:bg-input/30",
|
|
28
|
-
"destructive-outline": "bg-background border-border text-destructive-foreground dark:bg-input/30",
|
|
29
|
-
"invert-outline": "bg-background border-border text-invert-foreground dark:bg-input/30",
|
|
30
|
-
"focus-outline": "bg-background border-border text-focus-foreground dark:bg-input/30"
|
|
31
|
-
},
|
|
32
|
-
size: {
|
|
33
|
-
xs: "px-1 py-0.25 text-[0.6rem] leading-none h-4 min-w-4 gap-1",
|
|
34
|
-
sm: "px-1 py-0.25 text-[0.625rem] leading-none h-4.5 min-w-4.5 gap-1",
|
|
35
|
-
default: "px-1.25 py-0.5 text-xs h-5 min-w-5 gap-1",
|
|
36
|
-
lg: "px-1.5 py-0.5 text-xs h-5.5 min-w-5.5 gap-1",
|
|
37
|
-
xl: "px-2 py-0.75 text-sm h-6 min-w-6 gap-1.5"
|
|
38
|
-
},
|
|
39
|
-
radius: {
|
|
40
|
-
default: "rounded-4xl",
|
|
41
|
-
full: "rounded-full"
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
defaultVariants: {
|
|
45
|
-
variant: "default",
|
|
46
|
-
size: "default",
|
|
47
|
-
radius: "default"
|
|
48
|
-
}
|
|
49
|
-
});
|
|
50
|
-
function a({ className: t, variant: a, size: o, radius: s, asChild: c = !1, ...l }) {
|
|
51
|
-
return /* @__PURE__ */ r(c ? n : "span", {
|
|
52
|
-
"data-slot": "badge",
|
|
53
|
-
className: e(i({
|
|
54
|
-
variant: a,
|
|
55
|
-
size: o,
|
|
56
|
-
radius: s,
|
|
57
|
-
className: t
|
|
58
|
-
})),
|
|
59
|
-
...l
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
//#endregion
|
|
63
|
-
export { a as t };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ChartPanelBlock — contract-driven chart rendering using Recharts via ReUI Chart.
|
|
3
|
-
*
|
|
4
|
-
* Supports bar, line, area, and pie charts with multiple data series.
|
|
5
|
-
* Data-driven from PageContract — the backend defines chart type, data, and series.
|
|
6
|
-
*/
|
|
7
|
-
import { type ReactElement } from "react";
|
|
8
|
-
import type { BlockProps } from "../../app/registries";
|
|
9
|
-
import type { ChartPanelBlockData } from "../../contracts/block-data";
|
|
10
|
-
export declare function ChartPanelBlock({ block }: BlockProps<ChartPanelBlockData>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=ChartPanelBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ChartPanelBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/ChartPanelBlock.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAiBnD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AASnD,OAAO,KAAK,EAAE,mBAAmB,EAAe,MAAM,wBAAwB,CAAC;AA0G/E,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAAG,YAAY,CAqBxF"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ConditionTreeBlock — visual editor for condition trees (CC-09).
|
|
3
|
-
*
|
|
4
|
-
* Renders a recursive AND/OR tree with nested groups and rules,
|
|
5
|
-
* inspired by Jira Workflow Conditions. Display-only mock.
|
|
6
|
-
*
|
|
7
|
-
* @see DESIGN.md P6
|
|
8
|
-
*/
|
|
9
|
-
import type { ReactElement } from "react";
|
|
10
|
-
import type { BlockProps } from "../../app/registries";
|
|
11
|
-
import type { ConditionTreeBlockData } from "../../contracts/block-data";
|
|
12
|
-
export declare function ConditionTreeBlock({ block }: BlockProps<ConditionTreeBlockData>): ReactElement;
|
|
13
|
-
//# sourceMappingURL=ConditionTreeBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ConditionTreeBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/ConditionTreeBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAiC,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAqGpG,wBAAgB,kBAAkB,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,sBAAsB,CAAC,GAAG,YAAY,CAQ9F"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FlowEditorBlock — visual workflow editor (CC-03).
|
|
3
|
-
*
|
|
4
|
-
* Renders a horizontal canvas with draggable nodes via React Flow.
|
|
5
|
-
* Node types: Trigger (success), Condition (warning), Action (accent).
|
|
6
|
-
* Display-only mock — React Flow handles interactivity automatically.
|
|
7
|
-
*
|
|
8
|
-
* @see DESIGN.md P6
|
|
9
|
-
*/
|
|
10
|
-
import { type ReactElement } from "react";
|
|
11
|
-
import "@xyflow/react/dist/style.css";
|
|
12
|
-
import type { BlockProps } from "../../app/registries";
|
|
13
|
-
import type { FlowEditorBlockData } from "../../contracts/block-data";
|
|
14
|
-
export declare function FlowEditorBlock({ block }: BlockProps<FlowEditorBlockData>): ReactElement;
|
|
15
|
-
//# sourceMappingURL=FlowEditorBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FlowEditorBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/FlowEditorBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAA4C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAYpF,OAAO,8BAA8B,CAAC;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,mBAAmB,EAAkB,MAAM,wBAAwB,CAAC;AAiElF,wBAAgB,eAAe,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,mBAAmB,CAAC,GAAG,YAAY,CAkDxF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FormBuilderBlock — visual drag-and-drop form editor (Customform extension).
|
|
3
|
-
*
|
|
4
|
-
* Three-column layout:
|
|
5
|
-
* - Left: palette of available field types
|
|
6
|
-
* - Center: sortable canvas with reorderable fields (@dnd-kit)
|
|
7
|
-
* - Right: live preview of the rendered form
|
|
8
|
-
*
|
|
9
|
-
* Mock-only: DnD reorder works; adding from palette is display-only.
|
|
10
|
-
*
|
|
11
|
-
* @see DESIGN.md P6 — Form Builder (Customform)
|
|
12
|
-
*/
|
|
13
|
-
import type { ReactElement } from "react";
|
|
14
|
-
import type { BlockProps } from "../../app/registries";
|
|
15
|
-
import type { FormBuilderBlockData } from "../../contracts/block-data";
|
|
16
|
-
export declare function FormBuilderBlock({ block }: BlockProps<FormBuilderBlockData>): ReactElement;
|
|
17
|
-
//# sourceMappingURL=FormBuilderBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormBuilderBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/FormBuilderBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAqB1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,oBAAoB,EAAoB,MAAM,wBAAwB,CAAC;AA6LrF,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAwG1F"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* FormPanelBlock — schema-driven form rendering with react-hook-form + Zod validation.
|
|
3
|
-
*
|
|
4
|
-
* Receives form schema from server, renders fields via FormField router,
|
|
5
|
-
* validates client-side via Zod (generated from schema), and submits via Inertia.
|
|
6
|
-
*
|
|
7
|
-
* Validation modes (meta.validation):
|
|
8
|
-
* - 'both' (default): client + server validation
|
|
9
|
-
* - 'client': client-only (no Inertia error handling)
|
|
10
|
-
* - 'server': server-only (legacy, no Zod schema)
|
|
11
|
-
*
|
|
12
|
-
* @see NV-05-ux-blocks.md §2.1–2.10
|
|
13
|
-
*/
|
|
14
|
-
import { type ReactElement } from "react";
|
|
15
|
-
import type { BlockProps } from "../../app/registries";
|
|
16
|
-
import type { FormPanelBlockData } from "../../contracts/block-data";
|
|
17
|
-
export declare function FormPanelBlock({ block }: BlockProps<FormPanelBlockData>): ReactElement;
|
|
18
|
-
//# sourceMappingURL=FormPanelBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormPanelBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/FormPanelBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAqD,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAO7F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAgBnD,OAAO,KAAK,EAAE,kBAAkB,EAAkB,MAAM,wBAAwB,CAAC;AAsFjF,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,kBAAkB,CAAC,GAAG,YAAY,CAqMtF"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* KanbanBoardBlock — drag-drop kanban board using ReUI Kanban (@dnd-kit).
|
|
3
|
-
*
|
|
4
|
-
* Contract-driven: the backend defines columns and cards.
|
|
5
|
-
* Card moves are reported to the backend via moveEndpoint (Inertia POST).
|
|
6
|
-
*/
|
|
7
|
-
import { type ReactElement } from "react";
|
|
8
|
-
import type { BlockProps } from "../../app/registries";
|
|
9
|
-
import type { KanbanBoardBlockData } from "../../contracts/block-data";
|
|
10
|
-
export declare function KanbanBoardBlock({ block }: BlockProps<KanbanBoardBlockData>): ReactElement;
|
|
11
|
-
//# sourceMappingURL=KanbanBoardBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoardBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/KanbanBoardBlock.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1E,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAWnD,OAAO,KAAK,EAAE,oBAAoB,EAAc,MAAM,wBAAwB,CAAC;AA2C/E,wBAAgB,gBAAgB,CAAC,EAAE,KAAK,EAAE,EAAE,UAAU,CAAC,oBAAoB,CAAC,GAAG,YAAY,CAuG1F"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SentenceBuilderBlock — natural language segment rule builder (CC-07).
|
|
3
|
-
*
|
|
4
|
-
* Renders segment rules as a human-readable sentence:
|
|
5
|
-
* "Usuários onde [campo] [operador] [valor] E/OU..."
|
|
6
|
-
*
|
|
7
|
-
* Mock-only: fields/operators/values are display-only, no editing.
|
|
8
|
-
*
|
|
9
|
-
* @see DESIGN.md P6 — Sentence Builder (Segments)
|
|
10
|
-
*/
|
|
11
|
-
import type { ReactElement } from "react";
|
|
12
|
-
import type { BlockProps } from "../../app/registries";
|
|
13
|
-
import type { SentenceBuilderBlockData } from "../../contracts/block-data";
|
|
14
|
-
export declare function SentenceBuilderBlock({ block, }: BlockProps<SentenceBuilderBlockData>): ReactElement;
|
|
15
|
-
//# sourceMappingURL=SentenceBuilderBlock.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SentenceBuilderBlock.d.ts","sourceRoot":"","sources":["../../../src/base/blocks/SentenceBuilderBlock.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAG1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AACnD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,wBAAwB,CAAC;AAgCvE,wBAAgB,oBAAoB,CAAC,EACnC,KAAK,GACN,EAAE,UAAU,CAAC,wBAAwB,CAAC,GAAG,YAAY,CA8ErD"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* form-schema-builder — generates a Zod validation schema from a FormSchemaNode tree.
|
|
3
|
-
*
|
|
4
|
-
* Walks the server-sent schema, extracts visible fields, and builds Zod validators
|
|
5
|
-
* from field type + validation props. Used by FormPanelBlock with zodResolver for
|
|
6
|
-
* react-hook-form client-side validation.
|
|
7
|
-
*
|
|
8
|
-
* The same form is always re-validated server-side via Inertia — this is an additive
|
|
9
|
-
* UX improvement, not a replacement for server validation.
|
|
10
|
-
*/
|
|
11
|
-
import { z, type ZodTypeAny } from "zod";
|
|
12
|
-
import type { FormSchemaNode } from "../../contracts/block-data";
|
|
13
|
-
type TranslateFn = (key: string, params?: Record<string, string | number>) => string;
|
|
14
|
-
/**
|
|
15
|
-
* Build a complete Zod schema from a FormSchemaNode tree.
|
|
16
|
-
*
|
|
17
|
-
* Only visible fields are included in the schema — hidden fields are not validated.
|
|
18
|
-
* Call this function whenever form values change to rebuild the schema with updated
|
|
19
|
-
* visibility conditions.
|
|
20
|
-
*
|
|
21
|
-
* @param schema - The server-sent form schema tree
|
|
22
|
-
* @param values - Current form values (used for conditional visibility evaluation)
|
|
23
|
-
* @param t - Translation function for error messages
|
|
24
|
-
*/
|
|
25
|
-
export declare function buildFormSchema(schema: FormSchemaNode[], values: Record<string, unknown>, t: TranslateFn): z.ZodObject<Record<string, ZodTypeAny>>;
|
|
26
|
-
export {};
|
|
27
|
-
//# sourceMappingURL=form-schema-builder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"form-schema-builder.d.ts","sourceRoot":"","sources":["../../../src/base/form/form-schema-builder.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,CAAC,EAAE,KAAK,UAAU,EAAE,MAAM,KAAK,CAAC;AAQzC,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAE5E,KAAK,WAAW,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KAAK,MAAM,CAAC;AAgIrF;;;;;;;;;;GAUG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,cAAc,EAAE,EACxB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,CAAC,EAAE,WAAW,GACb,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC,CAoBzC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ProductShell — main MIDDAG shell with offcanvas sidebar navigation.
|
|
3
|
-
*
|
|
4
|
-
* Renders: sidebar (SidebarNav) + page header (PageHeader) + content area.
|
|
5
|
-
* Shell is responsible for layout chrome. Content is rendered by ContractPage.
|
|
6
|
-
*
|
|
7
|
-
* Features:
|
|
8
|
-
* - Offcanvas collapsible sidebar (fully hides when collapsed)
|
|
9
|
-
* - SidebarFooter with collapse button + AppearanceToggle
|
|
10
|
-
* - Floating expand + dark mode controls when sidebar is hidden
|
|
11
|
-
* - Host header height detection (Moodle navbar, WP admin bar)
|
|
12
|
-
* - Optional admin tab bar (when admin_tabs shared prop is present)
|
|
13
|
-
* - Zero padding on content area — layouts control all spacing
|
|
14
|
-
*
|
|
15
|
-
* @see ADR-807 ref/shell-and-navigation §1-2
|
|
16
|
-
* @see NV-05-ux-shell-sidebar.md §2
|
|
17
|
-
*/
|
|
18
|
-
import { type ReactElement } from "react";
|
|
19
|
-
import type { ShellProps } from "../../app/registries";
|
|
20
|
-
/**
|
|
21
|
-
* ProductShell wraps content in SidebarProvider with offcanvas collapsible.
|
|
22
|
-
*
|
|
23
|
-
* Designed for all host environments (Moodle, WordPress, custom). Includes:
|
|
24
|
-
* - SidebarFooter with collapse button + AppearanceToggle
|
|
25
|
-
* - Floating expand + dark mode controls when sidebar is hidden
|
|
26
|
-
* - Host header height detection for proper positioning
|
|
27
|
-
* - Admin tab bar when admin_tabs shared prop is present
|
|
28
|
-
* - Zero padding on content area (layouts control spacing)
|
|
29
|
-
*
|
|
30
|
-
* Note: the sidebar primitive uses a cookie for state, not localStorage.
|
|
31
|
-
* We override this in SidebarNav for section-level state (different concern).
|
|
32
|
-
*/
|
|
33
|
-
export declare function ProductShell({ children }: ShellProps): ReactElement;
|
|
34
|
-
//# sourceMappingURL=ProductShell.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProductShell.d.ts","sourceRoot":"","sources":["../../../src/base/shell/ProductShell.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAA0B,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIlE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAgLnD;;;;;;;;;;;;GAYG;AACH,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,CAsBnE"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AdminTabBar — horizontal tab bar for WordPress admin navigation.
|
|
3
|
-
*
|
|
4
|
-
* Rendered inside ProductShell when the `admin_tabs` shared prop is present.
|
|
5
|
-
* Each tab is an Inertia Link for SPA navigation.
|
|
6
|
-
*/
|
|
7
|
-
import type { ReactElement } from "react";
|
|
8
|
-
import type { AdminTabsProps } from "../../../contracts/shared-props";
|
|
9
|
-
export declare function AdminTabBar({ tabs }: {
|
|
10
|
-
tabs: AdminTabsProps;
|
|
11
|
-
}): ReactElement;
|
|
12
|
-
//# sourceMappingURL=AdminTabBar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AdminTabBar.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/AdminTabBar.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAE/D,wBAAgB,WAAW,CAAC,EAAE,IAAI,EAAE,EAAE;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,GAAG,YAAY,CAgB5E"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* AppearanceToggle — cycles System → Light → Dark → System.
|
|
3
|
-
* Position: page header, right side.
|
|
4
|
-
*
|
|
5
|
-
* @see NV-05-ux-shell-sidebar.md §5
|
|
6
|
-
*/
|
|
7
|
-
export declare function AppearanceToggle(): import("react/jsx-runtime").JSX.Element;
|
|
8
|
-
//# sourceMappingURL=AppearanceToggle.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AppearanceToggle.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/AppearanceToggle.tsx"],"names":[],"mappings":"AAAA;;;;;GAKG;AAsBH,wBAAgB,gBAAgB,4CAyB/B"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BoostSearchBar — central search input for the host header (Moodle Boost).
|
|
3
|
-
*
|
|
4
|
-
* Rendered inside the Boost navbar via HostSlot portal. Visually matches
|
|
5
|
-
* the enterprise design: centered 380px input with search icon + ⌘K shortcut badge.
|
|
6
|
-
*
|
|
7
|
-
* Clicking or pressing ⌘K activates a callback (typically opening a command palette).
|
|
8
|
-
* The input itself is readonly — it's an activation trigger, not a real search field.
|
|
9
|
-
*
|
|
10
|
-
* ## Usage
|
|
11
|
-
*
|
|
12
|
-
* ```tsx
|
|
13
|
-
* <HostSlot selector="#middag-global-search">
|
|
14
|
-
* <BoostSearchBar
|
|
15
|
-
* placeholder="Search connectors, forms, students..."
|
|
16
|
-
* onActivate={() => setCommandPaletteOpen(true)}
|
|
17
|
-
* />
|
|
18
|
-
* </HostSlot>
|
|
19
|
-
* ```
|
|
20
|
-
*
|
|
21
|
-
* @see HostSlot for the portal injection pattern
|
|
22
|
-
*/
|
|
23
|
-
import { type ReactElement } from "react";
|
|
24
|
-
interface BoostSearchBarProps {
|
|
25
|
-
/** Callback when the search bar is clicked or ⌘K is pressed. */
|
|
26
|
-
onActivate?: () => void;
|
|
27
|
-
/** Placeholder text. Falls back to i18n key. */
|
|
28
|
-
placeholder?: string;
|
|
29
|
-
}
|
|
30
|
-
export declare function BoostSearchBar({ onActivate, placeholder }: BoostSearchBarProps): ReactElement;
|
|
31
|
-
export {};
|
|
32
|
-
//# sourceMappingURL=BoostSearchBar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"BoostSearchBar.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/BoostSearchBar.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAIH,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAIrD,UAAU,mBAAmB;IAC3B,gEAAgE;IAChE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,gDAAgD;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,wBAAgB,cAAc,CAAC,EAAE,UAAU,EAAE,WAAW,EAAE,EAAE,mBAAmB,GAAG,YAAY,CAuE7F"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CommandPalette — ⌘K overlay for quick navigation and actions.
|
|
3
|
-
*
|
|
4
|
-
* Matches preview 03: overlay + card + grouped results + keyboard nav.
|
|
5
|
-
*
|
|
6
|
-
* @see ui/previews/03-interaction-patterns.html .cmd-overlay
|
|
7
|
-
* @see DESIGN.md §P8 Command Palette & Keyboard Shortcuts
|
|
8
|
-
*/
|
|
9
|
-
import { type ReactElement } from "react";
|
|
10
|
-
export interface CommandItem {
|
|
11
|
-
id: string;
|
|
12
|
-
label: string;
|
|
13
|
-
icon?: string;
|
|
14
|
-
shortcut?: string;
|
|
15
|
-
href?: string;
|
|
16
|
-
group: string;
|
|
17
|
-
}
|
|
18
|
-
interface CommandPaletteProps {
|
|
19
|
-
items: CommandItem[];
|
|
20
|
-
onSelect?: (item: CommandItem) => void;
|
|
21
|
-
}
|
|
22
|
-
export declare function CommandPalette({ items, onSelect }: CommandPaletteProps): ReactElement | null;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=CommandPalette.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CommandPalette.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/CommandPalette.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAKvE,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,UAAU,mBAAmB;IAC3B,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,KAAK,IAAI,CAAC;CACxC;AAED,wBAAgB,cAAc,CAAC,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,mBAAmB,GAAG,YAAY,GAAG,IAAI,CA4K5F"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { type ReactElement, type ReactNode } from "react";
|
|
2
|
-
import type { HelpData } from "../../../contracts/page-contract";
|
|
3
|
-
interface HelpContextValue {
|
|
4
|
-
help: HelpData | null;
|
|
5
|
-
isOpen: boolean;
|
|
6
|
-
setHelp: (data: HelpData | null) => void;
|
|
7
|
-
toggle: () => void;
|
|
8
|
-
close: () => void;
|
|
9
|
-
}
|
|
10
|
-
export declare function HelpProvider({ children }: {
|
|
11
|
-
children: ReactNode;
|
|
12
|
-
}): ReactElement;
|
|
13
|
-
export declare function useHelp(): HelpContextValue;
|
|
14
|
-
export {};
|
|
15
|
-
//# sourceMappingURL=HelpContext.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HelpContext.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/HelpContext.tsx"],"names":[],"mappings":"AAEA,OAAO,EAKL,KAAK,YAAY,EACjB,KAAK,SAAS,EACf,MAAM,OAAO,CAAC;AAEf,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAE1D,UAAU,gBAAgB;IACxB,IAAI,EAAE,QAAQ,GAAG,IAAI,CAAC;IACtB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,CAAC,IAAI,EAAE,QAAQ,GAAG,IAAI,KAAK,IAAI,CAAC;IACzC,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAUD,wBAAgB,YAAY,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAUhF;AAGD,wBAAgB,OAAO,IAAI,gBAAgB,CAE1C"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* HelpPanel (ContextAside) — inline flex panel for contextual help.
|
|
3
|
-
*
|
|
4
|
-
* Renders as a flex sibling of <main> in the shell, NOT as an overlay.
|
|
5
|
-
* Width animates from 0 to 300px. Content is page-specific,
|
|
6
|
-
* received via the HelpContext (set by ContractPage via useHelp).
|
|
7
|
-
*
|
|
8
|
-
* Uses logical CSS properties (border-s, ps, pe) for RTL support.
|
|
9
|
-
*
|
|
10
|
-
* @see DESIGN.md §ContextAside
|
|
11
|
-
* @see ADR-807 ref/page-contract-v1
|
|
12
|
-
*/
|
|
13
|
-
import { type ReactElement } from "react";
|
|
14
|
-
export declare function HelpPanel(): ReactElement | null;
|
|
15
|
-
//# sourceMappingURL=HelpPanel.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"HelpPanel.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/HelpPanel.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAIH,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAQrD,wBAAgB,SAAS,IAAI,YAAY,GAAG,IAAI,CAoH/C"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InlineInspector — inline flex panel for inspecting selected items.
|
|
3
|
-
*
|
|
4
|
-
* Renders as a flex sibling of <main> in the shell, NOT as an overlay.
|
|
5
|
-
* Width animates from 0 to inspector.width (default 380px).
|
|
6
|
-
* Contains: header (subtitle + title + actions), status pill row,
|
|
7
|
-
* tabs (Detalhes, Atividade, Config), and section content.
|
|
8
|
-
*
|
|
9
|
-
* Tab state resets on selection change via React key remount.
|
|
10
|
-
*
|
|
11
|
-
* @see DESIGN.md §P2 — Inspector / Drawer
|
|
12
|
-
* @see ui/previews/03-interaction-patterns.html
|
|
13
|
-
*/
|
|
14
|
-
import { type ReactElement } from "react";
|
|
15
|
-
export declare function InlineInspector(): ReactElement | null;
|
|
16
|
-
//# sourceMappingURL=InlineInspector.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"InlineInspector.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/InlineInspector.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAA4C,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAgRpF,wBAAgB,eAAe,IAAI,YAAY,GAAG,IAAI,CAyCrD"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PageFilterTabs — page-level filter tabs between header and content.
|
|
3
|
-
*
|
|
4
|
-
* Renders horizontal tabs matching preview 03 pattern:
|
|
5
|
-
* "Todos (4) | Ativos (2) | Com Erro (1) | Arquivados"
|
|
6
|
-
*
|
|
7
|
-
* Active tab: color primary, font-weight 500, 2px underline.
|
|
8
|
-
* Inactive: color text-muted, hover text.
|
|
9
|
-
*
|
|
10
|
-
* @see ui/previews/03-interaction-patterns.html .tabs class
|
|
11
|
-
* @see DESIGN.md §P1 Tabs
|
|
12
|
-
*/
|
|
13
|
-
import { type ReactElement } from "react";
|
|
14
|
-
import type { PageFilterTab } from "../../../contracts/page-contract";
|
|
15
|
-
interface PageFilterTabsProps {
|
|
16
|
-
tabs: PageFilterTab[];
|
|
17
|
-
activeTab?: string;
|
|
18
|
-
onTabChange?: (key: string) => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function PageFilterTabs({ tabs, activeTab: controlledActive, onTabChange, }: PageFilterTabsProps): ReactElement;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=PageFilterTabs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageFilterTabs.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/PageFilterTabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAY,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAEpD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAG/D,UAAU,mBAAmB;IAC3B,IAAI,EAAE,aAAa,EAAE,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,CAAC;CACrC;AAED,wBAAgB,cAAc,CAAC,EAC7B,IAAI,EACJ,SAAS,EAAE,gBAAgB,EAC3B,WAAW,GACZ,EAAE,mBAAmB,GAAG,YAAY,CAyDpC"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PageHeader — universal 5-slot page header.
|
|
3
|
-
*
|
|
4
|
-
* Slots:
|
|
5
|
-
* 1. Breadcrumbs (always)
|
|
6
|
-
* 2. Title row: optional icon + title + optional badge
|
|
7
|
-
* 3. Subtitle (optional)
|
|
8
|
-
* 4. Favorite star (hover-reveal, optional via favoritable)
|
|
9
|
-
* 5. Actions toolbar: primary (1 max) + secondary (2 max) + overflow menu
|
|
10
|
-
*
|
|
11
|
-
* @see DESIGN.md §PageHeader
|
|
12
|
-
* @see ADR-807 ref/page-contract-v1 §3 (PageMeta shape)
|
|
13
|
-
*/
|
|
14
|
-
import { type ReactElement } from "react";
|
|
15
|
-
import type { PageMeta } from "../../../contracts/page-contract";
|
|
16
|
-
interface PageHeaderProps {
|
|
17
|
-
page: PageMeta;
|
|
18
|
-
onMobileMenuClick?: () => void;
|
|
19
|
-
}
|
|
20
|
-
export declare function PageHeader({ page, onMobileMenuClick }: PageHeaderProps): ReactElement;
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=PageHeader.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PageHeader.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/PageHeader.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAIH,OAAO,EAAyB,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAgBjE,OAAO,KAAK,EAAc,QAAQ,EAAgB,MAAM,2BAA2B,CAAC;AA6JpF,UAAU,eAAe;IACvB,IAAI,EAAE,QAAQ,CAAC;IACf,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAC;CAChC;AAED,wBAAgB,UAAU,CAAC,EAAE,IAAI,EAAE,iBAAiB,EAAE,EAAE,eAAe,GAAG,YAAY,CAyGrF"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SidebarNav — unified tree navigation inside the ProductShell sidebar.
|
|
3
|
-
*
|
|
4
|
-
* Renders NavigationTreePayload (NV-05 unified model) with recursive nodes.
|
|
5
|
-
* Active state driven by NavigationTreePayload.activeKey (server-resolved).
|
|
6
|
-
* Drilldown state persisted in localStorage.
|
|
7
|
-
* Quick find (Cmd+K) filters navigation client-side.
|
|
8
|
-
*
|
|
9
|
-
* Visual reference: ui/previews/03-interaction-patterns.html (sidebar section).
|
|
10
|
-
* Uses flat HTML + Tailwind — no ReUI sidebar wrappers (DataGrid/SidebarMenu removed).
|
|
11
|
-
*
|
|
12
|
-
* @see NV-05-ux-shell-sidebar.md §3
|
|
13
|
-
* @see ADR-807 ref/shell-and-navigation §2
|
|
14
|
-
*/
|
|
15
|
-
import { type ReactElement } from "react";
|
|
16
|
-
export declare function SidebarNav(): ReactElement;
|
|
17
|
-
//# sourceMappingURL=SidebarNav.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SidebarNav.d.ts","sourceRoot":"","sources":["../../../../src/base/shell/partials/SidebarNav.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,EAAqD,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AA6sB7F,wBAAgB,UAAU,IAAI,YAAY,CAoBzC"}
|