@abpjs/ui 0.2.0-next.31 → 0.2.0-next.33
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 +41 -0
- package/dist/agent.d.ts +30 -4
- package/dist/agent.js +311 -102
- package/dist/agent.js.map +1 -1
- package/dist/index.d.ts +56 -5
- package/dist/index.js +596 -341
- 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/package.json +6 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.0-next.33
|
|
4
|
+
|
|
5
|
+
A prerelease under npm's `next` tag.
|
|
6
|
+
|
|
7
|
+
- The `languages` area, `@abpjs/ui/languages`: AbpLanguages' screens on AbpLanguages.HttpApi 0.7.0 (`paths.languages`,
|
|
8
|
+
`languages.site.admin`). `languagesPages` gives Settings one page: the site's languages (direction, fallback, how far
|
|
9
|
+
each is translated; add, edit, turn on or off, make the default, remove) and each language's translation editor
|
|
10
|
+
(every text beside its English source and what ships, filtered by status and catalog, searched, saved from a
|
|
11
|
+
`SaveBar`, exported and imported as a translator's file). `onChanged` lets the host read its languages and texts again
|
|
12
|
+
after a change, without starting the editor afresh; `mainCatalog` and `catalogName` name the catalogs; the
|
|
13
|
+
`languages.list.actions` slot takes the host's own links. Words in English and Arabic.
|
|
14
|
+
- `AgentPermissionsPanel` (the design canvas's "Agents you always allow"): one row per agent and scope, with who made
|
|
15
|
+
the agent, its tools together by title, the scope, since when and when last used; Remove takes the whole row back
|
|
16
|
+
after a confirm ("It will ask you again before using these tools"). On the person's page, "Allow an agent" opens a
|
|
17
|
+
dialog: the agent, the scope and "Tools without asking", only those AbpAgent says "Always" could answer for
|
|
18
|
+
(`me/permissions/allowable`), with the ones already given checked. On an agent's page, one row per person. Needs
|
|
19
|
+
AbpAgent.HttpApi 0.7.0. New and changed `permissions.*` agent texts; `permissions.what`, `forAgent`, `byPerson`,
|
|
20
|
+
`given`, `takeBack` and `takeBackTitle` are gone.
|
|
21
|
+
- The agent area's types are AbpAgent.HttpApi 0.7.0's (`AgentAllowablePlace`, `AgentAllowableAgent`,
|
|
22
|
+
`AgentAllowableTool`; `AgentPermissionInfo` gains `toolTitle`, `madeBy` and `agentNames`).
|
|
23
|
+
|
|
24
|
+
## 0.2.0-next.32
|
|
25
|
+
|
|
26
|
+
A prerelease under npm's `next` tag.
|
|
27
|
+
|
|
28
|
+
- `QueryableList` export dialog (the design canvas's Export to CSV and Excel): the Export menu's format opens a dialog
|
|
29
|
+
with the rows (what the query finds, or all of them), the columns (those shown picked first), a CSV's separator
|
|
30
|
+
(comma, semicolon or tab) and the first rows as the file will hold them. Export closes it; a toast says the file
|
|
31
|
+
is being prepared, with Cancel, then that it's ready. `onExport(format, options)` gets `QueryExportOptions`
|
|
32
|
+
(`columns`, `all`, `separator`, `signal`). New optional `queryList` labels: `exportTitleCsv`, `exportTitleExcel`,
|
|
33
|
+
`exportRows`, `exportFound`, `exportAll`, `exportColumns`, `exportSeparator`, `exportComma`, `exportSemicolon`,
|
|
34
|
+
`exportTab`, `exportPreview`, `exportRun`, `exportCancel`, `exportPreparing`, `exportReady`.
|
|
35
|
+
- `AppShell`: a top-bar item with `children` (a person's starred projects under Projects) gets a chevron beside its
|
|
36
|
+
name that opens them in a menu; the name still opens the page. `childrenTitle` heads the menu ("Starred") and
|
|
37
|
+
`childrenLabel` names the chevron for screen readers. The drawer lists them under the item, as before.
|
|
38
|
+
- `Panel` folds. `collapsible` makes its header a button with a chevron before the title (pointing to the end when
|
|
39
|
+
folded, down when open), and the description, the body and the footer fold away while the actions stay and keep
|
|
40
|
+
working.
|
|
41
|
+
`defaultCollapsed`, or `collapsed` with `onCollapsedChange`; `summary` is a line shown in the header while folded
|
|
42
|
+
("2 groups"), hidden on narrow screens.
|
|
43
|
+
|
|
3
44
|
## 0.2.0-next.31
|
|
4
45
|
|
|
5
46
|
A prerelease under npm's `next` tag.
|
package/dist/agent.d.ts
CHANGED
|
@@ -87,6 +87,19 @@ declare function ScopeAgentsScreen({ scope, roles, header, itemHref, subtitle }:
|
|
|
87
87
|
|
|
88
88
|
interface components {
|
|
89
89
|
schemas: {
|
|
90
|
+
AgentAllowableAgent: {
|
|
91
|
+
agent: components["schemas"]["AskableAgent"];
|
|
92
|
+
tools: components["schemas"]["AgentAllowableTool"][];
|
|
93
|
+
};
|
|
94
|
+
AgentAllowablePlace: {
|
|
95
|
+
scope: components["schemas"]["AgentScopeRef"];
|
|
96
|
+
agents: components["schemas"]["AgentAllowableAgent"][];
|
|
97
|
+
};
|
|
98
|
+
AgentAllowableTool: {
|
|
99
|
+
name: string;
|
|
100
|
+
title: string;
|
|
101
|
+
given: boolean;
|
|
102
|
+
};
|
|
90
103
|
AgentAnswerInput: {
|
|
91
104
|
answer: string;
|
|
92
105
|
};
|
|
@@ -261,6 +274,13 @@ interface components {
|
|
|
261
274
|
/** Format: int32 */
|
|
262
275
|
uses: number | string;
|
|
263
276
|
};
|
|
277
|
+
AgentPermissionGive: {
|
|
278
|
+
/** Format: uuid */
|
|
279
|
+
agentId: string;
|
|
280
|
+
/** Format: uuid */
|
|
281
|
+
scopeId: string;
|
|
282
|
+
tools: string[];
|
|
283
|
+
};
|
|
264
284
|
AgentPermissionInfo: {
|
|
265
285
|
person: null | components["schemas"]["AgentPerson"];
|
|
266
286
|
/** Format: uuid */
|
|
@@ -277,13 +297,18 @@ interface components {
|
|
|
277
297
|
createdAt: string;
|
|
278
298
|
/** Format: date-time */
|
|
279
299
|
lastUsedAt: null | string;
|
|
300
|
+
toolTitle?: null | string;
|
|
301
|
+
madeBy?: null | components["schemas"]["AgentPerson"];
|
|
302
|
+
agentNames?: {
|
|
303
|
+
[key: string]: string;
|
|
304
|
+
};
|
|
280
305
|
};
|
|
281
306
|
AgentPermissionRemoveInput: {
|
|
282
307
|
/** Format: uuid */
|
|
283
308
|
personId: string;
|
|
284
309
|
/** Format: uuid */
|
|
285
310
|
agentId: string;
|
|
286
|
-
tool: string;
|
|
311
|
+
tool: null | string;
|
|
287
312
|
/** Format: uuid */
|
|
288
313
|
scopeId: string;
|
|
289
314
|
};
|
|
@@ -601,9 +626,10 @@ declare function AgentGraph({ agentId, scopes }: {
|
|
|
601
626
|
}): react.JSX.Element;
|
|
602
627
|
|
|
603
628
|
/**
|
|
604
|
-
* Standing permissions:
|
|
605
|
-
* person's page, their own (no `agentId`)
|
|
606
|
-
*
|
|
629
|
+
* Standing permissions: the tools a person lets an agent use without asking, in the runs they start in one scope,
|
|
630
|
+
* given by "Always allow" in a run or ahead of time. On the person's page, their own (no `agentId`), one row per agent
|
|
631
|
+
* and scope, with "Allow an agent"; on an agent's page, the ones people gave it, for its admins, one row per person and
|
|
632
|
+
* scope. Removing a row takes back all its tools: they ask again from their next call.
|
|
607
633
|
*/
|
|
608
634
|
declare function AgentPermissionsPanel({ agentId }: {
|
|
609
635
|
agentId?: string;
|