@abpjs/ui 0.2.0-next.3 → 0.2.0-next.30

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,270 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.30
4
+
5
+ A prerelease under npm's `next` tag.
6
+
7
+ - `ConfirmDialog`: each opening starts with an empty field for `typeToConfirm`, however the last one closed.
8
+ - `FormDialog`: `size="wide"` with `preview` and `previewTitle` (the fields beside what they make, under them below
9
+ `md`; the aside is named by its heading), `dangerAction` (a red link at the footer's start that never submits), and
10
+ every Cancel in the `cancel` variant. `PreviewCard` draws what a form makes; `preview` is a new optional label.
11
+
12
+ ## 0.2.0-next.29
13
+
14
+ A prerelease under npm's `next` tag.
15
+
16
+ - `RowMenu`: a row's ⋯ menu. It takes items (with an icon, `danger` for red, `disabled`), separators, and a quiet note
17
+ saying who can use the items that are off.
18
+ - `Button variant="cancel"`: the one Cancel look, a gray fill a step above the surface in either mode with no border.
19
+ `ConfirmDialog`'s Cancel uses it.
20
+ - `ConfirmDialog typeToConfirm`: the confirm turns on only once the person types the given word (a project's key, to
21
+ delete it). Its prompt is `typeToConfirm`, an optional label ("Type {value} to confirm").
22
+ - `QueryableList`: `trailingColumn` adds a column after the fields (a row's menu). `cards` with `layout="cards"` draws
23
+ the rows as cards in a grid, with placeholders while loading; filters, sort, saved views and pages work the same.
24
+
25
+ ## 0.2.0-next.28
26
+
27
+ A prerelease under npm's `next` tag.
28
+
29
+ - agent: an empty chat list and an empty "mine" list draw `art="agent"`.
30
+
31
+ ## 0.2.0-next.27
32
+
33
+ A prerelease under npm's `next` tag. (0.2.0-next.26 was tagged but never published: a test list was malformed.)
34
+
35
+ - `EmptyState variant="page"`: for a page whose whole main content is empty. In place of the icon it draws
36
+ `illustration`, the feature the page is about: `records`, `board`, `views`, `dashboards`, `dashboard`, `reports`,
37
+ `calendar`, `timeline`, `gantt`, `backlog`, `queue`, `comments` or `files`. The drawing is a clear card with softer
38
+ cards either side that fade into the surface. A search that finds nothing (`no-results`, `no-filter-match`) adds a
39
+ small search mark. Errors never get the drawing.
40
+ - `EmptyState art`: a small flat drawing in place of the icon, for an empty list in a panel or a settings card:
41
+ `records`, `search`, `done`, `bell`, `handover`, `agent` or `error`.
42
+ - `EmptyState layout="inline"`: the drawing, the words and the action on one line, on a quiet surface. The action
43
+ wraps under the words when there's no room.
44
+ - The drawings use only the theme's tokens (neutral, accent, amber, green) in light and dark, and are decorative
45
+ (`aria-hidden`). A `no-results` or `no-filter-match` empty state is a polite live region, and an `error` one is an
46
+ alert.
47
+ - `PageIllustration`, `EmptyArtDrawing`, `EmptyIllustration` and `EmptyArt` are exported.
48
+ - agent: the chat panel spans the page, not the window (its positioner is 100% wide, not 100vw), so the page's
49
+ scrollbar no longer pushes it past the screen's edge.
50
+
51
+ ## 0.2.0-next.25
52
+
53
+ A prerelease under npm's `next` tag.
54
+
55
+ - agent: the chat's delete icon is `danger`, red at all times, like every delete (trash) icon.
56
+
57
+ ## 0.2.0-next.24
58
+
59
+ A prerelease under npm's `next` tag.
60
+
61
+ - `AddButton`: the one look for every add action inside a page, a panel or a dialog (Add filter, Add condition, Add
62
+ member, a create row). It draws link-coloured bold text after a plus, with no fill, no border and no chevron, and is
63
+ underlined on hover. A page's one main action stays a `primary` Button.
64
+ - `IconButton remove`: taking a row out of a list or a form. It is gray at rest and turns red, on a light red fill, only
65
+ on hover. A delete (trash) icon stays `danger`, red at all times.
66
+ - `QueryableList`'s Add filter, `FilterBuilder`'s Add condition and ai's Add an alias and Add a limit use `AddButton`.
67
+ Their row icons use `remove`.
68
+
69
+ ## 0.2.0-next.23
70
+
71
+ A prerelease under npm's `next` tag.
72
+
73
+ - `Pagination` takes a `form`. `simple` reads as which rows of how many ("26–50 of 112"), then previous and next.
74
+ `numbered` shows the pages, as before, and `compact` shows "Page 3 of 200" between the arrows (`queryList.pageOf`).
75
+ The simple form draws the range from a new `range` prop, and the compact form takes a new `pageOf` prop.
76
+ `pagesShown` and `PaginationForm` are exported.
77
+ - `QueryableList` (`pagination`) and `ListFooter` (`form`) default to `simple`, centred under the list: people narrow a
78
+ long list with search and filters rather than jump to a page. A list that wants its pages says `numbered`.
79
+
80
+ ## 0.2.0-next.22
81
+
82
+ A prerelease under npm's `next` tag.
83
+
84
+ - guard: AbpGuard.HttpApi 0.8.3 is the minimum. An account's actions follow its `can` alone (no `guard.site.admin`
85
+ fallback), sign-up's directories come only from its settings (no `/directories` call), and `isSystemGroup` reads
86
+ `system` alone.
87
+
88
+ ## 0.2.0-next.21
89
+
90
+ A prerelease under npm's `next` tag.
91
+
92
+ - agent: the default texts name no host's things: a scope is a "project", as in `ai`, and what a run or a note is about
93
+ is an "item". A host with other words gives them through `AbpHost.texts.agent`. 17 texts the area never used are gone.
94
+
95
+ ## 0.2.0-next.20
96
+
97
+ A prerelease under npm's `next` tag.
98
+
99
+ - guard: `guardPages` weighs its pages so the menu reads accounts, groups, directories, sign-up, anonymous access
100
+ (settings sort heavier first); next.19 read them the other way round.
101
+
102
+ ## 0.2.0-next.19
103
+
104
+ A prerelease under npm's `next` tag.
105
+
106
+ - guard: `guardPages(options)`, the five `SettingsPage` entries (accounts, groups, directories, sign-up, anonymous
107
+ access) on a base path, each drawing its list or item from the catch-all's path; `directories: false` for a server
108
+ with Guard's directories off. Sign-up reads its directories from its settings (AbpGuard 0.8.3; `/directories` before
109
+ it), and `directoriesPage` drops the hint about a page the host doesn't have. No Delete on the system groups
110
+ (`isSystemGroup`). A merge's `?into=` is read so the server and the browser render it alike.
111
+
112
+ ## 0.2.0-next.18
113
+
114
+ A prerelease under npm's `next` tag.
115
+
116
+ - `AbpProvider`'s `useServerInsertedHTML`: a framework's hook for HTML in the page's head while it streams (Next's).
117
+ With it, Emotion's styles go to the head on the server (`EmotionRegistry`), so the first render hydrates without a
118
+ mismatch where Chakra's global styles met next-themes' script. Without it, nothing changes. `@emotion/cache` is a
119
+ dependency.
120
+ - `AbpLabelsInput`, what `AbpProvider`'s `labels` takes: any label, and any of a group's (`queryList`,
121
+ `translations`, `picker`), the rest the defaults, so a group the package adds needs nothing from a host that doesn't
122
+ use it.
123
+
124
+ ## 0.2.0-next.17
125
+
126
+ A prerelease under npm's `next` tag.
127
+
128
+ - guard: a second slot in an account's header, `guard.account.actions.end` (`{ account, detail, reload }`), after the
129
+ area's merge and lock, so a host's destructive action (an erasure) stays last.
130
+
131
+ ## 0.2.0-next.16
132
+
133
+ A prerelease under npm's `next` tag.
134
+
135
+ - guard: `CreateAccountPanel` and `CreateGroupPanel` exported, for a host that keeps its own accounts or groups list
136
+ (saved views, column choice) and takes the rest of the area.
137
+
138
+ ## 0.2.0-next.15
139
+
140
+ A prerelease under npm's `next` tag.
141
+
142
+ - guard: a person's own second factors (`MySecondFactorsPanel`): passkeys added, renamed and removed, the authenticator
143
+ app set up, factors removed, new recovery codes; the step-ups through the foundation's dialog. `StrongFactorBanner`
144
+ for a site admin's strong-factor deadline, from the host's `me`. A host names its own code senders through
145
+ `secondFactor.sender.{method}`. The area uses the foundation's `ListFooter` and `useSettledValue`.
146
+
147
+ ## 0.2.0-next.14
148
+
149
+ A prerelease under npm's `next` tag: the third area, `guard`.
150
+
151
+ - **`@abpjs/ui/guard`** on AbpGuard.HttpApi 0.7.1: accounts (searched, filtered and sorted a page at a time; an
152
+ account's name, addresses, second factor, identities, groups and merges; lock, unlock, merge with its preview),
153
+ accounts that share an address, groups (names by language, members, parents, nested groups, second factor,
154
+ organizations), directories (their order, settings, connection and sign-in tests, syncs), sign-up and anonymous
155
+ access. Right `guard.site.admin`; an account's own actions follow its `can` (AbpGuard 0.8.2), the right until then.
156
+ Slots: `guard.account.actions`, `guard.account.notices`, `guard.account.panels`, `guard.directory.panel`,
157
+ `guard.directory.presets`. Types from abp-guard's own document. A person's own second factors and passkeys come later.
158
+ - `ListFooter({ list })`: a paged list's pages and its "26–50 of 112", in the `queryList` labels.
159
+ - `useSettledValue(value, ms)`: a value once it has stood still (what's typed, before a search).
160
+
161
+ ## 0.2.0-next.13
162
+
163
+ A prerelease under npm's `next` tag: pickers and names by language, for the `guard` area and the hosts.
164
+
165
+ - `SearchPicker`: one item picked from a searchable list (an ARIA combobox): a search as the person types, items
166
+ already known, an empty choice, making one from the text typed, every match bold (`Highlight`). `PersonPicker` (name
167
+ and @username, a `badge` for an agent's account) and `GroupPicker` take their `search` from the area or the host.
168
+ Their words are the labels' new `picker` group.
169
+ - `TranslatedInput`: a name in every language the host offers (`AbpHost.languages`, which gains `englishName`), the
170
+ reader's inline and the others behind a button counting them, each typed in its direction. Where the host has
171
+ `suggestNames(text, signal)` (`NameSuggestion`), names already translated are offered while typing. Its words are the
172
+ labels' new `translations` group.
173
+ - `@abpjs/ui/rules`: `toNamesValue(name, names, written)` and `fromNamesValue(value, written)` between a written name
174
+ with its other languages and the one map `TranslatedInput` edits.
175
+
176
+ ## 0.2.0-next.12
177
+
178
+ A prerelease under npm's `next` tag: lists served a page at a time.
179
+
180
+ - `useListState(source)`: a list's page, page size, sort, search (asked once typing settles) and filters, from a
181
+ `ListSource` (`{ key, load(query, signal) }`); a change goes back to the first page, only the latest answer counts,
182
+ and the previous rows stay while the next page comes (`refreshing`). `table` and `pagination` are the props for
183
+ `DataTable` (manual sort) and `Pagination`; `onQueryChange` for a screen that keeps the list's place in its address.
184
+ - `abpListSource(request, path, options)` and `useAreaListSource(area, path, options)`: a list in ABP's shape
185
+ (`skipCount`, `maxResultCount`, `sorting`, `filter` in; `{ totalCount, items }` out), with `abpListParams`. A host
186
+ gives an area its own source (a query engine, saved views) in place of the package's.
187
+
188
+ ## 0.2.0-next.11
189
+
190
+ A prerelease under npm's `next` tag: the first of the `guard` area's building blocks.
191
+
192
+ - `@abpjs/ui/rules`: names by language (`Names`, `languageChain(locale, default)`, `pickName(chain, names, fallback)`)
193
+ and `splitList` (a comma- or line-separated list, trimmed).
194
+
195
+ ## 0.2.0-next.10
196
+
197
+ A prerelease under npm's `next` tag.
198
+
199
+ - ai: a scope's page (`AiScopeScreen`) no longer shows a named account's or group's limit (an agent's own, say) as
200
+ the site's or the scope's: those are counted on one line ("3 accounts and groups have limits of their own."), and a
201
+ person's default reads "Cost per day for each person: 1". `namedLimit` tells them apart.
202
+
203
+ ## 0.2.0-next.9
204
+
205
+ A prerelease under npm's `next` tag, from moving the first host's agent pages onto `agent` with no visible change.
206
+
207
+ - agent: a slot `agent.names` (`{ label, value, onChange, placeholder, fallback, kind }`) for a host's own field for
208
+ names by language; `ToolGroupsProvider` (`ToolGroupOf`) for the host's own groups of tools (its skills, an outside
209
+ server's tools), after the host's and plugins' and before the sandbox's; `agent.tools.extra` gets `listed` and
210
+ `loading`.
211
+ - agent: a read-only opt-in tool is Off/On; `AgentEditor variant="scope"` (a scope's own agent, its settings alone),
212
+ used by `ScopeAgentsScreen`; a scope's key in the agents list sits at the cell's start in right-to-left pages, and
213
+ `ItemLink` keeps the page's direction when it wraps words (a bare key stays left to right).
214
+
215
+ ## 0.2.0-next.8
216
+
217
+ A prerelease under npm's `next` tag: the third area, `agent`.
218
+
219
+ - **`@abpjs/ui/agent`** on AbpAgent.HttpApi 0.6.1: the site's switch and agents (`agentPages`, `AgentsAdmin`), a scope's
220
+ own agents (`ScopeAgentsScreen`), one agent's settings (form, tools, run limits, memories, its graph), standing
221
+ permissions, an item's runs and their questions, the questions waiting for the person, and the chat beside any page
222
+ (`AgentChatProvider`, `AgentChatPanel`, `useAgentChat().open(...)`), live through the host's events or polling every
223
+ 2 s. Rights `agent.site.admin`, `agent.scope.admin`. Slots for what stays the host's: `agent.markdown`,
224
+ `agent.run.actions`, `agent.picture`, `agent.connections`, `agent.tools.extra`, `agent.limits.extra`,
225
+ `agent.switch.extra`. Items open where the host says (`itemHref`, `ItemHrefProvider`). The graph uses React Flow
226
+ (`@xyflow/react`, `@dagrejs/dagre`): a host that shows it imports `@xyflow/react/dist/style.css` once.
227
+
228
+ ## 0.2.0-next.7
229
+
230
+ A prerelease under npm's `next` tag.
231
+
232
+ - Exports the passkey helpers next.5 described and didn't export: `createPasskey`, `getPasskey`, `passkeysSupported`.
233
+
234
+ ## 0.2.0-next.6
235
+
236
+ A prerelease under npm's `next` tag.
237
+
238
+ - `StepUpDialog`: an authenticator code alone where the server lets one pass (`appCodeAlone` in `step_up_required`'s
239
+ data, the operator's setting): the strong level asks for the code alone (a passkey still first when the person has
240
+ one), and the password level offers it instead of the password. Without the field, a code goes with the password, as
241
+ before. `StepUpNeed.appCodeAlone`.
242
+
243
+ ## 0.2.0-next.5
244
+
245
+ A prerelease under npm's `next` tag: the step-up dialog for AbpGuard 0.7.0's strong step-up and passkeys. Against an
246
+ older AbpGuard nothing changes (no level means the password level).
247
+
248
+ - `StepUpDialog` reads the level the server asks for (`step_up_required` with `level`, `methods`). At `strong`, it
249
+ offers a passkey first when the person has one, or the password with an authenticator code. Asked of someone with no
250
+ strong factor (`strong_factor_required`), it takes the password, then sets up a passkey or the app (QR and key) right
251
+ there, with the recovery codes shown once for a first factor; the call then asks again and they confirm with it.
252
+ - Passkeys in the browser's own JSON both ways (`createPasskey`, `getPasskey`, `passkeysSupported`), with a base64url
253
+ fallback for browsers without `PublicKeyCredential.parse*FromJSON`.
254
+ - `requestStepUp(need)` and `StepUpHandler` take the server's need (`StepUpNeed`, `stepUpNeedOf`). `createHostRequest`
255
+ and `createHostEvents` pass it on and ask again when the server asks for more (a factor set up, then the strong step-up),
256
+ up to three times. `HostRequestInit.stepUp: false` throws a step-up refusal instead of asking (the dialog's own calls).
257
+ `needsStepUp` and `STRONG_FACTOR_REQUIRED` beside `isStepUp`.
258
+ - `createHostEvents` asks the step-up dialog by default, as `createHostRequest` does.
259
+
260
+ ## 0.2.0-next.4
261
+
262
+ A prerelease under npm's `next` tag, for a host's scope page on the `ai` area.
263
+
264
+ - ai: `ai.models.can`'s context names the scope too (`scopeId`), so a host that keeps the connections reads that
265
+ scope's own record of what its models can do on a scope's screen.
266
+ - ai: `AiScopeScreen` takes the host's page `header`, drawn first in its own column, so a host's page keeps one column.
267
+
3
268
  ## 0.2.0-next.3
4
269
 
5
270
  A prerelease under npm's `next` tag. The `ai` area now needs **AbpAi.HttpApi 0.8.0** on the server: stay on next.2