@atscript/ui 0.1.206 → 0.1.207
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/form/create-form-def.cjs +3 -6
- package/dist/form/create-form-def.mjs +1 -4
- package/dist/form/path-utils.cjs +10 -0
- package/dist/form/path-utils.d.cts +8 -1
- package/dist/form/path-utils.d.mts +8 -1
- package/dist/form/path-utils.mjs +10 -1
- package/dist/index.cjs +18 -3
- package/dist/index.d.cts +8 -5
- package/dist/index.d.mts +8 -5
- package/dist/index.mjs +11 -8
- package/dist/plugin/annotations.cjs +33 -14
- package/dist/plugin/annotations.mjs +34 -15
- package/dist/plugin/value-help-validation.cjs +26 -6
- package/dist/plugin/value-help-validation.mjs +26 -7
- package/dist/shared/annotation-keys.cjs +3 -0
- package/dist/shared/annotation-keys.mjs +3 -1
- package/dist/shared/meta-cache.cjs +5 -4
- package/dist/shared/meta-cache.d.cts +3 -2
- package/dist/shared/meta-cache.d.mts +3 -2
- package/dist/shared/meta-cache.mjs +5 -4
- package/dist/shared/value-label.cjs +14 -2
- package/dist/shared/value-label.d.cts +23 -6
- package/dist/shared/value-label.d.mts +23 -6
- package/dist/shared/value-label.mjs +14 -3
- package/dist/table/create-table-def.cjs +7 -1
- package/dist/table/create-table-def.mjs +7 -2
- package/dist/table/types.d.cts +1 -1
- package/dist/table/types.d.mts +1 -1
- package/dist/value-help/client-store.cjs +43 -0
- package/dist/value-help/client-store.d.mts +1 -0
- package/dist/value-help/client-store.mjs +40 -0
- package/dist/value-help/display-value.cjs +30 -0
- package/dist/value-help/display-value.d.cts +45 -0
- package/dist/value-help/display-value.d.mts +45 -0
- package/dist/value-help/display-value.mjs +30 -0
- package/dist/value-help/extract-ref.cjs +15 -4
- package/dist/value-help/extract-ref.d.cts +6 -1
- package/dist/value-help/extract-ref.d.mts +6 -1
- package/dist/value-help/extract-ref.mjs +16 -6
- package/dist/value-help/index.d.mts +6 -3
- package/dist/value-help/options.cjs +49 -8
- package/dist/value-help/options.d.cts +41 -4
- package/dist/value-help/options.d.mts +41 -4
- package/dist/value-help/options.mjs +47 -9
- package/dist/value-help/resolve-options.cjs +9 -7
- package/dist/value-help/resolve-options.d.cts +8 -9
- package/dist/value-help/resolve-options.d.mts +8 -9
- package/dist/value-help/resolve-options.mjs +9 -7
- package/dist/value-help/resolve.cjs +39 -8
- package/dist/value-help/resolve.d.cts +22 -5
- package/dist/value-help/resolve.d.mts +22 -5
- package/dist/value-help/resolve.mjs +40 -9
- package/dist/value-help/source.cjs +72 -0
- package/dist/value-help/source.d.cts +55 -0
- package/dist/value-help/source.d.mts +55 -0
- package/dist/value-help/source.mjs +71 -0
- package/dist/value-help/texts.cjs +315 -0
- package/dist/value-help/texts.d.cts +53 -0
- package/dist/value-help/texts.d.mts +53 -0
- package/dist/value-help/texts.mjs +310 -0
- package/dist/value-help/types.d.cts +10 -0
- package/dist/value-help/types.d.mts +10 -0
- package/dist/value-help/value-help-client.cjs +21 -19
- package/dist/value-help/value-help-client.d.cts +9 -5
- package/dist/value-help/value-help-client.d.mts +9 -5
- package/dist/value-help/value-help-client.mjs +19 -17
- package/package.json +10 -10
|
@@ -5,6 +5,7 @@ const require_messages = require("../messages.cjs");
|
|
|
5
5
|
const require_extract_literals = require("../value-help/extract-literals.cjs");
|
|
6
6
|
const require_extract_ref = require("../value-help/extract-ref.cjs");
|
|
7
7
|
const require_db_column = require("./db-column.cjs");
|
|
8
|
+
const require_path_utils = require("./path-utils.cjs");
|
|
8
9
|
const require_skipped_nav = require("./skipped-nav.cjs");
|
|
9
10
|
let _atscript_typescript_utils = require("@atscript/typescript/utils");
|
|
10
11
|
let _atscript_db_meta = require("@atscript/db/meta");
|
|
@@ -186,7 +187,7 @@ function markServerOwned(fields, type, metaFields) {
|
|
|
186
187
|
if (own.size === 0 && !metaFields) return;
|
|
187
188
|
const filled = /* @__PURE__ */ new Set();
|
|
188
189
|
for (const { field } of fields) {
|
|
189
|
-
const parent = parentPrefix(field.path);
|
|
190
|
+
const parent = require_path_utils.parentPrefix(field.path);
|
|
190
191
|
for (const f of field.valueHelpInfo?.fill ?? []) filled.add(parent + f.local);
|
|
191
192
|
}
|
|
192
193
|
for (const c of fields) {
|
|
@@ -224,10 +225,6 @@ function servedReadOnly(metaFields, path) {
|
|
|
224
225
|
function writtenByForm(field, filled) {
|
|
225
226
|
return filled.has(field.path) || require_field_resolver.getFieldMeta(field.prop, "ui.form.fn.value") !== void 0 || require_field_resolver.getFieldMeta(field.prop, "ui.form.fn.readonly") !== void 0;
|
|
226
227
|
}
|
|
227
|
-
/** The path of the object holding `path`, with its trailing dot — `""` at the top. */
|
|
228
|
-
function parentPrefix(path) {
|
|
229
|
-
return path.slice(0, path.lastIndexOf(".") + 1);
|
|
230
|
-
}
|
|
231
228
|
/**
|
|
232
229
|
* Scopes a binding's sibling names to the def (since 0.1.190). Host references
|
|
233
230
|
* (`hostFilter`) and fills (`@ui.valueHelp.fill`) name fields of the interface
|
|
@@ -244,7 +241,7 @@ function keepWritableFills(fields) {
|
|
|
244
241
|
for (const { field } of fields) {
|
|
245
242
|
const info = field.valueHelpInfo;
|
|
246
243
|
if (!info?.fill && !info?.hostFilter) continue;
|
|
247
|
-
const parent = parentPrefix(field.path);
|
|
244
|
+
const parent = require_path_utils.parentPrefix(field.path);
|
|
248
245
|
const hostFilter = parent && info.hostFilter ? info.hostFilter.map((h) => ({
|
|
249
246
|
...h,
|
|
250
247
|
local: parent + h.local
|
|
@@ -5,6 +5,7 @@ import { AS_UI_MESSAGES } from "../messages.mjs";
|
|
|
5
5
|
import { isPureLiteralUnion } from "../value-help/extract-literals.mjs";
|
|
6
6
|
import { extractValueHelp, isValueHelpPicker } from "../value-help/extract-ref.mjs";
|
|
7
7
|
import { columnHas, isDbDefaulted, soleValueMember } from "./db-column.mjs";
|
|
8
|
+
import { parentPrefix } from "./path-utils.mjs";
|
|
8
9
|
import { isSkippedNavField } from "./skipped-nav.mjs";
|
|
9
10
|
import { flattenAnnotatedType } from "@atscript/typescript/utils";
|
|
10
11
|
import { writableViewReadOnlyFields } from "@atscript/db/meta";
|
|
@@ -224,10 +225,6 @@ function servedReadOnly(metaFields, path) {
|
|
|
224
225
|
function writtenByForm(field, filled) {
|
|
225
226
|
return filled.has(field.path) || getFieldMeta(field.prop, "ui.form.fn.value") !== void 0 || getFieldMeta(field.prop, "ui.form.fn.readonly") !== void 0;
|
|
226
227
|
}
|
|
227
|
-
/** The path of the object holding `path`, with its trailing dot — `""` at the top. */
|
|
228
|
-
function parentPrefix(path) {
|
|
229
|
-
return path.slice(0, path.lastIndexOf(".") + 1);
|
|
230
|
-
}
|
|
231
228
|
/**
|
|
232
229
|
* Scopes a binding's sibling names to the def (since 0.1.190). Host references
|
|
233
230
|
* (`hostFilter`) and fills (`@ui.valueHelp.fill`) name fields of the interface
|
package/dist/form/path-utils.cjs
CHANGED
|
@@ -15,6 +15,15 @@ function joinPath(prefix, segment) {
|
|
|
15
15
|
return prefix ? `${prefix}.${segment}` : segment;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
+
* The path of the object holding `path`, with its trailing dot — `""` at the
|
|
19
|
+
* top: where a field's siblings are (`shipping.city` → `shipping.`).
|
|
20
|
+
*
|
|
21
|
+
* @internal Shared with `@atscript/vue-form`.
|
|
22
|
+
*/
|
|
23
|
+
function parentPrefix(path) {
|
|
24
|
+
return path.slice(0, path.lastIndexOf(".") + 1);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
18
27
|
* Gets a nested value by dot-separated path.
|
|
19
28
|
* Always dereferences `obj.value` first (form data is wrapped in `{ value: domainData }`).
|
|
20
29
|
* When `path` is empty, returns the root domain data (`obj.value`).
|
|
@@ -195,4 +204,5 @@ exports.detectUnionVariant = detectUnionVariant;
|
|
|
195
204
|
exports.getByPath = getByPath;
|
|
196
205
|
exports.isPlainObject = isPlainObject;
|
|
197
206
|
exports.joinPath = joinPath;
|
|
207
|
+
exports.parentPrefix = parentPrefix;
|
|
198
208
|
exports.setByPath = setByPath;
|
|
@@ -8,6 +8,13 @@ import { TAtscriptAnnotatedType, TAtscriptDataType } from "@atscript/typescript/
|
|
|
8
8
|
* returns the segment as-is (no leading/trailing dots).
|
|
9
9
|
*/
|
|
10
10
|
declare function joinPath(prefix: string, segment: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* The path of the object holding `path`, with its trailing dot — `""` at the
|
|
13
|
+
* top: where a field's siblings are (`shipping.city` → `shipping.`).
|
|
14
|
+
*
|
|
15
|
+
* @internal Shared with `@atscript/vue-form`.
|
|
16
|
+
*/
|
|
17
|
+
declare function parentPrefix(path: string): string;
|
|
11
18
|
/**
|
|
12
19
|
* Gets a nested value by dot-separated path.
|
|
13
20
|
* Always dereferences `obj.value` first (form data is wrapped in `{ value: domainData }`).
|
|
@@ -43,4 +50,4 @@ declare function createFormData<T extends TAtscriptAnnotatedType>(type: T, resol
|
|
|
43
50
|
};
|
|
44
51
|
declare function detectUnionVariant(value: unknown, variants: FormUnionVariant[]): number;
|
|
45
52
|
//#endregion
|
|
46
|
-
export { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, setByPath };
|
|
53
|
+
export { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, parentPrefix, setByPath };
|
|
@@ -8,6 +8,13 @@ import { TAtscriptAnnotatedType, TAtscriptDataType } from "@atscript/typescript/
|
|
|
8
8
|
* returns the segment as-is (no leading/trailing dots).
|
|
9
9
|
*/
|
|
10
10
|
declare function joinPath(prefix: string, segment: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* The path of the object holding `path`, with its trailing dot — `""` at the
|
|
13
|
+
* top: where a field's siblings are (`shipping.city` → `shipping.`).
|
|
14
|
+
*
|
|
15
|
+
* @internal Shared with `@atscript/vue-form`.
|
|
16
|
+
*/
|
|
17
|
+
declare function parentPrefix(path: string): string;
|
|
11
18
|
/**
|
|
12
19
|
* Gets a nested value by dot-separated path.
|
|
13
20
|
* Always dereferences `obj.value` first (form data is wrapped in `{ value: domainData }`).
|
|
@@ -43,4 +50,4 @@ declare function createFormData<T extends TAtscriptAnnotatedType>(type: T, resol
|
|
|
43
50
|
};
|
|
44
51
|
declare function detectUnionVariant(value: unknown, variants: FormUnionVariant[]): number;
|
|
45
52
|
//#endregion
|
|
46
|
-
export { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, setByPath };
|
|
53
|
+
export { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, parentPrefix, setByPath };
|
package/dist/form/path-utils.mjs
CHANGED
|
@@ -15,6 +15,15 @@ function joinPath(prefix, segment) {
|
|
|
15
15
|
return prefix ? `${prefix}.${segment}` : segment;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
|
+
* The path of the object holding `path`, with its trailing dot — `""` at the
|
|
19
|
+
* top: where a field's siblings are (`shipping.city` → `shipping.`).
|
|
20
|
+
*
|
|
21
|
+
* @internal Shared with `@atscript/vue-form`.
|
|
22
|
+
*/
|
|
23
|
+
function parentPrefix(path) {
|
|
24
|
+
return path.slice(0, path.lastIndexOf(".") + 1);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
18
27
|
* Gets a nested value by dot-separated path.
|
|
19
28
|
* Always dereferences `obj.value` first (form data is wrapped in `{ value: domainData }`).
|
|
20
29
|
* When `path` is empty, returns the root domain data (`obj.value`).
|
|
@@ -188,4 +197,4 @@ function detectUnionVariant(value, variants) {
|
|
|
188
197
|
return 0;
|
|
189
198
|
}
|
|
190
199
|
//#endregion
|
|
191
|
-
export { createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, isPlainObject, joinPath, setByPath };
|
|
200
|
+
export { createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, isPlainObject, joinPath, parentPrefix, setByPath };
|
package/dist/index.cjs
CHANGED
|
@@ -20,13 +20,16 @@ const require_measurement = require("./form/measurement.cjs");
|
|
|
20
20
|
const require_value_label = require("./shared/value-label.cjs");
|
|
21
21
|
const require_create_table_def = require("./table/create-table-def.cjs");
|
|
22
22
|
const require_value_kind = require("./table/value-kind.cjs");
|
|
23
|
-
const require_value_help_client = require("./value-help/value-help-client.cjs");
|
|
24
|
-
const require_scope = require("./value-help/scope.cjs");
|
|
25
23
|
const require_options = require("./value-help/options.cjs");
|
|
26
|
-
const require_distinct_client = require("./value-help/distinct-client.cjs");
|
|
27
24
|
const require_client_factory = require("./client-factory.cjs");
|
|
28
25
|
const require_meta_cache = require("./shared/meta-cache.cjs");
|
|
29
26
|
const require_resolve = require("./value-help/resolve.cjs");
|
|
27
|
+
const require_source = require("./value-help/source.cjs");
|
|
28
|
+
const require_texts = require("./value-help/texts.cjs");
|
|
29
|
+
const require_value_help_client = require("./value-help/value-help-client.cjs");
|
|
30
|
+
const require_scope = require("./value-help/scope.cjs");
|
|
31
|
+
const require_distinct_client = require("./value-help/distinct-client.cjs");
|
|
32
|
+
const require_display_value = require("./value-help/display-value.cjs");
|
|
30
33
|
const require_error_utils = require("./form/error-utils.cjs");
|
|
31
34
|
const require_validate = require("./form/validate.cjs");
|
|
32
35
|
const require_diff = require("./form/diff.cjs");
|
|
@@ -143,6 +146,7 @@ exports.buildFormRebase = require_rebase.buildFormRebase;
|
|
|
143
146
|
exports.buildGridClasses = require_grid.buildGridClasses;
|
|
144
147
|
exports.buildModelRoutes = require_model_routes.buildModelRoutes;
|
|
145
148
|
exports.buildUnionVariants = require_create_form_def.buildUnionVariants;
|
|
149
|
+
exports.codeOf = require_value_label.codeOf;
|
|
146
150
|
exports.coerceNumericText = require_value_kind.coerceNumericText;
|
|
147
151
|
exports.collectDirtyPaths = require_dirty.collectDirtyPaths;
|
|
148
152
|
Object.defineProperty(exports, "compareExact", {
|
|
@@ -164,6 +168,7 @@ exports.defaultResolver = require_field_resolver.defaultResolver;
|
|
|
164
168
|
exports.deleteByPath = require_path_utils.deleteByPath;
|
|
165
169
|
exports.deserializeServedType = require_model_texts.deserializeServedType;
|
|
166
170
|
exports.detectUnionVariant = require_path_utils.detectUnionVariant;
|
|
171
|
+
exports.displayValue = require_display_value.displayValue;
|
|
167
172
|
exports.emptiedValue = require_optional_mode.emptiedValue;
|
|
168
173
|
exports.enforceScale = require_decimal_format.enforceScale;
|
|
169
174
|
exports.escapeRegex = require_str.escapeRegex;
|
|
@@ -211,6 +216,8 @@ exports.isUnionField = require_types.isUnionField;
|
|
|
211
216
|
exports.iteratePathAncestors = require_error_utils.iteratePathAncestors;
|
|
212
217
|
exports.joinDecimalString = require_decimal_format.joinDecimalString;
|
|
213
218
|
exports.joinPath = require_path_utils.joinPath;
|
|
219
|
+
exports.listsDictionary = require_options.listsDictionary;
|
|
220
|
+
exports.loadValueHelpTexts = require_texts.loadValueHelpTexts;
|
|
214
221
|
exports.markServedType = require_model_texts.markServedType;
|
|
215
222
|
exports.mergeErrorMaps = require_error_utils.mergeErrorMaps;
|
|
216
223
|
exports.navigateHrefFor = require_navigate_href.navigateHrefFor;
|
|
@@ -220,10 +227,12 @@ exports.omitPaths = require_error_utils.omitPaths;
|
|
|
220
227
|
exports.omitSkippedNavFields = require_skipped_nav.omitSkippedNavFields;
|
|
221
228
|
exports.onMetaCacheReset = require_meta_cache.onMetaCacheReset;
|
|
222
229
|
exports.onUiLocaleChange = require_ui_texts.onUiLocaleChange;
|
|
230
|
+
exports.onValueHelpTexts = require_texts.onValueHelpTexts;
|
|
223
231
|
exports.optKey = require_resolve_options.optKey;
|
|
224
232
|
exports.optLabel = require_resolve_options.optLabel;
|
|
225
233
|
exports.optionLabel = require_resolve_options.optionLabel;
|
|
226
234
|
exports.optionValue = require_value_kind.optionValue;
|
|
235
|
+
exports.parentPrefix = require_path_utils.parentPrefix;
|
|
227
236
|
exports.parseColSpan = require_grid.parseColSpan;
|
|
228
237
|
exports.parseDecimalInput = require_decimal_format.parseDecimalInput;
|
|
229
238
|
exports.parseRowSpan = require_grid.parseRowSpan;
|
|
@@ -256,9 +265,15 @@ exports.str = require_str.str;
|
|
|
256
265
|
exports.unionVariantChanged = require_union_detect.unionVariantChanged;
|
|
257
266
|
exports.userText = require_model_texts.userText;
|
|
258
267
|
exports.validatorErrorsToMap = require_error_utils.validatorErrorsToMap;
|
|
268
|
+
exports.valueHelpColumns = require_source.valueHelpColumns;
|
|
259
269
|
exports.valueHelpDictPaths = require_dict_paths.valueHelpDictPaths;
|
|
270
|
+
exports.valueHelpDropdown = require_options.valueHelpDropdown;
|
|
260
271
|
exports.valueHelpFills = require_scope.valueHelpFills;
|
|
272
|
+
exports.valueHelpKey = require_extract_ref.valueHelpKey;
|
|
261
273
|
exports.valueHelpOptions = require_options.valueHelpOptions;
|
|
274
|
+
exports.valueHelpRowText = require_options.valueHelpRowText;
|
|
262
275
|
exports.valueHelpScope = require_scope.valueHelpScope;
|
|
263
276
|
exports.valueHelpSelect = require_value_help_client.valueHelpSelect;
|
|
277
|
+
exports.valueHelpSource = require_source.valueHelpSource;
|
|
278
|
+
exports.valueHelpText = require_texts.valueHelpText;
|
|
264
279
|
exports.valueLabelOf = require_value_label.valueLabelOf;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
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_OPTIONAL_MODE, 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_FILL, 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
|
+
import { ValueLabel, ValueLabelArrangement, ValueText, arrangeText, codeOf, valueLabelOf } from "./shared/value-label.cjs";
|
|
2
3
|
import { TFormEntryOptions, ValueHelpInfo } from "./value-help/types.cjs";
|
|
3
4
|
import { FormArrayFieldDef, FormDef, FormFieldDef, FormObjectFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, TFormAction, isArrayField, isObjectField, isTupleField, isUnionField } from "./form/types.cjs";
|
|
4
5
|
import { CreateFormDefOptions, buildUnionVariants, createFormDef } from "./form/create-form-def.cjs";
|
|
@@ -8,20 +9,22 @@ import { FormActionInfo, getDeclaredFormActions } from "./form/form-actions.cjs"
|
|
|
8
9
|
import { UserTextT, deserializeServedType, fieldText, isServedType, markServedType, userText } from "./i18n/model-texts.cjs";
|
|
9
10
|
import { FieldResolver, StaticFieldResolver, TResolveOptions, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.cjs";
|
|
10
11
|
import { ClientFactory, ClientFactoryOptions, TypedClientFactory, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.cjs";
|
|
11
|
-
import { ValueLabel, ValueLabelArrangement, arrangeText, valueLabelOf } from "./shared/value-label.cjs";
|
|
12
12
|
import { ColumnDef, ColumnValueKind, FieldMeta, MetaResponse, PaginationControl, RelationInfo, SearchIndexInfo, SortControl, TableActionsModel, TableDef, TableQueryState } from "./table/types.cjs";
|
|
13
13
|
import { UiT, UiTextParams, UiTexts, UiTranslate, activateUiTexts, createUiTexts, getUiTexts, onUiLocaleChange, setUiLocale } from "./i18n/ui-texts.cjs";
|
|
14
14
|
import { MetaCacheEntry, MetaEntryOptions, createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.cjs";
|
|
15
|
+
import { ValueHelpSource, ValueHelpSourceOptions, valueHelpColumns, valueHelpSource } from "./value-help/source.cjs";
|
|
15
16
|
import { ResolvedValueHelp, resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.cjs";
|
|
16
17
|
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.cjs";
|
|
17
18
|
import { valueHelpDictPaths } from "./value-help/dict-paths.cjs";
|
|
18
19
|
import { DEFAULT_BOOLEAN_LABELS, extractFieldLiteralOptions, extractLiteralOptions, isPureLiteralUnion } from "./value-help/extract-literals.cjs";
|
|
19
|
-
import { extractValueHelp } from "./value-help/extract-ref.cjs";
|
|
20
|
+
import { extractValueHelp, valueHelpKey } from "./value-help/extract-ref.cjs";
|
|
20
21
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.cjs";
|
|
21
22
|
import { ValueHelpFillWrite, ValueHelpScope, valueHelpFills, valueHelpScope } from "./value-help/scope.cjs";
|
|
22
|
-
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.cjs";
|
|
23
|
+
import { VALUE_HELP_OPTIONS_CAP, listsDictionary, valueHelpDropdown, valueHelpOptions, valueHelpRowText } from "./value-help/options.cjs";
|
|
23
24
|
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.cjs";
|
|
24
|
-
import {
|
|
25
|
+
import { ValueHelpTextOptions, loadValueHelpTexts, onValueHelpTexts, valueHelpText } from "./value-help/texts.cjs";
|
|
26
|
+
import { DisplayValueOptions, displayValue } from "./value-help/display-value.cjs";
|
|
27
|
+
import { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, parentPrefix, setByPath } from "./form/path-utils.cjs";
|
|
25
28
|
import { CloneUnwrap, deepClone } from "./form/clone.cjs";
|
|
26
29
|
import { FormValidator, TFieldValidatorOptions, TFormValidatorCallOptions, UI_FORM_VALIDATE_ERROR_CODE, createFieldValidator, getDefaultValidatorPlugins, getFormValidator, isContainerKind, setDefaultValidatorPlugins } from "./form/validate.cjs";
|
|
27
30
|
import { FormDiffOptions, FormDiffResult, FormFieldChange, buildFormDiff, deepEqual } from "./form/diff.cjs";
|
|
@@ -44,4 +47,4 @@ import { navigateHrefFor } from "./table/navigate-href.cjs";
|
|
|
44
47
|
import { TModelRoute, buildModelRoutes } from "./nav/model-routes.cjs";
|
|
45
48
|
import { ClientLike, TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
46
49
|
import { compareExact } from "@atscript/db/meta";
|
|
47
|
-
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 TOptionalMode, 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_OPTIONAL_MODE, 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_FILL, 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, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
|
50
|
+
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, type DisplayValueOptions, 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 TOptionalMode, 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_OPTIONAL_MODE, 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_FILL, 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 ValueHelpSource, type ValueHelpSourceOptions, type ValueHelpTextOptions, type ValueLabel, type ValueLabelArrangement, type ValueText, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, arrangeText, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, codeOf, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, displayValue, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, listsDictionary, loadValueHelpTexts, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, onValueHelpTexts, optKey, optLabel, optionLabel, optionValue, parentPrefix, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpColumns, valueHelpDictPaths, valueHelpDropdown, valueHelpFills, valueHelpKey, valueHelpOptions, valueHelpRowText, valueHelpScope, valueHelpSelect, valueHelpSource, valueHelpText, valueLabelOf };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
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_OPTIONAL_MODE, 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_FILL, 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
|
+
import { ValueLabel, ValueLabelArrangement, ValueText, arrangeText, codeOf, valueLabelOf } from "./shared/value-label.mjs";
|
|
2
3
|
import { TFormEntryOptions, ValueHelpInfo } from "./value-help/types.mjs";
|
|
3
4
|
import { FormArrayFieldDef, FormDef, FormFieldDef, FormObjectFieldDef, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, TFormAction, isArrayField, isObjectField, isTupleField, isUnionField } from "./form/types.mjs";
|
|
4
5
|
import { CreateFormDefOptions, buildUnionVariants, createFormDef } from "./form/create-form-def.mjs";
|
|
@@ -8,20 +9,22 @@ import { FormActionInfo, getDeclaredFormActions } from "./form/form-actions.mjs"
|
|
|
8
9
|
import { UserTextT, deserializeServedType, fieldText, isServedType, markServedType, userText } from "./i18n/model-texts.mjs";
|
|
9
10
|
import { FieldResolver, StaticFieldResolver, TResolveOptions, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.mjs";
|
|
10
11
|
import { ClientFactory, ClientFactoryOptions, TypedClientFactory, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.mjs";
|
|
11
|
-
import { ValueLabel, ValueLabelArrangement, arrangeText, valueLabelOf } from "./shared/value-label.mjs";
|
|
12
12
|
import { ColumnDef, ColumnValueKind, FieldMeta, MetaResponse, PaginationControl, RelationInfo, SearchIndexInfo, SortControl, TableActionsModel, TableDef, TableQueryState } from "./table/types.mjs";
|
|
13
13
|
import { UiT, UiTextParams, UiTexts, UiTranslate, activateUiTexts, createUiTexts, getUiTexts, onUiLocaleChange, setUiLocale } from "./i18n/ui-texts.mjs";
|
|
14
14
|
import { MetaCacheEntry, MetaEntryOptions, createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.mjs";
|
|
15
|
+
import { ValueHelpSource, ValueHelpSourceOptions, valueHelpColumns, valueHelpSource } from "./value-help/source.mjs";
|
|
15
16
|
import { ResolvedValueHelp, resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.mjs";
|
|
16
17
|
import { ValueHelpClient, ValueHelpResult, ValueHelpSearchOptions, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.mjs";
|
|
17
18
|
import { valueHelpDictPaths } from "./value-help/dict-paths.mjs";
|
|
18
19
|
import { DEFAULT_BOOLEAN_LABELS, extractFieldLiteralOptions, extractLiteralOptions, isPureLiteralUnion } from "./value-help/extract-literals.mjs";
|
|
19
|
-
import { extractValueHelp } from "./value-help/extract-ref.mjs";
|
|
20
|
+
import { extractValueHelp, valueHelpKey } from "./value-help/extract-ref.mjs";
|
|
20
21
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.mjs";
|
|
21
22
|
import { ValueHelpFillWrite, ValueHelpScope, valueHelpFills, valueHelpScope } from "./value-help/scope.mjs";
|
|
22
|
-
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.mjs";
|
|
23
|
+
import { VALUE_HELP_OPTIONS_CAP, listsDictionary, valueHelpDropdown, valueHelpOptions, valueHelpRowText } from "./value-help/options.mjs";
|
|
23
24
|
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.mjs";
|
|
24
|
-
import {
|
|
25
|
+
import { ValueHelpTextOptions, loadValueHelpTexts, onValueHelpTexts, valueHelpText } from "./value-help/texts.mjs";
|
|
26
|
+
import { DisplayValueOptions, displayValue } from "./value-help/display-value.mjs";
|
|
27
|
+
import { TFormValueResolver, createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, parentPrefix, setByPath } from "./form/path-utils.mjs";
|
|
25
28
|
import { CloneUnwrap, deepClone } from "./form/clone.mjs";
|
|
26
29
|
import { FormValidator, TFieldValidatorOptions, TFormValidatorCallOptions, UI_FORM_VALIDATE_ERROR_CODE, createFieldValidator, getDefaultValidatorPlugins, getFormValidator, isContainerKind, setDefaultValidatorPlugins } from "./form/validate.mjs";
|
|
27
30
|
import { FormDiffOptions, FormDiffResult, FormFieldChange, buildFormDiff, deepEqual } from "./form/diff.mjs";
|
|
@@ -44,4 +47,4 @@ import { navigateHrefFor } from "./table/navigate-href.mjs";
|
|
|
44
47
|
import { TModelRoute, buildModelRoutes } from "./nav/model-routes.mjs";
|
|
45
48
|
import { compareExact } from "@atscript/db/meta";
|
|
46
49
|
import { ClientLike, TCrudOp, TCrudPermissions, TDbActionInfo, TDbActionIntent, TDbActionLevel, TDbActionProcessor } from "@atscript/db-client";
|
|
47
|
-
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 TOptionalMode, 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_OPTIONAL_MODE, 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_FILL, 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, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
|
50
|
+
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, type DisplayValueOptions, 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 TOptionalMode, 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_OPTIONAL_MODE, 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_FILL, 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 ValueHelpSource, type ValueHelpSourceOptions, type ValueHelpTextOptions, type ValueLabel, type ValueLabelArrangement, type ValueText, WF_ACTION_WITH_DATA, activateUiTexts, applyFormChanges, arrangeText, asArray, buildDescendantErrorCounts, buildFormDiff, buildFormRebase, buildGridClasses, buildModelRoutes, buildUnionVariants, codeOf, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, displayValue, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, listsDictionary, loadValueHelpTexts, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, onValueHelpTexts, optKey, optLabel, optionLabel, optionValue, parentPrefix, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpColumns, valueHelpDictPaths, valueHelpDropdown, valueHelpFills, valueHelpKey, valueHelpOptions, valueHelpRowText, valueHelpScope, valueHelpSelect, valueHelpSource, valueHelpText, valueLabelOf };
|
package/dist/index.mjs
CHANGED
|
@@ -4,9 +4,9 @@ import { deserializeServedType, fieldText, isServedType, markServedType, userTex
|
|
|
4
4
|
import { StaticFieldResolver, asArray, defaultResolver, getFieldMeta, getResolver, hasComputedAnnotations, hasFieldMeta, isFieldHidden, parseStaticAttrs, resolveAttrs, resolveFieldProp, resolveFormProp, resolveStatic, setResolver } from "./shared/field-resolver.mjs";
|
|
5
5
|
import { activateUiTexts, createUiTexts, getUiTexts, onUiLocaleChange, setUiLocale } from "./i18n/ui-texts.mjs";
|
|
6
6
|
import { DEFAULT_BOOLEAN_LABELS, extractFieldLiteralOptions, extractLiteralOptions, isPureLiteralUnion } from "./value-help/extract-literals.mjs";
|
|
7
|
-
import { extractValueHelp } from "./value-help/extract-ref.mjs";
|
|
7
|
+
import { extractValueHelp, valueHelpKey } from "./value-help/extract-ref.mjs";
|
|
8
8
|
import { deepClone } from "./form/clone.mjs";
|
|
9
|
-
import { createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, setByPath } from "./form/path-utils.mjs";
|
|
9
|
+
import { createFormData, createFormValueResolver, deleteByPath, detectUnionVariant, getByPath, joinPath, parentPrefix, setByPath } from "./form/path-utils.mjs";
|
|
10
10
|
import { omitSkippedNavFields } from "./form/skipped-nav.mjs";
|
|
11
11
|
import { buildUnionVariants, createFormDef } from "./form/create-form-def.mjs";
|
|
12
12
|
import { emptiedValue, getDefaultOptionalMode, resolveOptionalMode, setDefaultOptionalMode } from "./form/optional-mode.mjs";
|
|
@@ -16,16 +16,19 @@ import { valueHelpDictPaths } from "./value-help/dict-paths.mjs";
|
|
|
16
16
|
import { optKey, optLabel, optionLabel, parseStaticOptions, resolveOptions } from "./value-help/resolve-options.mjs";
|
|
17
17
|
import { escapeRegex, str } from "./shared/str.mjs";
|
|
18
18
|
import { extractMeasurement } from "./form/measurement.mjs";
|
|
19
|
-
import { arrangeText, valueLabelOf } from "./shared/value-label.mjs";
|
|
19
|
+
import { arrangeText, codeOf, valueLabelOf } from "./shared/value-label.mjs";
|
|
20
20
|
import { createTableDef } from "./table/create-table-def.mjs";
|
|
21
21
|
import { NUMERIC_VALUE_KINDS, coerceNumericText, isNumericText, optionValue } from "./table/value-kind.mjs";
|
|
22
|
-
import {
|
|
23
|
-
import { valueHelpFills, valueHelpScope } from "./value-help/scope.mjs";
|
|
24
|
-
import { VALUE_HELP_OPTIONS_CAP, valueHelpOptions } from "./value-help/options.mjs";
|
|
25
|
-
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.mjs";
|
|
22
|
+
import { VALUE_HELP_OPTIONS_CAP, listsDictionary, valueHelpDropdown, valueHelpOptions, valueHelpRowText } from "./value-help/options.mjs";
|
|
26
23
|
import { getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "./client-factory.mjs";
|
|
27
24
|
import { createMetaClient, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, onMetaCacheReset, resetMetaCache, retainMetaEntry, setMetaCacheIdentity, setMetaCacheMaxEntries } from "./shared/meta-cache.mjs";
|
|
28
25
|
import { resetValueHelpCache, resolveValueHelp } from "./value-help/resolve.mjs";
|
|
26
|
+
import { valueHelpColumns, valueHelpSource } from "./value-help/source.mjs";
|
|
27
|
+
import { loadValueHelpTexts, onValueHelpTexts, valueHelpText } from "./value-help/texts.mjs";
|
|
28
|
+
import { ValueHelpClient, invalidateValueHelpCache, setValueHelpCacheTtl, valueHelpSelect } from "./value-help/value-help-client.mjs";
|
|
29
|
+
import { valueHelpFills, valueHelpScope } from "./value-help/scope.mjs";
|
|
30
|
+
import { fetchDistinctValues, isPickerDeclined } from "./value-help/distinct-client.mjs";
|
|
31
|
+
import { displayValue } from "./value-help/display-value.mjs";
|
|
29
32
|
import { FORM_ERROR_KEY, buildDescendantErrorCounts, iteratePathAncestors, mergeErrorMaps, omitPaths, validatorErrorsToMap } from "./form/error-utils.mjs";
|
|
30
33
|
import { UI_FORM_VALIDATE_ERROR_CODE, createFieldValidator, getDefaultValidatorPlugins, getFormValidator, isContainerKind, setDefaultValidatorPlugins } from "./form/validate.mjs";
|
|
31
34
|
import { buildFormDiff, deepEqual } from "./form/diff.mjs";
|
|
@@ -41,4 +44,4 @@ import { getColumn, getFilterableColumns, getSortableColumns } from "./table/col
|
|
|
41
44
|
import { navigateHrefFor } from "./table/navigate-href.mjs";
|
|
42
45
|
import { buildModelRoutes } from "./nav/model-routes.mjs";
|
|
43
46
|
import { compareExact } from "@atscript/db/meta";
|
|
44
|
-
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_OPTIONAL_MODE, 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_FILL, 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, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, optKey, optLabel, optionLabel, optionValue, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpDictPaths, valueHelpFills, valueHelpOptions, valueHelpScope, valueHelpSelect, valueLabelOf };
|
|
47
|
+
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_OPTIONAL_MODE, 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_FILL, 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, codeOf, coerceNumericText, collectDirtyPaths, compareExact, createFieldValidator, createFormData, createFormDef, createFormValueResolver, createMetaClient, createTableDef, createUiTexts, deepClone, deepEqual, defaultResolver, deleteByPath, deserializeServedType, detectUnionVariant, displayValue, emptiedValue, enforceScale, escapeRegex, extractFieldLiteralOptions, extractLiteralOptions, extractMeasurement, extractValueHelp, fetchDistinctValues, fieldText, formatDecimalForDisplay, getByPath, getColumn, getCurrencyDecimals, getCurrencyDisplayParts, getDecimalSeparator, getDeclaredFormActions, getDefaultClientFactory, getDefaultOptionalMode, getDefaultValidatorPlugins, getFieldMeta, getFilterableColumns, getFormValidator, getMetaCacheIdentity, getMetaEntry, getMetaTableDef, getResolver, getSortableColumns, getThousandsSeparator, getUiTexts, groupInteger, hasComputedAnnotations, hasFieldMeta, invalidateValueHelpCache, isArrayField, isContainerKind, isFieldHidden, isNumericText, isObjectField, isPathDirty, isPickerDeclined, isPureLiteralUnion, isServedType, isTupleField, isUnionField, iteratePathAncestors, joinDecimalString, joinPath, listsDictionary, loadValueHelpTexts, markServedType, mergeErrorMaps, navigateHrefFor, normalizeLoadedEmpty, omitDerivedFields, omitPaths, omitSkippedNavFields, onMetaCacheReset, onUiLocaleChange, onValueHelpTexts, optKey, optLabel, optionLabel, optionValue, parentPrefix, parseColSpan, parseDecimalInput, parseRowSpan, parseStaticAttrs, parseStaticOptions, resetDefaultClientFactory, resetMetaCache, resetValueHelpCache, resolveAttrs, resolveFieldProp, resolveFormProp, resolveGridSpec, resolveOptionalMode, resolveOptions, resolveSingularLabel, resolveStatic, resolveValueHelp, retainMetaEntry, setByPath, setDefaultClientFactory, setDefaultOptionalMode, setDefaultValidatorPlugins, setMetaCacheIdentity, setMetaCacheMaxEntries, setResolver, setUiLocale, setValueHelpCacheTtl, splitDecimalString, str, unionVariantChanged, userText, validatorErrorsToMap, valueHelpColumns, valueHelpDictPaths, valueHelpDropdown, valueHelpFills, valueHelpKey, valueHelpOptions, valueHelpRowText, valueHelpScope, valueHelpSelect, valueHelpSource, valueHelpText, valueLabelOf };
|
|
@@ -18,6 +18,23 @@ const BUILTIN_TYPES = [
|
|
|
18
18
|
"paragraph",
|
|
19
19
|
"action"
|
|
20
20
|
];
|
|
21
|
+
/**
|
|
22
|
+
* The optional `arrangement` of `@ui.valueLabel`, `@ui.dict.label` and
|
|
23
|
+
* `@ui.valueHelp.label`: how a code shows with its text.
|
|
24
|
+
*/
|
|
25
|
+
function arrangementArg(defaultNote) {
|
|
26
|
+
return {
|
|
27
|
+
optional: true,
|
|
28
|
+
name: "arrangement",
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "How the code and its text are shown: `textKey` — `Berlin (BER)`; `keyText` — `BER (Berlin)`; `text` — `Berlin`. An empty text shows the code alone. " + defaultNote,
|
|
31
|
+
values: [
|
|
32
|
+
"textKey",
|
|
33
|
+
"keyText",
|
|
34
|
+
"text"
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
21
38
|
const COL_SPAN_VALUES = [
|
|
22
39
|
"1",
|
|
23
40
|
"2",
|
|
@@ -529,6 +546,17 @@ const uiAnnotations = { ui: {
|
|
|
529
546
|
},
|
|
530
547
|
validate: require_value_help_validation.validateColumn
|
|
531
548
|
}),
|
|
549
|
+
label: new _atscript_core.AnnotationSpec({
|
|
550
|
+
description: "The text of this binding's codes: a string field of the dictionary, instead of its `@ui.dict.label`. A code shows with the text of its dictionary row in table cells, export, filter chips, read-only form fields and the reference field while it is not focused; the pickers show it as each row's text. Sorting and filtering stay on the code. An `@ui.valueLabel` of the field wins where the row holds its text.\n\n**Example:**\n```atscript\n@db.rel.FK\n@ui.valueHelp.label 'fullName', 'text'\nassigneeId?: User.id\n```\n",
|
|
551
|
+
nodeType: ["prop"],
|
|
552
|
+
argument: [{
|
|
553
|
+
name: "field",
|
|
554
|
+
type: "string",
|
|
555
|
+
description: "A string field of the dictionary holding the text of the codes.",
|
|
556
|
+
fieldScope: require_value_help_validation.valueHelpScopes.bindingField
|
|
557
|
+
}, arrangementArg("Default: the dictionary's (`@ui.dict.label`), else `textKey`.")],
|
|
558
|
+
validate: require_value_help_validation.validateValueHelpLabel
|
|
559
|
+
}),
|
|
532
560
|
distinct: new _atscript_core.AnnotationSpec({
|
|
533
561
|
description: "Offers a **distinct-values picker** for this column in table filters: the values already stored, read from the table's own controller via `$groupBy`. Shown only when the server reports the field filterable and groupable, and the field has no dictionary binding, FK help or literal options. Not offered in forms.\n\n**Example:**\n```atscript\n@ui.valueHelp.distinct\ncity?: string\n```\n",
|
|
534
562
|
nodeType: ["prop", "type"],
|
|
@@ -554,7 +582,7 @@ const uiAnnotations = { ui: {
|
|
|
554
582
|
validate: require_value_help_validation.validateLiteralLabel
|
|
555
583
|
}),
|
|
556
584
|
valueLabel: new _atscript_core.AnnotationSpec({
|
|
557
|
-
description: "Shows this field's value — a code — together with its text, read from a string field of the same interface: in table cells, export, read-only form fields and the reference field while it is not focused.
|
|
585
|
+
description: "Shows this field's value — a code — together with its text, read from a string field of the same interface: in table cells, export, read-only form fields and the reference field while it is not focused. Wins over a dictionary label (`@ui.dict.label`, `@ui.valueHelp.label`) wherever the row is at hand; filter chips show the dictionary's. Sorting and filtering stay on the code. On a field with a value-help binding, let the pick fill the text (`@ui.valueHelp.fill`), or it goes stale after a pick. Not passed through references.\n\n**Example:**\n```atscript\n@ui.valueHelp City, 'code'\n@ui.valueHelp.fill 'cityName', 'name'\n@ui.valueLabel 'cityName'\ncity?: string\ncityName?: string\n```\n",
|
|
558
586
|
nodeType: ["prop"],
|
|
559
587
|
passedWhenReferred: false,
|
|
560
588
|
argument: [{
|
|
@@ -562,24 +590,15 @@ const uiAnnotations = { ui: {
|
|
|
562
590
|
type: "string",
|
|
563
591
|
description: "A string field of this interface holding the text of this field's value — not this field.",
|
|
564
592
|
valueScope: require_value_help_validation.valueLabelFields
|
|
565
|
-
},
|
|
566
|
-
optional: true,
|
|
567
|
-
name: "arrangement",
|
|
568
|
-
type: "string",
|
|
569
|
-
description: "How the code and its text are shown: `textKey` (default) — `Berlin (BER)`; `keyText` — `BER (Berlin)`; `text` — `Berlin`. An empty text shows the code alone.",
|
|
570
|
-
values: [
|
|
571
|
-
"textKey",
|
|
572
|
-
"keyText",
|
|
573
|
-
"text"
|
|
574
|
-
]
|
|
575
|
-
}],
|
|
593
|
+
}, arrangementArg("Default: `textKey`.")],
|
|
576
594
|
validate: require_value_help_validation.validateValueLabel
|
|
577
595
|
}),
|
|
578
596
|
dict: {
|
|
579
597
|
label: new _atscript_core.AnnotationSpec({
|
|
580
|
-
description: "
|
|
598
|
+
description: "The label of this dictionary's records: every code bound to it (`@db.rel.FK` or `@ui.valueHelp`) shows with this field's text — in table cells, export, filter chips, read-only form fields and the reference field while it is not focused — and the pickers show it as each row's text. A binding may name another field (`@ui.valueHelp.label`). Without it, codes show alone.\n\n**Example:**\n```atscript\n@ui.dict.label 'keyText'\nname: string\n```\n",
|
|
581
599
|
nodeType: ["prop"],
|
|
582
|
-
passedWhenReferred: false
|
|
600
|
+
passedWhenReferred: false,
|
|
601
|
+
argument: arrangementArg("Default: `textKey`.")
|
|
583
602
|
}),
|
|
584
603
|
descr: new _atscript_core.AnnotationSpec({
|
|
585
604
|
description: "Marks this field as the secondary description in value-help display",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isValueHelpTarget, literalLabelValues, validateColumn, validateDistinct, validateFill, validateFormType, validateLiteralLabel, validateOptionalMode, validateValueHelp, validateValueLabel, valueHelpScopes, valueLabelFields } from "./value-help-validation.mjs";
|
|
1
|
+
import { isValueHelpTarget, literalLabelValues, validateColumn, validateDistinct, validateFill, validateFormType, validateLiteralLabel, validateOptionalMode, validateValueHelp, validateValueHelpLabel, validateValueLabel, valueHelpScopes, valueLabelFields } from "./value-help-validation.mjs";
|
|
2
2
|
import { AnnotationSpec } from "@atscript/core";
|
|
3
3
|
//#region src/plugin/annotations.ts
|
|
4
4
|
const BUILTIN_TYPES = [
|
|
@@ -18,6 +18,23 @@ const BUILTIN_TYPES = [
|
|
|
18
18
|
"paragraph",
|
|
19
19
|
"action"
|
|
20
20
|
];
|
|
21
|
+
/**
|
|
22
|
+
* The optional `arrangement` of `@ui.valueLabel`, `@ui.dict.label` and
|
|
23
|
+
* `@ui.valueHelp.label`: how a code shows with its text.
|
|
24
|
+
*/
|
|
25
|
+
function arrangementArg(defaultNote) {
|
|
26
|
+
return {
|
|
27
|
+
optional: true,
|
|
28
|
+
name: "arrangement",
|
|
29
|
+
type: "string",
|
|
30
|
+
description: "How the code and its text are shown: `textKey` — `Berlin (BER)`; `keyText` — `BER (Berlin)`; `text` — `Berlin`. An empty text shows the code alone. " + defaultNote,
|
|
31
|
+
values: [
|
|
32
|
+
"textKey",
|
|
33
|
+
"keyText",
|
|
34
|
+
"text"
|
|
35
|
+
]
|
|
36
|
+
};
|
|
37
|
+
}
|
|
21
38
|
const COL_SPAN_VALUES = [
|
|
22
39
|
"1",
|
|
23
40
|
"2",
|
|
@@ -529,6 +546,17 @@ const uiAnnotations = { ui: {
|
|
|
529
546
|
},
|
|
530
547
|
validate: validateColumn
|
|
531
548
|
}),
|
|
549
|
+
label: new AnnotationSpec({
|
|
550
|
+
description: "The text of this binding's codes: a string field of the dictionary, instead of its `@ui.dict.label`. A code shows with the text of its dictionary row in table cells, export, filter chips, read-only form fields and the reference field while it is not focused; the pickers show it as each row's text. Sorting and filtering stay on the code. An `@ui.valueLabel` of the field wins where the row holds its text.\n\n**Example:**\n```atscript\n@db.rel.FK\n@ui.valueHelp.label 'fullName', 'text'\nassigneeId?: User.id\n```\n",
|
|
551
|
+
nodeType: ["prop"],
|
|
552
|
+
argument: [{
|
|
553
|
+
name: "field",
|
|
554
|
+
type: "string",
|
|
555
|
+
description: "A string field of the dictionary holding the text of the codes.",
|
|
556
|
+
fieldScope: valueHelpScopes.bindingField
|
|
557
|
+
}, arrangementArg("Default: the dictionary's (`@ui.dict.label`), else `textKey`.")],
|
|
558
|
+
validate: validateValueHelpLabel
|
|
559
|
+
}),
|
|
532
560
|
distinct: new AnnotationSpec({
|
|
533
561
|
description: "Offers a **distinct-values picker** for this column in table filters: the values already stored, read from the table's own controller via `$groupBy`. Shown only when the server reports the field filterable and groupable, and the field has no dictionary binding, FK help or literal options. Not offered in forms.\n\n**Example:**\n```atscript\n@ui.valueHelp.distinct\ncity?: string\n```\n",
|
|
534
562
|
nodeType: ["prop", "type"],
|
|
@@ -554,7 +582,7 @@ const uiAnnotations = { ui: {
|
|
|
554
582
|
validate: validateLiteralLabel
|
|
555
583
|
}),
|
|
556
584
|
valueLabel: new AnnotationSpec({
|
|
557
|
-
description: "Shows this field's value — a code — together with its text, read from a string field of the same interface: in table cells, export, read-only form fields and the reference field while it is not focused.
|
|
585
|
+
description: "Shows this field's value — a code — together with its text, read from a string field of the same interface: in table cells, export, read-only form fields and the reference field while it is not focused. Wins over a dictionary label (`@ui.dict.label`, `@ui.valueHelp.label`) wherever the row is at hand; filter chips show the dictionary's. Sorting and filtering stay on the code. On a field with a value-help binding, let the pick fill the text (`@ui.valueHelp.fill`), or it goes stale after a pick. Not passed through references.\n\n**Example:**\n```atscript\n@ui.valueHelp City, 'code'\n@ui.valueHelp.fill 'cityName', 'name'\n@ui.valueLabel 'cityName'\ncity?: string\ncityName?: string\n```\n",
|
|
558
586
|
nodeType: ["prop"],
|
|
559
587
|
passedWhenReferred: false,
|
|
560
588
|
argument: [{
|
|
@@ -562,24 +590,15 @@ const uiAnnotations = { ui: {
|
|
|
562
590
|
type: "string",
|
|
563
591
|
description: "A string field of this interface holding the text of this field's value — not this field.",
|
|
564
592
|
valueScope: valueLabelFields
|
|
565
|
-
},
|
|
566
|
-
optional: true,
|
|
567
|
-
name: "arrangement",
|
|
568
|
-
type: "string",
|
|
569
|
-
description: "How the code and its text are shown: `textKey` (default) — `Berlin (BER)`; `keyText` — `BER (Berlin)`; `text` — `Berlin`. An empty text shows the code alone.",
|
|
570
|
-
values: [
|
|
571
|
-
"textKey",
|
|
572
|
-
"keyText",
|
|
573
|
-
"text"
|
|
574
|
-
]
|
|
575
|
-
}],
|
|
593
|
+
}, arrangementArg("Default: `textKey`.")],
|
|
576
594
|
validate: validateValueLabel
|
|
577
595
|
}),
|
|
578
596
|
dict: {
|
|
579
597
|
label: new AnnotationSpec({
|
|
580
|
-
description: "
|
|
598
|
+
description: "The label of this dictionary's records: every code bound to it (`@db.rel.FK` or `@ui.valueHelp`) shows with this field's text — in table cells, export, filter chips, read-only form fields and the reference field while it is not focused — and the pickers show it as each row's text. A binding may name another field (`@ui.valueHelp.label`). Without it, codes show alone.\n\n**Example:**\n```atscript\n@ui.dict.label 'keyText'\nname: string\n```\n",
|
|
581
599
|
nodeType: ["prop"],
|
|
582
|
-
passedWhenReferred: false
|
|
600
|
+
passedWhenReferred: false,
|
|
601
|
+
argument: arrangementArg("Default: `textKey`.")
|
|
583
602
|
}),
|
|
584
603
|
descr: new AnnotationSpec({
|
|
585
604
|
description: "Marks this field as the secondary description in value-help display",
|