@atscript/ui 0.1.146 → 0.1.148
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/dist/index.cjs +390 -61
- package/dist/index.d.cts +202 -9
- package/dist/index.d.mts +202 -9
- package/dist/index.mjs +385 -63
- package/dist/plugin.cjs +449 -0
- package/dist/plugin.mjs +450 -1
- package/package.json +10 -9
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TAtscriptAnnotatedType, TAtscriptDataType, TSerializedAnnotatedType, TValidatorOptions, TValidatorPlugin } from "@atscript/typescript/utils";
|
|
2
|
-
import { Client, TCrudOp, TCrudPermissions, TCrudPermissions as TCrudPermissions$1, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
2
|
+
import { Client, FilterExpr, TCrudOp, TCrudPermissions, TCrudPermissions as TCrudPermissions$1, TDbActionInfo, TDbActionInfo as TDbActionInfo$1, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
3
3
|
|
|
4
4
|
//#region src/shared/annotation-keys.d.ts
|
|
5
5
|
declare const UI_TYPE: "ui.type";
|
|
@@ -103,6 +103,16 @@ interface ValueHelpInfo {
|
|
|
103
103
|
* This is the value committed to the FK field when the user picks a row.
|
|
104
104
|
*/
|
|
105
105
|
targetField: string;
|
|
106
|
+
/**
|
|
107
|
+
* Static dictionary scope from `@ui.valueHelp`'s filter — AND'd into every
|
|
108
|
+
* picker query. Since 0.1.148.
|
|
109
|
+
*/
|
|
110
|
+
filter?: FilterExpr;
|
|
111
|
+
/**
|
|
112
|
+
* Target fields the filter pins with `=` — constant in the picker, hidden
|
|
113
|
+
* from its columns. Since 0.1.148.
|
|
114
|
+
*/
|
|
115
|
+
pinned?: string[];
|
|
106
116
|
}
|
|
107
117
|
//#endregion
|
|
108
118
|
//#region src/form/types.d.ts
|
|
@@ -241,6 +251,16 @@ interface CreateFormDefOptions {
|
|
|
241
251
|
* Root-table concept; not propagated into nested recursive calls.
|
|
242
252
|
*/
|
|
243
253
|
versionColumn?: string;
|
|
254
|
+
/**
|
|
255
|
+
* `meta.fields` of the `/meta` the type came from. A field it marks
|
|
256
|
+
* `computed` (a computed view column, whose `@db.compute` annotation the
|
|
257
|
+
* server does not send) is marked `derived` like a `@db.column.derived`
|
|
258
|
+
* one: read-only, never validated, never sent. Root-table concept; not
|
|
259
|
+
* propagated into nested recursive calls. Since 0.1.147.
|
|
260
|
+
*/
|
|
261
|
+
metaFields?: Record<string, {
|
|
262
|
+
computed?: boolean;
|
|
263
|
+
}>;
|
|
244
264
|
}
|
|
245
265
|
/**
|
|
246
266
|
* Converts an ATScript annotated type into a FormDef.
|
|
@@ -249,7 +269,8 @@ interface CreateFormDefOptions {
|
|
|
249
269
|
* - **Non-object types** (primitive, array, union, etc.): produces a single leaf root field
|
|
250
270
|
* with `path: ''`.
|
|
251
271
|
*
|
|
252
|
-
* A `@db.column.derived` field is marked `derived` straight from its metadata
|
|
272
|
+
* A `@db.column.derived` field is marked `derived` straight from its metadata;
|
|
273
|
+
* a computed view column, from `opts.metaFields`.
|
|
253
274
|
*/
|
|
254
275
|
declare function createFormDef(type: TAtscriptAnnotatedType, opts?: CreateFormDefOptions): FormDef;
|
|
255
276
|
/**
|
|
@@ -384,6 +405,18 @@ interface ValueHelpSearchOptions {
|
|
|
384
405
|
limit?: number;
|
|
385
406
|
/** Override the computed select fields. */
|
|
386
407
|
select?: string[];
|
|
408
|
+
/**
|
|
409
|
+
* Static dictionary scope (`ValueHelpInfo.filter`) — AND'd with the search
|
|
410
|
+
* filter and with `$search`. Since 0.1.148.
|
|
411
|
+
*/
|
|
412
|
+
filter?: FilterExpr;
|
|
413
|
+
/**
|
|
414
|
+
* The target field the picker commits (`ValueHelpInfo.targetField`). It is
|
|
415
|
+
* selected, and it is the exact-match key of a non-searchable search — a
|
|
416
|
+
* composite-key dictionary's `primaryKeys[0]` is not the value. Default:
|
|
417
|
+
* `primaryKeys[0]`. Since 0.1.148.
|
|
418
|
+
*/
|
|
419
|
+
valueField?: string;
|
|
387
420
|
}
|
|
388
421
|
interface ValueHelpResult {
|
|
389
422
|
items: Record<string, unknown>[];
|
|
@@ -418,6 +451,16 @@ declare class ValueHelpClient {
|
|
|
418
451
|
declare function valueHelpDictPaths(resolved: ResolvedValueHelp): Set<string>;
|
|
419
452
|
//#endregion
|
|
420
453
|
//#region src/value-help/extract-literals.d.ts
|
|
454
|
+
/**
|
|
455
|
+
* One literal of a union: `key` / `label` are the string forms the UI keys
|
|
456
|
+
* on; `value` is the typed literal (`true`, `3`, `'a'`) — what a filter or a
|
|
457
|
+
* form must send to the server. `value` since 0.1.148.
|
|
458
|
+
*/
|
|
459
|
+
interface LiteralOption {
|
|
460
|
+
key: string;
|
|
461
|
+
label: string;
|
|
462
|
+
value: string | number | boolean;
|
|
463
|
+
}
|
|
421
464
|
/**
|
|
422
465
|
* Extracts options from a union of literal types (e.g. 'a' | 'b' | 'c').
|
|
423
466
|
* Returns undefined if the type is not a pure union of literals.
|
|
@@ -426,17 +469,22 @@ declare function valueHelpDictPaths(resolved: ResolvedValueHelp): Set<string>;
|
|
|
426
469
|
* into union items and produces synthetic unions containing both individual
|
|
427
470
|
* literals and the original union type as nested items.
|
|
428
471
|
*/
|
|
429
|
-
declare function extractLiteralOptions(prop: TAtscriptAnnotatedType):
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
472
|
+
declare function extractLiteralOptions(prop: TAtscriptAnnotatedType, outer?: TAtscriptAnnotatedType): LiteralOption[] | undefined;
|
|
473
|
+
/**
|
|
474
|
+
* The literal options of a field: a literal union's, or those of an array of one
|
|
475
|
+
* (`tags: Tag[]`), where the array prop's own `@ui.literalLabel` labels win over the
|
|
476
|
+
* element type's. `undefined` when the field is neither. Since 0.1.148.
|
|
477
|
+
*/
|
|
478
|
+
declare function extractFieldLiteralOptions(prop: TAtscriptAnnotatedType): LiteralOption[] | undefined;
|
|
433
479
|
/** Returns true when the annotated type is a union composed entirely of literal values. */
|
|
434
480
|
declare function isPureLiteralUnion(prop: TAtscriptAnnotatedType): boolean;
|
|
435
481
|
//#endregion
|
|
436
482
|
//#region src/value-help/extract-ref.d.ts
|
|
437
483
|
/**
|
|
438
484
|
* Synchronous probe. Returns `{ url, targetField }` for the first link of the
|
|
439
|
-
* reference chain starting at `prop` that
|
|
485
|
+
* reference chain starting at `prop` that carries a `@ui.valueHelp` binding
|
|
486
|
+
* (since 0.1.148 — an explicit binding beats `@db.rel.FK`, and also supplies
|
|
487
|
+
* the static `filter` / `pinned` fields), or that satisfies all three conditions:
|
|
440
488
|
*
|
|
441
489
|
* 1. the link carries `@db.rel.FK`,
|
|
442
490
|
* 2. the link has a `.ref`,
|
|
@@ -469,6 +517,19 @@ declare function extractValueHelp(prop: TAtscriptAnnotatedType): ValueHelpInfo |
|
|
|
469
517
|
declare function optKey(opt: TFormEntryOptions): string;
|
|
470
518
|
/** Extracts the display label from an option entry. */
|
|
471
519
|
declare function optLabel(opt: TFormEntryOptions): string;
|
|
520
|
+
/**
|
|
521
|
+
* The display label of a literal-union column's option (`@ui.literalLabel`) for
|
|
522
|
+
* `value` — `undefined` when the column has no options or none matches. Map-backed
|
|
523
|
+
* per options array, so rendering a table does not scan the options per cell.
|
|
524
|
+
* The one lookup behind the table cell, the filter chips, export and a custom cell.
|
|
525
|
+
* Since 0.1.148.
|
|
526
|
+
*/
|
|
527
|
+
declare function optionLabel(column: {
|
|
528
|
+
options?: {
|
|
529
|
+
key: string;
|
|
530
|
+
label: string;
|
|
531
|
+
}[];
|
|
532
|
+
}, value: unknown): string | undefined;
|
|
472
533
|
/**
|
|
473
534
|
* Converts raw option annotation value to a normalized array.
|
|
474
535
|
*/
|
|
@@ -482,6 +543,43 @@ declare function parseStaticOptions(raw: unknown): TFormEntryOptions[];
|
|
|
482
543
|
*/
|
|
483
544
|
declare function resolveOptions(prop: TAtscriptAnnotatedType, scope: Record<string, unknown>): TFormEntryOptions[] | undefined;
|
|
484
545
|
//#endregion
|
|
546
|
+
//#region src/value-help/distinct-client.d.ts
|
|
547
|
+
interface DistinctValuesOptions {
|
|
548
|
+
/** Search text: a case-insensitive prefix match for strings, an exact match for numbers. */
|
|
549
|
+
text?: string;
|
|
550
|
+
/** Page size. Default: 50. */
|
|
551
|
+
limit?: number;
|
|
552
|
+
/**
|
|
553
|
+
* Rows to skip (the next page of a scrolled picker). Distinct values are only
|
|
554
|
+
* stable across pages when ordered, so a caller pages only with `sortable`.
|
|
555
|
+
*/
|
|
556
|
+
skip?: number;
|
|
557
|
+
/** Send `$sort` on the grouped field — only when the server lists it as sortable. */
|
|
558
|
+
sortable?: boolean;
|
|
559
|
+
/** The field stores numbers: search is an exact match and non-numeric text finds nothing. */
|
|
560
|
+
numeric?: boolean;
|
|
561
|
+
/** Extra scope AND'd into the query (e.g. the table's `forceFilters`). */
|
|
562
|
+
filter?: FilterExpr;
|
|
563
|
+
}
|
|
564
|
+
/**
|
|
565
|
+
* `true` for a 4xx answer — the server declined this picker (gate, ARBAC, unknown field).
|
|
566
|
+
* @internal Shared with `@atscript/vue-table`.
|
|
567
|
+
*/
|
|
568
|
+
declare function isPickerDeclined(err: unknown): boolean;
|
|
569
|
+
/**
|
|
570
|
+
* Distinct values of one column of the table behind `client`, via
|
|
571
|
+
* `/query?$groupBy=<field>`. All server gates (hidden field, ARBAC `$groupBy`
|
|
572
|
+
* control, row scope, write-only, encrypted) apply as for any grouped read; a
|
|
573
|
+
* 4xx rejects with a `ClientError` — see {@link isPickerDeclined}.
|
|
574
|
+
* `hasMore` tells whether another page follows.
|
|
575
|
+
*
|
|
576
|
+
* @internal Backs the distinct-values picker of `@atscript/vue-table`.
|
|
577
|
+
*/
|
|
578
|
+
declare function fetchDistinctValues(client: Pick<Client, "aggregate">, field: string, opts?: DistinctValuesOptions): Promise<{
|
|
579
|
+
items: unknown[];
|
|
580
|
+
hasMore: boolean;
|
|
581
|
+
}>;
|
|
582
|
+
//#endregion
|
|
485
583
|
//#region src/form/path-utils.d.ts
|
|
486
584
|
/**
|
|
487
585
|
* Joins a dot-separated path prefix with a segment. Empty-safe on both
|
|
@@ -1029,6 +1127,14 @@ interface RelationInfo {
|
|
|
1029
1127
|
name: string;
|
|
1030
1128
|
direction: "to" | "from" | "via";
|
|
1031
1129
|
isArray: boolean;
|
|
1130
|
+
/**
|
|
1131
|
+
* `true` when the relation is `@db.rel.filterable`: the server accepts
|
|
1132
|
+
* filters by related rows on it (`ticket: { $some: {…} }` /
|
|
1133
|
+
* `{ $none: {…} }`, URL `ticket=$some(status=open)`). Absent otherwise.
|
|
1134
|
+
* Tables display such predicates (residual filters) but offer no UI to
|
|
1135
|
+
* author them. Needs `@atscript/moost-db` 0.1.147+. Since 0.1.147.
|
|
1136
|
+
*/
|
|
1137
|
+
filterable?: boolean;
|
|
1032
1138
|
}
|
|
1033
1139
|
/** Per-field capability flags. */
|
|
1034
1140
|
interface FieldMeta {
|
|
@@ -1055,6 +1161,27 @@ interface FieldMeta {
|
|
|
1055
1161
|
* Since 0.1.144.
|
|
1056
1162
|
*/
|
|
1057
1163
|
derived?: boolean;
|
|
1164
|
+
/**
|
|
1165
|
+
* A computed view column (`@db.compute`, `@atscript/db` 0.1.147+): the
|
|
1166
|
+
* database evaluates it from other fields of the view. It is a column like
|
|
1167
|
+
* any other — sorting and filtering follow `sortable` / `filterable` —
|
|
1168
|
+
* but never writable: `createFormDef` marks it `derived` when given these
|
|
1169
|
+
* fields (`CreateFormDefOptions.metaFields`). Since 0.1.147.
|
|
1170
|
+
*/
|
|
1171
|
+
computed?: boolean;
|
|
1172
|
+
/**
|
|
1173
|
+
* Display-only value the controller computes (`@DbDecorations`,
|
|
1174
|
+
* `@atscript/moost-db` 0.1.148+): selectable, never filterable, sortable or
|
|
1175
|
+
* groupable. `createTableDef` turns it into a column from
|
|
1176
|
+
* `MetaResponse.decorations`. Since 0.1.148.
|
|
1177
|
+
*/
|
|
1178
|
+
decoration?: boolean;
|
|
1179
|
+
/**
|
|
1180
|
+
* `$groupBy` on this field passes the server's gate (`@atscript/moost-db`
|
|
1181
|
+
* 0.1.148+). Together with `filterable` and `@ui.valueHelp.distinct` it
|
|
1182
|
+
* enables the distinct-values picker. Since 0.1.148.
|
|
1183
|
+
*/
|
|
1184
|
+
groupable?: boolean;
|
|
1058
1185
|
}
|
|
1059
1186
|
/** Meta response from moost-db `/meta` endpoint. */
|
|
1060
1187
|
interface MetaResponse {
|
|
@@ -1083,6 +1210,11 @@ interface MetaResponse {
|
|
|
1083
1210
|
relations: RelationInfo[];
|
|
1084
1211
|
fields: Record<string, FieldMeta>;
|
|
1085
1212
|
type: TSerializedAnnotatedType;
|
|
1213
|
+
/**
|
|
1214
|
+
* The controller's declared display-only fields (`@DbDecorations`) as a
|
|
1215
|
+
* serialized plain interface. Absent on older servers. Since 0.1.148.
|
|
1216
|
+
*/
|
|
1217
|
+
decorations?: TSerializedAnnotatedType;
|
|
1086
1218
|
}
|
|
1087
1219
|
/**
|
|
1088
1220
|
* Server-declared actions grouped by `level`. Built by `createTableDef` from
|
|
@@ -1120,6 +1252,17 @@ interface TableDef {
|
|
|
1120
1252
|
primaryKeys: string[];
|
|
1121
1253
|
/** Preferred row identifier — see `MetaResponse.preferredId`. */
|
|
1122
1254
|
preferredId: string[];
|
|
1255
|
+
/**
|
|
1256
|
+
* The row fields an action identifier is built from: `preferredId` plus
|
|
1257
|
+
* every path a delegated action's `idMap` reads (an action another
|
|
1258
|
+
* controller owns, e.g. a view listing its source table's actions). The
|
|
1259
|
+
* table keeps these values on every identifier it hands to an action, so
|
|
1260
|
+
* the client can map them to the owner's identification. Equals
|
|
1261
|
+
* `preferredId` when no action carries an `idMap`. Always set by
|
|
1262
|
+
* `createTableDef`; a hand-built `TableDef` may omit it (consumers fall back
|
|
1263
|
+
* to `preferredId`). Since 0.1.147.
|
|
1264
|
+
*/
|
|
1265
|
+
identifierFields?: string[];
|
|
1123
1266
|
/** Server-managed OCC column name — see `MetaResponse.versionColumn`. */
|
|
1124
1267
|
versionColumn?: string;
|
|
1125
1268
|
/** Per-op CRUD permissions advertised in `/meta`. Key absent → denied. */
|
|
@@ -1132,6 +1275,13 @@ interface TableDef {
|
|
|
1132
1275
|
searchIndexes: SearchIndexInfo[];
|
|
1133
1276
|
relations: RelationInfo[];
|
|
1134
1277
|
}
|
|
1278
|
+
/**
|
|
1279
|
+
* Scalar storage kind of a column's value — what the server's filter guard
|
|
1280
|
+
* checks. `string` / `date` / `isoDate` are `string`, `string.date` and
|
|
1281
|
+
* `string.isoDate`; `timestamp` is `number.timestamp` (epoch ms).
|
|
1282
|
+
* Since 0.1.148.
|
|
1283
|
+
*/
|
|
1284
|
+
type ColumnValueKind = "string" | "date" | "isoDate" | "number" | "integer" | "decimal" | "timestamp" | "boolean";
|
|
1135
1285
|
/** A single column definition — built from field metadata + annotations. */
|
|
1136
1286
|
interface ColumnDef {
|
|
1137
1287
|
/** Field path in dot-notation (e.g. 'address.city'). */
|
|
@@ -1140,6 +1290,14 @@ interface ColumnDef {
|
|
|
1140
1290
|
label: string;
|
|
1141
1291
|
/** Display type — from @ui.table.type, then @ui.type, then inferred from designType. */
|
|
1142
1292
|
type: string;
|
|
1293
|
+
/**
|
|
1294
|
+
* Scalar storage kind of the column's value, derived from the atscript type
|
|
1295
|
+
* (a union of one kind counts; arrays, objects, JSON and mixed unions have
|
|
1296
|
+
* none). Filter UIs and the query builder read it to pick the filter kind
|
|
1297
|
+
* and to encode values the way the server's filter guard expects.
|
|
1298
|
+
* Since 0.1.148.
|
|
1299
|
+
*/
|
|
1300
|
+
valueKind?: ColumnValueKind;
|
|
1143
1301
|
/** Named component override from @ui.table.component — looked up in the table components map. */
|
|
1144
1302
|
component?: string;
|
|
1145
1303
|
/**
|
|
@@ -1171,13 +1329,29 @@ interface ColumnDef {
|
|
|
1171
1329
|
maxLen?: number;
|
|
1172
1330
|
/** Initial column ordering from @ui.table.order (lower = first). */
|
|
1173
1331
|
order: number;
|
|
1174
|
-
/**
|
|
1332
|
+
/**
|
|
1333
|
+
* Enumerated options for union literal types (e.g. 'a' | 'b' | 'c'). `value` is
|
|
1334
|
+
* the typed literal (`true`, `3`) — what a filter sends to the server; the
|
|
1335
|
+
* `key` is its string form. `createTableDef` always sets it (since 0.1.148);
|
|
1336
|
+
* a hand-built column may omit it, and the string `key` is used.
|
|
1337
|
+
*/
|
|
1175
1338
|
options?: {
|
|
1176
1339
|
key: string;
|
|
1177
1340
|
label: string;
|
|
1341
|
+
value?: string | number | boolean;
|
|
1178
1342
|
}[];
|
|
1179
1343
|
/** Value-help info for FK columns (from extractValueHelp). */
|
|
1180
1344
|
valueHelpInfo?: ValueHelpInfo;
|
|
1345
|
+
/**
|
|
1346
|
+
* Distinct-values picker (`@ui.valueHelp.distinct`): the table's own controller
|
|
1347
|
+
* (`url`) answers the values of `field` via `$groupBy`. Set only when the server
|
|
1348
|
+
* lists the field `filterable` and `groupable` and no dictionary help or literal
|
|
1349
|
+
* options apply — independent of `valueHelpInfo`. Since 0.1.148.
|
|
1350
|
+
*/
|
|
1351
|
+
distinct?: {
|
|
1352
|
+
url: string;
|
|
1353
|
+
field: string;
|
|
1354
|
+
};
|
|
1181
1355
|
/** Literal currency code from `@db.amount.currency 'EUR'`. */
|
|
1182
1356
|
currencyCode?: string;
|
|
1183
1357
|
/** Sibling field path from `@db.amount.currency.ref 'fieldName'`. */
|
|
@@ -1234,6 +1408,18 @@ interface TableQueryState {
|
|
|
1234
1408
|
*/
|
|
1235
1409
|
declare function createTableDef(meta: MetaResponse, preDeserializedType?: TAtscriptAnnotatedType): TableDef;
|
|
1236
1410
|
//#endregion
|
|
1411
|
+
//#region src/table/value-kind.d.ts
|
|
1412
|
+
/** Storage kinds that hold plain numbers (a `timestamp` is epoch ms, but filters treat it as a date). */
|
|
1413
|
+
declare const NUMERIC_VALUE_KINDS: ReadonlySet<ColumnValueKind>;
|
|
1414
|
+
/**
|
|
1415
|
+
* The typed value of one of a column's `options` — the literal itself
|
|
1416
|
+
* (`true`, `3`, `'a'`), falling back to the string `key` for a hand-built
|
|
1417
|
+
* column that has no `value`.
|
|
1418
|
+
*
|
|
1419
|
+
* @internal Shared with `@atscript/vue-table`.
|
|
1420
|
+
*/
|
|
1421
|
+
declare function optionValue(option: NonNullable<ColumnDef["options"]>[number]): string | number | boolean;
|
|
1422
|
+
//#endregion
|
|
1237
1423
|
//#region src/client-factory.d.ts
|
|
1238
1424
|
/**
|
|
1239
1425
|
* Factory that creates a `Client` for a given URL.
|
|
@@ -1279,6 +1465,8 @@ declare function getMetaEntry(url: string, factory?: ClientFactory): MetaCacheEn
|
|
|
1279
1465
|
declare function resetMetaCache(): void;
|
|
1280
1466
|
//#endregion
|
|
1281
1467
|
//#region src/shared/str.d.ts
|
|
1468
|
+
/** Escape special regex characters in user input for safe embedding in a `$regex` filter. */
|
|
1469
|
+
declare function escapeRegex(input: string): string;
|
|
1282
1470
|
/** Safely convert an unknown value to a string without triggering no-base-to-string lint errors. */
|
|
1283
1471
|
declare function str(value: unknown): string;
|
|
1284
1472
|
//#endregion
|
|
@@ -1310,6 +1498,11 @@ declare function getColumn(def: TableDef, path: string): ColumnDef | undefined;
|
|
|
1310
1498
|
*
|
|
1311
1499
|
* Table/rows-level navigate actions carry no `$1` placeholder and return
|
|
1312
1500
|
* `action.value` verbatim.
|
|
1501
|
+
*
|
|
1502
|
+
* A delegated action (`action.idMap`, since 0.1.147) reads `id` as one of THIS
|
|
1503
|
+
* table's rows (or identifiers) and encodes the owner's identification it maps
|
|
1504
|
+
* to, in `Object.keys(idMap)` order — the same as `Client`. A row the map
|
|
1505
|
+
* cannot address (a missing path) has no link.
|
|
1313
1506
|
*/
|
|
1314
1507
|
declare function navigateHrefFor(action: TDbActionInfo$1, id: Record<string, unknown> | undefined, preferredId: readonly string[]): string | undefined;
|
|
1315
1508
|
//#endregion
|
|
@@ -1343,4 +1536,4 @@ interface TModelRoute {
|
|
|
1343
1536
|
*/
|
|
1344
1537
|
declare function buildModelRoutes(models: readonly TAtscriptAnnotatedType[]): TModelRoute[];
|
|
1345
1538
|
//#endregion
|
|
1346
|
-
export { type ClientFactory, type CloneUnwrap, type ColumnDef, type CreateFormDefOptions, type CurrencyDisplay, DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, type FieldMeta, type FieldResolver, type FormActionInfo, type FormArrayFieldDef, type FormDef, type FormDiffOptions, type FormDiffResult, type FormFieldChange, type FormFieldDef, type FormObjectFieldDef, type FormRebaseOptions, type FormRebaseResult, type FormTupleFieldDef, type FormUnionFieldDef, type FormUnionVariant, type FormatDecimalOptions, type GridSpanArgs, type GridSpec, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, type MeasurementInfo, type MetaCacheEntry, type MetaResponse, type PaginationControl, type RelationInfo, type ResolvedValueHelp, type SearchIndexInfo, type SortControl, StaticFieldResolver, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TFieldValidatorOptions, type TFormAction, type TFormEntryOptions, type TFormValidatorCallOptions, type TFormValueResolver, type TModelRoute, type TResolveOptions, type TableActionsModel, type TableDef, type TableQueryState, UI_DICT_ATTR, UI_DICT_DESCR, UI_DICT_FILTERABLE, UI_DICT_LABEL, UI_DICT_SEARCHABLE, UI_DICT_SORTABLE, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_ATTR, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HIDDEN, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_OPTIONS, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_SUBMIT_DISABLED, UI_FORM_FN_SUBMIT_TEXT, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_LABEL_SINGULAR, UI_FORM_OPTIONS, UI_FORM_ORDER, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_STYLES, UI_FORM_SUBMIT_TEXT, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_TYPE, UI_FORM_VALIDATE, UI_NAV_GROUP, UI_NAV_HIDDEN, UI_NAV_ORDER, UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_COMPONENT, UI_TABLE_EXCLUDE, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_PREFIX, UI_TABLE_FN_STYLES, UI_TABLE_ORDER, UI_TABLE_SELECT_WITH, UI_TABLE_STYLES, UI_TABLE_TYPE, UI_TABLE_WIDTH, UI_TYPE, ValueHelpClient, type ValueHelpInfo, type ValueHelpResult, type ValueHelpSearchOptions, WF_ACTION_WITH_DATA, applyFormChanges, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createTableDef, deepClone, deepEqual, defaultResolver, deleteByPath, detectUnionVariant, enforceScale, extractLiteralOptions, extractMeasurement, extractValueHelp, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaEntry, getResolver, getSortableColumns, getThousandsSeparator, groupInteger, hasComputedAnnotations, hasFieldMeta, isArrayField, isFieldHidden, isObjectField, isPathDirty, isPureLiteralUnion, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, mergeErrorMaps, navigateHrefFor, omitPaths, optKey, optLabel, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setResolver, splitDecimalString, str, unionVariantChanged, valueHelpDictPaths };
|
|
1539
|
+
export { type ClientFactory, type CloneUnwrap, type ColumnDef, type ColumnValueKind, type CreateFormDefOptions, type CurrencyDisplay, DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, type FieldMeta, type FieldResolver, type FormActionInfo, type FormArrayFieldDef, type FormDef, type FormDiffOptions, type FormDiffResult, type FormFieldChange, type FormFieldDef, type FormObjectFieldDef, type FormRebaseOptions, type FormRebaseResult, type FormTupleFieldDef, type FormUnionFieldDef, type FormUnionVariant, type FormatDecimalOptions, type GridSpanArgs, type GridSpec, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, type MeasurementInfo, type MetaCacheEntry, type MetaResponse, NUMERIC_VALUE_KINDS, type PaginationControl, type RelationInfo, type ResolvedValueHelp, type SearchIndexInfo, type SortControl, StaticFieldResolver, type TCrudOp, type TCrudPermissions, type TDbActionInfo, type TDbActionIntent, type TDbActionLevel, type TDbActionProcessor, type TFieldValidatorOptions, type TFormAction, type TFormEntryOptions, type TFormValidatorCallOptions, type TFormValueResolver, type TModelRoute, type TResolveOptions, type TableActionsModel, type TableDef, type TableQueryState, UI_DICT_ATTR, UI_DICT_DESCR, UI_DICT_FILTERABLE, UI_DICT_LABEL, UI_DICT_SEARCHABLE, UI_DICT_SORTABLE, UI_FORM_ACTION, UI_FORM_ATTR, UI_FORM_AUTOCOMPLETE, UI_FORM_CLASSES, UI_FORM_COMPONENT, UI_FORM_DISABLED, UI_FORM_FN_ATTR, UI_FORM_FN_CLASSES, UI_FORM_FN_DESCRIPTION, UI_FORM_FN_DISABLED, UI_FORM_FN_HIDDEN, UI_FORM_FN_HINT, UI_FORM_FN_LABEL, UI_FORM_FN_OPTIONS, UI_FORM_FN_PLACEHOLDER, UI_FORM_FN_PREFIX, UI_FORM_FN_READONLY, UI_FORM_FN_STYLES, UI_FORM_FN_SUBMIT_DISABLED, UI_FORM_FN_SUBMIT_TEXT, UI_FORM_FN_TITLE, UI_FORM_FN_VALUE, UI_FORM_GRID_COL_SPAN, UI_FORM_GRID_ROW_SPAN, UI_FORM_HIDDEN, UI_FORM_HINT, UI_FORM_LABEL_SINGULAR, UI_FORM_OPTIONS, UI_FORM_ORDER, UI_FORM_PLACEHOLDER, UI_FORM_PREFIX, UI_FORM_PREFIX_ICON, UI_FORM_PREFIX_REF, UI_FORM_STYLES, UI_FORM_SUBMIT_TEXT, UI_FORM_SUFFIX, UI_FORM_SUFFIX_ICON, UI_FORM_SUFFIX_REF, UI_FORM_TYPE, UI_FORM_VALIDATE, UI_NAV_GROUP, UI_NAV_HIDDEN, UI_NAV_ORDER, UI_TABLE_ATTR, UI_TABLE_CLASSES, UI_TABLE_COMPONENT, UI_TABLE_EXCLUDE, UI_TABLE_FN_ATTR, UI_TABLE_FN_CLASSES, UI_TABLE_FN_PREFIX, UI_TABLE_FN_STYLES, UI_TABLE_ORDER, UI_TABLE_SELECT_WITH, UI_TABLE_STYLES, UI_TABLE_TYPE, UI_TABLE_WIDTH, UI_TYPE, ValueHelpClient, type ValueHelpInfo, type ValueHelpResult, type ValueHelpSearchOptions, WF_ACTION_WITH_DATA, applyFormChanges, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createTableDef, deepClone, deepEqual, defaultResolver, deleteByPath, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaEntry, getResolver, getSortableColumns, getThousandsSeparator, groupInteger, hasComputedAnnotations, hasFieldMeta, isArrayField, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, mergeErrorMaps, navigateHrefFor, omitPaths, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setResolver, splitDecimalString, str, unionVariantChanged, valueHelpDictPaths };
|