@atscript/ui 0.1.189 → 0.1.190
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/client-factory.d.cts +9 -7
- package/dist/client-factory.d.mts +9 -7
- package/dist/form/create-form-def.cjs +38 -1
- package/dist/form/create-form-def.d.cts +1 -1
- package/dist/form/create-form-def.d.mts +1 -1
- package/dist/form/create-form-def.mjs +38 -1
- package/dist/form/diff.cjs +8 -1
- package/dist/form/diff.d.cts +5 -2
- package/dist/form/diff.d.mts +5 -2
- package/dist/form/diff.mjs +9 -2
- package/dist/form/skipped-nav.cjs +1 -1
- package/dist/form/skipped-nav.mjs +1 -1
- package/dist/index.cjs +11 -0
- package/dist/index.d.cts +7 -4
- package/dist/index.d.mts +7 -4
- package/dist/index.mjs +6 -3
- package/dist/messages.cjs +3 -0
- package/dist/messages.d.cts +3 -0
- package/dist/messages.d.mts +3 -0
- package/dist/messages.mjs +3 -0
- package/dist/plugin/annotations.cjs +57 -2
- package/dist/plugin/annotations.mjs +58 -3
- package/dist/plugin/value-help-validation.cjs +358 -24
- package/dist/plugin/value-help-validation.mjs +356 -26
- package/dist/shared/annotation-keys.cjs +11 -0
- package/dist/shared/annotation-keys.d.cts +3 -1
- package/dist/shared/annotation-keys.d.mts +3 -1
- package/dist/shared/annotation-keys.mjs +8 -1
- package/dist/shared/meta-cache.d.cts +3 -3
- package/dist/shared/meta-cache.d.mts +3 -3
- package/dist/shared/value-label.cjs +28 -0
- package/dist/shared/value-label.d.cts +25 -0
- package/dist/shared/value-label.d.mts +25 -0
- package/dist/shared/value-label.mjs +27 -0
- package/dist/table/create-table-def.cjs +15 -1
- package/dist/table/create-table-def.mjs +15 -1
- package/dist/table/types.d.cts +31 -9
- package/dist/table/types.d.mts +31 -9
- package/dist/value-help/distinct-client.d.cts +2 -2
- package/dist/value-help/distinct-client.d.mts +2 -2
- package/dist/value-help/extract-ref.cjs +22 -5
- package/dist/value-help/extract-ref.mjs +23 -6
- package/dist/value-help/filter-tree.cjs +39 -14
- package/dist/value-help/filter-tree.mjs +39 -14
- package/dist/value-help/index.d.mts +3 -1
- package/dist/value-help/options.cjs +30 -0
- package/dist/value-help/options.d.cts +19 -0
- package/dist/value-help/options.d.mts +19 -0
- package/dist/value-help/options.mjs +29 -0
- package/dist/value-help/scope.cjs +50 -0
- package/dist/value-help/scope.d.cts +32 -0
- package/dist/value-help/scope.d.mts +32 -0
- package/dist/value-help/scope.mjs +49 -0
- package/dist/value-help/types.d.cts +29 -1
- package/dist/value-help/types.d.mts +29 -1
- package/dist/value-help/value-help-client.cjs +23 -4
- package/dist/value-help/value-help-client.d.cts +27 -8
- package/dist/value-help/value-help-client.d.mts +27 -8
- package/dist/value-help/value-help-client.mjs +23 -5
- package/package.json +9 -9
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AtscriptClientShape,
|
|
1
|
+
import { AtscriptClientShape, ClientLike, ClientOptions } from "@atscript/db-client";
|
|
2
2
|
|
|
3
3
|
//#region src/client-factory.d.ts
|
|
4
4
|
/**
|
|
@@ -29,18 +29,20 @@ type ClientFactoryOptions = Pick<ClientOptions, "metaKey" | "metaStore"> & {
|
|
|
29
29
|
* transport / auth wiring the host application wants. Forward the optional
|
|
30
30
|
* second argument ({@link ClientFactoryOptions}) into the `Client` options.
|
|
31
31
|
*
|
|
32
|
-
* Any function returning a `
|
|
33
|
-
* one that hands back a cached one
|
|
32
|
+
* Any function returning a `ClientLike` fits — one that builds a new client,
|
|
33
|
+
* one that hands back a cached one, or one that returns an object with the
|
|
34
|
+
* public members of `Client` without extending the class. Since 0.1.190 the
|
|
35
|
+
* return is typed `ClientLike` (was `Client`).
|
|
34
36
|
*/
|
|
35
|
-
type ClientFactory = (url: string, options?: ClientFactoryOptions) =>
|
|
37
|
+
type ClientFactory = (url: string, options?: ClientFactoryOptions) => ClientLike;
|
|
36
38
|
/**
|
|
37
39
|
* The app-wide factory as {@link getDefaultClientFactory} returns it: generic
|
|
38
|
-
* like `Client`. `factory<typeof Product>(url)` is a `
|
|
40
|
+
* like `Client`. `factory<typeof Product>(url)` is a `ClientLike<typeof Product>`
|
|
39
41
|
* with typed reads and writes; without a type argument it is the untyped
|
|
40
|
-
* `
|
|
42
|
+
* `ClientLike`. The type argument only types the client — nothing is checked at
|
|
41
43
|
* runtime.
|
|
42
44
|
*/
|
|
43
|
-
type TypedClientFactory = <T extends AtscriptClientShape = AtscriptClientShape>(url: string, options?: ClientFactoryOptions) =>
|
|
45
|
+
type TypedClientFactory = <T extends AtscriptClientShape = AtscriptClientShape>(url: string, options?: ClientFactoryOptions) => ClientLike<T>;
|
|
44
46
|
/**
|
|
45
47
|
* Override the app-wide default factory. Call once at startup (e.g. in
|
|
46
48
|
* `entry-client.ts`) to wire shared fetch, credentials, error handling, etc.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AtscriptClientShape,
|
|
1
|
+
import { AtscriptClientShape, ClientLike, ClientOptions } from "@atscript/db-client";
|
|
2
2
|
|
|
3
3
|
//#region src/client-factory.d.ts
|
|
4
4
|
/**
|
|
@@ -29,18 +29,20 @@ type ClientFactoryOptions = Pick<ClientOptions, "metaKey" | "metaStore"> & {
|
|
|
29
29
|
* transport / auth wiring the host application wants. Forward the optional
|
|
30
30
|
* second argument ({@link ClientFactoryOptions}) into the `Client` options.
|
|
31
31
|
*
|
|
32
|
-
* Any function returning a `
|
|
33
|
-
* one that hands back a cached one
|
|
32
|
+
* Any function returning a `ClientLike` fits — one that builds a new client,
|
|
33
|
+
* one that hands back a cached one, or one that returns an object with the
|
|
34
|
+
* public members of `Client` without extending the class. Since 0.1.190 the
|
|
35
|
+
* return is typed `ClientLike` (was `Client`).
|
|
34
36
|
*/
|
|
35
|
-
type ClientFactory = (url: string, options?: ClientFactoryOptions) =>
|
|
37
|
+
type ClientFactory = (url: string, options?: ClientFactoryOptions) => ClientLike;
|
|
36
38
|
/**
|
|
37
39
|
* The app-wide factory as {@link getDefaultClientFactory} returns it: generic
|
|
38
|
-
* like `Client`. `factory<typeof Product>(url)` is a `
|
|
40
|
+
* like `Client`. `factory<typeof Product>(url)` is a `ClientLike<typeof Product>`
|
|
39
41
|
* with typed reads and writes; without a type argument it is the untyped
|
|
40
|
-
* `
|
|
42
|
+
* `ClientLike`. The type argument only types the client — nothing is checked at
|
|
41
43
|
* runtime.
|
|
42
44
|
*/
|
|
43
|
-
type TypedClientFactory = <T extends AtscriptClientShape = AtscriptClientShape>(url: string, options?: ClientFactoryOptions) =>
|
|
45
|
+
type TypedClientFactory = <T extends AtscriptClientShape = AtscriptClientShape>(url: string, options?: ClientFactoryOptions) => ClientLike<T>;
|
|
44
46
|
/**
|
|
45
47
|
* Override the app-wide default factory. Call once at startup (e.g. in
|
|
46
48
|
* `entry-client.ts`) to wire shared fetch, credentials, error handling, etc.
|
|
@@ -52,7 +52,7 @@ function unnamed(field) {
|
|
|
52
52
|
* a computed view column, from `opts.metaFields`; an update-stamped field
|
|
53
53
|
* (see `CreateFormDefOptions.mode`), when `opts.mode` is `"edit"`.
|
|
54
54
|
*
|
|
55
|
-
* A navigation field (`@db.rel.from` / `.to` / `.via`) is left out unless it
|
|
55
|
+
* A navigation field (`@db.rel.from` / `.to` / `.via` / `.store`) is left out unless it
|
|
56
56
|
* carries a `@ui.form.*` annotation of its own (see {@link isSkippedNavField}).
|
|
57
57
|
*
|
|
58
58
|
* Recursive types are safe at any depth: a type reached again inside its own
|
|
@@ -159,9 +159,46 @@ function collectFields(objectType, flatMap, edit, opts) {
|
|
|
159
159
|
pushDown: require_field_resolver.getFieldMeta(originalProp, require_annotation_keys.UI_FORM_PUSH_DOWN) !== void 0
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
+
keepWritableFills(fields);
|
|
162
163
|
return fields;
|
|
163
164
|
}
|
|
164
165
|
/**
|
|
166
|
+
* Scopes a binding's sibling names to the def (since 0.1.190). Host references
|
|
167
|
+
* (`hostFilter`) and fills (`@ui.valueHelp.fill`) name fields of the interface
|
|
168
|
+
* declaring the bound field; a field the def lists by a dotted path — a field of
|
|
169
|
+
* a namespace object rendered inline, `shipping.city` — has those siblings under
|
|
170
|
+
* the same parent, so they become `shipping.country`. A fill whose field the def
|
|
171
|
+
* does not have (a view or a chain reference without it), or holds as derived,
|
|
172
|
+
* read-only or a navigation, is dropped from the bound field's `valueHelpInfo`.
|
|
173
|
+
*/
|
|
174
|
+
function keepWritableFills(fields) {
|
|
175
|
+
const byPath = new Map(fields.map((c) => [c.field.path, c.field]));
|
|
176
|
+
for (const { field } of fields) {
|
|
177
|
+
const info = field.valueHelpInfo;
|
|
178
|
+
if (!info?.fill && !info?.hostFilter) continue;
|
|
179
|
+
const dot = field.path.lastIndexOf(".");
|
|
180
|
+
const parent = dot < 0 ? "" : field.path.slice(0, dot + 1);
|
|
181
|
+
const hostFilter = parent && info.hostFilter ? info.hostFilter.map((h) => ({
|
|
182
|
+
...h,
|
|
183
|
+
local: parent + h.local
|
|
184
|
+
})) : info.hostFilter;
|
|
185
|
+
const fill = info.fill?.map((f) => parent ? {
|
|
186
|
+
...f,
|
|
187
|
+
local: parent + f.local
|
|
188
|
+
} : f).filter(({ local }) => {
|
|
189
|
+
const sibling = byPath.get(local);
|
|
190
|
+
return !!sibling && !sibling.derived && require_field_resolver.getFieldMeta(sibling.prop, "meta.readonly") === void 0 && !(0, _atscript_db_validator.isNavRelation)(sibling.prop);
|
|
191
|
+
});
|
|
192
|
+
if (!parent && fill?.length === info.fill?.length) continue;
|
|
193
|
+
const { fill: _fill, hostFilter: _hostFilter, ...rest } = info;
|
|
194
|
+
field.valueHelpInfo = {
|
|
195
|
+
...rest,
|
|
196
|
+
...hostFilter && { hostFilter },
|
|
197
|
+
...fill && fill.length > 0 && { fill }
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
165
202
|
* Creates a FormFieldDef from any ATScript annotated type. `edit`: the form
|
|
166
203
|
* edits a stored row (`CreateFormDefOptions.mode`).
|
|
167
204
|
*
|
|
@@ -49,7 +49,7 @@ interface CreateFormDefOptions {
|
|
|
49
49
|
* a computed view column, from `opts.metaFields`; an update-stamped field
|
|
50
50
|
* (see `CreateFormDefOptions.mode`), when `opts.mode` is `"edit"`.
|
|
51
51
|
*
|
|
52
|
-
* A navigation field (`@db.rel.from` / `.to` / `.via`) is left out unless it
|
|
52
|
+
* A navigation field (`@db.rel.from` / `.to` / `.via` / `.store`) is left out unless it
|
|
53
53
|
* carries a `@ui.form.*` annotation of its own (see {@link isSkippedNavField}).
|
|
54
54
|
*
|
|
55
55
|
* Recursive types are safe at any depth: a type reached again inside its own
|
|
@@ -49,7 +49,7 @@ interface CreateFormDefOptions {
|
|
|
49
49
|
* a computed view column, from `opts.metaFields`; an update-stamped field
|
|
50
50
|
* (see `CreateFormDefOptions.mode`), when `opts.mode` is `"edit"`.
|
|
51
51
|
*
|
|
52
|
-
* A navigation field (`@db.rel.from` / `.to` / `.via`) is left out unless it
|
|
52
|
+
* A navigation field (`@db.rel.from` / `.to` / `.via` / `.store`) is left out unless it
|
|
53
53
|
* carries a `@ui.form.*` annotation of its own (see {@link isSkippedNavField}).
|
|
54
54
|
*
|
|
55
55
|
* Recursive types are safe at any depth: a type reached again inside its own
|
|
@@ -52,7 +52,7 @@ function unnamed(field) {
|
|
|
52
52
|
* a computed view column, from `opts.metaFields`; an update-stamped field
|
|
53
53
|
* (see `CreateFormDefOptions.mode`), when `opts.mode` is `"edit"`.
|
|
54
54
|
*
|
|
55
|
-
* A navigation field (`@db.rel.from` / `.to` / `.via`) is left out unless it
|
|
55
|
+
* A navigation field (`@db.rel.from` / `.to` / `.via` / `.store`) is left out unless it
|
|
56
56
|
* carries a `@ui.form.*` annotation of its own (see {@link isSkippedNavField}).
|
|
57
57
|
*
|
|
58
58
|
* Recursive types are safe at any depth: a type reached again inside its own
|
|
@@ -159,9 +159,46 @@ function collectFields(objectType, flatMap, edit, opts) {
|
|
|
159
159
|
pushDown: getFieldMeta(originalProp, UI_FORM_PUSH_DOWN) !== void 0
|
|
160
160
|
});
|
|
161
161
|
}
|
|
162
|
+
keepWritableFills(fields);
|
|
162
163
|
return fields;
|
|
163
164
|
}
|
|
164
165
|
/**
|
|
166
|
+
* Scopes a binding's sibling names to the def (since 0.1.190). Host references
|
|
167
|
+
* (`hostFilter`) and fills (`@ui.valueHelp.fill`) name fields of the interface
|
|
168
|
+
* declaring the bound field; a field the def lists by a dotted path — a field of
|
|
169
|
+
* a namespace object rendered inline, `shipping.city` — has those siblings under
|
|
170
|
+
* the same parent, so they become `shipping.country`. A fill whose field the def
|
|
171
|
+
* does not have (a view or a chain reference without it), or holds as derived,
|
|
172
|
+
* read-only or a navigation, is dropped from the bound field's `valueHelpInfo`.
|
|
173
|
+
*/
|
|
174
|
+
function keepWritableFills(fields) {
|
|
175
|
+
const byPath = new Map(fields.map((c) => [c.field.path, c.field]));
|
|
176
|
+
for (const { field } of fields) {
|
|
177
|
+
const info = field.valueHelpInfo;
|
|
178
|
+
if (!info?.fill && !info?.hostFilter) continue;
|
|
179
|
+
const dot = field.path.lastIndexOf(".");
|
|
180
|
+
const parent = dot < 0 ? "" : field.path.slice(0, dot + 1);
|
|
181
|
+
const hostFilter = parent && info.hostFilter ? info.hostFilter.map((h) => ({
|
|
182
|
+
...h,
|
|
183
|
+
local: parent + h.local
|
|
184
|
+
})) : info.hostFilter;
|
|
185
|
+
const fill = info.fill?.map((f) => parent ? {
|
|
186
|
+
...f,
|
|
187
|
+
local: parent + f.local
|
|
188
|
+
} : f).filter(({ local }) => {
|
|
189
|
+
const sibling = byPath.get(local);
|
|
190
|
+
return !!sibling && !sibling.derived && getFieldMeta(sibling.prop, "meta.readonly") === void 0 && !isNavRelation(sibling.prop);
|
|
191
|
+
});
|
|
192
|
+
if (!parent && fill?.length === info.fill?.length) continue;
|
|
193
|
+
const { fill: _fill, hostFilter: _hostFilter, ...rest } = info;
|
|
194
|
+
field.valueHelpInfo = {
|
|
195
|
+
...rest,
|
|
196
|
+
...hostFilter && { hostFilter },
|
|
197
|
+
...fill && fill.length > 0 && { fill }
|
|
198
|
+
};
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
/**
|
|
165
202
|
* Creates a FormFieldDef from any ATScript annotated type. `edit`: the form
|
|
166
203
|
* edits a stored row (`CreateFormDefOptions.mode`).
|
|
167
204
|
*
|
package/dist/form/diff.cjs
CHANGED
|
@@ -43,7 +43,9 @@ function buildFormDiff(def, baseline, current, opts) {
|
|
|
43
43
|
} else diffLeafRoot(def, baseline, current, changes, patch);
|
|
44
44
|
if ((opts?.cas ?? true) && versionColumn && Object.keys(patch).length > 0) {
|
|
45
45
|
const baselineVersion = require_path_utils.getByPath(baseline, versionColumn);
|
|
46
|
-
if (
|
|
46
|
+
if (def.flatMap.get(versionColumn)?.metadata.has("db.column.version.token")) {
|
|
47
|
+
if (typeof baselineVersion === "string" && baselineVersion !== "" && Object.keys(patch).some((key) => !isNavKey(def, key))) patch.$cas = { [versionColumn]: baselineVersion };
|
|
48
|
+
} else if (typeof baselineVersion === "number" && Number.isInteger(baselineVersion)) patch.$cas = { [versionColumn]: baselineVersion };
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
isDirty: changes.length > 0,
|
|
@@ -51,6 +53,11 @@ function buildFormDiff(def, baseline, current, opts) {
|
|
|
51
53
|
patch
|
|
52
54
|
};
|
|
53
55
|
}
|
|
56
|
+
/** Whether the top-level patch key `key` is a navigation field (related rows, a nested write). */
|
|
57
|
+
function isNavKey(def, key) {
|
|
58
|
+
const prop = def.flatMap.get(key);
|
|
59
|
+
return prop !== void 0 && (0, _atscript_db_validator.isNavRelation)(prop);
|
|
60
|
+
}
|
|
54
61
|
/**
|
|
55
62
|
* Diffs a list of sibling fields. `prefix` is the dot-path of the parent
|
|
56
63
|
* context relative to the form root (used only for the change list `path`);
|
package/dist/form/diff.d.cts
CHANGED
|
@@ -26,8 +26,11 @@ interface FormDiffOptions {
|
|
|
26
26
|
* Optimistic-concurrency control. When `true` (default), a top-level
|
|
27
27
|
* `$cas: { [versionColumn]: baselineVersion }` sibling is auto-included in
|
|
28
28
|
* the patch whenever the form has a `@db.column.version` column AND the
|
|
29
|
-
* patch is non-empty AND a baseline version value exists
|
|
30
|
-
*
|
|
29
|
+
* patch is non-empty AND a baseline version value exists (an integer, or —
|
|
30
|
+
* since 0.1.190, on a `@db.column.version.token` column — a non-empty
|
|
31
|
+
* string). On a token column a patch that changes only navigation fields
|
|
32
|
+
* (relation data) carries no `$cas`: the server refuses that combination.
|
|
33
|
+
* `false` suppresses it entirely.
|
|
31
34
|
*
|
|
32
35
|
* Independent of `$cas`, the `@db.column.version` column is ALWAYS excluded
|
|
33
36
|
* from the SET diff: it is server-managed, and a direct write to it is
|
package/dist/form/diff.d.mts
CHANGED
|
@@ -26,8 +26,11 @@ interface FormDiffOptions {
|
|
|
26
26
|
* Optimistic-concurrency control. When `true` (default), a top-level
|
|
27
27
|
* `$cas: { [versionColumn]: baselineVersion }` sibling is auto-included in
|
|
28
28
|
* the patch whenever the form has a `@db.column.version` column AND the
|
|
29
|
-
* patch is non-empty AND a baseline version value exists
|
|
30
|
-
*
|
|
29
|
+
* patch is non-empty AND a baseline version value exists (an integer, or —
|
|
30
|
+
* since 0.1.190, on a `@db.column.version.token` column — a non-empty
|
|
31
|
+
* string). On a token column a patch that changes only navigation fields
|
|
32
|
+
* (relation data) carries no `$cas`: the server refuses that combination.
|
|
33
|
+
* `false` suppresses it entirely.
|
|
31
34
|
*
|
|
32
35
|
* Independent of `$cas`, the `@db.column.version` column is ALWAYS excluded
|
|
33
36
|
* from the SET diff: it is server-managed, and a direct write to it is
|
package/dist/form/diff.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { getByPath, isPlainObject } from "./path-utils.mjs";
|
|
|
5
5
|
import { hasNestedSkippedNavFields, omitSkippedNavFields } from "./skipped-nav.mjs";
|
|
6
6
|
import { findVersionColumn } from "./create-form-def.mjs";
|
|
7
7
|
import { defineAnnotatedType } from "@atscript/typescript/utils";
|
|
8
|
-
import { mergeStrategyPaths } from "@atscript/db/validator";
|
|
8
|
+
import { isNavRelation, mergeStrategyPaths } from "@atscript/db/validator";
|
|
9
9
|
//#region src/form/diff.ts
|
|
10
10
|
/**
|
|
11
11
|
* Diffs a form's `current` data against its `baseline` snapshot, producing both
|
|
@@ -43,7 +43,9 @@ function buildFormDiff(def, baseline, current, opts) {
|
|
|
43
43
|
} else diffLeafRoot(def, baseline, current, changes, patch);
|
|
44
44
|
if ((opts?.cas ?? true) && versionColumn && Object.keys(patch).length > 0) {
|
|
45
45
|
const baselineVersion = getByPath(baseline, versionColumn);
|
|
46
|
-
if (
|
|
46
|
+
if (def.flatMap.get(versionColumn)?.metadata.has("db.column.version.token")) {
|
|
47
|
+
if (typeof baselineVersion === "string" && baselineVersion !== "" && Object.keys(patch).some((key) => !isNavKey(def, key))) patch.$cas = { [versionColumn]: baselineVersion };
|
|
48
|
+
} else if (typeof baselineVersion === "number" && Number.isInteger(baselineVersion)) patch.$cas = { [versionColumn]: baselineVersion };
|
|
47
49
|
}
|
|
48
50
|
return {
|
|
49
51
|
isDirty: changes.length > 0,
|
|
@@ -51,6 +53,11 @@ function buildFormDiff(def, baseline, current, opts) {
|
|
|
51
53
|
patch
|
|
52
54
|
};
|
|
53
55
|
}
|
|
56
|
+
/** Whether the top-level patch key `key` is a navigation field (related rows, a nested write). */
|
|
57
|
+
function isNavKey(def, key) {
|
|
58
|
+
const prop = def.flatMap.get(key);
|
|
59
|
+
return prop !== void 0 && isNavRelation(prop);
|
|
60
|
+
}
|
|
54
61
|
/**
|
|
55
62
|
* Diffs a list of sibling fields. `prefix` is the dot-path of the parent
|
|
56
63
|
* context relative to the form root (used only for the change list `path`);
|
|
@@ -6,7 +6,7 @@ let _atscript_db_validator = require("@atscript/db/validator");
|
|
|
6
6
|
//#region src/form/skipped-nav.ts
|
|
7
7
|
/**
|
|
8
8
|
* Whether a form leaves this prop out: a navigation field (`@db.rel.from` /
|
|
9
|
-
* `.to` / `.via`) without a `@ui.form.*` annotation of its own. Navigation
|
|
9
|
+
* `.to` / `.via` / `.store`) without a `@ui.form.*` annotation of its own. Navigation
|
|
10
10
|
* fields hold related rows (loaded with `$with`), not data the row's own form
|
|
11
11
|
* edits, and a two-way pair points back at the form's own type. Annotating one
|
|
12
12
|
* (`@ui.form.order`, `@ui.form.component`, …) opts it in.
|
|
@@ -6,7 +6,7 @@ import { isNavRelation } from "@atscript/db/validator";
|
|
|
6
6
|
//#region src/form/skipped-nav.ts
|
|
7
7
|
/**
|
|
8
8
|
* Whether a form leaves this prop out: a navigation field (`@db.rel.from` /
|
|
9
|
-
* `.to` / `.via`) without a `@ui.form.*` annotation of its own. Navigation
|
|
9
|
+
* `.to` / `.via` / `.store`) without a `@ui.form.*` annotation of its own. Navigation
|
|
10
10
|
* fields hold related rows (loaded with `$with`), not data the row's own form
|
|
11
11
|
* edits, and a two-way pair points back at the form's own type. Annotating one
|
|
12
12
|
* (`@ui.form.order`, `@ui.form.component`, …) opts it in.
|
package/dist/index.cjs
CHANGED
|
@@ -15,9 +15,12 @@ const require_dict_paths = require("./value-help/dict-paths.cjs");
|
|
|
15
15
|
const require_resolve_options = require("./value-help/resolve-options.cjs");
|
|
16
16
|
const require_str = require("./shared/str.cjs");
|
|
17
17
|
const require_value_help_client = require("./value-help/value-help-client.cjs");
|
|
18
|
+
const require_scope = require("./value-help/scope.cjs");
|
|
19
|
+
const require_options = require("./value-help/options.cjs");
|
|
18
20
|
const require_distinct_client = require("./value-help/distinct-client.cjs");
|
|
19
21
|
const require_client_factory = require("./client-factory.cjs");
|
|
20
22
|
const require_measurement = require("./form/measurement.cjs");
|
|
23
|
+
const require_value_label = require("./shared/value-label.cjs");
|
|
21
24
|
const require_create_table_def = require("./table/create-table-def.cjs");
|
|
22
25
|
const require_meta_cache = require("./shared/meta-cache.cjs");
|
|
23
26
|
const require_resolve = require("./value-help/resolve.cjs");
|
|
@@ -120,10 +123,13 @@ exports.UI_TABLE_STYLES = require_annotation_keys.UI_TABLE_STYLES;
|
|
|
120
123
|
exports.UI_TABLE_TYPE = require_annotation_keys.UI_TABLE_TYPE;
|
|
121
124
|
exports.UI_TABLE_WIDTH = require_annotation_keys.UI_TABLE_WIDTH;
|
|
122
125
|
exports.UI_TYPE = require_annotation_keys.UI_TYPE;
|
|
126
|
+
exports.UI_VALUE_LABEL = require_annotation_keys.UI_VALUE_LABEL;
|
|
127
|
+
exports.VALUE_HELP_OPTIONS_CAP = require_options.VALUE_HELP_OPTIONS_CAP;
|
|
123
128
|
exports.ValueHelpClient = require_value_help_client.ValueHelpClient;
|
|
124
129
|
exports.WF_ACTION_WITH_DATA = require_annotation_keys.WF_ACTION_WITH_DATA;
|
|
125
130
|
exports.activateUiTexts = require_ui_texts.activateUiTexts;
|
|
126
131
|
exports.applyFormChanges = require_apply.applyFormChanges;
|
|
132
|
+
exports.arrangeText = require_value_label.arrangeText;
|
|
127
133
|
exports.asArray = require_field_resolver.asArray;
|
|
128
134
|
exports.buildDescendantErrorCounts = require_error_utils.buildDescendantErrorCounts;
|
|
129
135
|
exports.buildFormDiff = require_diff.buildFormDiff;
|
|
@@ -231,3 +237,8 @@ exports.unionVariantChanged = require_union_detect.unionVariantChanged;
|
|
|
231
237
|
exports.userText = require_model_texts.userText;
|
|
232
238
|
exports.validatorErrorsToMap = require_error_utils.validatorErrorsToMap;
|
|
233
239
|
exports.valueHelpDictPaths = require_dict_paths.valueHelpDictPaths;
|
|
240
|
+
exports.valueHelpFills = require_scope.valueHelpFills;
|
|
241
|
+
exports.valueHelpOptions = require_options.valueHelpOptions;
|
|
242
|
+
exports.valueHelpScope = require_scope.valueHelpScope;
|
|
243
|
+
exports.valueHelpSelect = require_value_help_client.valueHelpSelect;
|
|
244
|
+
exports.valueLabelOf = require_value_label.valueLabelOf;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.cjs";
|
|
1
|
+
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, UI_VALUE_LABEL, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.cjs";
|
|
2
2
|
import { TFormEntryOptions, ValueHelpInfo } from "./value-help/types.cjs";
|
|
3
3
|
import { FormArrayFieldDef, FormDef, FormFieldDef, FormObjectFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, TFormAction, isArrayField, isObjectField, isTupleField, isUnionField } from "./form/types.cjs";
|
|
4
4
|
import { CreateFormDefOptions, buildUnionVariants, createFormDef } from "./form/create-form-def.cjs";
|
|
@@ -6,15 +6,18 @@ import { FormActionInfo, getDeclaredFormActions } from "./form/form-actions.cjs"
|
|
|
6
6
|
import { UserTextT, deserializeServedType, fieldText, isServedType, markServedType, userText } from "./i18n/model-texts.cjs";
|
|
7
7
|
import { FieldResolver, StaticFieldResolver, TResolveOptions, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.cjs";
|
|
8
8
|
import { ClientFactory, ClientFactoryOptions, TypedClientFactory, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.cjs";
|
|
9
|
+
import { ValueLabel, ValueLabelArrangement, arrangeText, valueLabelOf } from "./shared/value-label.cjs";
|
|
9
10
|
import { ColumnDef, ColumnValueKind, FieldMeta, MetaResponse, PaginationControl, RelationInfo, SearchIndexInfo, SortControl, TableActionsModel, TableDef, TableQueryState } from "./table/types.cjs";
|
|
10
11
|
import { UiT, UiTextParams, UiTexts, UiTranslate, activateUiTexts, createUiTexts, getUiTexts, onUiLocaleChange, setUiLocale } from "./i18n/ui-texts.cjs";
|
|
11
12
|
import { MetaCacheEntry, MetaEntryOptions, createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.cjs";
|
|
12
13
|
import { ResolvedValueHelp, resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.cjs";
|
|
13
|
-
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl } from "./value-help/value-help-client.cjs";
|
|
14
|
+
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.cjs";
|
|
14
15
|
import { valueHelpDictPaths } from "./value-help/dict-paths.cjs";
|
|
15
16
|
import { DEFAULT_BOOLEAN_LABELS, extractFieldLiteralOptions, extractLiteralOptions, isPureLiteralUnion } from "./value-help/extract-literals.cjs";
|
|
16
17
|
import { extractValueHelp } from "./value-help/extract-ref.cjs";
|
|
17
18
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.cjs";
|
|
19
|
+
import { ValueHelpFillWrite, ValueHelpScope, valueHelpFills, valueHelpScope } from "./value-help/scope.cjs";
|
|
20
|
+
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.cjs";
|
|
18
21
|
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.cjs";
|
|
19
22
|
import { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, setByPath } from "./form/path-utils.cjs";
|
|
20
23
|
import { CloneUnwrap, deepClone } from "./form/clone.cjs";
|
|
@@ -36,5 +39,5 @@ import { escapeRegex, str } from "./shared/str.cjs";
|
|
|
36
39
|
import { getColumn, getFilterableColumns, getSortableColumns } from "./table/column-resolver.cjs";
|
|
37
40
|
import { navigateHrefFor } from "./table/navigate-href.cjs";
|
|
38
41
|
import { TModelRoute, buildModelRoutes } from "./nav/model-routes.cjs";
|
|
39
|
-
import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
40
|
-
export { type ClientFactory, type ClientFactoryOptions, 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_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, 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 FormValidator, 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 MetaEntryOptions, 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, type TypedClientFactory, 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_FORM_VALIDATE_ERROR_CODE, 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, type UiT, type UiTextParams, type UiTexts, type UiTranslate, type UserTextT, ValueHelpClient, type ValueHelpInfo, type ValueHelpResult, type ValueHelpSearchOptions, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths };
|
|
42
|
+
import { ClientLike, TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
43
|
+
export { type ClientFactory, type ClientFactoryOptions, type ClientLike, 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_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, 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 FormValidator, 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 MetaEntryOptions, 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, type TypedClientFactory, 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_FORM_VALIDATE_ERROR_CODE, 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, UI_VALUE_LABEL, type UiT, type UiTextParams, type UiTexts, type UiTranslate, type UserTextT, VALUE_HELP_OPTIONS_CAP, ValueHelpClient, type ValueHelpFillWrite, type ValueHelpInfo, type ValueHelpResult, type ValueHelpScope, type ValueHelpSearchOptions, type ValueLabel, type ValueLabelArrangement, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, arrangeText, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.mjs";
|
|
1
|
+
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, UI_VALUE_LABEL, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.mjs";
|
|
2
2
|
import { TFormEntryOptions, ValueHelpInfo } from "./value-help/types.mjs";
|
|
3
3
|
import { FormArrayFieldDef, FormDef, FormFieldDef, FormObjectFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, TFormAction, isArrayField, isObjectField, isTupleField, isUnionField } from "./form/types.mjs";
|
|
4
4
|
import { CreateFormDefOptions, buildUnionVariants, createFormDef } from "./form/create-form-def.mjs";
|
|
@@ -6,15 +6,18 @@ import { FormActionInfo, getDeclaredFormActions } from "./form/form-actions.mjs"
|
|
|
6
6
|
import { UserTextT, deserializeServedType, fieldText, isServedType, markServedType, userText } from "./i18n/model-texts.mjs";
|
|
7
7
|
import { FieldResolver, StaticFieldResolver, TResolveOptions, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.mjs";
|
|
8
8
|
import { ClientFactory, ClientFactoryOptions, TypedClientFactory, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.mjs";
|
|
9
|
+
import { ValueLabel, ValueLabelArrangement, arrangeText, valueLabelOf } from "./shared/value-label.mjs";
|
|
9
10
|
import { ColumnDef, ColumnValueKind, FieldMeta, MetaResponse, PaginationControl, RelationInfo, SearchIndexInfo, SortControl, TableActionsModel, TableDef, TableQueryState } from "./table/types.mjs";
|
|
10
11
|
import { UiT, UiTextParams, UiTexts, UiTranslate, activateUiTexts, createUiTexts, getUiTexts, onUiLocaleChange, setUiLocale } from "./i18n/ui-texts.mjs";
|
|
11
12
|
import { MetaCacheEntry, MetaEntryOptions, createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.mjs";
|
|
12
13
|
import { ResolvedValueHelp, resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.mjs";
|
|
13
|
-
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl } from "./value-help/value-help-client.mjs";
|
|
14
|
+
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.mjs";
|
|
14
15
|
import { valueHelpDictPaths } from "./value-help/dict-paths.mjs";
|
|
15
16
|
import { DEFAULT_BOOLEAN_LABELS, extractFieldLiteralOptions, extractLiteralOptions, isPureLiteralUnion } from "./value-help/extract-literals.mjs";
|
|
16
17
|
import { extractValueHelp } from "./value-help/extract-ref.mjs";
|
|
17
18
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.mjs";
|
|
19
|
+
import { ValueHelpFillWrite, ValueHelpScope, valueHelpFills, valueHelpScope } from "./value-help/scope.mjs";
|
|
20
|
+
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.mjs";
|
|
18
21
|
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.mjs";
|
|
19
22
|
import { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, setByPath } from "./form/path-utils.mjs";
|
|
20
23
|
import { CloneUnwrap, deepClone } from "./form/clone.mjs";
|
|
@@ -36,5 +39,5 @@ import { escapeRegex, str } from "./shared/str.mjs";
|
|
|
36
39
|
import { getColumn, getFilterableColumns, getSortableColumns } from "./table/column-resolver.mjs";
|
|
37
40
|
import { navigateHrefFor } from "./table/navigate-href.mjs";
|
|
38
41
|
import { TModelRoute, buildModelRoutes } from "./nav/model-routes.mjs";
|
|
39
|
-
import { TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
40
|
-
export { type ClientFactory, type ClientFactoryOptions, 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_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, 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 FormValidator, 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 MetaEntryOptions, 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, type TypedClientFactory, 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_FORM_VALIDATE_ERROR_CODE, 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, type UiT, type UiTextParams, type UiTexts, type UiTranslate, type UserTextT, ValueHelpClient, type ValueHelpInfo, type ValueHelpResult, type ValueHelpSearchOptions, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths };
|
|
42
|
+
import { ClientLike, TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
43
|
+
export { type ClientFactory, type ClientFactoryOptions, type ClientLike, 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_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, type DecimalParts, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, 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 FormValidator, 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 MetaEntryOptions, 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, type TypedClientFactory, 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_FORM_VALIDATE_ERROR_CODE, 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, UI_VALUE_LABEL, type UiT, type UiTextParams, type UiTexts, type UiTranslate, type UserTextT, VALUE_HELP_OPTIONS_CAP, ValueHelpClient, type ValueHelpFillWrite, type ValueHelpInfo, type ValueHelpResult, type ValueHelpScope, type ValueHelpSearchOptions, type ValueLabel, type ValueLabelArrangement, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, arrangeText, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
package/dist/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.mjs";
|
|
1
|
+
import { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, EXPECT_MAX_LENGTH, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, 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, UI_VALUE_LABEL, WF_ACTION_WITH_DATA } from "./shared/annotation-keys.mjs";
|
|
2
2
|
import { isArrayField, isObjectField, isTupleField, isUnionField } from "./form/types.mjs";
|
|
3
3
|
import { deserializeServedType, fieldText, isServedType, markServedType, userText } from "./i18n/model-texts.mjs";
|
|
4
4
|
import { StaticFieldResolver, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.mjs";
|
|
@@ -13,10 +13,13 @@ import { getDeclaredFormActions } from "./form/form-actions.mjs";
|
|
|
13
13
|
import { valueHelpDictPaths } from "./value-help/dict-paths.mjs";
|
|
14
14
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.mjs";
|
|
15
15
|
import { escapeRegex, str } from "./shared/str.mjs";
|
|
16
|
-
import { ValueHelpClient, invalidateValueHelpCache, setValueHelpCacheTtl } from "./value-help/value-help-client.mjs";
|
|
16
|
+
import { ValueHelpClient, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.mjs";
|
|
17
|
+
import { valueHelpFills, valueHelpScope } from "./value-help/scope.mjs";
|
|
18
|
+
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.mjs";
|
|
17
19
|
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.mjs";
|
|
18
20
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.mjs";
|
|
19
21
|
import { extractMeasurement } from "./form/measurement.mjs";
|
|
22
|
+
import { arrangeText, valueLabelOf } from "./shared/value-label.mjs";
|
|
20
23
|
import { createTableDef } from "./table/create-table-def.mjs";
|
|
21
24
|
import { createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.mjs";
|
|
22
25
|
import { resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.mjs";
|
|
@@ -34,4 +37,4 @@ import { NUMERIC_VALUE_KINDS, optionValue } from "./table/value-kind.mjs";
|
|
|
34
37
|
import { getColumn, getFilterableColumns, getSortableColumns } from "./table/column-resolver.mjs";
|
|
35
38
|
import { navigateHrefFor } from "./table/navigate-href.mjs";
|
|
36
39
|
import { buildModelRoutes } from "./nav/model-routes.mjs";
|
|
37
|
-
export { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, DEFAULT_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, NUMERIC_VALUE_KINDS, StaticFieldResolver, 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_FORM_VALIDATE_ERROR_CODE, 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, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths };
|
|
40
|
+
export { DB_AMOUNT_CURRENCY, DB_AMOUNT_CURRENCY_REF, DB_COLUMN_PRECISION, DB_HTTP_PATH, DB_REL_FK, DB_UNIT, DB_UNIT_REF, DEFAULT_BOOLEAN_LABELS, DEFAULT_COL_SPAN, DEFAULT_ROW_SPAN, EXPECT_MAX_LENGTH, FORM_ERROR_KEY, META_DEFAULT, META_DESCRIPTION, META_ID, META_LABEL, META_READONLY, META_REQUIRED, META_SENSITIVE, NUMERIC_VALUE_KINDS, StaticFieldResolver, 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_FORM_VALIDATE_ERROR_CODE, 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, UI_VALUE_LABEL, VALUE_HELP_OPTIONS_CAP, ValueHelpClient, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, arrangeText, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, collectDirtyPaths, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
package/dist/messages.cjs
CHANGED
|
@@ -55,6 +55,9 @@ const AS_UI_MESSAGES = Object.freeze({
|
|
|
55
55
|
UI_FORM_REMOVE_VALUE: "Remove {value}",
|
|
56
56
|
UI_FORM_NO_MATCHES: "No matches",
|
|
57
57
|
UI_FORM_NO_RESULTS: "No results",
|
|
58
|
+
UI_FORM_SEE_ALL: "See all",
|
|
59
|
+
UI_FORM_BROWSE: "Browse {field}",
|
|
60
|
+
UI_FORM_PICK_HINT: "Double-click a row or press Enter to pick it.",
|
|
58
61
|
UI_FORM_SWITCH: "Switch",
|
|
59
62
|
UI_FORM_SWITCH_TYPE: "Switch type — current: {type}",
|
|
60
63
|
UI_FORM_DECIMALS_OF: "decimals of {field}",
|
package/dist/messages.d.cts
CHANGED
|
@@ -54,6 +54,9 @@ declare const AS_UI_MESSAGES: Readonly<{
|
|
|
54
54
|
UI_FORM_REMOVE_VALUE: "Remove {value}";
|
|
55
55
|
UI_FORM_NO_MATCHES: "No matches";
|
|
56
56
|
UI_FORM_NO_RESULTS: "No results";
|
|
57
|
+
UI_FORM_SEE_ALL: "See all";
|
|
58
|
+
UI_FORM_BROWSE: "Browse {field}";
|
|
59
|
+
UI_FORM_PICK_HINT: "Double-click a row or press Enter to pick it.";
|
|
57
60
|
UI_FORM_SWITCH: "Switch";
|
|
58
61
|
UI_FORM_SWITCH_TYPE: "Switch type — current: {type}";
|
|
59
62
|
UI_FORM_DECIMALS_OF: "decimals of {field}";
|
package/dist/messages.d.mts
CHANGED
|
@@ -54,6 +54,9 @@ declare const AS_UI_MESSAGES: Readonly<{
|
|
|
54
54
|
UI_FORM_REMOVE_VALUE: "Remove {value}";
|
|
55
55
|
UI_FORM_NO_MATCHES: "No matches";
|
|
56
56
|
UI_FORM_NO_RESULTS: "No results";
|
|
57
|
+
UI_FORM_SEE_ALL: "See all";
|
|
58
|
+
UI_FORM_BROWSE: "Browse {field}";
|
|
59
|
+
UI_FORM_PICK_HINT: "Double-click a row or press Enter to pick it.";
|
|
57
60
|
UI_FORM_SWITCH: "Switch";
|
|
58
61
|
UI_FORM_SWITCH_TYPE: "Switch type — current: {type}";
|
|
59
62
|
UI_FORM_DECIMALS_OF: "decimals of {field}";
|
package/dist/messages.mjs
CHANGED
|
@@ -54,6 +54,9 @@ const AS_UI_MESSAGES = Object.freeze({
|
|
|
54
54
|
UI_FORM_REMOVE_VALUE: "Remove {value}",
|
|
55
55
|
UI_FORM_NO_MATCHES: "No matches",
|
|
56
56
|
UI_FORM_NO_RESULTS: "No results",
|
|
57
|
+
UI_FORM_SEE_ALL: "See all",
|
|
58
|
+
UI_FORM_BROWSE: "Browse {field}",
|
|
59
|
+
UI_FORM_PICK_HINT: "Double-click a row or press Enter to pick it.",
|
|
57
60
|
UI_FORM_SWITCH: "Switch",
|
|
58
61
|
UI_FORM_SWITCH_TYPE: "Switch type — current: {type}",
|
|
59
62
|
UI_FORM_DECIMALS_OF: "decimals of {field}",
|