@fieldia/core 0.19.1 → 0.21.0
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/package.json +1 -1
- package/schema/page.schema.json +946 -210
- package/src/index.d.mts +2 -1
- package/src/index.d.ts +2 -1
- package/src/index.js +5 -1
- package/src/index.js.map +1 -1
- package/src/index.mjs +2 -1
- package/src/index.mjs.map +1 -1
- package/src/lib/expression/parser.js +4 -4
- package/src/lib/expression/parser.js.map +1 -1
- package/src/lib/expression/parser.mjs +5 -5
- package/src/lib/expression/parser.mjs.map +1 -1
- package/src/lib/expression/tokenizer.d.mts +12 -0
- package/src/lib/expression/tokenizer.d.ts +12 -0
- package/src/lib/expression/tokenizer.js +21 -12
- package/src/lib/expression/tokenizer.js.map +1 -1
- package/src/lib/expression/tokenizer.mjs +20 -12
- package/src/lib/expression/tokenizer.mjs.map +1 -1
- package/src/lib/format/field.d.mts +16 -0
- package/src/lib/format/field.d.ts +16 -0
- package/src/lib/format/field.js +11 -1
- package/src/lib/format/field.js.map +1 -1
- package/src/lib/format/field.mjs +11 -1
- package/src/lib/format/field.mjs.map +1 -1
- package/src/lib/format/head-checks.d.mts +40 -0
- package/src/lib/format/head-checks.d.ts +40 -0
- package/src/lib/format/head-checks.js +172 -0
- package/src/lib/format/head-checks.js.map +1 -0
- package/src/lib/format/head-checks.mjs +167 -0
- package/src/lib/format/head-checks.mjs.map +1 -0
- package/src/lib/format/layout.d.mts +6485 -1447
- package/src/lib/format/layout.d.ts +6485 -1447
- package/src/lib/format/layout.js +106 -2
- package/src/lib/format/layout.js.map +1 -1
- package/src/lib/format/layout.mjs +105 -1
- package/src/lib/format/layout.mjs.map +1 -1
- package/src/lib/format/layout.types.d.mts +7 -1
- package/src/lib/format/layout.types.d.ts +7 -1
- package/src/lib/format/page.d.mts +1502 -162
- package/src/lib/format/page.d.ts +1502 -162
- package/src/lib/format/page.js +3 -0
- package/src/lib/format/page.js.map +1 -1
- package/src/lib/format/page.mjs +3 -0
- package/src/lib/format/page.mjs.map +1 -1
- package/src/lib/format/pattern.d.mts +10 -0
- package/src/lib/format/pattern.d.ts +10 -0
- package/src/lib/format/pattern.js +33 -0
- package/src/lib/format/pattern.js.map +1 -0
- package/src/lib/format/pattern.mjs +30 -0
- package/src/lib/format/pattern.mjs.map +1 -0
- package/src/lib/format/picker-options.d.mts +22 -0
- package/src/lib/format/picker-options.d.ts +22 -0
- package/src/lib/format/picker-options.js +50 -0
- package/src/lib/format/picker-options.js.map +1 -0
- package/src/lib/format/picker-options.mjs +46 -0
- package/src/lib/format/picker-options.mjs.map +1 -0
- package/src/lib/format/references.d.mts +9 -0
- package/src/lib/format/references.d.ts +9 -0
- package/src/lib/format/references.js +96 -1
- package/src/lib/format/references.js.map +1 -1
- package/src/lib/format/references.mjs +96 -1
- package/src/lib/format/references.mjs.map +1 -1
- package/src/lib/format/section-checks.d.mts +10 -0
- package/src/lib/format/section-checks.d.ts +10 -0
- package/src/lib/format/section-checks.js +35 -0
- package/src/lib/format/section-checks.js.map +1 -0
- package/src/lib/format/section-checks.mjs +31 -0
- package/src/lib/format/section-checks.mjs.map +1 -0
- package/src/lib/format/translate.js +14 -4
- package/src/lib/format/translate.js.map +1 -1
- package/src/lib/format/translate.mjs +14 -4
- package/src/lib/format/translate.mjs.map +1 -1
- package/src/lib/record/check.d.mts +13 -3
- package/src/lib/record/check.d.ts +13 -3
- package/src/lib/record/check.js +87 -17
- package/src/lib/record/check.js.map +1 -1
- package/src/lib/record/check.mjs +85 -17
- package/src/lib/record/check.mjs.map +1 -1
- package/src/lib/record/filter.js +14 -2
- package/src/lib/record/filter.js.map +1 -1
- package/src/lib/record/filter.mjs +14 -2
- package/src/lib/record/filter.mjs.map +1 -1
- package/src/lib/record/form.d.mts +56 -2
- package/src/lib/record/form.d.ts +56 -2
- package/src/lib/record/form.js +293 -26
- package/src/lib/record/form.js.map +1 -1
- package/src/lib/record/form.mjs +295 -28
- package/src/lib/record/form.mjs.map +1 -1
- package/src/lib/record/input-rules.d.mts +277 -0
- package/src/lib/record/input-rules.d.ts +277 -0
- package/src/lib/record/input-rules.js +724 -0
- package/src/lib/record/input-rules.js.map +1 -0
- package/src/lib/record/input-rules.mjs +705 -0
- package/src/lib/record/input-rules.mjs.map +1 -0
- package/src/lib/record/inputs.d.mts +25 -0
- package/src/lib/record/inputs.d.ts +25 -0
- package/src/lib/record/inputs.js +135 -9
- package/src/lib/record/inputs.js.map +1 -1
- package/src/lib/record/inputs.mjs +131 -9
- package/src/lib/record/inputs.mjs.map +1 -1
- package/src/lib/record/locales/ar.js +13 -2
- package/src/lib/record/locales/ar.js.map +1 -1
- package/src/lib/record/locales/ar.mjs +13 -2
- package/src/lib/record/locales/ar.mjs.map +1 -1
- package/src/lib/record/locales/de.js +13 -2
- package/src/lib/record/locales/de.js.map +1 -1
- package/src/lib/record/locales/de.mjs +13 -2
- package/src/lib/record/locales/de.mjs.map +1 -1
- package/src/lib/record/locales/fr.js +13 -2
- package/src/lib/record/locales/fr.js.map +1 -1
- package/src/lib/record/locales/fr.mjs +13 -2
- package/src/lib/record/locales/fr.mjs.map +1 -1
- package/src/lib/record/memory-data-source.d.mts +7 -0
- package/src/lib/record/memory-data-source.d.ts +7 -0
- package/src/lib/record/memory-data-source.js +24 -2
- package/src/lib/record/memory-data-source.js.map +1 -1
- package/src/lib/record/memory-data-source.mjs +24 -2
- package/src/lib/record/memory-data-source.mjs.map +1 -1
- package/src/lib/record/messages.d.mts +22 -0
- package/src/lib/record/messages.d.ts +22 -0
- package/src/lib/record/messages.js +13 -2
- package/src/lib/record/messages.js.map +1 -1
- package/src/lib/record/messages.mjs +13 -2
- package/src/lib/record/messages.mjs.map +1 -1
- package/src/lib/record/rules.js +3 -1
- package/src/lib/record/rules.js.map +1 -1
- package/src/lib/record/rules.mjs +3 -1
- package/src/lib/record/rules.mjs.map +1 -1
- package/src/lib/record/run.d.mts +10 -2
- package/src/lib/record/run.d.ts +10 -2
- package/src/lib/record/run.js +8 -1
- package/src/lib/record/run.js.map +1 -1
- package/src/lib/record/run.mjs +8 -1
- package/src/lib/record/run.mjs.map +1 -1
- package/src/lib/record/search.d.mts +8 -1
- package/src/lib/record/search.d.ts +8 -1
- package/src/lib/record/search.js +28 -8
- package/src/lib/record/search.js.map +1 -1
- package/src/lib/record/search.mjs +28 -8
- package/src/lib/record/search.mjs.map +1 -1
- package/src/lib/record/structures.d.mts +8 -3
- package/src/lib/record/structures.d.ts +8 -3
- package/src/lib/record/structures.js +51 -7
- package/src/lib/record/structures.js.map +1 -1
- package/src/lib/record/structures.mjs +48 -6
- package/src/lib/record/structures.mjs.map +1 -1
- package/src/lib/record/values.d.mts +4 -0
- package/src/lib/record/values.d.ts +4 -0
- package/src/lib/record/values.js.map +1 -1
- package/src/lib/record/values.mjs.map +1 -1
- package/src/runtime.d.mts +7 -3
- package/src/runtime.d.ts +7 -3
- package/src/runtime.js +31 -1
- package/src/runtime.js.map +1 -1
- package/src/runtime.mjs +5 -2
- package/src/runtime.mjs.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.mjs","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/record/filter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"filter.mjs","sourceRoot":"","sources":["../../../../../../libs/core/src/lib/record/filter.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAE1D;;;;GAIG;AACH,MAAM,UAAU,aAAa,CAAC,MAAc,EAAE,MAAiC;IAC7E,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,KAAK,CAAC,MAAc,EAAE,IAAoB;IACjD,IAAI,KAAK,IAAI,IAAI;QAAE,OAAO,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE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QAAE,EAAE,GAAG,EAAE,KAAK,IAAI,IAAI,OAAO,EAAE,KAAK,QAAQ,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAE,EAA8B,CAAC,IAAI,CAAC,CAAC;IACnI,OAAO,EAAE,IAAI,IAAI,CAAC;AACpB,CAAC"}
|
|
@@ -42,6 +42,17 @@ export interface FormState {
|
|
|
42
42
|
readonly choices: Readonly<Record<string, Choices>>;
|
|
43
43
|
/** The definitions loaded for a properties field with `definitionsFrom`, by field, once asked for. */
|
|
44
44
|
readonly definitions: Readonly<Record<string, Definitions>>;
|
|
45
|
+
/**
|
|
46
|
+
* Text a person left in a box that does not read as its field's value — "12 34" in a number, "31/02/2026" in a
|
|
47
|
+
* date — by its path (`field`, or a line's `field.lineKey.subfield`), with why in words. The field keeps the
|
|
48
|
+
* value it held as the box was entered; validate and save refuse with the words until the text is fixed.
|
|
49
|
+
*/
|
|
50
|
+
readonly unread: Readonly<Record<string, UnreadText>>;
|
|
51
|
+
}
|
|
52
|
+
/** Text left in a box that does not read, and why, as `FormState.unread` keeps it. */
|
|
53
|
+
export interface UnreadText {
|
|
54
|
+
readonly text: string;
|
|
55
|
+
readonly message: string;
|
|
45
56
|
}
|
|
46
57
|
/** A properties field's definitions from the app, as they load. */
|
|
47
58
|
export interface Definitions {
|
|
@@ -64,6 +75,8 @@ export interface NodeState {
|
|
|
64
75
|
invisible: boolean;
|
|
65
76
|
readonly: boolean;
|
|
66
77
|
required: boolean;
|
|
78
|
+
/** A toggle button's: pressed while its `pressed` holds. Left out for every other part. */
|
|
79
|
+
pressed?: boolean;
|
|
67
80
|
}
|
|
68
81
|
/** localStorage fits this, and so does anything else with the same three methods. */
|
|
69
82
|
export interface DraftStore {
|
|
@@ -210,14 +223,55 @@ export interface Form {
|
|
|
210
223
|
setValue(name: string, value: Value, how?: {
|
|
211
224
|
by?: ChangeBy;
|
|
212
225
|
}): void;
|
|
213
|
-
/**
|
|
214
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Write several fields at once, worked out once: the app's change, never a
|
|
228
|
+
* person's. Throws for a field the page lacks. With `stored`, they are the
|
|
229
|
+
* values the record already holds where it is kept — whether it is
|
|
230
|
+
* followed, how many comments it has: written as loaded ones are, they never
|
|
231
|
+
* count as a change to save.
|
|
232
|
+
*/
|
|
233
|
+
setValues(values: Values, how?: {
|
|
234
|
+
stored?: boolean;
|
|
235
|
+
}): void;
|
|
215
236
|
node(id: string): NodeState;
|
|
216
237
|
/** Whether the record is being edited, as conditions read `editing`: a view that locks it to be read says false, and parts follow. */
|
|
217
238
|
setEditing(editing: boolean): void;
|
|
218
239
|
fieldReadonly(name: string): boolean;
|
|
219
240
|
/** What a field would be told if the form were checked now, or null when it passes. Nothing is shown. */
|
|
220
241
|
problem(field: string): string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Keep text a person left in a box that does not read (`FormState.unread`), by its path — `field`, or a line's
|
|
244
|
+
* `field.lineKey.subfield` — with why in words; null once it reads, or is let go. Nothing is shown until the box
|
|
245
|
+
* is left (`leave`) or the form is checked.
|
|
246
|
+
*/
|
|
247
|
+
setUnread(path: string, unread: UnreadText | null): void;
|
|
248
|
+
/**
|
|
249
|
+
* A person left a field's box, by its path: its own problem — text that does not read, a format, min or max, a
|
|
250
|
+
* whole number, decimals, a pattern — is shown now, in the words Save would use. That it is required waits for Save.
|
|
251
|
+
*/
|
|
252
|
+
leave(path: string): void;
|
|
253
|
+
/**
|
|
254
|
+
* How a box reads what is typed in it and not yet read — a number, hours, a date, a colour's code, a name looked
|
|
255
|
+
* up — now, as if it were left: every save and send, every check and step forward runs these first (`settle`), so
|
|
256
|
+
* Ctrl+Enter, a button's key, a pager or the app's own save keep what the box shows, or refuse it with its words,
|
|
257
|
+
* and never save a value passed on the way ("1" of "1.5") or the one the box held before. The viewer gives one
|
|
258
|
+
* for the box that has the focus (a change, which each box reads); a box whose reading waits — a name looked up
|
|
259
|
+
* among records — gives its own, which keeps the text unread with why at once, and returns the wait: a save
|
|
260
|
+
* waits for it, while a check or a step forward, which cannot wait, refuses meanwhile. `typing` says whether the
|
|
261
|
+
* box is still being typed in (typed since it last read): autosave, which nobody pressed, waits while it is, and
|
|
262
|
+
* never reads text under the person's keys ("12." of "12.5", "Office " of "Office Park"). Returns what stops it.
|
|
263
|
+
*/
|
|
264
|
+
settling(read: () => void | Promise<unknown>, typing?: () => boolean): () => void;
|
|
265
|
+
/**
|
|
266
|
+
* Read what is typed and not yet read in every box (`settling`), as if each were left: a save does it first.
|
|
267
|
+
* Resolves once every reading that waits (a name looked up) has ended.
|
|
268
|
+
*/
|
|
269
|
+
settle(): Promise<void>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether a box's reading of what was typed still waits (a name being looked up): a check or a step forward made
|
|
272
|
+
* now refuses its text with "still looking", so a caller that can wait for it (`settle`) checks again after.
|
|
273
|
+
*/
|
|
274
|
+
reading(): boolean;
|
|
221
275
|
validate(): boolean;
|
|
222
276
|
save(): Promise<boolean>;
|
|
223
277
|
reset(): void;
|
package/src/lib/record/form.d.ts
CHANGED
|
@@ -42,6 +42,17 @@ export interface FormState {
|
|
|
42
42
|
readonly choices: Readonly<Record<string, Choices>>;
|
|
43
43
|
/** The definitions loaded for a properties field with `definitionsFrom`, by field, once asked for. */
|
|
44
44
|
readonly definitions: Readonly<Record<string, Definitions>>;
|
|
45
|
+
/**
|
|
46
|
+
* Text a person left in a box that does not read as its field's value — "12 34" in a number, "31/02/2026" in a
|
|
47
|
+
* date — by its path (`field`, or a line's `field.lineKey.subfield`), with why in words. The field keeps the
|
|
48
|
+
* value it held as the box was entered; validate and save refuse with the words until the text is fixed.
|
|
49
|
+
*/
|
|
50
|
+
readonly unread: Readonly<Record<string, UnreadText>>;
|
|
51
|
+
}
|
|
52
|
+
/** Text left in a box that does not read, and why, as `FormState.unread` keeps it. */
|
|
53
|
+
export interface UnreadText {
|
|
54
|
+
readonly text: string;
|
|
55
|
+
readonly message: string;
|
|
45
56
|
}
|
|
46
57
|
/** A properties field's definitions from the app, as they load. */
|
|
47
58
|
export interface Definitions {
|
|
@@ -64,6 +75,8 @@ export interface NodeState {
|
|
|
64
75
|
invisible: boolean;
|
|
65
76
|
readonly: boolean;
|
|
66
77
|
required: boolean;
|
|
78
|
+
/** A toggle button's: pressed while its `pressed` holds. Left out for every other part. */
|
|
79
|
+
pressed?: boolean;
|
|
67
80
|
}
|
|
68
81
|
/** localStorage fits this, and so does anything else with the same three methods. */
|
|
69
82
|
export interface DraftStore {
|
|
@@ -210,14 +223,55 @@ export interface Form {
|
|
|
210
223
|
setValue(name: string, value: Value, how?: {
|
|
211
224
|
by?: ChangeBy;
|
|
212
225
|
}): void;
|
|
213
|
-
/**
|
|
214
|
-
|
|
226
|
+
/**
|
|
227
|
+
* Write several fields at once, worked out once: the app's change, never a
|
|
228
|
+
* person's. Throws for a field the page lacks. With `stored`, they are the
|
|
229
|
+
* values the record already holds where it is kept — whether it is
|
|
230
|
+
* followed, how many comments it has: written as loaded ones are, they never
|
|
231
|
+
* count as a change to save.
|
|
232
|
+
*/
|
|
233
|
+
setValues(values: Values, how?: {
|
|
234
|
+
stored?: boolean;
|
|
235
|
+
}): void;
|
|
215
236
|
node(id: string): NodeState;
|
|
216
237
|
/** Whether the record is being edited, as conditions read `editing`: a view that locks it to be read says false, and parts follow. */
|
|
217
238
|
setEditing(editing: boolean): void;
|
|
218
239
|
fieldReadonly(name: string): boolean;
|
|
219
240
|
/** What a field would be told if the form were checked now, or null when it passes. Nothing is shown. */
|
|
220
241
|
problem(field: string): string | null;
|
|
242
|
+
/**
|
|
243
|
+
* Keep text a person left in a box that does not read (`FormState.unread`), by its path — `field`, or a line's
|
|
244
|
+
* `field.lineKey.subfield` — with why in words; null once it reads, or is let go. Nothing is shown until the box
|
|
245
|
+
* is left (`leave`) or the form is checked.
|
|
246
|
+
*/
|
|
247
|
+
setUnread(path: string, unread: UnreadText | null): void;
|
|
248
|
+
/**
|
|
249
|
+
* A person left a field's box, by its path: its own problem — text that does not read, a format, min or max, a
|
|
250
|
+
* whole number, decimals, a pattern — is shown now, in the words Save would use. That it is required waits for Save.
|
|
251
|
+
*/
|
|
252
|
+
leave(path: string): void;
|
|
253
|
+
/**
|
|
254
|
+
* How a box reads what is typed in it and not yet read — a number, hours, a date, a colour's code, a name looked
|
|
255
|
+
* up — now, as if it were left: every save and send, every check and step forward runs these first (`settle`), so
|
|
256
|
+
* Ctrl+Enter, a button's key, a pager or the app's own save keep what the box shows, or refuse it with its words,
|
|
257
|
+
* and never save a value passed on the way ("1" of "1.5") or the one the box held before. The viewer gives one
|
|
258
|
+
* for the box that has the focus (a change, which each box reads); a box whose reading waits — a name looked up
|
|
259
|
+
* among records — gives its own, which keeps the text unread with why at once, and returns the wait: a save
|
|
260
|
+
* waits for it, while a check or a step forward, which cannot wait, refuses meanwhile. `typing` says whether the
|
|
261
|
+
* box is still being typed in (typed since it last read): autosave, which nobody pressed, waits while it is, and
|
|
262
|
+
* never reads text under the person's keys ("12." of "12.5", "Office " of "Office Park"). Returns what stops it.
|
|
263
|
+
*/
|
|
264
|
+
settling(read: () => void | Promise<unknown>, typing?: () => boolean): () => void;
|
|
265
|
+
/**
|
|
266
|
+
* Read what is typed and not yet read in every box (`settling`), as if each were left: a save does it first.
|
|
267
|
+
* Resolves once every reading that waits (a name looked up) has ended.
|
|
268
|
+
*/
|
|
269
|
+
settle(): Promise<void>;
|
|
270
|
+
/**
|
|
271
|
+
* Whether a box's reading of what was typed still waits (a name being looked up): a check or a step forward made
|
|
272
|
+
* now refuses its text with "still looking", so a caller that can wait for it (`settle`) checks again after.
|
|
273
|
+
*/
|
|
274
|
+
reading(): boolean;
|
|
221
275
|
validate(): boolean;
|
|
222
276
|
save(): Promise<boolean>;
|
|
223
277
|
reset(): void;
|