@atscript/vue-form 0.1.112 → 0.1.114

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.
Files changed (105) hide show
  1. package/dist/{as-array-D750y4P8.mjs → as-array-DMMA0WhA.mjs} +4 -4
  2. package/dist/{as-array-3Fu3HnDd.cjs → as-array-opoGhD7Q.cjs} +4 -4
  3. package/dist/as-array.cjs +1 -1
  4. package/dist/as-array.mjs +1 -1
  5. package/dist/{as-checkbox-DwLRHmXj.mjs → as-checkbox-Bg5MN2x8.mjs} +1 -1
  6. package/dist/{as-checkbox-sgF16SuJ.cjs → as-checkbox-C-NoKSv6.cjs} +1 -1
  7. package/dist/as-checkbox.cjs +1 -1
  8. package/dist/as-checkbox.mjs +1 -1
  9. package/dist/{as-collapsible-DFTzB5Ar.mjs → as-collapsible-_RN5621d.mjs} +2 -2
  10. package/dist/{as-collapsible-BQ-eYR0v.cjs → as-collapsible-nMEolKb7.cjs} +2 -2
  11. package/dist/as-collapsible.cjs +1 -1
  12. package/dist/as-collapsible.mjs +1 -1
  13. package/dist/{as-date-hCCTd52o.cjs → as-date-DCZ0t3-h.cjs} +1 -1
  14. package/dist/{as-date-CfCa2Kp1.mjs → as-date-DF8WzVgY.mjs} +1 -1
  15. package/dist/as-date.cjs +1 -1
  16. package/dist/as-date.mjs +1 -1
  17. package/dist/{as-datetime-DDlWca2Q.cjs → as-datetime-BhhbOw99.cjs} +1 -1
  18. package/dist/{as-datetime-B1I_zREk.mjs → as-datetime-wuk9i8Tz.mjs} +1 -1
  19. package/dist/as-datetime.cjs +1 -1
  20. package/dist/as-datetime.mjs +1 -1
  21. package/dist/{as-decimal-C8Yf5dS7.cjs → as-decimal-B1_3ivMF.cjs} +1 -1
  22. package/dist/{as-decimal-Cg17vyjS.mjs → as-decimal-CVp3Wtrz.mjs} +1 -1
  23. package/dist/as-decimal.cjs +1 -1
  24. package/dist/as-decimal.mjs +1 -1
  25. package/dist/{as-field-DKzUSrFN.cjs → as-field-BC3LdGue.cjs} +87 -18
  26. package/dist/{as-field-ByxmIAOc.mjs → as-field-oZeBwI9U.mjs} +77 -20
  27. package/dist/{as-field-shell-DLvPV8WS.mjs → as-field-shell-BErcR8c9.mjs} +1 -1
  28. package/dist/{as-field-shell-C4epFfvE.cjs → as-field-shell-_XX9G3PP.cjs} +1 -1
  29. package/dist/as-field-shell.cjs +1 -1
  30. package/dist/as-field-shell.mjs +1 -1
  31. package/dist/as-field.cjs +1 -1
  32. package/dist/as-field.d.cts +1 -1
  33. package/dist/as-field.d.mts +1 -1
  34. package/dist/as-field.mjs +1 -1
  35. package/dist/{as-field.vue-A2cJj-Ih.d.cts → as-field.vue-BHOc-pFM.d.cts} +1 -1
  36. package/dist/{as-field.vue-CmjIDgQ5.d.mts → as-field.vue-BOTSEvA_.d.mts} +1 -1
  37. package/dist/{as-form-CeyIoLQu.mjs → as-form-KXdLWQMq.mjs} +4 -4
  38. package/dist/{as-form-CTVUwzWx.cjs → as-form-qrsfdEOq.cjs} +4 -4
  39. package/dist/as-form.cjs +1 -1
  40. package/dist/as-form.d.cts +1 -1
  41. package/dist/as-form.d.mts +1 -1
  42. package/dist/as-form.mjs +1 -1
  43. package/dist/{as-form.vue-B4L3nz9h.d.mts → as-form.vue-DJZ7Ub54.d.mts} +111 -4
  44. package/dist/{as-form.vue-Dsp9sK25.d.cts → as-form.vue-DLFb1NRU.d.cts} +111 -4
  45. package/dist/{as-input-Bp1Ltp15.cjs → as-input-CGJZNsPn.cjs} +1 -1
  46. package/dist/{as-input-DF--i7kY.mjs → as-input-CLdDhrzx.mjs} +1 -1
  47. package/dist/as-input.cjs +1 -1
  48. package/dist/as-input.mjs +1 -1
  49. package/dist/as-iterator-CaXKhPjU.mjs +99 -0
  50. package/dist/as-iterator-Cs1qZXGu.cjs +116 -0
  51. package/dist/as-iterator.cjs +1 -1
  52. package/dist/as-iterator.d.cts +1 -1
  53. package/dist/as-iterator.d.mts +1 -1
  54. package/dist/as-iterator.mjs +1 -1
  55. package/dist/{as-iterator.vue-BZeozFr-.d.cts → as-iterator.vue-DYDv_Gbh.d.cts} +7 -0
  56. package/dist/{as-iterator.vue-C8HW6n25.d.mts → as-iterator.vue-diVHA64A.d.mts} +7 -0
  57. package/dist/{as-multi-select-mp-aM3LV.mjs → as-multi-select-BzXxFUZU.mjs} +1 -1
  58. package/dist/{as-multi-select-b1l34vP5.cjs → as-multi-select-DcBATdiH.cjs} +1 -1
  59. package/dist/as-multi-select.cjs +1 -1
  60. package/dist/as-multi-select.mjs +1 -1
  61. package/dist/{as-number-joydTMcJ.cjs → as-number-Bv33W-S9.cjs} +1 -1
  62. package/dist/{as-number-De9zTltV.mjs → as-number-Cros_r8k.mjs} +1 -1
  63. package/dist/as-number.cjs +1 -1
  64. package/dist/as-number.mjs +1 -1
  65. package/dist/{as-object-GXjX_JFz.mjs → as-object-BJG7f5tQ.mjs} +4 -4
  66. package/dist/{as-object-Bc-wd0dQ.cjs → as-object-DindiCq4.cjs} +4 -4
  67. package/dist/as-object.cjs +1 -1
  68. package/dist/as-object.mjs +1 -1
  69. package/dist/{as-radio-SwpgM1xP.mjs → as-radio-CNeg0NQ0.mjs} +1 -1
  70. package/dist/{as-radio-Dlmxk1vr.cjs → as-radio-CjrO1d-4.cjs} +1 -1
  71. package/dist/as-radio.cjs +1 -1
  72. package/dist/as-radio.mjs +1 -1
  73. package/dist/{as-ref-BCpvUq8E.cjs → as-ref-CMDYGqL6.cjs} +1 -1
  74. package/dist/{as-ref-8JnEuan0.mjs → as-ref-v00Tyeum.mjs} +1 -1
  75. package/dist/as-ref.cjs +1 -1
  76. package/dist/as-ref.mjs +1 -1
  77. package/dist/{as-select-C3ukCyGQ.mjs → as-select-BZUE0TJD.mjs} +1 -1
  78. package/dist/{as-select-CtSNZXtC.cjs → as-select-CeFTgQo6.cjs} +1 -1
  79. package/dist/as-select.cjs +1 -1
  80. package/dist/as-select.mjs +1 -1
  81. package/dist/{as-time-nAPtGL3t.cjs → as-time-BMwVQp45.cjs} +1 -1
  82. package/dist/{as-time-QJ9YiVj9.mjs → as-time-CQ2GWcPn.mjs} +1 -1
  83. package/dist/as-time.cjs +1 -1
  84. package/dist/as-time.mjs +1 -1
  85. package/dist/{as-tuple-DJ3koxgJ.cjs → as-tuple-Ca4bIuag.cjs} +4 -4
  86. package/dist/{as-tuple-C7hQyVOD.mjs → as-tuple-H0qDsZKS.mjs} +4 -4
  87. package/dist/as-tuple.cjs +1 -1
  88. package/dist/as-tuple.mjs +1 -1
  89. package/dist/{as-union-DZWgGqqM.mjs → as-union-Car_1kUS.mjs} +2 -2
  90. package/dist/{as-union-BDRNBacb.cjs → as-union-CovWOnmN.cjs} +2 -2
  91. package/dist/as-union.cjs +1 -1
  92. package/dist/as-union.mjs +1 -1
  93. package/dist/index.cjs +66 -23
  94. package/dist/index.d.cts +4 -4
  95. package/dist/index.d.mts +4 -4
  96. package/dist/index.mjs +45 -26
  97. package/dist/{use-as-nested-sections-store-DVRmG7V0.mjs → use-as-nested-sections-store-Dfo971PK.mjs} +13 -1
  98. package/dist/{use-as-nested-sections-store--E0Ijpt5.cjs → use-as-nested-sections-store-u1VgBJAP.cjs} +18 -0
  99. package/dist/{use-as-optional-add-flow-B_gr8sX-.mjs → use-as-optional-add-flow-BdjKNx9P.mjs} +1 -1
  100. package/dist/{use-as-optional-add-flow-BXKiK1Kb.cjs → use-as-optional-add-flow-CD8seN3C.cjs} +1 -1
  101. package/dist/{use-form-context-DpGiGUvJ.cjs → use-form-context-B6ZnzfxG.cjs} +2 -7
  102. package/dist/{use-form-context-D6J1WTyG.mjs → use-form-context-cDW2GW4-.mjs} +5 -10
  103. package/package.json +4 -4
  104. package/dist/as-iterator-CDzc27DB.cjs +0 -65
  105. package/dist/as-iterator-D1SisoDg.mjs +0 -60
@@ -1,8 +1,10 @@
1
1
  import { c as TAsUnionContext, n as TAsChangeType, o as TAsComponentProps, s as TAsTypeComponents } from "./types-nuUi10Kl.mjs";
2
2
  import * as vue from "vue";
3
- import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
3
+ import { Component, ComputedRef, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, WritableComputedRef } from "vue";
4
4
  import * as _atscript_ui0 from "@atscript/ui";
5
- import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
5
+ import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, TResolveOptions, ValueHelpInfo, getDefaultClientFactory, hasFieldMeta as hasFieldMeta$1, isFieldHidden as isFieldHidden$1, joinPath as joinPath$1, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
6
+ import { TFnScope } from "@atscript/ui-fns";
7
+
6
8
  //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.79_@atscript+core@0.1.79_@emnapi+core@1.10.0_@emnapi+runtime@1_1086c0d0c1d4dafb8b522978c17a1c9e/node_modules/@atscript/typescript/dist/utils.d.ts
7
9
  interface TError {
8
10
  path: string;
@@ -757,6 +759,111 @@ declare function provideAsNestedSectionsStore(): AsNestedSectionsStore;
757
759
  * `undefined` if no store is in scope.
758
760
  */
759
761
  declare function useAsNestedSectionsStore(): AsNestedSectionsStore | undefined;
762
+ /**
763
+ * Inject the descendant-error-counts map provided by an ancestor
764
+ * `<AsForm>`: `Map<absolutePath, errorCount>` keyed by every dotted-path
765
+ * prefix that has at least one error at-or-below it. This is the same map
766
+ * `AsObject` reads for its collapsible error badges — custom section
767
+ * renderers (tabbed shells, side-nav layouts) use it to badge their own
768
+ * section chrome and jump to the first errored section. Returns
769
+ * `undefined` if no form is in scope.
770
+ */
771
+ declare function useAsDescendantErrorCounts(): ComputedRef<Map<string, number>> | undefined;
772
+ //#endregion
773
+ //#region src/composables/use-as-level.d.ts
774
+ /**
775
+ * Reactive read-only access to the structured-field nesting level at the
776
+ * current point in the `<AsForm>` tree. `-1` outside any structured field;
777
+ * the root structured field renders at `0`, its structured children at `1`,
778
+ * and so on. Drives the section/island alternation (`AsCollapsible`:
779
+ * L1/L3/L5 → section, L2/L4/L6 → island).
780
+ */
781
+ declare function useAsLevel(): ComputedRef<number>;
782
+ /**
783
+ * Bump the structured-field nesting level for the current Vue subtree,
784
+ * RELATIVE to the injected parent level.
785
+ *
786
+ * For custom CONTAINER renderers (tabbed shells, side-nav layouts) that
787
+ * replace a structured field's collapsible chrome and mount its children
788
+ * directly (e.g. via `<AsIterator :def="field.objectDef">`): without this,
789
+ * the children read the level of the custom renderer's own host field, land
790
+ * one level shallower than the stock rendering, and break the section/island
791
+ * alternation (see {@link useAsLevel}).
792
+ *
793
+ * Call it in the component that wraps the replaced section's BODY with the
794
+ * number of level slots the custom chrome stands in for — usually the
795
+ * default `1` (the section itself). Because the bump is relative, the same
796
+ * renderer stays correct at any depth: nested structured fields resume the
797
+ * stock alternation at `parent + levels + 1`.
798
+ */
799
+ declare function provideAsNestedLevel(levels?: number): void;
800
+ //#endregion
801
+ //#region src/composables/use-as-field-scope.d.ts
802
+ /** Options for {@link UseAsFieldScopeReturn.resolveProp}. */
803
+ interface TResolveFieldPropOptions<T> extends TResolveOptions<T> {
804
+ /** Layer the field's evaluated `entry` into the fn scope (display-style fns). */
805
+ withEntry?: boolean;
806
+ }
807
+ interface UseAsFieldScopeReturn {
808
+ /** Absolute dotted path of a child field (current prefix + `field.path`). */
809
+ absolutePath: (field: FormFieldDef) => string;
810
+ /**
811
+ * Build the fn scope for a child field — `{ v, data, context }` with `v`
812
+ * read at the field's absolute path. `withEntry` layers the evaluated
813
+ * field `entry` on top (constraint fns take the bare scope; display fns
814
+ * take the entry-carrying scope — mirrors AsField's dual-scope pattern).
815
+ */
816
+ scopeFor: (field: FormFieldDef, opts?: {
817
+ withEntry?: boolean;
818
+ }) => TFnScope;
819
+ /**
820
+ * Resolve a `fnKey`/`staticKey` annotation pair on a child field,
821
+ * presence-gated like AsField: neither key present → `undefined` without
822
+ * touching reactive state; only the static key present → resolved against
823
+ * the shared inert scope; fn key present → resolved against the full
824
+ * reactive scope.
825
+ */
826
+ resolveProp: <T>(field: FormFieldDef, fnKey?: string, staticKey?: string, opts?: TResolveFieldPropOptions<T>) => T | undefined;
827
+ }
828
+ /**
829
+ * Child-field scope building + annotation resolution for custom CONTAINER
830
+ * renderers (tabbed shells, side-nav layouts) that partition or decorate a
831
+ * structured field's children without mounting `<AsField>` for each one.
832
+ *
833
+ * Returns plain functions — no internal computeds. Wrap calls in your own
834
+ * `computed` to inherit reactivity over form data.
835
+ */
836
+ declare function useAsFieldScope(): UseAsFieldScopeReturn;
837
+ //#endregion
838
+ //#region src/composables/use-as-optional-field.d.ts
839
+ interface UseAsOptionalFieldReturn {
840
+ /** Whether the field is declared optional in its atscript type. */
841
+ optional: boolean;
842
+ /** Whether the optional field currently holds a value (`!= null`). */
843
+ enabled: ComputedRef<boolean>;
844
+ /**
845
+ * Enable (initialize with annotated defaults, like AsField's optional
846
+ * toggle) or disable (clear to `undefined`) the field. Emits the
847
+ * blur-committed `update` change for the field's absolute path.
848
+ */
849
+ toggle: (enabled: boolean) => void;
850
+ }
851
+ /**
852
+ * Optional-field enable/clear for custom container renderers — the same
853
+ * behavior AsField wires onto `onToggleOptional`, usable without mounting
854
+ * `<AsField>` for the field.
855
+ */
856
+ declare function useAsOptionalField(field: FormFieldDef): UseAsOptionalFieldReturn;
857
+ //#endregion
858
+ //#region src/composables/use-as-visible-fields.d.ts
859
+ /**
860
+ * Partition a field list down to the currently visible fields, with
861
+ * AsField's exact hidden semantics: static `@ui.form.hidden` presence
862
+ * hides unconditionally; `@ui.form.fn.hidden` is resolved against the
863
+ * field's live fn scope. Subscribes to form data only when some field
864
+ * actually carries a `fn.hidden` key (via `resolveProp`'s presence gate).
865
+ */
866
+ declare function useAsVisibleFields(fields: MaybeRefOrGetter<FormFieldDef[] | undefined>): ComputedRef<FormFieldDef[]>;
760
867
  //#endregion
761
868
  //#region src/composables/focus-after-toggle.d.ts
762
869
  /** Run an action, then focus the first focusable input descendant of `scope`. */
@@ -1209,11 +1316,11 @@ interface Props<TF, TC> {
1209
1316
  }
1210
1317
  declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1211
1318
  props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
1319
+ onAction?: ((name: string, data: TFormData) => any) | undefined;
1212
1320
  onError?: ((errors: {
1213
1321
  path: string;
1214
1322
  message: string;
1215
1323
  }[]) => any) | undefined;
1216
- onAction?: ((name: string, data: TFormData) => any) | undefined;
1217
1324
  onSubmit?: ((data: TFormData) => any) | undefined;
1218
1325
  "onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
1219
1326
  onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
@@ -1422,4 +1529,4 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
1422
1529
  declare const _default: typeof __VLS_export;
1423
1530
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
1424
1531
  //#endregion
1425
- export { UseAsTupleReturn as $, UseAsLocaleReturn as A, focusNewFocusableAfter as B, useAsDualInput as C, createAsFormDef as Ct, UseAsDecimalOptions as D, useAsNumber as E, useAsTriStateCheckbox as F, useAsDropdown as G, AsNestedSectionsStore as H, UseAsOptionalAddFlowOptions as I, useAsValueHelp as J, UseAsValueHelpOptions as K, UseAsOptionalAddFlowReturn as L, useAsLocale as M, UseAsTriStateCheckboxOptions as N, UseAsDecimalReturn as O, UseAsTriStateCheckboxReturn as P, useAsUnion as Q, useAsOptionalAddFlow as R, UseAsDualInputReturn as S, createDefaultTypes as St, UseAsNumberReturn as T, provideAsNestedSectionsStore as U, useAsFocusFirstAfter as V, useAsNestedSectionsStore as W, useAsUnionVariant as X, formatIndexedLabelParts as Y, UseAsUnionReturn as Z, useAsPath as _, useAsField as _t, FormFieldChange$1 as a, useAsExternalErrors as at, useAsDate as b, TFormRule as bt, resetDefaultClientFactory as c, useAsForm as ct, useAsErrorDismiss as d, useAsFormPatch as dt, useAsTuple as et, UseAsDataReturn as f, TFormSubmitValidator as ft, UseAsPathReturn as g, UseAsFieldReturn as gt, useAsTypeMap as h, UseAsFieldOptions as ht, FormDiffOptions$1 as i, UseAsExternalErrorsReturn as it, provideAsLocale as j, useAsDecimal as k, setDefaultClientFactory as l, AsFormPatchHandle as lt, UseAsTypeMapReturn as m, useAsState as mt, _default as n, useAsArray as nt, FormRebaseOptions$1 as o, UseAsFormOptions as ot, useAsData as p, UseAsStateReturn as pt, UseAsValueHelpReturn as q, ClientFactory$1 as r, UseAsExternalErrorsOptions as rt, getDefaultClientFactory as s, UseAsFormReturn as st, Props as t, UseAsArrayReturn as tt, AsErrorDismiss as u, RebaseOntoResult as ut, UseAsDateOptions as v, TFormFieldCallbacks as vt, UseAsNumberOptions as w, UseAsDualInputOptions as x, TFormState as xt, UseAsDateReturn as y, TFormFieldRegistration as yt, focusFirstAfter as z };
1532
+ export { AsNestedSectionsStore as $, UseAsDecimalOptions as A, TFormFieldCallbacks as At, UseAsOptionalAddFlowReturn as B, useAsDate as C, useAsFormPatch as Ct, UseAsNumberOptions as D, UseAsFieldOptions as Dt, useAsDualInput as E, useAsState as Et, useAsLocale as F, createAsFormDef as Ft, useAsVisibleFields as G, focusFirstAfter as H, UseAsTriStateCheckboxOptions as I, TResolveFieldPropOptions as J, UseAsOptionalFieldReturn as K, UseAsTriStateCheckboxReturn as L, useAsDecimal as M, TFormRule as Mt, UseAsLocaleReturn as N, TFormState as Nt, UseAsNumberReturn as O, UseAsFieldReturn as Ot, provideAsLocale as P, createDefaultTypes as Pt, useAsLevel as Q, useAsTriStateCheckbox as R, UseAsDateReturn as S, RebaseOntoResult as St, UseAsDualInputReturn as T, UseAsStateReturn as Tt, focusNewFocusableAfter as U, useAsOptionalAddFlow as V, useAsFocusFirstAfter as W, useAsFieldScope as X, UseAsFieldScopeReturn as Y, provideAsNestedLevel as Z, UseAsTypeMapReturn as _, useAsExternalErrors as _t, FormFieldChange$1 as a, UseAsValueHelpReturn as at, useAsPath as b, useAsForm as bt, hasFieldMeta$1 as c, useAsUnionVariant as ct, resetDefaultClientFactory as d, UseAsTupleReturn as dt, provideAsNestedSectionsStore as et, setDefaultClientFactory as f, useAsTuple as ft, useAsData as g, UseAsExternalErrorsReturn as gt, UseAsDataReturn as h, UseAsExternalErrorsOptions as ht, FormDiffOptions$1 as i, UseAsValueHelpOptions as it, UseAsDecimalReturn as j, TFormFieldRegistration as jt, useAsNumber as k, useAsField as kt, isFieldHidden$1 as l, UseAsUnionReturn as lt, useAsErrorDismiss as m, useAsArray as mt, _default as n, useAsNestedSectionsStore as nt, FormRebaseOptions$1 as o, useAsValueHelp as ot, AsErrorDismiss as p, UseAsArrayReturn as pt, useAsOptionalField as q, ClientFactory$1 as r, useAsDropdown as rt, getDefaultClientFactory as s, formatIndexedLabelParts as st, Props as t, useAsDescendantErrorCounts as tt, joinPath$1 as u, useAsUnion as ut, useAsTypeMap as v, UseAsFormOptions as vt, UseAsDualInputOptions as w, TFormSubmitValidator as wt, UseAsDateOptions as x, AsFormPatchHandle as xt, UseAsPathReturn as y, UseAsFormReturn as yt, UseAsOptionalAddFlowOptions as z };
@@ -1,8 +1,10 @@
1
1
  import { c as TAsUnionContext, n as TAsChangeType, o as TAsComponentProps, s as TAsTypeComponents } from "./types-B8aPXWL5.cjs";
2
2
  import * as vue from "vue";
3
- import { Component, ComputedRef, MaybeRef, Ref, ShallowRef, WritableComputedRef } from "vue";
3
+ import { Component, ComputedRef, MaybeRef, MaybeRefOrGetter, Ref, ShallowRef, WritableComputedRef } from "vue";
4
4
  import * as _atscript_ui0 from "@atscript/ui";
5
- import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, ValueHelpInfo, getDefaultClientFactory, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
5
+ import { ClientFactory, ClientFactory as ClientFactory$1, FormArrayFieldDef, FormDef, FormDiffOptions, FormDiffOptions as FormDiffOptions$1, FormFieldChange, FormFieldChange as FormFieldChange$1, FormFieldDef, FormRebaseOptions, FormRebaseOptions as FormRebaseOptions$1, FormTupleFieldDef, FormUnionFieldDef, FormUnionVariant, ResolvedValueHelp, TResolveOptions, ValueHelpInfo, getDefaultClientFactory, hasFieldMeta, isFieldHidden, joinPath, resetDefaultClientFactory, setDefaultClientFactory } from "@atscript/ui";
6
+ import { TFnScope } from "@atscript/ui-fns";
7
+
6
8
  //#region ../../node_modules/.pnpm/@atscript+typescript@0.1.79_@atscript+core@0.1.79_@emnapi+core@1.10.0_@emnapi+runtime@1_1086c0d0c1d4dafb8b522978c17a1c9e/node_modules/@atscript/typescript/dist/utils.d.ts
7
9
  interface TError {
8
10
  path: string;
@@ -757,6 +759,111 @@ declare function provideAsNestedSectionsStore(): AsNestedSectionsStore;
757
759
  * `undefined` if no store is in scope.
758
760
  */
759
761
  declare function useAsNestedSectionsStore(): AsNestedSectionsStore | undefined;
762
+ /**
763
+ * Inject the descendant-error-counts map provided by an ancestor
764
+ * `<AsForm>`: `Map<absolutePath, errorCount>` keyed by every dotted-path
765
+ * prefix that has at least one error at-or-below it. This is the same map
766
+ * `AsObject` reads for its collapsible error badges — custom section
767
+ * renderers (tabbed shells, side-nav layouts) use it to badge their own
768
+ * section chrome and jump to the first errored section. Returns
769
+ * `undefined` if no form is in scope.
770
+ */
771
+ declare function useAsDescendantErrorCounts(): ComputedRef<Map<string, number>> | undefined;
772
+ //#endregion
773
+ //#region src/composables/use-as-level.d.ts
774
+ /**
775
+ * Reactive read-only access to the structured-field nesting level at the
776
+ * current point in the `<AsForm>` tree. `-1` outside any structured field;
777
+ * the root structured field renders at `0`, its structured children at `1`,
778
+ * and so on. Drives the section/island alternation (`AsCollapsible`:
779
+ * L1/L3/L5 → section, L2/L4/L6 → island).
780
+ */
781
+ declare function useAsLevel(): ComputedRef<number>;
782
+ /**
783
+ * Bump the structured-field nesting level for the current Vue subtree,
784
+ * RELATIVE to the injected parent level.
785
+ *
786
+ * For custom CONTAINER renderers (tabbed shells, side-nav layouts) that
787
+ * replace a structured field's collapsible chrome and mount its children
788
+ * directly (e.g. via `<AsIterator :def="field.objectDef">`): without this,
789
+ * the children read the level of the custom renderer's own host field, land
790
+ * one level shallower than the stock rendering, and break the section/island
791
+ * alternation (see {@link useAsLevel}).
792
+ *
793
+ * Call it in the component that wraps the replaced section's BODY with the
794
+ * number of level slots the custom chrome stands in for — usually the
795
+ * default `1` (the section itself). Because the bump is relative, the same
796
+ * renderer stays correct at any depth: nested structured fields resume the
797
+ * stock alternation at `parent + levels + 1`.
798
+ */
799
+ declare function provideAsNestedLevel(levels?: number): void;
800
+ //#endregion
801
+ //#region src/composables/use-as-field-scope.d.ts
802
+ /** Options for {@link UseAsFieldScopeReturn.resolveProp}. */
803
+ interface TResolveFieldPropOptions<T> extends TResolveOptions<T> {
804
+ /** Layer the field's evaluated `entry` into the fn scope (display-style fns). */
805
+ withEntry?: boolean;
806
+ }
807
+ interface UseAsFieldScopeReturn {
808
+ /** Absolute dotted path of a child field (current prefix + `field.path`). */
809
+ absolutePath: (field: FormFieldDef) => string;
810
+ /**
811
+ * Build the fn scope for a child field — `{ v, data, context }` with `v`
812
+ * read at the field's absolute path. `withEntry` layers the evaluated
813
+ * field `entry` on top (constraint fns take the bare scope; display fns
814
+ * take the entry-carrying scope — mirrors AsField's dual-scope pattern).
815
+ */
816
+ scopeFor: (field: FormFieldDef, opts?: {
817
+ withEntry?: boolean;
818
+ }) => TFnScope;
819
+ /**
820
+ * Resolve a `fnKey`/`staticKey` annotation pair on a child field,
821
+ * presence-gated like AsField: neither key present → `undefined` without
822
+ * touching reactive state; only the static key present → resolved against
823
+ * the shared inert scope; fn key present → resolved against the full
824
+ * reactive scope.
825
+ */
826
+ resolveProp: <T>(field: FormFieldDef, fnKey?: string, staticKey?: string, opts?: TResolveFieldPropOptions<T>) => T | undefined;
827
+ }
828
+ /**
829
+ * Child-field scope building + annotation resolution for custom CONTAINER
830
+ * renderers (tabbed shells, side-nav layouts) that partition or decorate a
831
+ * structured field's children without mounting `<AsField>` for each one.
832
+ *
833
+ * Returns plain functions — no internal computeds. Wrap calls in your own
834
+ * `computed` to inherit reactivity over form data.
835
+ */
836
+ declare function useAsFieldScope(): UseAsFieldScopeReturn;
837
+ //#endregion
838
+ //#region src/composables/use-as-optional-field.d.ts
839
+ interface UseAsOptionalFieldReturn {
840
+ /** Whether the field is declared optional in its atscript type. */
841
+ optional: boolean;
842
+ /** Whether the optional field currently holds a value (`!= null`). */
843
+ enabled: ComputedRef<boolean>;
844
+ /**
845
+ * Enable (initialize with annotated defaults, like AsField's optional
846
+ * toggle) or disable (clear to `undefined`) the field. Emits the
847
+ * blur-committed `update` change for the field's absolute path.
848
+ */
849
+ toggle: (enabled: boolean) => void;
850
+ }
851
+ /**
852
+ * Optional-field enable/clear for custom container renderers — the same
853
+ * behavior AsField wires onto `onToggleOptional`, usable without mounting
854
+ * `<AsField>` for the field.
855
+ */
856
+ declare function useAsOptionalField(field: FormFieldDef): UseAsOptionalFieldReturn;
857
+ //#endregion
858
+ //#region src/composables/use-as-visible-fields.d.ts
859
+ /**
860
+ * Partition a field list down to the currently visible fields, with
861
+ * AsField's exact hidden semantics: static `@ui.form.hidden` presence
862
+ * hides unconditionally; `@ui.form.fn.hidden` is resolved against the
863
+ * field's live fn scope. Subscribes to form data only when some field
864
+ * actually carries a `fn.hidden` key (via `resolveProp`'s presence gate).
865
+ */
866
+ declare function useAsVisibleFields(fields: MaybeRefOrGetter<FormFieldDef[] | undefined>): ComputedRef<FormFieldDef[]>;
760
867
  //#endregion
761
868
  //#region src/composables/focus-after-toggle.d.ts
762
869
  /** Run an action, then focus the first focusable input descendant of `scope`. */
@@ -1209,11 +1316,11 @@ interface Props<TF, TC> {
1209
1316
  }
1210
1317
  declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
1211
1318
  props: vue.PublicProps & __VLS_PrettifyLocal<Props<TFormData, TFormContext> & {
1319
+ onAction?: ((name: string, data: TFormData) => any) | undefined;
1212
1320
  onError?: ((errors: {
1213
1321
  path: string;
1214
1322
  message: string;
1215
1323
  }[]) => any) | undefined;
1216
- onAction?: ((name: string, data: TFormData) => any) | undefined;
1217
1324
  onSubmit?: ((data: TFormData) => any) | undefined;
1218
1325
  "onUnsupported-action"?: ((name: string, data: TFormData) => any) | undefined;
1219
1326
  onChange?: ((type: TAsChangeType, path: string, value: unknown, formData: TFormData) => any) | undefined;
@@ -1422,4 +1529,4 @@ declare const __VLS_export: <TFormData = any, TFormContext = any>(__VLS_props: N
1422
1529
  declare const _default: typeof __VLS_export;
1423
1530
  type __VLS_PrettifyLocal<T> = (T extends any ? { [K in keyof T]: T[K] } : { [K in keyof T as K]: T[K] }) & {};
1424
1531
  //#endregion
1425
- export { UseAsTupleReturn as $, UseAsLocaleReturn as A, focusNewFocusableAfter as B, useAsDualInput as C, createAsFormDef as Ct, UseAsDecimalOptions as D, useAsNumber as E, useAsTriStateCheckbox as F, useAsDropdown as G, AsNestedSectionsStore as H, UseAsOptionalAddFlowOptions as I, useAsValueHelp as J, UseAsValueHelpOptions as K, UseAsOptionalAddFlowReturn as L, useAsLocale as M, UseAsTriStateCheckboxOptions as N, UseAsDecimalReturn as O, UseAsTriStateCheckboxReturn as P, useAsUnion as Q, useAsOptionalAddFlow as R, UseAsDualInputReturn as S, createDefaultTypes as St, UseAsNumberReturn as T, provideAsNestedSectionsStore as U, useAsFocusFirstAfter as V, useAsNestedSectionsStore as W, useAsUnionVariant as X, formatIndexedLabelParts as Y, UseAsUnionReturn as Z, useAsPath as _, useAsField as _t, FormFieldChange$1 as a, useAsExternalErrors as at, useAsDate as b, TFormRule as bt, resetDefaultClientFactory as c, useAsForm as ct, useAsErrorDismiss as d, useAsFormPatch as dt, useAsTuple as et, UseAsDataReturn as f, TFormSubmitValidator as ft, UseAsPathReturn as g, UseAsFieldReturn as gt, useAsTypeMap as h, UseAsFieldOptions as ht, FormDiffOptions$1 as i, UseAsExternalErrorsReturn as it, provideAsLocale as j, useAsDecimal as k, setDefaultClientFactory as l, AsFormPatchHandle as lt, UseAsTypeMapReturn as m, useAsState as mt, _default as n, useAsArray as nt, FormRebaseOptions$1 as o, UseAsFormOptions as ot, useAsData as p, UseAsStateReturn as pt, UseAsValueHelpReturn as q, ClientFactory$1 as r, UseAsExternalErrorsOptions as rt, getDefaultClientFactory as s, UseAsFormReturn as st, Props as t, UseAsArrayReturn as tt, AsErrorDismiss as u, RebaseOntoResult as ut, UseAsDateOptions as v, TFormFieldCallbacks as vt, UseAsNumberOptions as w, UseAsDualInputOptions as x, TFormState as xt, UseAsDateReturn as y, TFormFieldRegistration as yt, focusFirstAfter as z };
1532
+ export { AsNestedSectionsStore as $, UseAsDecimalOptions as A, TFormFieldCallbacks as At, UseAsOptionalAddFlowReturn as B, useAsDate as C, useAsFormPatch as Ct, UseAsNumberOptions as D, UseAsFieldOptions as Dt, useAsDualInput as E, useAsState as Et, useAsLocale as F, createAsFormDef as Ft, useAsVisibleFields as G, focusFirstAfter as H, UseAsTriStateCheckboxOptions as I, TResolveFieldPropOptions as J, UseAsOptionalFieldReturn as K, UseAsTriStateCheckboxReturn as L, useAsDecimal as M, TFormRule as Mt, UseAsLocaleReturn as N, TFormState as Nt, UseAsNumberReturn as O, UseAsFieldReturn as Ot, provideAsLocale as P, createDefaultTypes as Pt, useAsLevel as Q, useAsTriStateCheckbox as R, UseAsDateReturn as S, RebaseOntoResult as St, UseAsDualInputReturn as T, UseAsStateReturn as Tt, focusNewFocusableAfter as U, useAsOptionalAddFlow as V, useAsFocusFirstAfter as W, useAsFieldScope as X, UseAsFieldScopeReturn as Y, provideAsNestedLevel as Z, UseAsTypeMapReturn as _, useAsExternalErrors as _t, FormFieldChange$1 as a, UseAsValueHelpReturn as at, useAsPath as b, useAsForm as bt, hasFieldMeta as c, useAsUnionVariant as ct, resetDefaultClientFactory as d, UseAsTupleReturn as dt, provideAsNestedSectionsStore as et, setDefaultClientFactory as f, useAsTuple as ft, useAsData as g, UseAsExternalErrorsReturn as gt, UseAsDataReturn as h, UseAsExternalErrorsOptions as ht, FormDiffOptions$1 as i, UseAsValueHelpOptions as it, UseAsDecimalReturn as j, TFormFieldRegistration as jt, useAsNumber as k, useAsField as kt, isFieldHidden as l, UseAsUnionReturn as lt, useAsErrorDismiss as m, useAsArray as mt, _default as n, useAsNestedSectionsStore as nt, FormRebaseOptions$1 as o, useAsValueHelp as ot, AsErrorDismiss as p, UseAsArrayReturn as pt, useAsOptionalField as q, ClientFactory$1 as r, useAsDropdown as rt, getDefaultClientFactory as s, formatIndexedLabelParts as st, Props as t, useAsDescendantErrorCounts as tt, joinPath as u, useAsUnion as ut, useAsTypeMap as v, UseAsFormOptions as vt, UseAsDualInputOptions as w, TFormSubmitValidator as wt, UseAsDateOptions as x, AsFormPatchHandle as xt, UseAsPathReturn as y, UseAsFormReturn as yt, UseAsOptionalAddFlowOptions as z };
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-_XX9G3PP.cjs");
2
2
  const require_as_input_control = require("./as-input-control-B7F2q99A.cjs");
3
3
  const require_as_adornment_shell = require("./as-adornment-shell-DptUMWNk.cjs");
4
4
  let vue = require("vue");
@@ -1,4 +1,4 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-BErcR8c9.mjs";
2
2
  import { t as as_input_control_default } from "./as-input-control-BofS4mCo.mjs";
3
3
  import { t as as_adornment_shell_default } from "./as-adornment-shell-C4A2fnDp.mjs";
4
4
  import { computed, createBlock, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeProps, openBlock, withCtx } from "vue";
package/dist/as-input.cjs CHANGED
@@ -1,2 +1,2 @@
1
- const require_as_input = require("./as-input-Bp1Ltp15.cjs");
1
+ const require_as_input = require("./as-input-CGJZNsPn.cjs");
2
2
  module.exports = require_as_input.as_input_default;
package/dist/as-input.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { t as as_input_default } from "./as-input-DF--i7kY.mjs";
1
+ import { t as as_input_default } from "./as-input-CLdDhrzx.mjs";
2
2
  export { as_input_default as default };
@@ -0,0 +1,99 @@
1
+ import { h as PATH_PREFIX_KEY, m as LEVEL_KEY } from "./use-form-context-cDW2GW4-.mjs";
2
+ import { t as as_field_default } from "./as-field-oZeBwI9U.mjs";
3
+ import { Fragment, computed, createBlock, createElementBlock, defineComponent, inject, openBlock, provide, renderList } from "vue";
4
+ import { joinPath } from "@atscript/ui";
5
+ //#region src/composables/use-as-level.ts
6
+ const ROOT_LEVEL = computed(() => -1);
7
+ /**
8
+ * Reactive read-only access to the structured-field nesting level at the
9
+ * current point in the `<AsForm>` tree. `-1` outside any structured field;
10
+ * the root structured field renders at `0`, its structured children at `1`,
11
+ * and so on. Drives the section/island alternation (`AsCollapsible`:
12
+ * L1/L3/L5 → section, L2/L4/L6 → island).
13
+ */
14
+ function useAsLevel() {
15
+ return inject(LEVEL_KEY, ROOT_LEVEL);
16
+ }
17
+ /**
18
+ * Bump the structured-field nesting level for the current Vue subtree,
19
+ * RELATIVE to the injected parent level.
20
+ *
21
+ * For custom CONTAINER renderers (tabbed shells, side-nav layouts) that
22
+ * replace a structured field's collapsible chrome and mount its children
23
+ * directly (e.g. via `<AsIterator :def="field.objectDef">`): without this,
24
+ * the children read the level of the custom renderer's own host field, land
25
+ * one level shallower than the stock rendering, and break the section/island
26
+ * alternation (see {@link useAsLevel}).
27
+ *
28
+ * Call it in the component that wraps the replaced section's BODY with the
29
+ * number of level slots the custom chrome stands in for — usually the
30
+ * default `1` (the section itself). Because the bump is relative, the same
31
+ * renderer stays correct at any depth: nested structured fields resume the
32
+ * stock alternation at `parent + levels + 1`.
33
+ */
34
+ function provideAsNestedLevel(levels = 1) {
35
+ const parent = inject(LEVEL_KEY, ROOT_LEVEL);
36
+ provide(LEVEL_KEY, computed(() => parent.value + levels));
37
+ }
38
+ //#endregion
39
+ //#region src/components/as-iterator.vue
40
+ var as_iterator_default = /* @__PURE__ */ defineComponent({
41
+ __name: "as-iterator",
42
+ props: {
43
+ def: {
44
+ type: Object,
45
+ required: true
46
+ },
47
+ pathPrefix: {
48
+ type: String,
49
+ required: false
50
+ },
51
+ onRemove: {
52
+ type: Function,
53
+ required: false
54
+ },
55
+ canRemove: {
56
+ type: Boolean,
57
+ required: false
58
+ },
59
+ removeLabel: {
60
+ type: String,
61
+ required: false
62
+ },
63
+ fields: {
64
+ type: Array,
65
+ required: false
66
+ },
67
+ levels: {
68
+ type: Number,
69
+ required: false
70
+ }
71
+ },
72
+ setup(__props) {
73
+ const props = __props;
74
+ const parentPrefix = inject(PATH_PREFIX_KEY, computed(() => ""));
75
+ provide(PATH_PREFIX_KEY, computed(() => {
76
+ if (props.pathPrefix !== void 0) return joinPath(parentPrefix.value, props.pathPrefix);
77
+ return parentPrefix.value;
78
+ }));
79
+ if (props.levels !== void 0) provideAsNestedLevel(props.levels);
80
+ return (_ctx, _cache) => {
81
+ return openBlock(true), createElementBlock(Fragment, null, renderList(__props.fields ?? __props.def.fields, (f) => {
82
+ return openBlock(), createBlock(as_field_default, {
83
+ key: f.path ?? f.name,
84
+ field: f,
85
+ "on-remove": __props.onRemove,
86
+ "can-remove": __props.canRemove,
87
+ "remove-label": __props.removeLabel
88
+ }, null, 8, [
89
+ "field",
90
+ "on-remove",
91
+ "can-remove",
92
+ "remove-label"
93
+ ]);
94
+ }), 128);
95
+ };
96
+ }
97
+ });
98
+ //#endregion
99
+ export { provideAsNestedLevel as n, useAsLevel as r, as_iterator_default as t };
@@ -0,0 +1,116 @@
1
+ const require_use_form_context = require("./use-form-context-B6ZnzfxG.cjs");
2
+ const require_as_field = require("./as-field-BC3LdGue.cjs");
3
+ let vue = require("vue");
4
+ let _atscript_ui = require("@atscript/ui");
5
+ //#region src/composables/use-as-level.ts
6
+ const ROOT_LEVEL = (0, vue.computed)(() => -1);
7
+ /**
8
+ * Reactive read-only access to the structured-field nesting level at the
9
+ * current point in the `<AsForm>` tree. `-1` outside any structured field;
10
+ * the root structured field renders at `0`, its structured children at `1`,
11
+ * and so on. Drives the section/island alternation (`AsCollapsible`:
12
+ * L1/L3/L5 → section, L2/L4/L6 → island).
13
+ */
14
+ function useAsLevel() {
15
+ return (0, vue.inject)(require_use_form_context.LEVEL_KEY, ROOT_LEVEL);
16
+ }
17
+ /**
18
+ * Bump the structured-field nesting level for the current Vue subtree,
19
+ * RELATIVE to the injected parent level.
20
+ *
21
+ * For custom CONTAINER renderers (tabbed shells, side-nav layouts) that
22
+ * replace a structured field's collapsible chrome and mount its children
23
+ * directly (e.g. via `<AsIterator :def="field.objectDef">`): without this,
24
+ * the children read the level of the custom renderer's own host field, land
25
+ * one level shallower than the stock rendering, and break the section/island
26
+ * alternation (see {@link useAsLevel}).
27
+ *
28
+ * Call it in the component that wraps the replaced section's BODY with the
29
+ * number of level slots the custom chrome stands in for — usually the
30
+ * default `1` (the section itself). Because the bump is relative, the same
31
+ * renderer stays correct at any depth: nested structured fields resume the
32
+ * stock alternation at `parent + levels + 1`.
33
+ */
34
+ function provideAsNestedLevel(levels = 1) {
35
+ const parent = (0, vue.inject)(require_use_form_context.LEVEL_KEY, ROOT_LEVEL);
36
+ (0, vue.provide)(require_use_form_context.LEVEL_KEY, (0, vue.computed)(() => parent.value + levels));
37
+ }
38
+ //#endregion
39
+ //#region src/components/as-iterator.vue
40
+ var as_iterator_default = /* @__PURE__ */ (0, vue.defineComponent)({
41
+ __name: "as-iterator",
42
+ props: {
43
+ def: {
44
+ type: Object,
45
+ required: true
46
+ },
47
+ pathPrefix: {
48
+ type: String,
49
+ required: false
50
+ },
51
+ onRemove: {
52
+ type: Function,
53
+ required: false
54
+ },
55
+ canRemove: {
56
+ type: Boolean,
57
+ required: false
58
+ },
59
+ removeLabel: {
60
+ type: String,
61
+ required: false
62
+ },
63
+ fields: {
64
+ type: Array,
65
+ required: false
66
+ },
67
+ levels: {
68
+ type: Number,
69
+ required: false
70
+ }
71
+ },
72
+ setup(__props) {
73
+ const props = __props;
74
+ const parentPrefix = (0, vue.inject)(require_use_form_context.PATH_PREFIX_KEY, (0, vue.computed)(() => ""));
75
+ (0, vue.provide)(require_use_form_context.PATH_PREFIX_KEY, (0, vue.computed)(() => {
76
+ if (props.pathPrefix !== void 0) return (0, _atscript_ui.joinPath)(parentPrefix.value, props.pathPrefix);
77
+ return parentPrefix.value;
78
+ }));
79
+ if (props.levels !== void 0) provideAsNestedLevel(props.levels);
80
+ return (_ctx, _cache) => {
81
+ return (0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(__props.fields ?? __props.def.fields, (f) => {
82
+ return (0, vue.openBlock)(), (0, vue.createBlock)(require_as_field.as_field_default, {
83
+ key: f.path ?? f.name,
84
+ field: f,
85
+ "on-remove": __props.onRemove,
86
+ "can-remove": __props.canRemove,
87
+ "remove-label": __props.removeLabel
88
+ }, null, 8, [
89
+ "field",
90
+ "on-remove",
91
+ "can-remove",
92
+ "remove-label"
93
+ ]);
94
+ }), 128);
95
+ };
96
+ }
97
+ });
98
+ //#endregion
99
+ Object.defineProperty(exports, "as_iterator_default", {
100
+ enumerable: true,
101
+ get: function() {
102
+ return as_iterator_default;
103
+ }
104
+ });
105
+ Object.defineProperty(exports, "provideAsNestedLevel", {
106
+ enumerable: true,
107
+ get: function() {
108
+ return provideAsNestedLevel;
109
+ }
110
+ });
111
+ Object.defineProperty(exports, "useAsLevel", {
112
+ enumerable: true,
113
+ get: function() {
114
+ return useAsLevel;
115
+ }
116
+ });
@@ -1,2 +1,2 @@
1
- const require_as_iterator = require("./as-iterator-CDzc27DB.cjs");
1
+ const require_as_iterator = require("./as-iterator-Cs1qZXGu.cjs");
2
2
  module.exports = require_as_iterator.as_iterator_default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-iterator.vue-BZeozFr-.cjs";
1
+ import { t as _default } from "./as-iterator.vue-DYDv_Gbh.cjs";
2
2
  export = _default;
@@ -1,2 +1,2 @@
1
- import { t as _default } from "./as-iterator.vue-C8HW6n25.mjs";
1
+ import { t as _default } from "./as-iterator.vue-diVHA64A.mjs";
2
2
  export { _default as default };
@@ -1,2 +1,2 @@
1
- import { t as as_iterator_default } from "./as-iterator-D1SisoDg.mjs";
1
+ import { t as as_iterator_default } from "./as-iterator-CaXKhPjU.mjs";
2
2
  export { as_iterator_default as default };
@@ -15,6 +15,13 @@ type __VLS_Props = {
15
15
  * across the two grids without re-scanning per frame.
16
16
  */
17
17
  fields?: FormFieldDef[];
18
+ /**
19
+ * Bump the nesting level for rendered children RELATIVE to the injected
20
+ * parent level (sugar over `provideAsNestedLevel`). For custom container
21
+ * panes standing in for a structured field's section chrome. Setup-time /
22
+ * non-reactive — an identity of the pane, like `pathPrefix`.
23
+ */
24
+ levels?: number;
18
25
  };
19
26
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
20
27
  declare const _default: typeof __VLS_export;
@@ -15,6 +15,13 @@ type __VLS_Props = {
15
15
  * across the two grids without re-scanning per frame.
16
16
  */
17
17
  fields?: FormFieldDef[];
18
+ /**
19
+ * Bump the nesting level for rendered children RELATIVE to the injected
20
+ * parent level (sugar over `provideAsNestedLevel`). For custom container
21
+ * panes standing in for a structured field's section chrome. Setup-time /
22
+ * non-reactive — an identity of the pane, like `pathPrefix`.
23
+ */
24
+ levels?: number;
18
25
  };
19
26
  declare const __VLS_export: vue.DefineComponent<__VLS_Props, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, false, {}, any>;
20
27
  declare const _default: typeof __VLS_export;
@@ -1,4 +1,4 @@
1
- import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
1
+ import { t as as_field_shell_default } from "./as-field-shell-BErcR8c9.mjs";
2
2
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, mergeProps, openBlock, ref, renderList, toDisplayString, unref, withCtx, withModifiers } from "vue";
3
3
  import { optKey, optLabel } from "@atscript/ui";
4
4
  import { ComboboxAnchor, ComboboxContent, ComboboxEmpty, ComboboxInput, ComboboxItem, ComboboxPortal, ComboboxRoot, ComboboxViewport } from "reka-ui";
@@ -1,4 +1,4 @@
1
- const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
1
+ const require_as_field_shell = require("./as-field-shell-_XX9G3PP.cjs");
2
2
  let vue = require("vue");
3
3
  let _atscript_ui = require("@atscript/ui");
4
4
  let reka_ui = require("reka-ui");
@@ -1,2 +1,2 @@
1
- const require_as_multi_select = require("./as-multi-select-b1l34vP5.cjs");
1
+ const require_as_multi_select = require("./as-multi-select-DcBATdiH.cjs");
2
2
  module.exports = require_as_multi_select.as_multi_select_default;
@@ -1,2 +1,2 @@
1
- import { t as as_multi_select_default } from "./as-multi-select-mp-aM3LV.mjs";
1
+ import { t as as_multi_select_default } from "./as-multi-select-BzXxFUZU.mjs";
2
2
  export { as_multi_select_default as default };
@@ -1,5 +1,5 @@
1
1
  const require_use_as_locale = require("./use-as-locale-C4z5stwD.cjs");
2
- const require_as_field_shell = require("./as-field-shell-C4epFfvE.cjs");
2
+ const require_as_field_shell = require("./as-field-shell-_XX9G3PP.cjs");
3
3
  const require_as_input_control = require("./as-input-control-B7F2q99A.cjs");
4
4
  let vue = require("vue");
5
5
  let _atscript_ui = require("@atscript/ui");
@@ -1,5 +1,5 @@
1
1
  import { n as useAsLocale } from "./use-as-locale-BrFdAgnU.mjs";
2
- import { t as as_field_shell_default } from "./as-field-shell-DLvPV8WS.mjs";
2
+ import { t as as_field_shell_default } from "./as-field-shell-BErcR8c9.mjs";
3
3
  import { t as as_input_control_default } from "./as-input-control-BofS4mCo.mjs";
4
4
  import { Fragment, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createVNode, defineComponent, guardReactiveProps, mergeProps, normalizeClass, normalizeProps, openBlock, ref, toDisplayString, withCtx } from "vue";
5
5
  import { getDecimalSeparator, parseDecimalInput } from "@atscript/ui";
@@ -1,2 +1,2 @@
1
- const require_as_number = require("./as-number-joydTMcJ.cjs");
1
+ const require_as_number = require("./as-number-Bv33W-S9.cjs");
2
2
  module.exports = require_as_number.as_number_default;