@abpjs/ui 0.2.0-next.4 → 0.2.0-next.41
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 +435 -0
- package/dist/agent.d.ts +800 -0
- package/dist/agent.js +2468 -0
- package/dist/agent.js.map +1 -0
- package/dist/ai.d.ts +1 -1
- package/dist/ai.js +25 -9
- package/dist/ai.js.map +1 -1
- package/dist/guard.d.ts +1686 -0
- package/dist/guard.js +4194 -0
- package/dist/guard.js.map +1 -0
- package/dist/index.d.ts +740 -41
- package/dist/index.js +4062 -1376
- package/dist/index.js.map +1 -1
- package/dist/languages.d.ts +162 -0
- package/dist/languages.js +771 -0
- package/dist/languages.js.map +1 -0
- package/dist/rules.d.ts +23 -1
- package/dist/rules.js +35 -0
- package/dist/rules.js.map +1 -1
- package/dist/storage.d.ts +102 -0
- package/dist/storage.js +315 -0
- package/dist/storage.js.map +1 -0
- package/package.json +24 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,440 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.41
|
|
4
|
+
|
|
5
|
+
A prerelease under npm's `next` tag.
|
|
6
|
+
|
|
7
|
+
- `Field`: `optionalText` ("Optional") reads apart from its label: a space before it, quieter and not bold. It ran into
|
|
8
|
+
the label ("MessageOptional").
|
|
9
|
+
|
|
10
|
+
## 0.2.0-next.40
|
|
11
|
+
|
|
12
|
+
A prerelease under npm's `next` tag.
|
|
13
|
+
|
|
14
|
+
- Agent area, deleting all of someone's chats at once (AbpAgent.HttpApi 0.9.0): "Delete all chats" in the chat panel's
|
|
15
|
+
list; `MyAgentChatsPanel` for a person's privacy page ("Your chats with agents", delete all); `PersonAgentChatsAction`
|
|
16
|
+
(`accountId`, `name`) for a site admin on someone's account page; `ForgetChatsOption` (`accountId`, `register`) for
|
|
17
|
+
the slots `guard.account.deactivate.options` and `guard.account.delete.options`, "Also delete their chats with
|
|
18
|
+
agents", which joins the dialog's save only when ticked; `useDeleteAllChats`. A toast says how many went, and how many
|
|
19
|
+
wait for their run's step. New `chats.*` texts in English and Arabic; the types are 0.9.0's (`AgentChatsDeleted`).
|
|
20
|
+
|
|
21
|
+
## 0.2.0-next.39
|
|
22
|
+
|
|
23
|
+
A prerelease under npm's `next` tag.
|
|
24
|
+
|
|
25
|
+
- storage, from a review of next.37: a test that fails no longer leaves the last one's results; a running copy is read
|
|
26
|
+
again a second after each answer, so slow answers don't pile up; the copy's progress is announced (a polite live
|
|
27
|
+
region); a state the area doesn't know shows as itself; a problem without a store keeps its file's name and its own
|
|
28
|
+
row; the previous storage's place is set apart (U+2068 … U+2069), so a path or URL keeps its order in right-to-left
|
|
29
|
+
text; and an address under the page shows "There is no such page" with the way back, not the page.
|
|
30
|
+
|
|
31
|
+
## 0.2.0-next.38
|
|
32
|
+
|
|
33
|
+
A prerelease under npm's `next` tag.
|
|
34
|
+
|
|
35
|
+
- Files as tables, for any "import from a file" flow: `readTable(file)` gives a CSV's or an Excel workbook's rows as
|
|
36
|
+
text cells, the header first (a workbook's first visible sheet, named in `sheet` when there are several).
|
|
37
|
+
`readXlsx` reads an .xlsx in the browser with no library (numbers as Excel shows them, date-styled cells as
|
|
38
|
+
yyyy-MM-dd in either date system, formulas as their last values) and throws `XlsxError` (`old` for an .xls or a
|
|
39
|
+
file with a password, `broken`, `tooBig`, `noSheet`). `parseCsv` (RFC 4180, the separator guessed by
|
|
40
|
+
`guessSeparator`), `writeCsv` and `remapCsv` (columns renamed or left out) prepare rows for an import on a server;
|
|
41
|
+
`tableKind` tells a CSV, a workbook and an older Excel file apart by name and type.
|
|
42
|
+
|
|
43
|
+
## 0.2.0-next.37
|
|
44
|
+
|
|
45
|
+
A prerelease under npm's `next` tag.
|
|
46
|
+
|
|
47
|
+
- The `storage` area (`@abpjs/ui/storage`), AbpCluster.Storage's screen on AbpCluster.Storage.HttpApi 0.6.0 or later:
|
|
48
|
+
where the site keeps its files (the provider and its place, never a key) and what's kept there, a test of each store
|
|
49
|
+
with its time and the storage's own reason when it fails, and, while a previous storage is being left, the copy from
|
|
50
|
+
it, read again every second while it runs, with its counts and first problems. Starting the copy is the one sensitive
|
|
51
|
+
action: a host's step-up answers its 403 through the host's request. `storagePages({ section, href, ... })` gives the
|
|
52
|
+
settings page (one component per address), `StorageScreen` the page itself; the right is `storage.site.admin`, the
|
|
53
|
+
slot `storage.page.actions`, and a host names its stores with the words `storeNames.<store>` or `storeName`. Words in
|
|
54
|
+
English and Arabic, counts with plurals; the store list joins in the reader's language.
|
|
55
|
+
|
|
56
|
+
## 0.2.0-next.36
|
|
57
|
+
|
|
58
|
+
A prerelease under npm's `next` tag.
|
|
59
|
+
|
|
60
|
+
- `WidgetBoard`, the design canvas's dashboard widget container and layout, beside `DashboardGrid` (which is unchanged,
|
|
61
|
+
12 columns by default). Widgets lie on 60 tracks counted from the start edge, each as tall as its content, packed in
|
|
62
|
+
order as high as they fit; `y` is only their order and comes back renumbered 0, 1, 2…. Every widget gets one
|
|
63
|
+
container: its title, then a move grip, Expand / Restore width and the ⋯ menu (grip and Expand show on hover, focus
|
|
64
|
+
or touch, their space kept). Expand stretches it across the board in place and isn't saved. A handle on the end edge
|
|
65
|
+
sets the width (pointer, arrow keys, Home and End), never under the widget's readable minimum (`minWidth`). Dragging
|
|
66
|
+
from the grip moves a ghost and a dashed slot, snapped to neighbours' edges within 2 tracks; over a widget's top half
|
|
67
|
+
it takes that place; Escape cancels. With the grip focused, Left and Right move 5 tracks (Shift 1), Up and Down past
|
|
68
|
+
the neighbour above or below, Home to the top, End to the end, mirrored right to left; each move is announced. The
|
|
69
|
+
⋯ menu has the host's items, the width presets (half, two-thirds, full) and Move up / down, then the host's red items.
|
|
70
|
+
Below 720 px every widget is full width in order, without handles. `onLayoutChange` fires once per finished gesture.
|
|
71
|
+
`fromTwelve` reads a 12-column layout on 60 tracks; `appendAt` places a new widget.
|
|
72
|
+
|
|
73
|
+
## 0.2.0-next.35
|
|
74
|
+
|
|
75
|
+
A prerelease under npm's `next` tag.
|
|
76
|
+
|
|
77
|
+
- guard › Directories, the design canvas's board:
|
|
78
|
+
- **New directory**, and a directory's name, open a wide `FormDialog` beside a preview: the name, the type, how often
|
|
79
|
+
it syncs ("On request only" when empty), and whether it's active and lets people sign in. A connector's settings
|
|
80
|
+
come once its type is chosen. Editing keeps the type, and **Delete directory** is the red link at the footer's start.
|
|
81
|
+
- A row's menu edits the directory, opens its page (sync runs, connection tests, everything else), syncs it now
|
|
82
|
+
(off for a type that doesn't sync), moves it up or down in priority, turns it off or on, or deletes it.
|
|
83
|
+
- Priority counts from 1. The internal type is named in the area's words, and a type that doesn't sync has no sync
|
|
84
|
+
interval.
|
|
85
|
+
|
|
86
|
+
`DirectoryFields` are the directory's fields without a form of their own, shared by the dialog and the directory's
|
|
87
|
+
page (`DirectoryForm`); `compact` gives one column. Active and sign-in are switches. `directoryRules.ts` holds the
|
|
88
|
+
editing start (a stored secret starts empty, so it's kept), which types sync, and moving, tested in
|
|
89
|
+
`tests/directory-rules.test.mjs`. New words in `directories` (`priority`, `internal`, `on`, `off`, `menuLabel`, `edit`,
|
|
90
|
+
`openPage`, `deactivate`, `activate`, `newTitle`, `editTitle`, `deleteDirectory`, `namePreview`, `sync`, `syncEvery`,
|
|
91
|
+
`onRequest`, `savedWithWarnings`) and `directoryForm` (`minutes`, `namePlaceholder`). `add`, `syncInterval`,
|
|
92
|
+
`syncIntervalHint` and `signInEnabled` say it as the canvas does, and `addedWithWarnings` is gone.
|
|
93
|
+
|
|
94
|
+
## 0.2.0-next.34
|
|
95
|
+
|
|
96
|
+
A prerelease under npm's `next` tag.
|
|
97
|
+
|
|
98
|
+
- `EmptyState variant="page"`: on a screen narrower than its drawing (375 px), the drawing is clipped at its faded
|
|
99
|
+
sides instead of pushing the page sideways.
|
|
100
|
+
- `FormDialog`: a change that puts a field right (picking in a select, typing the missing value) takes its red border
|
|
101
|
+
and its line in the "Fix these fields" summary away at once, rather than when the field is left. A field still wrong
|
|
102
|
+
keeps them until it's left.
|
|
103
|
+
- guard › Anonymous access, the design canvas's board:
|
|
104
|
+
- **Give a role** opens a wide `FormDialog`. The role and the place are chosen from AbpGuard's places
|
|
105
|
+
(`GET /anonymous/places`): a place offers only its own roles, and a role only the places offering it. The preview
|
|
106
|
+
shows anonymous visitors, the role, where, and what the role can do, beside the warning that anyone on the
|
|
107
|
+
internet gets it.
|
|
108
|
+
- The rows show the role as a tag, the place's name and code (as the places list names them), and since when.
|
|
109
|
+
- A row's menu changes the role in one step or removes it.
|
|
110
|
+
- With no roles given, the page is its empty state, with Give a role.
|
|
111
|
+
- A role already given in a place isn't offered there again, and a place with nothing left to give isn't offered.
|
|
112
|
+
Change role saves only a different role.
|
|
113
|
+
|
|
114
|
+
`roleDescription` joins `roleName` for a host's own roles. `anonymousRules.ts` holds the choosing, tested in
|
|
115
|
+
`tests/anonymous-rules.test.mjs`. New words: `giveRole`, `dialogTitle`, `changeTitle`, `chooseRole`, `chooseWhere`,
|
|
116
|
+
`warning`, `who`, `can`, `give`, `change`, `given`, `changed`, `emptyTitle`, `emptyText`, `emptyTextNoPlaces`,
|
|
117
|
+
`placeWithCode`, `tableLabel`, `actions`, `menuLabel` and `notListed`. `revoke`, `revokeTitle` and `revoked` now say Remove role, and `empty` is gone.
|
|
118
|
+
- `PreviewCard`: an item's `wrap` lets a long value (a description) run to three lines.
|
|
119
|
+
|
|
120
|
+
## 0.2.0-next.33
|
|
121
|
+
|
|
122
|
+
A prerelease under npm's `next` tag.
|
|
123
|
+
|
|
124
|
+
- The `languages` area, `@abpjs/ui/languages`: AbpLanguages' screens on AbpLanguages.HttpApi 0.7.0 (`paths.languages`,
|
|
125
|
+
`languages.site.admin`). `languagesPages` gives Settings one page: the site's languages (direction, fallback, how far
|
|
126
|
+
each is translated; add, edit, turn on or off, make the default, remove) and each language's translation editor
|
|
127
|
+
(every text beside its English source and what ships, filtered by status and catalog, searched, saved from a
|
|
128
|
+
`SaveBar`, exported and imported as a translator's file). `onChanged` lets the host read its languages and texts again
|
|
129
|
+
after a change, without starting the editor afresh; `mainCatalog` and `catalogName` name the catalogs; the
|
|
130
|
+
`languages.list.actions` slot takes the host's own links. Words in English and Arabic.
|
|
131
|
+
- `AgentPermissionsPanel` (the design canvas's "Agents you always allow"): one row per agent and scope, with who made
|
|
132
|
+
the agent, its tools together by title, the scope, since when and when last used; Remove takes the whole row back
|
|
133
|
+
after a confirm ("It will ask you again before using these tools"). On the person's page, "Allow an agent" opens a
|
|
134
|
+
dialog: the agent, the scope and "Tools without asking", only those AbpAgent says "Always" could answer for
|
|
135
|
+
(`me/permissions/allowable`), with the ones already given checked. On an agent's page, one row per person. Needs
|
|
136
|
+
AbpAgent.HttpApi 0.7.0. New and changed `permissions.*` agent texts; `permissions.what`, `forAgent`, `byPerson`,
|
|
137
|
+
`given`, `takeBack` and `takeBackTitle` are gone.
|
|
138
|
+
- The agent area's types are AbpAgent.HttpApi 0.7.0's (`AgentAllowablePlace`, `AgentAllowableAgent`,
|
|
139
|
+
`AgentAllowableTool`; `AgentPermissionInfo` gains `toolTitle`, `madeBy` and `agentNames`).
|
|
140
|
+
|
|
141
|
+
## 0.2.0-next.32
|
|
142
|
+
|
|
143
|
+
A prerelease under npm's `next` tag.
|
|
144
|
+
|
|
145
|
+
- `QueryableList` export dialog (the design canvas's Export to CSV and Excel): the Export menu's format opens a dialog
|
|
146
|
+
with the rows (what the query finds, or all of them), the columns (those shown picked first), a CSV's separator
|
|
147
|
+
(comma, semicolon or tab) and the first rows as the file will hold them. Export closes it; a toast says the file
|
|
148
|
+
is being prepared, with Cancel, then that it's ready. `onExport(format, options)` gets `QueryExportOptions`
|
|
149
|
+
(`columns`, `all`, `separator`, `signal`). New optional `queryList` labels: `exportTitleCsv`, `exportTitleExcel`,
|
|
150
|
+
`exportRows`, `exportFound`, `exportAll`, `exportColumns`, `exportSeparator`, `exportComma`, `exportSemicolon`,
|
|
151
|
+
`exportTab`, `exportPreview`, `exportRun`, `exportCancel`, `exportPreparing`, `exportReady`.
|
|
152
|
+
- `AppShell`: a top-bar item with `children` (a person's starred projects under Projects) gets a chevron beside its
|
|
153
|
+
name that opens them in a menu; the name still opens the page. `childrenTitle` heads the menu ("Starred") and
|
|
154
|
+
`childrenLabel` names the chevron for screen readers. The drawer lists them under the item, as before.
|
|
155
|
+
- `Panel` folds. `collapsible` makes its header a button with a chevron before the title (pointing to the end when
|
|
156
|
+
folded, down when open), and the description, the body and the footer fold away while the actions stay and keep
|
|
157
|
+
working.
|
|
158
|
+
`defaultCollapsed`, or `collapsed` with `onCollapsedChange`; `summary` is a line shown in the header while folded
|
|
159
|
+
("2 groups"), hidden on narrow screens.
|
|
160
|
+
|
|
161
|
+
## 0.2.0-next.31
|
|
162
|
+
|
|
163
|
+
A prerelease under npm's `next` tag.
|
|
164
|
+
|
|
165
|
+
- `SaveBar`: a page edited in place with unsaved changes. A bar on the selected tint floats at the foot of the window,
|
|
166
|
+
centred, with the question, how many changes wait (`count`, or the host's `message`), Discard and Save (`busy`,
|
|
167
|
+
`saveDisabled`). New optional labels: `saveBar`, `unsavedChanges` (ICU plural on `{count}`), `discard`, `save`.
|
|
168
|
+
- guard: the types come from AbpGuard 0.9.0's document. The page answers are `GuardPagedResultDto` (`groups` beside
|
|
169
|
+
`items`), and `types.ts` names the people actions' inputs and answers.
|
|
170
|
+
- guard › Sign-up, the design canvas's board:
|
|
171
|
+
- the allowed domains are a list, with Add domain and Remove, each checked as a domain and listed once;
|
|
172
|
+
- with sign-up on, the directory is required, and the field says so;
|
|
173
|
+
- the save bar replaces the Save button, and Discard puts back what's saved;
|
|
174
|
+
- a domain typed but not added counts as a change and is added on Save; one that isn't a domain stops the save;
|
|
175
|
+
- never set up, the page is its empty state, with Turn on sign-up.
|
|
176
|
+
|
|
177
|
+
Words: `off`, `directoryRequired`, `anyDomain`, `addDomain`, `add`, `removeDomain`, `domainInvalid`, `domainTwice`,
|
|
178
|
+
`emptyTitle`, `emptyText` and `turnOn` are new; `enabled`, `directory` and `domains` say it as the canvas does;
|
|
179
|
+
`domainsHint` and `save` are gone.
|
|
180
|
+
|
|
181
|
+
## 0.2.0-next.30
|
|
182
|
+
|
|
183
|
+
A prerelease under npm's `next` tag.
|
|
184
|
+
|
|
185
|
+
- `ConfirmDialog`: each opening starts with an empty field for `typeToConfirm`, however the last one closed.
|
|
186
|
+
- `FormDialog`: `size="wide"` with `preview` and `previewTitle` (the fields beside what they make, under them below
|
|
187
|
+
`md`; the aside is named by its heading), `dangerAction` (a red link at the footer's start that never submits), and
|
|
188
|
+
every Cancel in the `cancel` variant. `PreviewCard` draws what a form makes; `preview` is a new optional label.
|
|
189
|
+
|
|
190
|
+
## 0.2.0-next.29
|
|
191
|
+
|
|
192
|
+
A prerelease under npm's `next` tag.
|
|
193
|
+
|
|
194
|
+
- `RowMenu`: a row's ⋯ menu. It takes items (with an icon, `danger` for red, `disabled`), separators, and a quiet note
|
|
195
|
+
saying who can use the items that are off.
|
|
196
|
+
- `Button variant="cancel"`: the one Cancel look, a gray fill a step above the surface in either mode with no border.
|
|
197
|
+
`ConfirmDialog`'s Cancel uses it.
|
|
198
|
+
- `ConfirmDialog typeToConfirm`: the confirm turns on only once the person types the given word (a project's key, to
|
|
199
|
+
delete it). Its prompt is `typeToConfirm`, an optional label ("Type {value} to confirm").
|
|
200
|
+
- `QueryableList`: `trailingColumn` adds a column after the fields (a row's menu). `cards` with `layout="cards"` draws
|
|
201
|
+
the rows as cards in a grid, with placeholders while loading; filters, sort, saved views and pages work the same.
|
|
202
|
+
|
|
203
|
+
## 0.2.0-next.28
|
|
204
|
+
|
|
205
|
+
A prerelease under npm's `next` tag.
|
|
206
|
+
|
|
207
|
+
- agent: an empty chat list and an empty "mine" list draw `art="agent"`.
|
|
208
|
+
|
|
209
|
+
## 0.2.0-next.27
|
|
210
|
+
|
|
211
|
+
A prerelease under npm's `next` tag. (0.2.0-next.26 was tagged but never published: a test list was malformed.)
|
|
212
|
+
|
|
213
|
+
- `EmptyState variant="page"`: for a page whose whole main content is empty. In place of the icon it draws
|
|
214
|
+
`illustration`, the feature the page is about: `records`, `board`, `views`, `dashboards`, `dashboard`, `reports`,
|
|
215
|
+
`calendar`, `timeline`, `gantt`, `backlog`, `queue`, `comments` or `files`. The drawing is a clear card with softer
|
|
216
|
+
cards either side that fade into the surface. A search that finds nothing (`no-results`, `no-filter-match`) adds a
|
|
217
|
+
small search mark. Errors never get the drawing.
|
|
218
|
+
- `EmptyState art`: a small flat drawing in place of the icon, for an empty list in a panel or a settings card:
|
|
219
|
+
`records`, `search`, `done`, `bell`, `handover`, `agent` or `error`.
|
|
220
|
+
- `EmptyState layout="inline"`: the drawing, the words and the action on one line, on a quiet surface. The action
|
|
221
|
+
wraps under the words when there's no room.
|
|
222
|
+
- The drawings use only the theme's tokens (neutral, accent, amber, green) in light and dark, and are decorative
|
|
223
|
+
(`aria-hidden`). A `no-results` or `no-filter-match` empty state is a polite live region, and an `error` one is an
|
|
224
|
+
alert.
|
|
225
|
+
- `PageIllustration`, `EmptyArtDrawing`, `EmptyIllustration` and `EmptyArt` are exported.
|
|
226
|
+
- agent: the chat panel spans the page, not the window (its positioner is 100% wide, not 100vw), so the page's
|
|
227
|
+
scrollbar no longer pushes it past the screen's edge.
|
|
228
|
+
|
|
229
|
+
## 0.2.0-next.25
|
|
230
|
+
|
|
231
|
+
A prerelease under npm's `next` tag.
|
|
232
|
+
|
|
233
|
+
- agent: the chat's delete icon is `danger`, red at all times, like every delete (trash) icon.
|
|
234
|
+
|
|
235
|
+
## 0.2.0-next.24
|
|
236
|
+
|
|
237
|
+
A prerelease under npm's `next` tag.
|
|
238
|
+
|
|
239
|
+
- `AddButton`: the one look for every add action inside a page, a panel or a dialog (Add filter, Add condition, Add
|
|
240
|
+
member, a create row). It draws link-coloured bold text after a plus, with no fill, no border and no chevron, and is
|
|
241
|
+
underlined on hover. A page's one main action stays a `primary` Button.
|
|
242
|
+
- `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
|
|
243
|
+
on hover. A delete (trash) icon stays `danger`, red at all times.
|
|
244
|
+
- `QueryableList`'s Add filter, `FilterBuilder`'s Add condition and ai's Add an alias and Add a limit use `AddButton`.
|
|
245
|
+
Their row icons use `remove`.
|
|
246
|
+
|
|
247
|
+
## 0.2.0-next.23
|
|
248
|
+
|
|
249
|
+
A prerelease under npm's `next` tag.
|
|
250
|
+
|
|
251
|
+
- `Pagination` takes a `form`. `simple` reads as which rows of how many ("26–50 of 112"), then previous and next.
|
|
252
|
+
`numbered` shows the pages, as before, and `compact` shows "Page 3 of 200" between the arrows (`queryList.pageOf`).
|
|
253
|
+
The simple form draws the range from a new `range` prop, and the compact form takes a new `pageOf` prop.
|
|
254
|
+
`pagesShown` and `PaginationForm` are exported.
|
|
255
|
+
- `QueryableList` (`pagination`) and `ListFooter` (`form`) default to `simple`, centred under the list: people narrow a
|
|
256
|
+
long list with search and filters rather than jump to a page. A list that wants its pages says `numbered`.
|
|
257
|
+
|
|
258
|
+
## 0.2.0-next.22
|
|
259
|
+
|
|
260
|
+
A prerelease under npm's `next` tag.
|
|
261
|
+
|
|
262
|
+
- guard: AbpGuard.HttpApi 0.8.3 is the minimum. An account's actions follow its `can` alone (no `guard.site.admin`
|
|
263
|
+
fallback), sign-up's directories come only from its settings (no `/directories` call), and `isSystemGroup` reads
|
|
264
|
+
`system` alone.
|
|
265
|
+
|
|
266
|
+
## 0.2.0-next.21
|
|
267
|
+
|
|
268
|
+
A prerelease under npm's `next` tag.
|
|
269
|
+
|
|
270
|
+
- 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
|
|
271
|
+
is an "item". A host with other words gives them through `AbpHost.texts.agent`. 17 texts the area never used are gone.
|
|
272
|
+
|
|
273
|
+
## 0.2.0-next.20
|
|
274
|
+
|
|
275
|
+
A prerelease under npm's `next` tag.
|
|
276
|
+
|
|
277
|
+
- guard: `guardPages` weighs its pages so the menu reads accounts, groups, directories, sign-up, anonymous access
|
|
278
|
+
(settings sort heavier first); next.19 read them the other way round.
|
|
279
|
+
|
|
280
|
+
## 0.2.0-next.19
|
|
281
|
+
|
|
282
|
+
A prerelease under npm's `next` tag.
|
|
283
|
+
|
|
284
|
+
- guard: `guardPages(options)`, the five `SettingsPage` entries (accounts, groups, directories, sign-up, anonymous
|
|
285
|
+
access) on a base path, each drawing its list or item from the catch-all's path; `directories: false` for a server
|
|
286
|
+
with Guard's directories off. Sign-up reads its directories from its settings (AbpGuard 0.8.3; `/directories` before
|
|
287
|
+
it), and `directoriesPage` drops the hint about a page the host doesn't have. No Delete on the system groups
|
|
288
|
+
(`isSystemGroup`). A merge's `?into=` is read so the server and the browser render it alike.
|
|
289
|
+
|
|
290
|
+
## 0.2.0-next.18
|
|
291
|
+
|
|
292
|
+
A prerelease under npm's `next` tag.
|
|
293
|
+
|
|
294
|
+
- `AbpProvider`'s `useServerInsertedHTML`: a framework's hook for HTML in the page's head while it streams (Next's).
|
|
295
|
+
With it, Emotion's styles go to the head on the server (`EmotionRegistry`), so the first render hydrates without a
|
|
296
|
+
mismatch where Chakra's global styles met next-themes' script. Without it, nothing changes. `@emotion/cache` is a
|
|
297
|
+
dependency.
|
|
298
|
+
- `AbpLabelsInput`, what `AbpProvider`'s `labels` takes: any label, and any of a group's (`queryList`,
|
|
299
|
+
`translations`, `picker`), the rest the defaults, so a group the package adds needs nothing from a host that doesn't
|
|
300
|
+
use it.
|
|
301
|
+
|
|
302
|
+
## 0.2.0-next.17
|
|
303
|
+
|
|
304
|
+
A prerelease under npm's `next` tag.
|
|
305
|
+
|
|
306
|
+
- guard: a second slot in an account's header, `guard.account.actions.end` (`{ account, detail, reload }`), after the
|
|
307
|
+
area's merge and lock, so a host's destructive action (an erasure) stays last.
|
|
308
|
+
|
|
309
|
+
## 0.2.0-next.16
|
|
310
|
+
|
|
311
|
+
A prerelease under npm's `next` tag.
|
|
312
|
+
|
|
313
|
+
- guard: `CreateAccountPanel` and `CreateGroupPanel` exported, for a host that keeps its own accounts or groups list
|
|
314
|
+
(saved views, column choice) and takes the rest of the area.
|
|
315
|
+
|
|
316
|
+
## 0.2.0-next.15
|
|
317
|
+
|
|
318
|
+
A prerelease under npm's `next` tag.
|
|
319
|
+
|
|
320
|
+
- guard: a person's own second factors (`MySecondFactorsPanel`): passkeys added, renamed and removed, the authenticator
|
|
321
|
+
app set up, factors removed, new recovery codes; the step-ups through the foundation's dialog. `StrongFactorBanner`
|
|
322
|
+
for a site admin's strong-factor deadline, from the host's `me`. A host names its own code senders through
|
|
323
|
+
`secondFactor.sender.{method}`. The area uses the foundation's `ListFooter` and `useSettledValue`.
|
|
324
|
+
|
|
325
|
+
## 0.2.0-next.14
|
|
326
|
+
|
|
327
|
+
A prerelease under npm's `next` tag: the third area, `guard`.
|
|
328
|
+
|
|
329
|
+
- **`@abpjs/ui/guard`** on AbpGuard.HttpApi 0.7.1: accounts (searched, filtered and sorted a page at a time; an
|
|
330
|
+
account's name, addresses, second factor, identities, groups and merges; lock, unlock, merge with its preview),
|
|
331
|
+
accounts that share an address, groups (names by language, members, parents, nested groups, second factor,
|
|
332
|
+
organizations), directories (their order, settings, connection and sign-in tests, syncs), sign-up and anonymous
|
|
333
|
+
access. Right `guard.site.admin`; an account's own actions follow its `can` (AbpGuard 0.8.2), the right until then.
|
|
334
|
+
Slots: `guard.account.actions`, `guard.account.notices`, `guard.account.panels`, `guard.directory.panel`,
|
|
335
|
+
`guard.directory.presets`. Types from abp-guard's own document. A person's own second factors and passkeys come later.
|
|
336
|
+
- `ListFooter({ list })`: a paged list's pages and its "26–50 of 112", in the `queryList` labels.
|
|
337
|
+
- `useSettledValue(value, ms)`: a value once it has stood still (what's typed, before a search).
|
|
338
|
+
|
|
339
|
+
## 0.2.0-next.13
|
|
340
|
+
|
|
341
|
+
A prerelease under npm's `next` tag: pickers and names by language, for the `guard` area and the hosts.
|
|
342
|
+
|
|
343
|
+
- `SearchPicker`: one item picked from a searchable list (an ARIA combobox): a search as the person types, items
|
|
344
|
+
already known, an empty choice, making one from the text typed, every match bold (`Highlight`). `PersonPicker` (name
|
|
345
|
+
and @username, a `badge` for an agent's account) and `GroupPicker` take their `search` from the area or the host.
|
|
346
|
+
Their words are the labels' new `picker` group.
|
|
347
|
+
- `TranslatedInput`: a name in every language the host offers (`AbpHost.languages`, which gains `englishName`), the
|
|
348
|
+
reader's inline and the others behind a button counting them, each typed in its direction. Where the host has
|
|
349
|
+
`suggestNames(text, signal)` (`NameSuggestion`), names already translated are offered while typing. Its words are the
|
|
350
|
+
labels' new `translations` group.
|
|
351
|
+
- `@abpjs/ui/rules`: `toNamesValue(name, names, written)` and `fromNamesValue(value, written)` between a written name
|
|
352
|
+
with its other languages and the one map `TranslatedInput` edits.
|
|
353
|
+
|
|
354
|
+
## 0.2.0-next.12
|
|
355
|
+
|
|
356
|
+
A prerelease under npm's `next` tag: lists served a page at a time.
|
|
357
|
+
|
|
358
|
+
- `useListState(source)`: a list's page, page size, sort, search (asked once typing settles) and filters, from a
|
|
359
|
+
`ListSource` (`{ key, load(query, signal) }`); a change goes back to the first page, only the latest answer counts,
|
|
360
|
+
and the previous rows stay while the next page comes (`refreshing`). `table` and `pagination` are the props for
|
|
361
|
+
`DataTable` (manual sort) and `Pagination`; `onQueryChange` for a screen that keeps the list's place in its address.
|
|
362
|
+
- `abpListSource(request, path, options)` and `useAreaListSource(area, path, options)`: a list in ABP's shape
|
|
363
|
+
(`skipCount`, `maxResultCount`, `sorting`, `filter` in; `{ totalCount, items }` out), with `abpListParams`. A host
|
|
364
|
+
gives an area its own source (a query engine, saved views) in place of the package's.
|
|
365
|
+
|
|
366
|
+
## 0.2.0-next.11
|
|
367
|
+
|
|
368
|
+
A prerelease under npm's `next` tag: the first of the `guard` area's building blocks.
|
|
369
|
+
|
|
370
|
+
- `@abpjs/ui/rules`: names by language (`Names`, `languageChain(locale, default)`, `pickName(chain, names, fallback)`)
|
|
371
|
+
and `splitList` (a comma- or line-separated list, trimmed).
|
|
372
|
+
|
|
373
|
+
## 0.2.0-next.10
|
|
374
|
+
|
|
375
|
+
A prerelease under npm's `next` tag.
|
|
376
|
+
|
|
377
|
+
- ai: a scope's page (`AiScopeScreen`) no longer shows a named account's or group's limit (an agent's own, say) as
|
|
378
|
+
the site's or the scope's: those are counted on one line ("3 accounts and groups have limits of their own."), and a
|
|
379
|
+
person's default reads "Cost per day for each person: 1". `namedLimit` tells them apart.
|
|
380
|
+
|
|
381
|
+
## 0.2.0-next.9
|
|
382
|
+
|
|
383
|
+
A prerelease under npm's `next` tag, from moving the first host's agent pages onto `agent` with no visible change.
|
|
384
|
+
|
|
385
|
+
- agent: a slot `agent.names` (`{ label, value, onChange, placeholder, fallback, kind }`) for a host's own field for
|
|
386
|
+
names by language; `ToolGroupsProvider` (`ToolGroupOf`) for the host's own groups of tools (its skills, an outside
|
|
387
|
+
server's tools), after the host's and plugins' and before the sandbox's; `agent.tools.extra` gets `listed` and
|
|
388
|
+
`loading`.
|
|
389
|
+
- agent: a read-only opt-in tool is Off/On; `AgentEditor variant="scope"` (a scope's own agent, its settings alone),
|
|
390
|
+
used by `ScopeAgentsScreen`; a scope's key in the agents list sits at the cell's start in right-to-left pages, and
|
|
391
|
+
`ItemLink` keeps the page's direction when it wraps words (a bare key stays left to right).
|
|
392
|
+
|
|
393
|
+
## 0.2.0-next.8
|
|
394
|
+
|
|
395
|
+
A prerelease under npm's `next` tag: the third area, `agent`.
|
|
396
|
+
|
|
397
|
+
- **`@abpjs/ui/agent`** on AbpAgent.HttpApi 0.6.1: the site's switch and agents (`agentPages`, `AgentsAdmin`), a scope's
|
|
398
|
+
own agents (`ScopeAgentsScreen`), one agent's settings (form, tools, run limits, memories, its graph), standing
|
|
399
|
+
permissions, an item's runs and their questions, the questions waiting for the person, and the chat beside any page
|
|
400
|
+
(`AgentChatProvider`, `AgentChatPanel`, `useAgentChat().open(...)`), live through the host's events or polling every
|
|
401
|
+
2 s. Rights `agent.site.admin`, `agent.scope.admin`. Slots for what stays the host's: `agent.markdown`,
|
|
402
|
+
`agent.run.actions`, `agent.picture`, `agent.connections`, `agent.tools.extra`, `agent.limits.extra`,
|
|
403
|
+
`agent.switch.extra`. Items open where the host says (`itemHref`, `ItemHrefProvider`). The graph uses React Flow
|
|
404
|
+
(`@xyflow/react`, `@dagrejs/dagre`): a host that shows it imports `@xyflow/react/dist/style.css` once.
|
|
405
|
+
|
|
406
|
+
## 0.2.0-next.7
|
|
407
|
+
|
|
408
|
+
A prerelease under npm's `next` tag.
|
|
409
|
+
|
|
410
|
+
- Exports the passkey helpers next.5 described and didn't export: `createPasskey`, `getPasskey`, `passkeysSupported`.
|
|
411
|
+
|
|
412
|
+
## 0.2.0-next.6
|
|
413
|
+
|
|
414
|
+
A prerelease under npm's `next` tag.
|
|
415
|
+
|
|
416
|
+
- `StepUpDialog`: an authenticator code alone where the server lets one pass (`appCodeAlone` in `step_up_required`'s
|
|
417
|
+
data, the operator's setting): the strong level asks for the code alone (a passkey still first when the person has
|
|
418
|
+
one), and the password level offers it instead of the password. Without the field, a code goes with the password, as
|
|
419
|
+
before. `StepUpNeed.appCodeAlone`.
|
|
420
|
+
|
|
421
|
+
## 0.2.0-next.5
|
|
422
|
+
|
|
423
|
+
A prerelease under npm's `next` tag: the step-up dialog for AbpGuard 0.7.0's strong step-up and passkeys. Against an
|
|
424
|
+
older AbpGuard nothing changes (no level means the password level).
|
|
425
|
+
|
|
426
|
+
- `StepUpDialog` reads the level the server asks for (`step_up_required` with `level`, `methods`). At `strong`, it
|
|
427
|
+
offers a passkey first when the person has one, or the password with an authenticator code. Asked of someone with no
|
|
428
|
+
strong factor (`strong_factor_required`), it takes the password, then sets up a passkey or the app (QR and key) right
|
|
429
|
+
there, with the recovery codes shown once for a first factor; the call then asks again and they confirm with it.
|
|
430
|
+
- Passkeys in the browser's own JSON both ways (`createPasskey`, `getPasskey`, `passkeysSupported`), with a base64url
|
|
431
|
+
fallback for browsers without `PublicKeyCredential.parse*FromJSON`.
|
|
432
|
+
- `requestStepUp(need)` and `StepUpHandler` take the server's need (`StepUpNeed`, `stepUpNeedOf`). `createHostRequest`
|
|
433
|
+
and `createHostEvents` pass it on and ask again when the server asks for more (a factor set up, then the strong step-up),
|
|
434
|
+
up to three times. `HostRequestInit.stepUp: false` throws a step-up refusal instead of asking (the dialog's own calls).
|
|
435
|
+
`needsStepUp` and `STRONG_FACTOR_REQUIRED` beside `isStepUp`.
|
|
436
|
+
- `createHostEvents` asks the step-up dialog by default, as `createHostRequest` does.
|
|
437
|
+
|
|
3
438
|
## 0.2.0-next.4
|
|
4
439
|
|
|
5
440
|
A prerelease under npm's `next` tag, for a host's scope page on the `ai` area.
|