@abpjs/ui 0.2.0-next.27 → 0.2.0-next.29

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/CHANGELOG.md CHANGED
@@ -1,5 +1,24 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.29
4
+
5
+ A prerelease under npm's `next` tag.
6
+
7
+ - `RowMenu`: a row's ⋯ menu. It takes items (with an icon, `danger` for red, `disabled`), separators, and a quiet note
8
+ saying who can use the items that are off.
9
+ - `Button variant="cancel"`: the one Cancel look, a gray fill a step above the surface in either mode with no border.
10
+ `ConfirmDialog`'s Cancel uses it.
11
+ - `ConfirmDialog typeToConfirm`: the confirm turns on only once the person types the given word (a project's key, to
12
+ delete it). Its prompt is `typeToConfirm`, an optional label ("Type {value} to confirm").
13
+ - `QueryableList`: `trailingColumn` adds a column after the fields (a row's menu). `cards` with `layout="cards"` draws
14
+ the rows as cards in a grid, with placeholders while loading; filters, sort, saved views and pages work the same.
15
+
16
+ ## 0.2.0-next.28
17
+
18
+ A prerelease under npm's `next` tag.
19
+
20
+ - agent: an empty chat list and an empty "mine" list draw `art="agent"`.
21
+
3
22
  ## 0.2.0-next.27
4
23
 
5
24
  A prerelease under npm's `next` tag. (0.2.0-next.26 was tagged but never published: a test list was malformed.)
@@ -17,6 +36,8 @@ A prerelease under npm's `next` tag. (0.2.0-next.26 was tagged but never publish
17
36
  (`aria-hidden`). A `no-results` or `no-filter-match` empty state is a polite live region, and an `error` one is an
18
37
  alert.
19
38
  - `PageIllustration`, `EmptyArtDrawing`, `EmptyIllustration` and `EmptyArt` are exported.
39
+ - agent: the chat panel spans the page, not the window (its positioner is 100% wide, not 100vw), so the page's
40
+ scrollbar no longer pushes it past the screen's edge.
20
41
 
21
42
  ## 0.2.0-next.25
22
43
 
package/dist/agent.js CHANGED
@@ -1756,7 +1756,7 @@ function ChatList({ onOpen, onNew }) {
1756
1756
  /* @__PURE__ */ jsxs13(Drawer.Body, { px: "0", children: [
1757
1757
  /* @__PURE__ */ jsx14(Box3, { px: "5", pb: "3", children: /* @__PURE__ */ jsx14(Button10, { size: "sm", variant: "primary", onClick: onNew, "data-testid": "agent-chat-new", children: t("chat.new") }) }),
1758
1758
  chats.error && /* @__PURE__ */ jsx14(Box3, { px: "5", children: /* @__PURE__ */ jsx14(InlineAlert9, { tone: "danger", children: chats.error }) }),
1759
- chats.data?.length === 0 && /* @__PURE__ */ jsx14(EmptyState, { size: "sm", title: t("chat.none"), description: t("chat.noneHint") }),
1759
+ chats.data?.length === 0 && /* @__PURE__ */ jsx14(EmptyState, { size: "sm", art: "agent", title: t("chat.none"), description: t("chat.noneHint") }),
1760
1760
  /* @__PURE__ */ jsx14(Stack13, { gap: "0", as: "ul", listStyleType: "none", "aria-label": t("chat.chats"), children: chats.data?.map((c) => /* @__PURE__ */ jsx14(Box3, { as: "li", borderTopWidth: "1px", borderColor: "border.muted", children: /* @__PURE__ */ jsxs13(
1761
1761
  chakra4.button,
1762
1762
  {
@@ -2085,7 +2085,7 @@ function AgentBadge({ person, label }) {
2085
2085
  function AgentQuestionsPanel({ itemHref }) {
2086
2086
  const t = useAgentTexts();
2087
2087
  const questions = useApiQuery10("agent", "/questions");
2088
- return /* @__PURE__ */ jsx15(ItemHrefProvider, { value: itemHref, children: /* @__PURE__ */ jsx15(Panel6, { title: t("mine.title"), description: t("mine.hint"), "data-testid": "agent-questions", children: questions.data?.length === 0 ? /* @__PURE__ */ jsx15(EmptyState2, { size: "sm", title: t("mine.none") }) : /* @__PURE__ */ jsx15(Stack14, { gap: "4", as: "ul", listStyleType: "none", children: (questions.data ?? []).map((q) => /* @__PURE__ */ jsx15(Box4, { as: "li", children: /* @__PURE__ */ jsxs14(Stack14, { gap: "1.5", children: [
2088
+ return /* @__PURE__ */ jsx15(ItemHrefProvider, { value: itemHref, children: /* @__PURE__ */ jsx15(Panel6, { title: t("mine.title"), description: t("mine.hint"), "data-testid": "agent-questions", children: questions.data?.length === 0 ? /* @__PURE__ */ jsx15(EmptyState2, { size: "sm", art: "agent", title: t("mine.none") }) : /* @__PURE__ */ jsx15(Stack14, { gap: "4", as: "ul", listStyleType: "none", children: (questions.data ?? []).map((q) => /* @__PURE__ */ jsx15(Box4, { as: "li", children: /* @__PURE__ */ jsxs14(Stack14, { gap: "1.5", children: [
2089
2089
  /* @__PURE__ */ jsxs14(Text14, { textStyle: "sm", fontWeight: "medium", children: [
2090
2090
  q.agent?.displayName ?? q.agentKey,
2091
2091
  q.itemKey && /* @__PURE__ */ jsxs14(Fragment3, { children: [