@streamline-pulse/formkrafter-core 0.22.0 → 0.24.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/dist/brick/brick.d.ts +17 -10
- package/dist/brick/types.d.ts +3 -3
- package/dist/brick/utils.d.ts +1 -1
- package/dist/compat/formio.d.ts +1 -1
- package/dist/index.d.ts +42 -42
- package/dist/index.js +5 -3
- package/dist/index.js.map +22 -22
- package/dist/ops/history.d.ts +2 -2
- package/dist/ops/ops.d.ts +6 -6
- package/dist/ops/pointer.d.ts +1 -1
- package/dist/ops/uids.d.ts +1 -1
- package/dist/rules/rule.d.ts +1 -1
- package/dist/services/index.d.ts +5 -5
- package/dist/services/spec_source_service.d.ts +1 -1
- package/dist/services/unsafe_js_runner_service.d.ts +1 -1
- package/dist/utils/brick-data.d.ts +1 -1
- package/dist/utils/brick-mold.d.ts +2 -2
- package/dist/utils/brick-spec.d.ts +7 -7
- package/dist/utils/common-brick-props.d.ts +1 -1
- package/dist/utils/drop-type.d.ts +1 -1
- package/dist/utils/expand-spec.d.ts +2 -2
- package/dist/utils/fields.d.ts +3 -3
- package/dist/utils/lint-spec.d.ts +1 -1
- package/dist/utils/recap.d.ts +1 -1
- package/dist/validators/validation.d.ts +2 -2
- package/dist/validators/validator.d.ts +1 -1
- package/package.json +1 -1
package/dist/brick/brick.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import type { Validator } from "../validators/validator";
|
|
2
|
-
import type { Validation } from "../validators/validation";
|
|
3
|
-
import type { JSONSchemaType } from "../validators/json-schema-type";
|
|
4
|
-
import { type Utils } from "./utils";
|
|
5
|
-
import type { Rule } from "../rules/rule";
|
|
6
|
-
import type { BrickSpec } from "../utils/brick-spec";
|
|
7
|
-
import type { BrickType } from "../utils/brick-type";
|
|
8
|
-
import type { BrickBaseConfigs, CommonBrickProps } from "../utils/common-brick-props";
|
|
9
|
-
import type { BrickMoldDropType } from "../utils/drop-type";
|
|
10
|
-
import type { FieldAnnotation } from "../review";
|
|
1
|
+
import type { Validator } from "../validators/validator.js";
|
|
2
|
+
import type { Validation } from "../validators/validation.js";
|
|
3
|
+
import type { JSONSchemaType } from "../validators/json-schema-type.js";
|
|
4
|
+
import { type Utils } from "./utils.js";
|
|
5
|
+
import type { Rule } from "../rules/rule.js";
|
|
6
|
+
import type { BrickSpec } from "../utils/brick-spec.js";
|
|
7
|
+
import type { BrickType } from "../utils/brick-type.js";
|
|
8
|
+
import type { BrickBaseConfigs, CommonBrickProps } from "../utils/common-brick-props.js";
|
|
9
|
+
import type { BrickMoldDropType } from "../utils/drop-type.js";
|
|
10
|
+
import type { FieldAnnotation } from "../review.js";
|
|
11
11
|
export interface BrickProps<DataType, Configs extends BrickBaseConfigs, Styles> extends CommonBrickProps<Configs, Styles> {
|
|
12
12
|
onConfigsChange?: (configs: BrickBaseConfigs & Record<string, unknown>, path?: string) => void;
|
|
13
13
|
onStylesChange?: (styles: Record<string, unknown>, path?: string) => void;
|
|
@@ -25,11 +25,18 @@ export interface BrickProps<DataType, Configs extends BrickBaseConfigs, Styles>
|
|
|
25
25
|
readOnly?: boolean;
|
|
26
26
|
/** A reviewer's note on this field, shown under the control. */
|
|
27
27
|
annotation?: FieldAnnotation;
|
|
28
|
+
/** An earlier review's verdict on this field, shown as a reminder in any mode. */
|
|
29
|
+
note?: FieldAnnotation;
|
|
28
30
|
/** Present in review mode: the controls to flag the field and comment it. */
|
|
29
31
|
review?: {
|
|
30
32
|
value: FieldAnnotation;
|
|
31
33
|
onChange: (next: FieldAnnotation) => void;
|
|
32
34
|
};
|
|
35
|
+
/** The whole maps, for composite bricks (data grid) that scope them per row. */
|
|
36
|
+
annotations?: Record<string, FieldAnnotation>;
|
|
37
|
+
notes?: Record<string, FieldAnnotation>;
|
|
38
|
+
reviewable?: boolean;
|
|
39
|
+
editableKeys?: string[];
|
|
33
40
|
locale?: string;
|
|
34
41
|
children?: unknown;
|
|
35
42
|
brickSpec?: BrickSpec;
|
package/dist/brick/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { BrickBaseConfigs, CommonBrickProps } from "../utils/common-brick-props";
|
|
2
|
-
import type { BrickSpec } from "../utils/brick-spec";
|
|
3
|
-
import type { CollectionUtils, InputUtils, PanelUtils } from "./utils";
|
|
1
|
+
import type { BrickBaseConfigs, CommonBrickProps } from "../utils/common-brick-props.js";
|
|
2
|
+
import type { BrickSpec } from "../utils/brick-spec.js";
|
|
3
|
+
import type { CollectionUtils, InputUtils, PanelUtils } from "./utils.js";
|
|
4
4
|
interface BrickProps<Configs extends BrickBaseConfigs, Styles> extends CommonBrickProps<Configs, Styles> {
|
|
5
5
|
path: string;
|
|
6
6
|
error?: string;
|
package/dist/brick/utils.d.ts
CHANGED
package/dist/compat/formio.d.ts
CHANGED
package/dist/index.d.ts
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
export { BrickType } from "./utils/brick-type";
|
|
2
|
-
export { BrickMold } from "./utils/brick-mold";
|
|
3
|
-
export { DropType, BrickMoldDropType, BrickSpecDropType } from "./utils/drop-type";
|
|
4
|
-
export { BrickStyles } from "./utils/brick-styles";
|
|
5
|
-
export { BrickBaseConfigs, CommonBrickProps, WithBrickBaseConfigs } from "./utils/common-brick-props";
|
|
6
|
-
export { BrickSpec, buildValidationSchema, iterateBricks, iterateSchemaBricks, defaultFormData, } from "./utils/brick-spec";
|
|
7
|
-
export { getBrickData, wrapBrickData } from "./utils/brick-data";
|
|
8
|
-
export { SelectOption, normalizeOptions } from "./utils/options";
|
|
9
|
-
export { RecapItem, collectRecapItems } from "./utils/recap";
|
|
10
|
-
export { FieldDescriptor, CollectFieldsOptions, collectFields } from "./utils/fields";
|
|
11
|
-
export { FieldAnnotation, FieldAnnotations, flaggedKeys } from "./review";
|
|
12
|
-
export { SpecIssue, SpecIssueCode, lintSpec } from "./utils/lint-spec";
|
|
13
|
-
export { ensureBrickUids, stripBrickUids, stripUidsFromPatches } from "./ops/uids";
|
|
14
|
-
export { interpolateTemplate, parseHeaderLines, appendSearchParam } from "./utils/remote";
|
|
15
|
-
export { PanelBrickProps, InputBrickProps, CollectionBrickProps } from "./brick/types";
|
|
16
|
-
export { Brick, BrickProps } from "./brick/brick";
|
|
17
|
-
export { CommonUtils, PanelUtils, InputUtils, CollectionUtils, ActionUtils, Utils, getAffectedProperties, evalBrickCode } from "./brick/utils";
|
|
18
|
-
export { Rule } from "./rules/rule";
|
|
19
|
-
export { Effect } from "./rules/effect";
|
|
20
|
-
export { Validator, ValidationResult, validateBrickSpecData, validateBrickSpecDataDetailed, validateFormData } from "./validators/validator";
|
|
21
|
-
export { defaultValidationMessage, registerValidationMessages } from "./validators/default-messages";
|
|
22
|
-
export { Validation } from "./validators/validation";
|
|
23
|
-
export { JSONSchemaType } from "./validators/json-schema-type";
|
|
24
|
-
export { services } from "./services";
|
|
25
|
-
export { JsRunnerService, JsValidationResult, SandboxJsRunnerService } from "./services/js_runner_service";
|
|
26
|
-
export { UnsafeEvalJsRunnerService } from "./services/unsafe_js_runner_service";
|
|
27
|
-
export { runSandboxed } from "./services/sandbox_interpreter";
|
|
28
|
-
export { DataSourceService, FetchDataSourceService } from "./services/data_source_service";
|
|
29
|
-
export { FileLike, UploadedFile, FileUploadService, FileUploadOptions, Base64FileUploadService, UrlFileUploadService, UrlFileUploadDefaults } from "./services/file_upload_service";
|
|
30
|
-
export { LocalizedText, isLocalizedObject, resolveLocalizedText, resolveLocalizedRecord } from "./utils/localized-text";
|
|
31
|
-
export { FkTranslations, setFkTranslations, fkT, fkTOr, frFkTranslations } from "./i18n";
|
|
32
|
-
export { pointerFromPath, getBrickAt } from "./ops/pointer";
|
|
33
|
-
export { SpecUpdate, addBrick, removeBrick, moveBrick, duplicateBrick, updateBrickConfigs, updateBrickStyles, updateBrickValidations, updateBrickRules } from "./ops/ops";
|
|
34
|
-
export { SpecHistory } from "./ops/history";
|
|
1
|
+
export { BrickType } from "./utils/brick-type.js";
|
|
2
|
+
export { BrickMold } from "./utils/brick-mold.js";
|
|
3
|
+
export { DropType, BrickMoldDropType, BrickSpecDropType } from "./utils/drop-type.js";
|
|
4
|
+
export { BrickStyles } from "./utils/brick-styles.js";
|
|
5
|
+
export { BrickBaseConfigs, CommonBrickProps, WithBrickBaseConfigs } from "./utils/common-brick-props.js";
|
|
6
|
+
export { BrickSpec, buildValidationSchema, iterateBricks, iterateSchemaBricks, defaultFormData, } from "./utils/brick-spec.js";
|
|
7
|
+
export { getBrickData, wrapBrickData } from "./utils/brick-data.js";
|
|
8
|
+
export { SelectOption, normalizeOptions } from "./utils/options.js";
|
|
9
|
+
export { RecapItem, collectRecapItems } from "./utils/recap.js";
|
|
10
|
+
export { FieldDescriptor, CollectFieldsOptions, collectFields } from "./utils/fields.js";
|
|
11
|
+
export { FieldAnnotation, FieldAnnotations, flaggedKeys } from "./review.js";
|
|
12
|
+
export { SpecIssue, SpecIssueCode, lintSpec } from "./utils/lint-spec.js";
|
|
13
|
+
export { ensureBrickUids, stripBrickUids, stripUidsFromPatches } from "./ops/uids.js";
|
|
14
|
+
export { interpolateTemplate, parseHeaderLines, appendSearchParam } from "./utils/remote.js";
|
|
15
|
+
export { PanelBrickProps, InputBrickProps, CollectionBrickProps } from "./brick/types.js";
|
|
16
|
+
export { Brick, BrickProps } from "./brick/brick.js";
|
|
17
|
+
export { CommonUtils, PanelUtils, InputUtils, CollectionUtils, ActionUtils, Utils, getAffectedProperties, evalBrickCode } from "./brick/utils.js";
|
|
18
|
+
export { Rule } from "./rules/rule.js";
|
|
19
|
+
export { Effect } from "./rules/effect.js";
|
|
20
|
+
export { Validator, ValidationResult, validateBrickSpecData, validateBrickSpecDataDetailed, validateFormData } from "./validators/validator.js";
|
|
21
|
+
export { defaultValidationMessage, registerValidationMessages } from "./validators/default-messages.js";
|
|
22
|
+
export { Validation } from "./validators/validation.js";
|
|
23
|
+
export { JSONSchemaType } from "./validators/json-schema-type.js";
|
|
24
|
+
export { services } from "./services/index.js";
|
|
25
|
+
export { JsRunnerService, JsValidationResult, SandboxJsRunnerService } from "./services/js_runner_service.js";
|
|
26
|
+
export { UnsafeEvalJsRunnerService } from "./services/unsafe_js_runner_service.js";
|
|
27
|
+
export { runSandboxed } from "./services/sandbox_interpreter.js";
|
|
28
|
+
export { DataSourceService, FetchDataSourceService } from "./services/data_source_service.js";
|
|
29
|
+
export { FileLike, UploadedFile, FileUploadService, FileUploadOptions, Base64FileUploadService, UrlFileUploadService, UrlFileUploadDefaults } from "./services/file_upload_service.js";
|
|
30
|
+
export { LocalizedText, isLocalizedObject, resolveLocalizedText, resolveLocalizedRecord } from "./utils/localized-text.js";
|
|
31
|
+
export { FkTranslations, setFkTranslations, fkT, fkTOr, frFkTranslations } from "./i18n.js";
|
|
32
|
+
export { pointerFromPath, getBrickAt } from "./ops/pointer.js";
|
|
33
|
+
export { SpecUpdate, addBrick, removeBrick, moveBrick, duplicateBrick, updateBrickConfigs, updateBrickStyles, updateBrickValidations, updateBrickRules } from "./ops/ops.js";
|
|
34
|
+
export { SpecHistory } from "./ops/history.js";
|
|
35
35
|
export type { Operation } from "fast-json-patch";
|
|
36
|
-
export { convertFormioForm } from "./compat/formio";
|
|
37
|
-
export type { FormioForm, FormioComponent, FormioConversionResult } from "./compat/formio";
|
|
38
|
-
export { expandSpec, hasNestedForms } from "./utils/expand-spec";
|
|
39
|
-
export type { ExpandSpecOptions } from "./utils/expand-spec";
|
|
40
|
-
export { FetchSpecSourceService } from "./services/spec_source_service";
|
|
41
|
-
export type { SpecSourceService, FetchSpecSourceDefaults } from "./services/spec_source_service";
|
|
42
|
-
export { FetchOptionSourceService } from "./services/option_source_service";
|
|
43
|
-
export type { OptionSourceService, FetchOptionSourceDefaults } from "./services/option_source_service";
|
|
36
|
+
export { convertFormioForm } from "./compat/formio.js";
|
|
37
|
+
export type { FormioForm, FormioComponent, FormioConversionResult } from "./compat/formio.js";
|
|
38
|
+
export { expandSpec, hasNestedForms } from "./utils/expand-spec.js";
|
|
39
|
+
export type { ExpandSpecOptions } from "./utils/expand-spec.js";
|
|
40
|
+
export { FetchSpecSourceService } from "./services/spec_source_service.js";
|
|
41
|
+
export type { SpecSourceService, FetchSpecSourceDefaults } from "./services/spec_source_service.js";
|
|
42
|
+
export { FetchOptionSourceService } from "./services/option_source_service.js";
|
|
43
|
+
export type { OptionSourceService, FetchOptionSourceDefaults } from "./services/option_source_service.js";
|
package/dist/index.js
CHANGED
|
@@ -7232,7 +7232,8 @@ var en = {
|
|
|
7232
7232
|
"brick.tabs.name": "Tabs",
|
|
7233
7233
|
"review.incorrect": "Incorrect",
|
|
7234
7234
|
"review.comment": "Comment for the person who corrects it",
|
|
7235
|
-
"review.flagged": "To correct"
|
|
7235
|
+
"review.flagged": "To correct",
|
|
7236
|
+
"review.previous": "Flagged in the previous review"
|
|
7236
7237
|
};
|
|
7237
7238
|
var frFkTranslations = {
|
|
7238
7239
|
"palette.search": "Rechercher une brique…",
|
|
@@ -7373,7 +7374,8 @@ var frFkTranslations = {
|
|
|
7373
7374
|
"brick.tabs.name": "Onglets",
|
|
7374
7375
|
"review.incorrect": "Incorrect",
|
|
7375
7376
|
"review.comment": "Commentaire pour la personne qui corrige",
|
|
7376
|
-
"review.flagged": "À corriger"
|
|
7377
|
+
"review.flagged": "À corriger",
|
|
7378
|
+
"review.previous": "Signalé lors de la revue précédente"
|
|
7377
7379
|
};
|
|
7378
7380
|
var GLOBAL_KEY = Symbol.for("formkrafter.i18n");
|
|
7379
7381
|
var globalStore = globalThis;
|
|
@@ -9323,5 +9325,5 @@ export {
|
|
|
9323
9325
|
wrapBrickData
|
|
9324
9326
|
};
|
|
9325
9327
|
|
|
9326
|
-
//# debugId=
|
|
9328
|
+
//# debugId=35DCE1488AEE05C464756E2164756E21
|
|
9327
9329
|
//# sourceMappingURL=index.js.map
|