@logixjs/form 0.0.1
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/Error-VvknI9Wj.d.cts +37 -0
- package/dist/Error-VvknI9Wj.d.ts +37 -0
- package/dist/Error.cjs +46 -0
- package/dist/Error.cjs.map +1 -0
- package/dist/Error.d.cts +1 -0
- package/dist/Error.d.ts +1 -0
- package/dist/Error.js +14 -0
- package/dist/Error.js.map +1 -0
- package/dist/Form.cjs +2455 -0
- package/dist/Form.cjs.map +1 -0
- package/dist/Form.d.cts +64 -0
- package/dist/Form.d.ts +64 -0
- package/dist/Form.js +25 -0
- package/dist/Form.js.map +1 -0
- package/dist/FormView-CAg9LVrf.d.cts +17 -0
- package/dist/FormView-CAg9LVrf.d.ts +17 -0
- package/dist/FormView.cjs +61 -0
- package/dist/FormView.cjs.map +1 -0
- package/dist/FormView.d.cts +1 -0
- package/dist/FormView.d.ts +1 -0
- package/dist/FormView.js +8 -0
- package/dist/FormView.js.map +1 -0
- package/dist/Path-DOjMkAS6.d.cts +42 -0
- package/dist/Path-DOjMkAS6.d.ts +42 -0
- package/dist/Path.cjs +132 -0
- package/dist/Path.cjs.map +1 -0
- package/dist/Path.d.cts +1 -0
- package/dist/Path.d.ts +1 -0
- package/dist/Path.js +22 -0
- package/dist/Path.js.map +1 -0
- package/dist/Rule-BOAiSVz9.d.cts +202 -0
- package/dist/Rule-BOAiSVz9.d.ts +202 -0
- package/dist/Rule.cjs +307 -0
- package/dist/Rule.cjs.map +1 -0
- package/dist/Rule.d.cts +2 -0
- package/dist/Rule.d.ts +2 -0
- package/dist/Rule.js +34 -0
- package/dist/Rule.js.map +1 -0
- package/dist/SchemaErrorMapping-Cu5gl7-Z.d.ts +50 -0
- package/dist/SchemaErrorMapping-DOrgLzii.d.cts +50 -0
- package/dist/SchemaErrorMapping.cjs +305 -0
- package/dist/SchemaErrorMapping.cjs.map +1 -0
- package/dist/SchemaErrorMapping.d.cts +2 -0
- package/dist/SchemaErrorMapping.d.ts +2 -0
- package/dist/SchemaErrorMapping.js +17 -0
- package/dist/SchemaErrorMapping.js.map +1 -0
- package/dist/SchemaPathMapping-BCoUW-_q.d.ts +16 -0
- package/dist/SchemaPathMapping-BUq2zm8W.d.cts +20 -0
- package/dist/SchemaPathMapping-BUq2zm8W.d.ts +20 -0
- package/dist/SchemaPathMapping-DJnExqM3.d.cts +16 -0
- package/dist/SchemaPathMapping.cjs +179 -0
- package/dist/SchemaPathMapping.cjs.map +1 -0
- package/dist/SchemaPathMapping.d.cts +2 -0
- package/dist/SchemaPathMapping.d.ts +2 -0
- package/dist/SchemaPathMapping.js +12 -0
- package/dist/SchemaPathMapping.js.map +1 -0
- package/dist/Trait-Bu794ROY.d.cts +49 -0
- package/dist/Trait-Bu794ROY.d.ts +49 -0
- package/dist/Trait.cjs +48 -0
- package/dist/Trait.cjs.map +1 -0
- package/dist/Trait.d.cts +2 -0
- package/dist/Trait.d.ts +2 -0
- package/dist/Trait.js +12 -0
- package/dist/Trait.js.map +1 -0
- package/dist/chunk-5DRI5UGD.js +105 -0
- package/dist/chunk-5DRI5UGD.js.map +1 -0
- package/dist/chunk-AD2ZA7KA.js +23 -0
- package/dist/chunk-AD2ZA7KA.js.map +1 -0
- package/dist/chunk-EOXJRCM6.js +146 -0
- package/dist/chunk-EOXJRCM6.js.map +1 -0
- package/dist/chunk-JZ5FZKPJ.js +71 -0
- package/dist/chunk-JZ5FZKPJ.js.map +1 -0
- package/dist/chunk-LNJJPZAG.js +46 -0
- package/dist/chunk-LNJJPZAG.js.map +1 -0
- package/dist/chunk-NAR5SIFP.js +22 -0
- package/dist/chunk-NAR5SIFP.js.map +1 -0
- package/dist/chunk-OJVEZKU7.js +117 -0
- package/dist/chunk-OJVEZKU7.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-S5JTU2CM.js +31 -0
- package/dist/chunk-S5JTU2CM.js.map +1 -0
- package/dist/chunk-YHDEJ47V.js +1885 -0
- package/dist/chunk-YHDEJ47V.js.map +1 -0
- package/dist/chunk-YVHXLY63.js +315 -0
- package/dist/chunk-YVHXLY63.js.map +1 -0
- package/dist/impl-BfSlyM58.d.ts +225 -0
- package/dist/impl-Ccdm5eDF.d.cts +225 -0
- package/dist/index.cjs +2689 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +12 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +56 -0
- package/dist/index.js.map +1 -0
- package/dist/react/index.cjs +332 -0
- package/dist/react/index.cjs.map +1 -0
- package/dist/react/index.d.cts +43 -0
- package/dist/react/index.d.ts +43 -0
- package/dist/react/index.js +201 -0
- package/dist/react/index.js.map +1 -0
- package/package.json +62 -0
package/dist/Form.d.ts
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { r as rules } from './impl-BfSlyM58.js';
|
|
2
|
+
export { f as FormAction, j as FormController, F as FormErrors, i as FormExtendDef, k as FormHandleExt, h as FormMakeConfig, d as FormMeta, l as FormModule, g as FormShape, e as FormState, c as FormUiState, n as RuleDescriptor, o as RuleScope, R as RulesDsl, p as RulesManifest, a as RulesNode, b as RulesSpec, m as make } from './impl-BfSlyM58.js';
|
|
3
|
+
import { Schema } from 'effect';
|
|
4
|
+
import { D as DerivedSpec } from './Trait-Bu794ROY.js';
|
|
5
|
+
import * as Logix from '@logixjs/core';
|
|
6
|
+
import { j as RuleEntry } from './Rule-BOAiSVz9.js';
|
|
7
|
+
export { d as CanonicalListItem, c as CanonicalListPath, C as CanonicalPath, b as CanonicalValue, F as FieldPath, a as FieldValue } from './Rule-BOAiSVz9.js';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Form.derived:
|
|
11
|
+
* - Provides "type narrowing based on the values schema" for derived specs, so you can compose derived fragments
|
|
12
|
+
* without losing type information.
|
|
13
|
+
* - Does no extra runtime normalization; final validation is still governed by Form.make guardrails.
|
|
14
|
+
*/
|
|
15
|
+
declare const derived: <TValues extends object, I>(_valuesSchema: Schema.Schema<TValues, I>) => (spec: DerivedSpec<TValues>) => DerivedSpec<TValues>;
|
|
16
|
+
|
|
17
|
+
type NonNull<T> = Exclude<T, null | undefined>;
|
|
18
|
+
type ListItem<T> = NonNull<T> extends readonly (infer Item)[] ? Item : never;
|
|
19
|
+
type NodeSpec$1<Input = unknown, Ctx = unknown> = Omit<Logix.StateTrait.StateTraitNode<Input, Ctx>, '_tag' | 'check'> & {
|
|
20
|
+
readonly check?: Readonly<Record<string, RuleEntry<Input, Ctx>>>;
|
|
21
|
+
};
|
|
22
|
+
type ListSpec$1<Item = unknown> = Omit<Logix.StateTrait.StateTraitList<Item>, '_tag' | 'item' | 'list'> & {
|
|
23
|
+
readonly item?: NodeSpec$1<Item, any> | Logix.StateTrait.StateTraitNode<Item, any>;
|
|
24
|
+
readonly list?: NodeSpec$1<ReadonlyArray<Item>, any> | Logix.StateTrait.StateTraitNode<ReadonlyArray<Item>, any>;
|
|
25
|
+
};
|
|
26
|
+
type NodeInput<Input, Ctx = unknown> = NodeSpec$1<Input, Ctx> | Logix.StateTrait.StateTraitNode<Input, Ctx>;
|
|
27
|
+
type ListInput<Item> = ListSpec$1<Item> | Logix.StateTrait.StateTraitList<Item>;
|
|
28
|
+
type TraitValueForPath<TValues extends object, P extends Logix.StateTrait.StateFieldPath<TValues>> = Logix.StateTrait.StateTraitEntry<TValues, P> | NodeInput<Logix.StateTrait.StateAtPath<TValues, P>, any> | (Logix.StateTrait.StateAtPath<TValues, P> extends readonly any[] ? ListInput<ListItem<Logix.StateTrait.StateAtPath<TValues, P>>> : never);
|
|
29
|
+
type TraitsSpec<TValues extends object> = {
|
|
30
|
+
readonly [P in Logix.StateTrait.StateFieldPath<TValues>]?: TraitValueForPath<TValues, P>;
|
|
31
|
+
} & {
|
|
32
|
+
readonly $root?: NodeInput<TValues, any>;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Form.traits:
|
|
36
|
+
* - Phase 3: a minimal entry point for "type narrowing + fragment organization".
|
|
37
|
+
* - Allows mixing in raw node/list fragments (auto-fills StateTrait.node/list tags).
|
|
38
|
+
* - Form defaults `check.deps=[]`; only declare deps when you need "cross-field linked validation triggers".
|
|
39
|
+
* - Returns a StateTraitSpec fragment that can be spread directly (assembled by Form.make).
|
|
40
|
+
*/
|
|
41
|
+
declare const traits: <TValues extends object, I>(_valuesSchema: Schema.Schema<TValues, I>) => {
|
|
42
|
+
(spec: TraitsSpec<TValues>): Logix.StateTrait.StateTraitSpec<TValues>;
|
|
43
|
+
(spec: Logix.StateTrait.StateTraitSpec<TValues>): Logix.StateTrait.StateTraitSpec<TValues>;
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
type FormFrom<TValues extends object> = Readonly<{
|
|
47
|
+
readonly derived: ReturnType<typeof derived<TValues, any>>;
|
|
48
|
+
readonly rules: ReturnType<typeof rules<TValues, any>>;
|
|
49
|
+
readonly traits: ReturnType<typeof traits<TValues, any>>;
|
|
50
|
+
}>;
|
|
51
|
+
declare const fromValues: <TValues extends object, I>(valuesSchema: Schema.Schema<TValues, I>) => FormFrom<TValues>;
|
|
52
|
+
|
|
53
|
+
type NodeSpec<Input = unknown, Ctx = unknown> = Omit<Logix.StateTrait.StateTraitNode<Input, Ctx>, '_tag' | 'check'> & {
|
|
54
|
+
readonly check?: Readonly<Record<string, RuleEntry<Input, Ctx>>>;
|
|
55
|
+
};
|
|
56
|
+
declare const node: <Input = unknown, Ctx = unknown>(spec: NodeSpec<Input, Ctx>) => Logix.StateTrait.StateTraitNode<Input, Ctx>;
|
|
57
|
+
|
|
58
|
+
type ListSpec<Item = unknown> = Omit<Logix.StateTrait.StateTraitList<Item>, '_tag' | 'item' | 'list'> & {
|
|
59
|
+
readonly item?: NodeSpec$1<Item, any> | Logix.StateTrait.StateTraitNode<Item, any>;
|
|
60
|
+
readonly list?: NodeSpec$1<ReadonlyArray<Item>, any> | Logix.StateTrait.StateTraitNode<ReadonlyArray<Item>, any>;
|
|
61
|
+
};
|
|
62
|
+
declare const list: <Item = unknown>(spec: ListSpec<Item>) => Logix.StateTrait.StateTraitList<Item>;
|
|
63
|
+
|
|
64
|
+
export { type FormFrom, type ListSpec$1 as ListSpec, type NodeSpec$1 as NodeSpec, type TraitsSpec, derived, fromValues, list, node, rules, traits };
|
package/dist/Form.js
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
derived,
|
|
3
|
+
fromValues,
|
|
4
|
+
list,
|
|
5
|
+
make,
|
|
6
|
+
node,
|
|
7
|
+
rules,
|
|
8
|
+
traits
|
|
9
|
+
} from "./chunk-YHDEJ47V.js";
|
|
10
|
+
import "./chunk-YVHXLY63.js";
|
|
11
|
+
import "./chunk-JZ5FZKPJ.js";
|
|
12
|
+
import "./chunk-5DRI5UGD.js";
|
|
13
|
+
import "./chunk-OJVEZKU7.js";
|
|
14
|
+
import "./chunk-EOXJRCM6.js";
|
|
15
|
+
import "./chunk-PZ5AY32C.js";
|
|
16
|
+
export {
|
|
17
|
+
derived,
|
|
18
|
+
fromValues,
|
|
19
|
+
list,
|
|
20
|
+
make,
|
|
21
|
+
node,
|
|
22
|
+
rules,
|
|
23
|
+
traits
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=Form.js.map
|
package/dist/Form.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type FormView = {
|
|
2
|
+
readonly canSubmit: boolean;
|
|
3
|
+
readonly isSubmitting: boolean;
|
|
4
|
+
readonly isValid: boolean;
|
|
5
|
+
readonly isDirty: boolean;
|
|
6
|
+
readonly isPristine: boolean;
|
|
7
|
+
readonly submitCount: number;
|
|
8
|
+
};
|
|
9
|
+
declare const getFormView: (state: unknown, prev?: FormView) => FormView;
|
|
10
|
+
|
|
11
|
+
type FormView$1_FormView = FormView;
|
|
12
|
+
declare const FormView$1_getFormView: typeof getFormView;
|
|
13
|
+
declare namespace FormView$1 {
|
|
14
|
+
export { type FormView$1_FormView as FormView, FormView$1_getFormView as getFormView };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { FormView$1 as F, type FormView as a, getFormView as g };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
type FormView = {
|
|
2
|
+
readonly canSubmit: boolean;
|
|
3
|
+
readonly isSubmitting: boolean;
|
|
4
|
+
readonly isValid: boolean;
|
|
5
|
+
readonly isDirty: boolean;
|
|
6
|
+
readonly isPristine: boolean;
|
|
7
|
+
readonly submitCount: number;
|
|
8
|
+
};
|
|
9
|
+
declare const getFormView: (state: unknown, prev?: FormView) => FormView;
|
|
10
|
+
|
|
11
|
+
type FormView$1_FormView = FormView;
|
|
12
|
+
declare const FormView$1_getFormView: typeof getFormView;
|
|
13
|
+
declare namespace FormView$1 {
|
|
14
|
+
export { type FormView$1_FormView as FormView, FormView$1_getFormView as getFormView };
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { FormView$1 as F, type FormView as a, getFormView as g };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/FormView.ts
|
|
21
|
+
var FormView_exports = {};
|
|
22
|
+
__export(FormView_exports, {
|
|
23
|
+
getFormView: () => getFormView
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(FormView_exports);
|
|
26
|
+
var readSnapshot = (state) => {
|
|
27
|
+
const meta = state && typeof state === "object" && !Array.isArray(state) ? state.$form : void 0;
|
|
28
|
+
const safe = meta && typeof meta === "object" && !Array.isArray(meta) ? meta : void 0;
|
|
29
|
+
const submitCount = typeof safe?.submitCount === "number" && Number.isFinite(safe.submitCount) ? safe.submitCount : 0;
|
|
30
|
+
const isSubmitting = safe?.isSubmitting === true;
|
|
31
|
+
const isDirty = safe?.isDirty === true;
|
|
32
|
+
const errorCount = typeof safe?.errorCount === "number" && Number.isFinite(safe.errorCount) ? safe.errorCount : 0;
|
|
33
|
+
return {
|
|
34
|
+
submitCount,
|
|
35
|
+
isSubmitting,
|
|
36
|
+
isDirty,
|
|
37
|
+
errorCount
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
var getFormView = (state, prev) => {
|
|
41
|
+
const snap = readSnapshot(state);
|
|
42
|
+
const isValid = snap.errorCount === 0;
|
|
43
|
+
const isPristine = !snap.isDirty;
|
|
44
|
+
const canSubmit = !snap.isSubmitting && isValid;
|
|
45
|
+
if (prev && prev.submitCount === snap.submitCount && prev.isSubmitting === snap.isSubmitting && prev.isDirty === snap.isDirty && prev.isValid === isValid) {
|
|
46
|
+
return prev;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
canSubmit,
|
|
50
|
+
isSubmitting: snap.isSubmitting,
|
|
51
|
+
isValid,
|
|
52
|
+
isDirty: snap.isDirty,
|
|
53
|
+
isPristine,
|
|
54
|
+
submitCount: snap.submitCount
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
58
|
+
0 && (module.exports = {
|
|
59
|
+
getFormView
|
|
60
|
+
});
|
|
61
|
+
//# sourceMappingURL=FormView.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/FormView.ts"],"sourcesContent":["export type FormView = {\n readonly canSubmit: boolean\n readonly isSubmitting: boolean\n readonly isValid: boolean\n readonly isDirty: boolean\n readonly isPristine: boolean\n readonly submitCount: number\n}\n\ntype Snapshot = {\n readonly submitCount: number\n readonly isSubmitting: boolean\n readonly isDirty: boolean\n readonly errorCount: number\n}\n\nconst readSnapshot = (state: unknown): Snapshot => {\n const meta = state && typeof state === 'object' && !Array.isArray(state) ? (state as any).$form : undefined\n const safe = meta && typeof meta === 'object' && !Array.isArray(meta) ? (meta as any) : undefined\n\n const submitCount = typeof safe?.submitCount === 'number' && Number.isFinite(safe.submitCount) ? safe.submitCount : 0\n const isSubmitting = safe?.isSubmitting === true\n const isDirty = safe?.isDirty === true\n const errorCount = typeof safe?.errorCount === 'number' && Number.isFinite(safe.errorCount) ? safe.errorCount : 0\n\n return {\n submitCount,\n isSubmitting,\n isDirty,\n errorCount,\n }\n}\n\nexport const getFormView = (state: unknown, prev?: FormView): FormView => {\n const snap = readSnapshot(state)\n const isValid = snap.errorCount === 0\n const isPristine = !snap.isDirty\n const canSubmit = !snap.isSubmitting && isValid\n\n if (\n prev &&\n prev.submitCount === snap.submitCount &&\n prev.isSubmitting === snap.isSubmitting &&\n prev.isDirty === snap.isDirty &&\n prev.isValid === isValid\n ) {\n return prev\n }\n\n return {\n canSubmit,\n isSubmitting: snap.isSubmitting,\n isValid,\n isDirty: snap.isDirty,\n isPristine,\n submitCount: snap.submitCount,\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgBA,IAAM,eAAe,CAAC,UAA6B;AACjD,QAAM,OAAO,SAAS,OAAO,UAAU,YAAY,CAAC,MAAM,QAAQ,KAAK,IAAK,MAAc,QAAQ;AAClG,QAAM,OAAO,QAAQ,OAAO,SAAS,YAAY,CAAC,MAAM,QAAQ,IAAI,IAAK,OAAe;AAExF,QAAM,cAAc,OAAO,MAAM,gBAAgB,YAAY,OAAO,SAAS,KAAK,WAAW,IAAI,KAAK,cAAc;AACpH,QAAM,eAAe,MAAM,iBAAiB;AAC5C,QAAM,UAAU,MAAM,YAAY;AAClC,QAAM,aAAa,OAAO,MAAM,eAAe,YAAY,OAAO,SAAS,KAAK,UAAU,IAAI,KAAK,aAAa;AAEhH,SAAO;AAAA,IACL;AAAA,IACA;AAAA,IACA;AAAA,IACA;AAAA,EACF;AACF;AAEO,IAAM,cAAc,CAAC,OAAgB,SAA8B;AACxE,QAAM,OAAO,aAAa,KAAK;AAC/B,QAAM,UAAU,KAAK,eAAe;AACpC,QAAM,aAAa,CAAC,KAAK;AACzB,QAAM,YAAY,CAAC,KAAK,gBAAgB;AAExC,MACE,QACA,KAAK,gBAAgB,KAAK,eAC1B,KAAK,iBAAiB,KAAK,gBAC3B,KAAK,YAAY,KAAK,WACtB,KAAK,YAAY,SACjB;AACA,WAAO;AAAA,EACT;AAEA,SAAO;AAAA,IACL;AAAA,IACA,cAAc,KAAK;AAAA,IACnB;AAAA,IACA,SAAS,KAAK;AAAA,IACd;AAAA,IACA,aAAa,KAAK;AAAA,EACpB;AACF;","names":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as FormView, g as getFormView } from './FormView-CAg9LVrf.cjs';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { a as FormView, g as getFormView } from './FormView-CAg9LVrf.js';
|
package/dist/FormView.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type ValuePath = string;
|
|
2
|
+
type PatternPath = string;
|
|
3
|
+
type ListPath = string;
|
|
4
|
+
type ErrorsPath = string;
|
|
5
|
+
type UiPath = string;
|
|
6
|
+
type FieldPath = ReadonlyArray<string>;
|
|
7
|
+
declare const toPatternPath: (valuePath: ValuePath) => PatternPath;
|
|
8
|
+
declare const toListPath: (valuePath: ValuePath) => ListPath | undefined;
|
|
9
|
+
declare const toErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
10
|
+
declare const toManualErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
11
|
+
declare const toSchemaErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
12
|
+
declare const toUiPath: (valuePath: ValuePath) => UiPath;
|
|
13
|
+
declare const toFieldPath: (path: ValuePath | PatternPath) => FieldPath;
|
|
14
|
+
declare const Path: {
|
|
15
|
+
readonly toPatternPath: (valuePath: ValuePath) => PatternPath;
|
|
16
|
+
readonly toListPath: (valuePath: ValuePath) => ListPath | undefined;
|
|
17
|
+
readonly toErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
18
|
+
readonly toManualErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
19
|
+
readonly toSchemaErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
20
|
+
readonly toUiPath: (valuePath: ValuePath) => UiPath;
|
|
21
|
+
readonly toFieldPath: (path: ValuePath | PatternPath) => FieldPath;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type Path$1_ErrorsPath = ErrorsPath;
|
|
25
|
+
type Path$1_FieldPath = FieldPath;
|
|
26
|
+
type Path$1_ListPath = ListPath;
|
|
27
|
+
declare const Path$1_Path: typeof Path;
|
|
28
|
+
type Path$1_PatternPath = PatternPath;
|
|
29
|
+
type Path$1_UiPath = UiPath;
|
|
30
|
+
type Path$1_ValuePath = ValuePath;
|
|
31
|
+
declare const Path$1_toErrorsPath: typeof toErrorsPath;
|
|
32
|
+
declare const Path$1_toFieldPath: typeof toFieldPath;
|
|
33
|
+
declare const Path$1_toListPath: typeof toListPath;
|
|
34
|
+
declare const Path$1_toManualErrorsPath: typeof toManualErrorsPath;
|
|
35
|
+
declare const Path$1_toPatternPath: typeof toPatternPath;
|
|
36
|
+
declare const Path$1_toSchemaErrorsPath: typeof toSchemaErrorsPath;
|
|
37
|
+
declare const Path$1_toUiPath: typeof toUiPath;
|
|
38
|
+
declare namespace Path$1 {
|
|
39
|
+
export { type Path$1_ErrorsPath as ErrorsPath, type Path$1_FieldPath as FieldPath, type Path$1_ListPath as ListPath, Path$1_Path as Path, type Path$1_PatternPath as PatternPath, type Path$1_UiPath as UiPath, type Path$1_ValuePath as ValuePath, Path$1_toErrorsPath as toErrorsPath, Path$1_toFieldPath as toFieldPath, Path$1_toListPath as toListPath, Path$1_toManualErrorsPath as toManualErrorsPath, Path$1_toPatternPath as toPatternPath, Path$1_toSchemaErrorsPath as toSchemaErrorsPath, Path$1_toUiPath as toUiPath };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { type ErrorsPath as E, type FieldPath as F, type ListPath as L, Path$1 as P, type UiPath as U, type ValuePath as V, type PatternPath as a, toListPath as b, toErrorsPath as c, toManualErrorsPath as d, toSchemaErrorsPath as e, toUiPath as f, toFieldPath as g, Path as h, toPatternPath as t };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
type ValuePath = string;
|
|
2
|
+
type PatternPath = string;
|
|
3
|
+
type ListPath = string;
|
|
4
|
+
type ErrorsPath = string;
|
|
5
|
+
type UiPath = string;
|
|
6
|
+
type FieldPath = ReadonlyArray<string>;
|
|
7
|
+
declare const toPatternPath: (valuePath: ValuePath) => PatternPath;
|
|
8
|
+
declare const toListPath: (valuePath: ValuePath) => ListPath | undefined;
|
|
9
|
+
declare const toErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
10
|
+
declare const toManualErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
11
|
+
declare const toSchemaErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
12
|
+
declare const toUiPath: (valuePath: ValuePath) => UiPath;
|
|
13
|
+
declare const toFieldPath: (path: ValuePath | PatternPath) => FieldPath;
|
|
14
|
+
declare const Path: {
|
|
15
|
+
readonly toPatternPath: (valuePath: ValuePath) => PatternPath;
|
|
16
|
+
readonly toListPath: (valuePath: ValuePath) => ListPath | undefined;
|
|
17
|
+
readonly toErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
18
|
+
readonly toManualErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
19
|
+
readonly toSchemaErrorsPath: (valuePath: ValuePath) => ErrorsPath;
|
|
20
|
+
readonly toUiPath: (valuePath: ValuePath) => UiPath;
|
|
21
|
+
readonly toFieldPath: (path: ValuePath | PatternPath) => FieldPath;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type Path$1_ErrorsPath = ErrorsPath;
|
|
25
|
+
type Path$1_FieldPath = FieldPath;
|
|
26
|
+
type Path$1_ListPath = ListPath;
|
|
27
|
+
declare const Path$1_Path: typeof Path;
|
|
28
|
+
type Path$1_PatternPath = PatternPath;
|
|
29
|
+
type Path$1_UiPath = UiPath;
|
|
30
|
+
type Path$1_ValuePath = ValuePath;
|
|
31
|
+
declare const Path$1_toErrorsPath: typeof toErrorsPath;
|
|
32
|
+
declare const Path$1_toFieldPath: typeof toFieldPath;
|
|
33
|
+
declare const Path$1_toListPath: typeof toListPath;
|
|
34
|
+
declare const Path$1_toManualErrorsPath: typeof toManualErrorsPath;
|
|
35
|
+
declare const Path$1_toPatternPath: typeof toPatternPath;
|
|
36
|
+
declare const Path$1_toSchemaErrorsPath: typeof toSchemaErrorsPath;
|
|
37
|
+
declare const Path$1_toUiPath: typeof toUiPath;
|
|
38
|
+
declare namespace Path$1 {
|
|
39
|
+
export { type Path$1_ErrorsPath as ErrorsPath, type Path$1_FieldPath as FieldPath, type Path$1_ListPath as ListPath, Path$1_Path as Path, type Path$1_PatternPath as PatternPath, type Path$1_UiPath as UiPath, type Path$1_ValuePath as ValuePath, Path$1_toErrorsPath as toErrorsPath, Path$1_toFieldPath as toFieldPath, Path$1_toListPath as toListPath, Path$1_toManualErrorsPath as toManualErrorsPath, Path$1_toPatternPath as toPatternPath, Path$1_toSchemaErrorsPath as toSchemaErrorsPath, Path$1_toUiPath as toUiPath };
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export { type ErrorsPath as E, type FieldPath as F, type ListPath as L, Path$1 as P, type UiPath as U, type ValuePath as V, type PatternPath as a, toListPath as b, toErrorsPath as c, toManualErrorsPath as d, toSchemaErrorsPath as e, toUiPath as f, toFieldPath as g, Path as h, toPatternPath as t };
|
package/dist/Path.cjs
ADDED
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/Path.ts
|
|
21
|
+
var Path_exports = {};
|
|
22
|
+
__export(Path_exports, {
|
|
23
|
+
Path: () => Path,
|
|
24
|
+
toErrorsPath: () => toErrorsPath,
|
|
25
|
+
toFieldPath: () => toFieldPath,
|
|
26
|
+
toListPath: () => toListPath,
|
|
27
|
+
toManualErrorsPath: () => toManualErrorsPath,
|
|
28
|
+
toPatternPath: () => toPatternPath,
|
|
29
|
+
toSchemaErrorsPath: () => toSchemaErrorsPath,
|
|
30
|
+
toUiPath: () => toUiPath
|
|
31
|
+
});
|
|
32
|
+
module.exports = __toCommonJS(Path_exports);
|
|
33
|
+
var isNumericSegment = (seg) => /^[0-9]+$/.test(seg);
|
|
34
|
+
var splitPath = (path) => {
|
|
35
|
+
if (!path) return [];
|
|
36
|
+
const parts = path.split(".").filter((p) => p.length > 0);
|
|
37
|
+
const segs = [];
|
|
38
|
+
for (const part of parts) {
|
|
39
|
+
if (!part) continue;
|
|
40
|
+
if (part.endsWith("[]")) {
|
|
41
|
+
const base = part.slice(0, -2);
|
|
42
|
+
if (base) segs.push(base);
|
|
43
|
+
segs.push("[]");
|
|
44
|
+
continue;
|
|
45
|
+
}
|
|
46
|
+
const bracket = /^(.+)\[(\d+)\]$/.exec(part);
|
|
47
|
+
if (bracket) {
|
|
48
|
+
const base = bracket[1];
|
|
49
|
+
if (base) segs.push(base);
|
|
50
|
+
segs.push(bracket[2]);
|
|
51
|
+
continue;
|
|
52
|
+
}
|
|
53
|
+
segs.push(part);
|
|
54
|
+
}
|
|
55
|
+
return segs;
|
|
56
|
+
};
|
|
57
|
+
var toPatternPath = (valuePath) => {
|
|
58
|
+
if (!valuePath) return valuePath;
|
|
59
|
+
const segs = splitPath(valuePath);
|
|
60
|
+
const out = [];
|
|
61
|
+
for (const seg of segs) {
|
|
62
|
+
if (seg === "[]" || isNumericSegment(seg)) {
|
|
63
|
+
if (out.length === 0) continue;
|
|
64
|
+
const last = out[out.length - 1];
|
|
65
|
+
if (!last.endsWith("[]")) out[out.length - 1] = `${last}[]`;
|
|
66
|
+
continue;
|
|
67
|
+
}
|
|
68
|
+
out.push(seg);
|
|
69
|
+
}
|
|
70
|
+
return out.join(".");
|
|
71
|
+
};
|
|
72
|
+
var toListPath = (valuePath) => {
|
|
73
|
+
const segs = splitPath(valuePath);
|
|
74
|
+
const firstIndex = segs.findIndex((seg) => seg === "[]" || isNumericSegment(seg));
|
|
75
|
+
if (firstIndex <= 0) return void 0;
|
|
76
|
+
return segs.slice(0, firstIndex).join(".");
|
|
77
|
+
};
|
|
78
|
+
var toErrorsPath = (valuePath) => {
|
|
79
|
+
if (!valuePath) return "errors";
|
|
80
|
+
const segs = splitPath(valuePath);
|
|
81
|
+
const out = [];
|
|
82
|
+
for (const seg of segs) {
|
|
83
|
+
if (isNumericSegment(seg)) {
|
|
84
|
+
out.push("rows", seg);
|
|
85
|
+
continue;
|
|
86
|
+
}
|
|
87
|
+
if (seg === "[]") {
|
|
88
|
+
continue;
|
|
89
|
+
}
|
|
90
|
+
out.push(seg);
|
|
91
|
+
}
|
|
92
|
+
return `errors.${out.join(".")}`;
|
|
93
|
+
};
|
|
94
|
+
var toManualErrorsPath = (valuePath) => {
|
|
95
|
+
const base = toErrorsPath(valuePath);
|
|
96
|
+
return base === "errors" ? "errors.$manual" : base.replace(/^errors\./, "errors.$manual.");
|
|
97
|
+
};
|
|
98
|
+
var toSchemaErrorsPath = (valuePath) => {
|
|
99
|
+
const base = toErrorsPath(valuePath);
|
|
100
|
+
return base === "errors" ? "errors.$schema" : base.replace(/^errors\./, "errors.$schema.");
|
|
101
|
+
};
|
|
102
|
+
var toUiPath = (valuePath) => valuePath ? `ui.${valuePath}` : "ui";
|
|
103
|
+
var toFieldPath = (path) => {
|
|
104
|
+
const segs = splitPath(path);
|
|
105
|
+
const out = [];
|
|
106
|
+
for (const seg of segs) {
|
|
107
|
+
if (seg === "[]" || isNumericSegment(seg)) continue;
|
|
108
|
+
out.push(seg);
|
|
109
|
+
}
|
|
110
|
+
return out.length > 0 ? out : ["$root"];
|
|
111
|
+
};
|
|
112
|
+
var Path = {
|
|
113
|
+
toPatternPath,
|
|
114
|
+
toListPath,
|
|
115
|
+
toErrorsPath,
|
|
116
|
+
toManualErrorsPath,
|
|
117
|
+
toSchemaErrorsPath,
|
|
118
|
+
toUiPath,
|
|
119
|
+
toFieldPath
|
|
120
|
+
};
|
|
121
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
122
|
+
0 && (module.exports = {
|
|
123
|
+
Path,
|
|
124
|
+
toErrorsPath,
|
|
125
|
+
toFieldPath,
|
|
126
|
+
toListPath,
|
|
127
|
+
toManualErrorsPath,
|
|
128
|
+
toPatternPath,
|
|
129
|
+
toSchemaErrorsPath,
|
|
130
|
+
toUiPath
|
|
131
|
+
});
|
|
132
|
+
//# sourceMappingURL=Path.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/Path.ts"],"sourcesContent":["export type ValuePath = string\nexport type PatternPath = string\nexport type ListPath = string\nexport type ErrorsPath = string\nexport type UiPath = string\nexport type FieldPath = ReadonlyArray<string>\n\nconst isNumericSegment = (seg: string): boolean => /^[0-9]+$/.test(seg)\n\nconst splitPath = (path: string): ReadonlyArray<string> => {\n if (!path) return []\n const parts = path.split('.').filter((p) => p.length > 0)\n const segs: Array<string> = []\n\n for (const part of parts) {\n if (!part) continue\n if (part.endsWith('[]')) {\n const base = part.slice(0, -2)\n if (base) segs.push(base)\n segs.push('[]')\n continue\n }\n const bracket = /^(.+)\\[(\\d+)\\]$/.exec(part)\n if (bracket) {\n const base = bracket[1]!\n if (base) segs.push(base)\n segs.push(bracket[2]!)\n continue\n }\n segs.push(part)\n }\n\n return segs\n}\n\nexport const toPatternPath = (valuePath: ValuePath): PatternPath => {\n if (!valuePath) return valuePath\n const segs = splitPath(valuePath)\n const out: Array<string> = []\n\n for (const seg of segs) {\n if (seg === '[]' || isNumericSegment(seg)) {\n if (out.length === 0) continue\n const last = out[out.length - 1]!\n if (!last.endsWith('[]')) out[out.length - 1] = `${last}[]`\n continue\n }\n out.push(seg)\n }\n\n return out.join('.')\n}\n\nexport const toListPath = (valuePath: ValuePath): ListPath | undefined => {\n const segs = splitPath(valuePath)\n const firstIndex = segs.findIndex((seg) => seg === '[]' || isNumericSegment(seg))\n if (firstIndex <= 0) return undefined\n return segs.slice(0, firstIndex).join('.')\n}\n\nexport const toErrorsPath = (valuePath: ValuePath): ErrorsPath => {\n if (!valuePath) return 'errors'\n const segs = splitPath(valuePath)\n const out: Array<string> = []\n\n for (const seg of segs) {\n if (isNumericSegment(seg)) {\n out.push('rows', seg)\n continue\n }\n if (seg === '[]') {\n continue\n }\n out.push(seg)\n }\n\n return `errors.${out.join('.')}`\n}\n\nexport const toManualErrorsPath = (valuePath: ValuePath): ErrorsPath => {\n const base = toErrorsPath(valuePath)\n return base === 'errors' ? 'errors.$manual' : base.replace(/^errors\\./, 'errors.$manual.')\n}\n\nexport const toSchemaErrorsPath = (valuePath: ValuePath): ErrorsPath => {\n const base = toErrorsPath(valuePath)\n return base === 'errors' ? 'errors.$schema' : base.replace(/^errors\\./, 'errors.$schema.')\n}\n\nexport const toUiPath = (valuePath: ValuePath): UiPath => (valuePath ? `ui.${valuePath}` : 'ui')\n\nexport const toFieldPath = (path: ValuePath | PatternPath): FieldPath => {\n const segs = splitPath(path)\n const out: Array<string> = []\n for (const seg of segs) {\n if (seg === '[]' || isNumericSegment(seg)) continue\n out.push(seg)\n }\n return out.length > 0 ? out : ['$root']\n}\n\nexport const Path = {\n toPatternPath,\n toListPath,\n toErrorsPath,\n toManualErrorsPath,\n toSchemaErrorsPath,\n toUiPath,\n toFieldPath,\n} as const\n"],"mappings":"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","names":[]}
|
package/dist/Path.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { E as ErrorsPath, F as FieldPath, L as ListPath, h as Path, a as PatternPath, U as UiPath, V as ValuePath, c as toErrorsPath, g as toFieldPath, b as toListPath, d as toManualErrorsPath, t as toPatternPath, e as toSchemaErrorsPath, f as toUiPath } from './Path-DOjMkAS6.cjs';
|
package/dist/Path.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { E as ErrorsPath, F as FieldPath, L as ListPath, h as Path, a as PatternPath, U as UiPath, V as ValuePath, c as toErrorsPath, g as toFieldPath, b as toListPath, d as toManualErrorsPath, t as toPatternPath, e as toSchemaErrorsPath, f as toUiPath } from './Path-DOjMkAS6.js';
|
package/dist/Path.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
Path,
|
|
3
|
+
toErrorsPath,
|
|
4
|
+
toFieldPath,
|
|
5
|
+
toListPath,
|
|
6
|
+
toManualErrorsPath,
|
|
7
|
+
toPatternPath,
|
|
8
|
+
toSchemaErrorsPath,
|
|
9
|
+
toUiPath
|
|
10
|
+
} from "./chunk-OJVEZKU7.js";
|
|
11
|
+
import "./chunk-PZ5AY32C.js";
|
|
12
|
+
export {
|
|
13
|
+
Path,
|
|
14
|
+
toErrorsPath,
|
|
15
|
+
toFieldPath,
|
|
16
|
+
toListPath,
|
|
17
|
+
toManualErrorsPath,
|
|
18
|
+
toPatternPath,
|
|
19
|
+
toSchemaErrorsPath,
|
|
20
|
+
toUiPath
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=Path.js.map
|
package/dist/Path.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|