mlform 0.1.8 → 0.1.10
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/README.md +21 -17
- package/dist/builtins-D8rXH4ED.js +725 -0
- package/dist/{design-system-Dxx1Sh7r.js → design-6suKVQDo.js} +577 -396
- package/dist/mlform/builtins.mjs +2 -0
- package/dist/mlform/design.mjs +2 -0
- package/dist/mlform/kit.mjs +1896 -3
- package/dist/mlform/primitives.mjs +2 -2
- package/dist/mlform/runtime.mjs +3 -5
- package/dist/mlform/schema.mjs +2 -102
- package/dist/mlform/transport.mjs +2 -2
- package/dist/{primitives-Duag8Lj0.js → primitives-k9HTnd72.js} +2304 -3348
- package/dist/runtime-CI7vlp9i.js +1703 -0
- package/dist/schema-DSAZ6bts.js +88 -0
- package/dist/{transport-CtVX8ZUT.js → transport-CO6udZ6z.js} +633 -605
- package/dist/types/builtins/definitions/collections.d.ts +70 -0
- package/dist/types/builtins/definitions/fields/boolean.d.ts +9 -0
- package/dist/types/builtins/definitions/fields/category.d.ts +12 -0
- package/dist/types/builtins/definitions/fields/date.d.ts +10 -0
- package/dist/types/builtins/definitions/fields/long-text.d.ts +11 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/mapped-category.d.ts +3 -2
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/multi-choice.d.ts +3 -2
- package/dist/types/builtins/definitions/fields/number.d.ts +12 -0
- package/dist/types/builtins/definitions/fields/rating.d.ts +10 -0
- package/dist/types/builtins/definitions/fields/series-helpers.d.ts +52 -0
- package/dist/types/builtins/definitions/fields/series.d.ts +3 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/single-choice.d.ts +3 -2
- package/dist/types/builtins/definitions/fields/text.d.ts +11 -0
- package/dist/types/{src/shared/object.d.ts → builtins/definitions/fields/value-helpers.d.ts} +1 -0
- package/dist/types/builtins/definitions/index.d.ts +14 -0
- package/dist/types/builtins/definitions/reports/classifier.d.ts +9 -0
- package/dist/types/builtins/definitions/reports/regressor.d.ts +9 -0
- package/dist/types/{src/runtime/builtins → builtins/definitions}/shared.d.ts +16 -1
- package/dist/types/builtins/index.d.ts +5 -0
- package/dist/types/builtins/mapped-category-behavior.d.ts +2 -0
- package/dist/types/builtins/registry-pack.d.ts +10 -0
- package/dist/types/design/recipes/collections.d.ts +2 -0
- package/dist/types/design/recipes/index.d.ts +2 -0
- package/dist/types/{src/design-system → design}/registry/builtins.d.ts +0 -3
- package/dist/types/{src/design-system → design}/registry/index.d.ts +3 -1
- package/dist/types/design/resolve/index.d.ts +4 -0
- package/dist/types/{src/design-system/resolve/index.d.ts → design/resolve/resolve-design.d.ts} +0 -3
- package/dist/types/design/runtime/controller-helpers.d.ts +12 -0
- package/dist/types/{src/design-system → design}/runtime/index.d.ts +3 -3
- package/dist/types/design/themes/airbnb.d.ts +2 -0
- package/dist/types/design/themes/clickhouse.d.ts +2 -0
- package/dist/types/design/themes/collections.d.ts +2 -0
- package/dist/types/design/themes/index.d.ts +3 -0
- package/dist/types/{src/design-system → design}/types.d.ts +1 -1
- package/dist/types/{src/kit → kit}/constants.d.ts +3 -11
- package/dist/types/{src/kit → kit}/defaults.d.ts +4 -4
- package/dist/types/kit/disclosure-root-styles.d.ts +1 -0
- package/dist/types/kit/error-navigation.d.ts +3 -0
- package/dist/types/kit/index.d.ts +7 -0
- package/dist/types/{src/presentation → kit/kinds}/define-field-kind.d.ts +11 -3
- package/dist/types/kit/kinds/define-report-kind.d.ts +40 -0
- package/dist/types/kit/kinds/index.d.ts +3 -0
- package/dist/types/kit/kinds/register-kind.d.ts +5 -0
- package/dist/types/{src/kit → kit}/layout-helpers.d.ts +7 -11
- package/dist/types/kit/layout-node-render.d.ts +18 -0
- package/dist/types/{src/kit → kit}/layout-node-resolver.d.ts +1 -1
- package/dist/types/{src/kit/accordion-root.d.ts → kit/layout-root.d.ts} +3 -4
- package/dist/types/{src/kit → kit}/layout-types.d.ts +8 -36
- package/dist/types/{src/kit → kit}/layout-utils.d.ts +0 -1
- package/dist/types/{src/kit → kit}/layout.d.ts +2 -2
- package/dist/types/{src/kit → kit}/mount-types.d.ts +8 -7
- package/dist/types/{src/kit → kit}/panel-nav.d.ts +1 -1
- package/dist/types/{src/kit → kit}/tabs-root.d.ts +1 -2
- package/dist/types/kit/types.d.ts +4 -0
- package/dist/types/kit/view-core-types.d.ts +110 -0
- package/dist/types/{src/kit → kit}/view-layout-state.d.ts +10 -3
- package/dist/types/{src/kit → kit}/view-navigation.d.ts +4 -4
- package/dist/types/kit/view-snapshot-cache.d.ts +14 -0
- package/dist/types/kit/view-snapshot.d.ts +15 -0
- package/dist/types/kit/view-types.d.ts +1 -0
- package/dist/types/kit/view.d.ts +2 -0
- package/dist/types/{src/kit → kit}/wizard-root.d.ts +1 -2
- package/dist/types/{src/primitives → primitives}/base-async-report-element.d.ts +1 -1
- package/dist/types/{src/primitives → primitives}/base-field-element.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/base-report-element.d.ts +3 -3
- package/dist/types/primitives/components/descriptor-content.d.ts +4 -0
- package/dist/types/primitives/components/error-focus.d.ts +5 -0
- package/dist/types/{src/primitives → primitives}/components/field-frame-feedback.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/components/field-frame.d.ts +3 -3
- package/dist/types/{src/primitives → primitives}/components/form-errors.d.ts +2 -2
- package/dist/types/primitives/components/form-root-presenters.d.ts +12 -0
- package/dist/types/primitives/components/form-root-split-styles.d.ts +1 -0
- package/dist/types/{src/primitives → primitives}/components/form-root-state.d.ts +4 -6
- package/dist/types/{src/primitives → primitives}/components/form-root-templates.d.ts +4 -8
- package/dist/types/{src/primitives → primitives}/components/form-root.d.ts +4 -4
- package/dist/types/{src/primitives → primitives}/components/report-frame.d.ts +4 -4
- package/dist/types/{src/primitives → primitives}/components/submit-button.d.ts +2 -2
- package/dist/types/{src/primitives → primitives}/constants.d.ts +6 -9
- package/dist/types/primitives/controller-types.d.ts +96 -0
- package/dist/types/primitives/descriptor-resolution.d.ts +6 -0
- package/dist/types/primitives/descriptors/content.d.ts +61 -0
- package/dist/types/primitives/descriptors/field.d.ts +32 -0
- package/dist/types/primitives/descriptors/index.d.ts +5 -0
- package/dist/types/primitives/descriptors/registry.d.ts +11 -0
- package/dist/types/primitives/descriptors/report.d.ts +20 -0
- package/dist/types/primitives/fields/series-field-renderers.d.ts +18 -0
- package/dist/types/primitives/index.d.ts +13 -0
- package/dist/types/primitives/mount-form.d.ts +4 -0
- package/dist/types/primitives/request-runner.d.ts +13 -0
- package/dist/types/{src/primitives → primitives}/types.d.ts +16 -53
- package/dist/types/runtime/create-runtime-helpers.d.ts +11 -0
- package/dist/types/{src/runtime → runtime}/errors.d.ts +3 -4
- package/dist/types/runtime/index.d.ts +10 -0
- package/dist/types/{src/runtime → runtime}/reports/controller.d.ts +3 -2
- package/dist/types/{src/runtime → runtime}/runtime-behaviors.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/runtime-controller.d.ts +1 -5
- package/dist/types/{src/runtime → runtime}/state/engine.d.ts +1 -2
- package/dist/types/runtime/submission/create-submitter.d.ts +2 -0
- package/dist/types/{src/runtime → runtime}/submission/index.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/submission/lifecycle.d.ts +1 -2
- package/dist/types/runtime/submission/pending-patches.d.ts +2 -0
- package/dist/types/{src/runtime → runtime}/submission/pipeline.d.ts +1 -1
- package/dist/types/runtime/submission/report-fetches.d.ts +2 -0
- package/dist/types/runtime/submission/stream-events.d.ts +13 -0
- package/dist/types/{src/runtime → runtime}/submission/types.d.ts +1 -2
- package/dist/types/{src/runtime → runtime}/types/behavior.d.ts +1 -1
- package/dist/types/{src/runtime → runtime}/types/field.d.ts +3 -10
- package/dist/types/{src/runtime → runtime}/types/form.d.ts +9 -13
- package/dist/types/runtime/types/index.d.ts +7 -0
- package/dist/types/{src/runtime → runtime}/types/pipeline.d.ts +10 -10
- package/dist/types/runtime/types/registry.d.ts +5 -0
- package/dist/types/runtime/types/report.d.ts +16 -0
- package/dist/types/{src/runtime → runtime}/types/transport.d.ts +4 -5
- package/dist/types/{src/runtime → runtime}/utils.d.ts +1 -3
- package/dist/types/{src/runtime → runtime}/validation/form.d.ts +1 -1
- package/dist/types/schema/ids.d.ts +1 -0
- package/dist/types/{src/schema → schema}/index.d.ts +3 -1
- package/dist/types/schema/registry.d.ts +7 -0
- package/dist/types/schema/report-fetch-request.d.ts +6 -0
- package/dist/types/{src/schema → schema}/types/form.d.ts +0 -3
- package/dist/types/{src/schema → schema}/types/registry.d.ts +0 -5
- package/dist/types/{src/schema → schema}/types/report.d.ts +25 -3
- package/dist/types/schema/types/submit.d.ts +11 -0
- package/dist/types/transport/composition/fanout-options.d.ts +9 -0
- package/dist/types/{src/transport → transport}/errors.d.ts +1 -2
- package/dist/types/{src/transport → transport}/index.d.ts +2 -0
- package/dist/types/transport/request-runner.d.ts +16 -0
- package/package.json +13 -26
- package/dist/builtins-DegwhFGA.js +0 -3507
- package/dist/builtins-ml-9qB2MOxt.js +0 -51
- package/dist/errors-B3H1wRwj.js +0 -8
- package/dist/kit-CuRF6dhL.js +0 -1847
- package/dist/mlform/behaviors.mjs +0 -32
- package/dist/mlform/builtins-ml.mjs +0 -3
- package/dist/mlform/design-system.mjs +0 -2
- package/dist/mlform/presentation.mjs +0 -2
- package/dist/mlform.mjs +0 -8
- package/dist/presentation-CkQuYheR.js +0 -200
- package/dist/runtime-DMjDVo0H.js +0 -1824
- package/dist/strings-CWwrrYzz.js +0 -4
- package/dist/types/src/behaviors/index.d.ts +0 -3
- package/dist/types/src/builtins-ml/index.d.ts +0 -5
- package/dist/types/src/design-system/recipes/index.d.ts +0 -4
- package/dist/types/src/design-system/themes/index.d.ts +0 -5
- package/dist/types/src/index.d.ts +0 -13
- package/dist/types/src/kit/accordion-root-styles.d.ts +0 -1
- package/dist/types/src/kit/accordion.d.ts +0 -2
- package/dist/types/src/kit/index.d.ts +0 -9
- package/dist/types/src/kit/layout-node-render.d.ts +0 -18
- package/dist/types/src/kit/tabs.d.ts +0 -2
- package/dist/types/src/kit/types.d.ts +0 -5
- package/dist/types/src/kit/view-snapshot-cache.d.ts +0 -14
- package/dist/types/src/kit/view-snapshot.d.ts +0 -15
- package/dist/types/src/kit/view-types.d.ts +0 -172
- package/dist/types/src/kit/view.d.ts +0 -8
- package/dist/types/src/kit/wizard.d.ts +0 -2
- package/dist/types/src/packs/default.d.ts +0 -2
- package/dist/types/src/packs/index.d.ts +0 -3
- package/dist/types/src/packs/ml.d.ts +0 -2
- package/dist/types/src/packs/shared.d.ts +0 -25
- package/dist/types/src/presentation/define-explanation-kind.d.ts +0 -11
- package/dist/types/src/presentation/define-report-kind.d.ts +0 -15
- package/dist/types/src/presentation/index.d.ts +0 -10
- package/dist/types/src/presentation/register-kind.d.ts +0 -6
- package/dist/types/src/presentation/registry.d.ts +0 -15
- package/dist/types/src/presentation/types/explanation.d.ts +0 -32
- package/dist/types/src/presentation/types/field.d.ts +0 -36
- package/dist/types/src/presentation/types/presentation.d.ts +0 -61
- package/dist/types/src/presentation/types/report.d.ts +0 -41
- package/dist/types/src/primitives/base-explanation-element.d.ts +0 -22
- package/dist/types/src/primitives/components/declarative-explanation.d.ts +0 -5
- package/dist/types/src/primitives/components/explanation-panel.d.ts +0 -24
- package/dist/types/src/primitives/components/form-root-presenters.d.ts +0 -17
- package/dist/types/src/primitives/components/presentation.d.ts +0 -4
- package/dist/types/src/primitives/index.d.ts +0 -8
- package/dist/types/src/primitives/mount-form.d.ts +0 -4
- package/dist/types/src/primitives/presentation.d.ts +0 -8
- package/dist/types/src/runtime/builtins/fields/boolean.d.ts +0 -8
- package/dist/types/src/runtime/builtins/fields/category.d.ts +0 -11
- package/dist/types/src/runtime/builtins/fields/date.d.ts +0 -9
- package/dist/types/src/runtime/builtins/fields/long-text.d.ts +0 -10
- package/dist/types/src/runtime/builtins/fields/number.d.ts +0 -11
- package/dist/types/src/runtime/builtins/fields/rating.d.ts +0 -9
- package/dist/types/src/runtime/builtins/fields/series.d.ts +0 -20
- package/dist/types/src/runtime/builtins/fields/text.d.ts +0 -10
- package/dist/types/src/runtime/builtins/index.d.ts +0 -103
- package/dist/types/src/runtime/builtins/reports/classifier.d.ts +0 -8
- package/dist/types/src/runtime/builtins/reports/regressor.d.ts +0 -8
- package/dist/types/src/runtime/declarative/explanation.d.ts +0 -2
- package/dist/types/src/runtime/declarative/field.d.ts +0 -2
- package/dist/types/src/runtime/declarative/presentation.d.ts +0 -61
- package/dist/types/src/runtime/declarative/report.d.ts +0 -2
- package/dist/types/src/runtime/explanations/controller.d.ts +0 -13
- package/dist/types/src/runtime/index.d.ts +0 -16
- package/dist/types/src/runtime/registry/index.d.ts +0 -5
- package/dist/types/src/runtime/reports/index.d.ts +0 -1
- package/dist/types/src/runtime/schema/index.d.ts +0 -7
- package/dist/types/src/runtime/submission/create-submitter.d.ts +0 -2
- package/dist/types/src/runtime/submission/explanations.d.ts +0 -2
- package/dist/types/src/runtime/types/explanation.d.ts +0 -22
- package/dist/types/src/runtime/types/index.d.ts +0 -9
- package/dist/types/src/runtime/types/registry.d.ts +0 -6
- package/dist/types/src/runtime/types/report.d.ts +0 -23
- package/dist/types/src/schema/registry.d.ts +0 -9
- package/dist/types/src/schema/types/explanation.d.ts +0 -43
- package/dist/types/src/shared/errors.d.ts +0 -3
- package/dist/types/src/shared/index.d.ts +0 -3
- package/dist/types/src/shared/strings.d.ts +0 -1
- /package/dist/types/{src/runtime → builtins}/constants.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/constants.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/component-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/component-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/global-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/contract/token-keys.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/default.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/minimal.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/recipes/soft.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/create-registry.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/deep-freeze.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/registry/define-token-maps.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/diagnostics.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/merge-config.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/migrate-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-mode.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-recipe.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-theme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/resolve/resolve-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/apply-tokens.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/attach-design-system.d.ts → design/runtime/attach-design.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/create-stylesheet.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/declarations.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/design-system-controller.d.ts → design/runtime/design-controller.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/fingerprint.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/host-observer.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/host-state.d.ts +0 -0
- /package/dist/types/{src/design-system/runtime/hydrate-design-system.d.ts → design/runtime/hydrate-design.d.ts} +0 -0
- /package/dist/types/{src/design-system → design}/runtime/hydration-state.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/inherited-scheme.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/runtime/media.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/cobalt.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/graphite.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/neutral.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/sage.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/themes/sunset.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/base.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/contrast.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/density.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/forced-colors.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/index.d.ts +0 -0
- /package/dist/types/{src/design-system → design}/tokens/motion.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/mount-form.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/step-indicator.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/tabs-root-styles.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/wizard-constants.d.ts +0 -0
- /package/dist/types/{src/kit → kit}/wizard-root-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/declarative-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/declarative-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/field-frame-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/form-root-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/components/unsupported-component.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/controller-binding.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/boolean-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/category-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/date-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/long-text-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/multi-choice-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/number-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/rating-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field-helpers.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field-styles.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/series-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/single-choice-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/fields/text-field.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/register.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/registry.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/reports/classifier-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/reports/regressor-report.d.ts +0 -0
- /package/dist/types/{src/primitives → primitives}/utils.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/comparison.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/create-runtime.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/equality.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/controller.d.ts +0 -0
- /package/dist/types/{src/runtime/explanations → runtime/fields}/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/state-calculations.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/fields/state.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/form.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/paths.d.ts +0 -0
- /package/dist/types/{src/runtime/fields → runtime/reports}/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/runtime-refresh.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/runtime-values.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/snapshots.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/state/store.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/abort.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/error-flow.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/field-updates.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/report-updates.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/reports.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/request.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/result.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/stream-progress.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/submission/submitter.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/conditions.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field-state.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field-validator.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/field.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/validation/index.d.ts +0 -0
- /package/dist/types/{src/runtime → runtime}/values.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/normalize.d.ts +0 -0
- /package/dist/types/{src/schema → schema}/types/field.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/capabilities.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/clone.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fallback.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fanout-helpers.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/fanout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/hedged.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/load-balancing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/pipeline.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/quorum-fanout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/racing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/composition/routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/constants.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-core.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-errors.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-request.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-sse.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal-stream.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/internal.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/auth.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/cache.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/circuit-breaker.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/dedup.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/logging.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/metrics.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/pipe.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/rate-limit.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/retry.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/timeout.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/tracing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/middleware/transform.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/policy-context.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/graphql.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/grpc.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/json.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/sse.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/protocols/websocket.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/runtime.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/cache-store.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/circuit-breaker.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/health.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/rate-limiter.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/state/session.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/capabilities.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/core.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/events.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/index.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/middleware.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-http.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-middleware.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options-routing.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/options.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/session.d.ts +0 -0
- /package/dist/types/{src/transport → transport}/types/state.d.ts +0 -0
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export declare const builtinFieldDefinitions: readonly [import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
2
|
+
kind: "text";
|
|
3
|
+
placeholder?: string;
|
|
4
|
+
minLength?: number;
|
|
5
|
+
maxLength?: number;
|
|
6
|
+
pattern?: string;
|
|
7
|
+
}, string>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
8
|
+
kind: "number";
|
|
9
|
+
min?: number;
|
|
10
|
+
max?: number;
|
|
11
|
+
step?: number;
|
|
12
|
+
unit?: string;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
}, string | number | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
15
|
+
kind: "boolean";
|
|
16
|
+
trueLabel?: string;
|
|
17
|
+
falseLabel?: string;
|
|
18
|
+
}, boolean>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
19
|
+
kind: "category";
|
|
20
|
+
options: (string | {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
})[];
|
|
24
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
25
|
+
kind: "mapped-category";
|
|
26
|
+
options: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
mapping: Record<string, unknown>;
|
|
30
|
+
}[];
|
|
31
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
32
|
+
kind: "date";
|
|
33
|
+
min?: string;
|
|
34
|
+
max?: string;
|
|
35
|
+
step?: number;
|
|
36
|
+
}, Date | null>, import('./shared').BuiltinFieldDefinition<import('./fields/series-helpers').SeriesFieldConfig, import('./fields/series-helpers').SeriesPoint[]>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
37
|
+
kind: "long-text";
|
|
38
|
+
placeholder?: string;
|
|
39
|
+
minLength?: number;
|
|
40
|
+
maxLength?: number;
|
|
41
|
+
rows?: number;
|
|
42
|
+
}, string>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
43
|
+
kind: "single-choice";
|
|
44
|
+
options: (string | {
|
|
45
|
+
label: string;
|
|
46
|
+
value: string;
|
|
47
|
+
})[];
|
|
48
|
+
layout?: "horizontal" | "vertical";
|
|
49
|
+
}, string | null>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
50
|
+
kind: "multi-choice";
|
|
51
|
+
options: (string | {
|
|
52
|
+
label: string;
|
|
53
|
+
value: string;
|
|
54
|
+
})[];
|
|
55
|
+
layout?: "horizontal" | "vertical";
|
|
56
|
+
}, string[]>, import('./shared').BuiltinFieldDefinition<import('../../schema').BaseFieldConfig & {
|
|
57
|
+
kind: "rating";
|
|
58
|
+
min?: number;
|
|
59
|
+
max: number;
|
|
60
|
+
step?: number;
|
|
61
|
+
}, number | null>];
|
|
62
|
+
export declare const builtinReportDefinitions: readonly [import('./shared').BuiltinReportDefinition<import('../../schema').BaseReportConfig & {
|
|
63
|
+
kind: "classifier";
|
|
64
|
+
labels?: string[];
|
|
65
|
+
showClassProbabilities?: boolean;
|
|
66
|
+
}>, import('./shared').BuiltinReportDefinition<import('../../schema').BaseReportConfig & {
|
|
67
|
+
kind: "regressor";
|
|
68
|
+
unit?: string;
|
|
69
|
+
precision?: number;
|
|
70
|
+
}>];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type BooleanFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "boolean";
|
|
5
|
+
trueLabel?: string;
|
|
6
|
+
falseLabel?: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const booleanFieldDefinition: BuiltinFieldDefinition<BooleanFieldConfig, boolean>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type CategoryOption = string | {
|
|
4
|
+
label: string;
|
|
5
|
+
value: string;
|
|
6
|
+
};
|
|
7
|
+
type CategoryFieldConfig = BaseFieldConfig & {
|
|
8
|
+
kind: "category";
|
|
9
|
+
options: CategoryOption[];
|
|
10
|
+
};
|
|
11
|
+
export declare const categoryFieldDefinition: BuiltinFieldDefinition<CategoryFieldConfig, string | null>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type DateFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "date";
|
|
5
|
+
min?: string;
|
|
6
|
+
max?: string;
|
|
7
|
+
step?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const dateFieldDefinition: BuiltinFieldDefinition<DateFieldConfig, Date | null>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type LongTextFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "long-text";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
rows?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const longTextFieldDefinition: BuiltinFieldDefinition<LongTextFieldConfig, string>;
|
|
11
|
+
export {};
|
package/dist/types/{src/runtime/builtins → builtins/definitions}/fields/mapped-category.d.ts
RENAMED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type MappedCategoryOption = {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type MappedCategoryFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
kind: "mapped-category";
|
|
9
10
|
options: MappedCategoryOption[];
|
|
10
11
|
};
|
|
11
|
-
export declare const mappedCategoryFieldDefinition:
|
|
12
|
+
export declare const mappedCategoryFieldDefinition: BuiltinFieldDefinition<MappedCategoryFieldConfig, string | null>;
|
|
12
13
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type MultiChoiceOption = string | {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type MultiChoiceFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
options: MultiChoiceOption[];
|
|
9
10
|
layout?: "horizontal" | "vertical";
|
|
10
11
|
};
|
|
11
|
-
export declare const multiChoiceFieldDefinition:
|
|
12
|
+
export declare const multiChoiceFieldDefinition: BuiltinFieldDefinition<MultiChoiceFieldConfig, string[]>;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type NumberFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "number";
|
|
5
|
+
min?: number;
|
|
6
|
+
max?: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
unit?: string;
|
|
9
|
+
placeholder?: string;
|
|
10
|
+
};
|
|
11
|
+
export declare const numberFieldDefinition: BuiltinFieldDefinition<NumberFieldConfig, number | string | null>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type RatingFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "rating";
|
|
5
|
+
min?: number;
|
|
6
|
+
max: number;
|
|
7
|
+
step?: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const ratingFieldDefinition: BuiltinFieldDefinition<RatingFieldConfig, number | null>;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import * as z from "zod";
|
|
3
|
+
export type SeriesPoint = {
|
|
4
|
+
field1: unknown;
|
|
5
|
+
field2: unknown;
|
|
6
|
+
};
|
|
7
|
+
export type SeriesSubFieldConfig = {
|
|
8
|
+
kind: string;
|
|
9
|
+
label: string;
|
|
10
|
+
required?: boolean;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
};
|
|
13
|
+
export type SeriesFieldConfig = BaseFieldConfig & {
|
|
14
|
+
kind: "series";
|
|
15
|
+
field1: SeriesSubFieldConfig;
|
|
16
|
+
field2: SeriesSubFieldConfig;
|
|
17
|
+
minPoints?: number;
|
|
18
|
+
maxPoints?: number;
|
|
19
|
+
};
|
|
20
|
+
export declare const seriesFieldSchema: z.ZodObject<{
|
|
21
|
+
field1: z.ZodType<SeriesSubFieldConfig, unknown, z.core.$ZodTypeInternals<SeriesSubFieldConfig, unknown>>;
|
|
22
|
+
field2: z.ZodType<SeriesSubFieldConfig, unknown, z.core.$ZodTypeInternals<SeriesSubFieldConfig, unknown>>;
|
|
23
|
+
minPoints: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
maxPoints: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
id: z.ZodOptional<z.ZodString>;
|
|
26
|
+
label: z.ZodString;
|
|
27
|
+
description: z.ZodOptional<z.ZodString>;
|
|
28
|
+
showDescriptionInline: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
29
|
+
required: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
30
|
+
disabled: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
31
|
+
hidden: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
32
|
+
readOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
33
|
+
disabledWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
34
|
+
hiddenWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
35
|
+
readOnlyWhen: z.ZodOptional<z.ZodUnion<readonly [z.ZodCustom<(context: unknown) => boolean, (context: unknown) => boolean>, z.ZodType<import('../../../schema').DeclarativeFieldCondition, unknown, z.core.$ZodTypeInternals<import('../../../schema').DeclarativeFieldCondition, unknown>>]>>;
|
|
36
|
+
asyncValidationDebounceMs: z.ZodOptional<z.ZodNumber>;
|
|
37
|
+
inactiveFieldPolicy: z.ZodOptional<z.ZodEnum<{
|
|
38
|
+
include: "include";
|
|
39
|
+
omit: "omit";
|
|
40
|
+
"reset-on-hide": "reset-on-hide";
|
|
41
|
+
}>>;
|
|
42
|
+
includeInSubmission: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
valuePath: z.ZodOptional<z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodString>]>>;
|
|
44
|
+
defaultValue: z.ZodOptional<z.ZodUnknown>;
|
|
45
|
+
ui: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
46
|
+
kind: z.ZodLiteral<"series">;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const serializeSubFieldValue: (config: SeriesSubFieldConfig, value: unknown) => unknown;
|
|
49
|
+
export declare const validateSubFieldValue: (config: SeriesSubFieldConfig, value: unknown) => string[];
|
|
50
|
+
export declare const prefixRowErrors: (index: number, label: string, errors: string[]) => string[];
|
|
51
|
+
export declare const normalizeSeriesPoint: (value: unknown, config: SeriesFieldConfig) => SeriesPoint | null;
|
|
52
|
+
export declare const validateSeriesPointCount: (value: SeriesPoint[], config: SeriesFieldConfig) => Set<string>;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
2
3
|
type SingleChoiceOption = string | {
|
|
3
4
|
label: string;
|
|
4
5
|
value: string;
|
|
@@ -8,5 +9,5 @@ type SingleChoiceFieldConfig = BaseFieldConfig & {
|
|
|
8
9
|
options: SingleChoiceOption[];
|
|
9
10
|
layout?: "horizontal" | "vertical";
|
|
10
11
|
};
|
|
11
|
-
export declare const singleChoiceFieldDefinition:
|
|
12
|
+
export declare const singleChoiceFieldDefinition: BuiltinFieldDefinition<SingleChoiceFieldConfig, string | null>;
|
|
12
13
|
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { BaseFieldConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinFieldDefinition } from '../shared';
|
|
3
|
+
type TextFieldConfig = BaseFieldConfig & {
|
|
4
|
+
kind: "text";
|
|
5
|
+
placeholder?: string;
|
|
6
|
+
minLength?: number;
|
|
7
|
+
maxLength?: number;
|
|
8
|
+
pattern?: string;
|
|
9
|
+
};
|
|
10
|
+
export declare const textFieldDefinition: BuiltinFieldDefinition<TextFieldConfig, string>;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export { booleanFieldDefinition } from './fields/boolean';
|
|
2
|
+
export { categoryFieldDefinition } from './fields/category';
|
|
3
|
+
export { mappedCategoryFieldDefinition } from './fields/mapped-category';
|
|
4
|
+
export { dateFieldDefinition } from './fields/date';
|
|
5
|
+
export { longTextFieldDefinition } from './fields/long-text';
|
|
6
|
+
export { multiChoiceFieldDefinition } from './fields/multi-choice';
|
|
7
|
+
export { numberFieldDefinition } from './fields/number';
|
|
8
|
+
export { ratingFieldDefinition } from './fields/rating';
|
|
9
|
+
export { seriesFieldDefinition } from './fields/series';
|
|
10
|
+
export { singleChoiceFieldDefinition } from './fields/single-choice';
|
|
11
|
+
export { textFieldDefinition } from './fields/text';
|
|
12
|
+
export { classifierReportDefinition } from './reports/classifier';
|
|
13
|
+
export { regressorReportDefinition } from './reports/regressor';
|
|
14
|
+
export { builtinFieldDefinitions, builtinReportDefinitions } from './collections';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseReportConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinReportDefinition } from '../shared';
|
|
3
|
+
type ClassifierReportConfig = BaseReportConfig & {
|
|
4
|
+
kind: "classifier";
|
|
5
|
+
labels?: string[];
|
|
6
|
+
showClassProbabilities?: boolean;
|
|
7
|
+
};
|
|
8
|
+
export declare const classifierReportDefinition: BuiltinReportDefinition<ClassifierReportConfig>;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseReportConfig } from '../../../schema';
|
|
2
|
+
import { BuiltinReportDefinition } from '../shared';
|
|
3
|
+
type RegressorReportConfig = BaseReportConfig & {
|
|
4
|
+
kind: "regressor";
|
|
5
|
+
unit?: string;
|
|
6
|
+
precision?: number;
|
|
7
|
+
};
|
|
8
|
+
export declare const regressorReportDefinition: BuiltinReportDefinition<RegressorReportConfig>;
|
|
9
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { BaseFieldConfig, BaseReportConfig, DeclarativeFieldCondition, NormalizedFieldConfig, SubmitResult } from '
|
|
1
|
+
import { BaseFieldConfig, BaseReportConfig, DeclarativeFieldCondition, FieldConfig, FieldDefinition, NormalizedFieldConfig, ReportConfig, ReportDefinition, SubmitResult } from '../../schema';
|
|
2
|
+
import { FieldDescriptor, ReportDescriptor } from '../../primitives';
|
|
2
3
|
import * as z from "zod";
|
|
3
4
|
export declare const uiSchema: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
4
5
|
export declare const baseFieldShape: {
|
|
@@ -50,3 +51,17 @@ export declare const makeFieldDescriptor: (component: string, config: Normalized
|
|
|
50
51
|
};
|
|
51
52
|
export type BuiltinFieldConfig = BaseFieldConfig;
|
|
52
53
|
export type BuiltinReportConfig = BaseReportConfig;
|
|
54
|
+
export type BuiltinFieldDefinition<TConfig extends FieldConfig = FieldConfig, TValue = unknown> = FieldDefinition<TConfig, TValue> & {
|
|
55
|
+
describe: (config: NormalizedFieldConfig<TConfig>, context: {
|
|
56
|
+
fieldId: string;
|
|
57
|
+
state: import('../../schema').FieldStateSnapshot;
|
|
58
|
+
}) => FieldDescriptor;
|
|
59
|
+
};
|
|
60
|
+
export type BuiltinReportDefinition<TConfig extends ReportConfig = ReportConfig> = ReportDefinition<TConfig> & {
|
|
61
|
+
describe: (config: import('../../schema').NormalizedReportConfig<TConfig>, context: {
|
|
62
|
+
reportId: string;
|
|
63
|
+
state: import('../../schema').ReportStateSnapshot;
|
|
64
|
+
payload: unknown;
|
|
65
|
+
result: SubmitResult | null;
|
|
66
|
+
}) => ReportDescriptor | null;
|
|
67
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export * from './constants';
|
|
2
|
+
export { booleanFieldDefinition, categoryFieldDefinition, classifierReportDefinition, dateFieldDefinition, longTextFieldDefinition, mappedCategoryFieldDefinition, multiChoiceFieldDefinition, numberFieldDefinition, ratingFieldDefinition, regressorReportDefinition, seriesFieldDefinition, singleChoiceFieldDefinition, textFieldDefinition, } from './definitions';
|
|
3
|
+
export { createMappedCategoryBehavior } from './mapped-category-behavior';
|
|
4
|
+
export { createBuiltinMlRegistry, createMlRegistryPack } from './registry-pack';
|
|
5
|
+
export type { MlRegistryPack } from './registry-pack';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Registry } from '../schema';
|
|
2
|
+
import { PrimitiveDescriptorRegistry } from '../primitives';
|
|
3
|
+
import { RuntimeBehavior } from '../runtime';
|
|
4
|
+
export type MlRegistryPack = {
|
|
5
|
+
registry: Registry;
|
|
6
|
+
descriptorRegistry: PrimitiveDescriptorRegistry;
|
|
7
|
+
behaviors: RuntimeBehavior[];
|
|
8
|
+
};
|
|
9
|
+
export declare const createBuiltinMlRegistry: () => Registry;
|
|
10
|
+
export declare const createMlRegistryPack: () => MlRegistryPack;
|
|
@@ -1,5 +1,2 @@
|
|
|
1
|
-
import { RecipeManifest, ThemeManifest } from '../types';
|
|
2
|
-
export declare const builtinThemes: ThemeManifest[];
|
|
3
|
-
export declare const builtinRecipes: RecipeManifest[];
|
|
4
1
|
export declare const createBuiltinDesignSystemRegistry: () => import('..').DesignSystemRegistry;
|
|
5
2
|
export declare const builtinDesignSystemRegistry: import('..').DesignSystemRegistry;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { builtinRecipes } from '../recipes';
|
|
2
|
+
export { builtinThemes } from '../themes';
|
|
3
|
+
export { builtinDesignSystemRegistry, createBuiltinDesignSystemRegistry } from './builtins';
|
|
2
4
|
export { createDesignSystemRegistry } from './create-registry';
|
|
3
5
|
export { defineRecipe } from './define-recipe';
|
|
4
6
|
export { defineComponentTokens, defineGlobalTokens } from './define-token-maps';
|
package/dist/types/{src/design-system/resolve/index.d.ts → design/resolve/resolve-design.d.ts}
RENAMED
|
@@ -1,5 +1,2 @@
|
|
|
1
1
|
import { DesignSystemConfig, DesignSystemRegistry, ResolveDesignSystemRuntimeOptions, ResolvedDesignSystem } from '../types';
|
|
2
2
|
export declare const resolveDesignSystem: (config?: DesignSystemConfig, registry?: DesignSystemRegistry, runtimeOptions?: ResolveDesignSystemRuntimeOptions) => ResolvedDesignSystem;
|
|
3
|
-
export { mergeDesignSystemConfig } from './merge-config';
|
|
4
|
-
export { migrateTokens, migrateThemeTokens } from './migrate-tokens';
|
|
5
|
-
export type { TokenMigration, TokenMigrationConflict } from './migrate-tokens';
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DesignSystemConfig, DesignSystemRegistry, ResolvedDesignSystem } from '../types';
|
|
2
|
+
import { DesignSystemMediaSnapshot } from './fingerprint';
|
|
3
|
+
import { MediaQueryListWithLegacy } from './media';
|
|
4
|
+
export type MediaListenerPair = {
|
|
5
|
+
query: MediaQueryListWithLegacy | null;
|
|
6
|
+
listener: () => void;
|
|
7
|
+
};
|
|
8
|
+
export declare const addControllerMediaListeners: (pairs: readonly MediaListenerPair[]) => void;
|
|
9
|
+
export declare const removeControllerMediaListeners: (pairs: readonly MediaListenerPair[]) => void;
|
|
10
|
+
export declare const getControllerMediaSnapshot: (scheme: MediaQueryListWithLegacy | null, motion: MediaQueryListWithLegacy | null, contrast: MediaQueryListWithLegacy | null, forcedColors: MediaQueryListWithLegacy | null) => DesignSystemMediaSnapshot;
|
|
11
|
+
export declare const resolveControllerDesignSystem: (host: HTMLElement, config: DesignSystemConfig, registry: DesignSystemRegistry, media: DesignSystemMediaSnapshot) => ResolvedDesignSystem;
|
|
12
|
+
export declare const dispatchDesignSystemChange: (host: HTMLElement, resolved: ResolvedDesignSystem) => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { attachDesignSystem } from './attach-design
|
|
1
|
+
export { attachDesignSystem } from './attach-design';
|
|
2
2
|
export { applyResolvedDesignSystem } from './apply-tokens';
|
|
3
3
|
export { createDesignSystemStylesheet } from './create-stylesheet';
|
|
4
4
|
export type { CreateDesignSystemStylesheetOptions } from './create-stylesheet';
|
|
5
5
|
export { writeDesignSystemTokenDeclarations } from './declarations';
|
|
6
|
-
export { DesignSystemController } from './design-
|
|
7
|
-
export { hydrateDesignSystem } from './hydrate-design
|
|
6
|
+
export { DesignSystemController } from './design-controller';
|
|
7
|
+
export { hydrateDesignSystem } from './hydrate-design';
|
|
8
8
|
export { createResolvedDesignSystemSignature, getResolvedDesignSystemHostAttributes, } from './host-state';
|
|
@@ -177,7 +177,7 @@ export interface DesignSystemRegistry {
|
|
|
177
177
|
onChange(listener: DesignSystemRegistryChangeListener): () => void;
|
|
178
178
|
}
|
|
179
179
|
/**
|
|
180
|
-
* Strategy for animating design
|
|
180
|
+
* Strategy for animating design transitions (theme/scheme switches).
|
|
181
181
|
*
|
|
182
182
|
* - `"none"` — instant switch (default).
|
|
183
183
|
* - `"view-transition"` — uses the View Transitions API (`document.startViewTransition`)
|
|
@@ -3,31 +3,23 @@ export declare const kitErrorMessages: {
|
|
|
3
3
|
readonly fieldDuplicateInLayout: (fieldId: string) => string;
|
|
4
4
|
readonly fieldMissingInLayout: (fieldId: string) => string;
|
|
5
5
|
readonly reportDuplicateInLayout: (reportId: string) => string;
|
|
6
|
-
readonly explanationDuplicateInLayout: (explanationId: string) => string;
|
|
7
6
|
readonly unknownFieldReference: (fieldId: string) => string;
|
|
8
7
|
readonly unknownReportReference: (reportId: string) => string;
|
|
9
|
-
readonly unknownExplanationReference: (explanationId: string) => string;
|
|
10
8
|
readonly wizardRequiresSteps: "Wizard layout must define at least one step.";
|
|
11
9
|
readonly wizardStepEmpty: (stepId: string) => string;
|
|
12
10
|
readonly tabsRequiresTabs: "Tabs layout must define at least one tab.";
|
|
13
11
|
readonly tabEmpty: (tabId: string) => string;
|
|
14
|
-
readonly accordionRequiresSections: "Accordion layout must define at least one section.";
|
|
15
|
-
readonly accordionSectionEmpty: (sectionId: string) => string;
|
|
16
|
-
readonly wizardMissingLayout: "mountWizardForm requires a wizard layout.";
|
|
17
|
-
readonly tabsMissingLayout: "mountTabsForm requires a tabs layout.";
|
|
18
|
-
readonly accordionMissingLayout: "mountAccordionForm requires an accordion layout.";
|
|
19
12
|
readonly nonWizardNextStep: "nextStep() is only available for wizard layouts.";
|
|
20
13
|
readonly nonWizardGoToStep: "goToStep() is only available for wizard layouts.";
|
|
21
14
|
readonly nonTabsSetActiveTab: "setActiveTab() is only available for tabs layouts.";
|
|
22
|
-
readonly nonAccordionToggleSection: "Accordion section controls are only available for accordion layouts.";
|
|
23
15
|
readonly unknownTab: (tabId: string) => string;
|
|
24
16
|
readonly unknownWizardStep: (stepId: string) => string;
|
|
25
|
-
readonly
|
|
17
|
+
readonly unknownDisclosureSection: (sectionId: string) => string;
|
|
26
18
|
};
|
|
27
19
|
export declare const kitTagNames: {
|
|
28
20
|
readonly wizard: "mlf-kit-wizard";
|
|
29
21
|
readonly tabs: "mlf-kit-tabs";
|
|
30
|
-
readonly
|
|
22
|
+
readonly disclosure: "mlf-kit-disclosure";
|
|
31
23
|
readonly stepIndicator: "mlf-kit-step-indicator";
|
|
32
24
|
};
|
|
33
|
-
export { transportDefaults as kitTransportDefaults, transportErrorMessages } from '
|
|
25
|
+
export { transportDefaults as kitTransportDefaults, transportErrorMessages } from '../transport';
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { DesignSystemConfig, DesignSystemRegistry } from '
|
|
2
|
-
import { Registry } from '
|
|
3
|
-
import { PrimitiveRegistry } from '
|
|
1
|
+
import { DesignSystemConfig, DesignSystemRegistry } from '../design';
|
|
2
|
+
import { Registry } from '../schema';
|
|
3
|
+
import { PrimitiveRegistry } from '../primitives';
|
|
4
4
|
import { KitLabels } from './types';
|
|
5
5
|
export declare const defaultKitLabels: Required<KitLabels>;
|
|
6
6
|
export declare const defaultKitDesignSystem: DesignSystemConfig;
|
|
7
|
-
export declare const cloneSchemaRegistry: (registry
|
|
7
|
+
export declare const cloneSchemaRegistry: (registry: Registry) => Registry;
|
|
8
8
|
export declare const resolvePrimitiveRegistry: (registry?: PrimitiveRegistry) => PrimitiveRegistry;
|
|
9
9
|
export declare const resolveDesignSystemRegistry: (registry?: DesignSystemRegistry) => DesignSystemRegistry;
|
|
10
10
|
export declare const resolveKitLabels: (labels?: KitLabels) => Required<KitLabels>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const disclosureRootStyles: import('lit').CSSResult;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { FormViewController } from './types';
|
|
2
|
+
export type FieldFocusAdapter = (host: HTMLElement, fieldId: string) => Promise<boolean>;
|
|
3
|
+
export declare const revealFirstInvalidField: (host: HTMLElement, view: FormViewController, focusField: FieldFocusAdapter) => Promise<boolean>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defaultKitDesignSystem, defaultKitLabels } from './defaults';
|
|
2
|
+
export { collectLayoutReferences, flattenLayoutNodes, walkLayoutNodes } from './layout-utils';
|
|
3
|
+
export { mountForm, unmountForm } from './mount-form';
|
|
4
|
+
export { createFormView } from './view';
|
|
5
|
+
export { defineFieldKind, defineReportKind } from './kinds';
|
|
6
|
+
export { registerDefinedFieldKind, registerDefinedReportKind } from './kinds';
|
|
7
|
+
export type { CreateFormViewOptions, DisclosureState, FormLayoutConfig, FormLayoutFieldNode, FormLayoutGroupNode, FormLayoutNode, FormLayoutReportNode, FormLayoutSectionNode, FormViewController, FormViewFieldItem, FormViewReportItem, FormViewSnapshot, FormViewState, KitDesignSystemSnapshot, KitLabels, MountFormOptions, MountedForm, PanelState, ResolvedFormLayout, ResolvedFormLayoutFieldNode, ResolvedFormLayoutGroupNode, ResolvedFormLayoutNode, ResolvedFormLayoutReportNode, ResolvedFormLayoutSectionNode, ResolvedTabLayout, ResolvedTabsLayout, TabsLayoutConfig, TabsState, TabLayoutConfig, WizardLayoutConfig, WizardState, WizardStepConfig, } from './types';
|
|
@@ -1,5 +1,13 @@
|
|
|
1
|
-
import { FieldConfig, FieldDefinition, NormalizedFieldConfig } from '../../schema';
|
|
2
|
-
import {
|
|
1
|
+
import { FieldConfig, FieldDefinition, FieldValidationFnContext, FieldValueAdapter, NormalizedFieldConfig } from '../../schema';
|
|
2
|
+
import { FieldDescriptor, FieldDescriptorContext, FieldPresenter, FieldRenderSpec } from '../../primitives';
|
|
3
|
+
import { ZodType } from 'zod';
|
|
4
|
+
export interface DeclarativeFieldKind<TConfig extends FieldConfig = FieldConfig, TValue = unknown> {
|
|
5
|
+
kind: string;
|
|
6
|
+
schema: ZodType<TConfig>;
|
|
7
|
+
value?: FieldValueAdapter<TConfig, TValue>;
|
|
8
|
+
validate?: (context: FieldValidationFnContext<TConfig, TValue>) => string[] | PromiseLike<string[]>;
|
|
9
|
+
render: FieldRenderSpec<TConfig, TValue>;
|
|
10
|
+
}
|
|
3
11
|
export type DefinedFieldKind<TConfig extends FieldConfig, TValue> = {
|
|
4
12
|
kind: string;
|
|
5
13
|
schema: import('zod').ZodType<TConfig>;
|
|
@@ -13,6 +21,6 @@ export type DefinedFieldKind<TConfig extends FieldConfig, TValue> = {
|
|
|
13
21
|
value: TValue;
|
|
14
22
|
}) => FieldDescriptor;
|
|
15
23
|
definition: FieldDefinition<TConfig, TValue>;
|
|
16
|
-
presenter: FieldPresenter<TConfig
|
|
24
|
+
presenter: FieldPresenter<NormalizedFieldConfig<TConfig>, TValue>;
|
|
17
25
|
};
|
|
18
26
|
export declare const defineFieldKind: <TConfig extends FieldConfig, TValue>(kind: DeclarativeFieldKind<TConfig, TValue>) => DefinedFieldKind<TConfig, TValue>;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NormalizedReportConfig, ReportConfig, ReportDefinition, ReportFetchFactory, ReportResolveContext, ReportStateSnapshot, SubmitResult } from '../../schema';
|
|
2
|
+
import { ReportDescriptor, ReportDescriptorContext, ReportPresenter, DescriptorContent, DescriptorSummary } from '../../primitives';
|
|
3
|
+
import { ZodType } from 'zod';
|
|
4
|
+
export interface ReportRenderSpecContext<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
5
|
+
config: NormalizedReportConfig<TConfig>;
|
|
6
|
+
report: NormalizedReportConfig<TConfig>;
|
|
7
|
+
reportId: string;
|
|
8
|
+
state: ReportStateSnapshot;
|
|
9
|
+
payload: TPayload;
|
|
10
|
+
result: SubmitResult | null;
|
|
11
|
+
}
|
|
12
|
+
export interface ReportRenderSpec<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
13
|
+
summary?: (context: ReportRenderSpecContext<TConfig, TPayload>) => DescriptorSummary | undefined;
|
|
14
|
+
content: (context: ReportRenderSpecContext<TConfig, TPayload>) => DescriptorContent;
|
|
15
|
+
}
|
|
16
|
+
export interface DeclarativeReportKind<TConfig extends ReportConfig = ReportConfig, TPayload = unknown> {
|
|
17
|
+
kind: string;
|
|
18
|
+
schema: ZodType<TConfig>;
|
|
19
|
+
payloadSchema?: ZodType<unknown>;
|
|
20
|
+
payloadValidationPolicy?: "report-error" | "fail-submit";
|
|
21
|
+
partialUpdatePolicy?: "trust" | "validate" | "defer";
|
|
22
|
+
clonePayload?: (payload: TPayload, config: TConfig) => TPayload;
|
|
23
|
+
fetch?: ReportFetchFactory<TConfig>;
|
|
24
|
+
resolve: (context: ReportResolveContext<TConfig>) => unknown;
|
|
25
|
+
render: ReportRenderSpec<TConfig, TPayload>;
|
|
26
|
+
}
|
|
27
|
+
export type DefinedReportKind<TConfig extends ReportConfig, _TPayload> = {
|
|
28
|
+
kind: string;
|
|
29
|
+
schema: import('zod').ZodType<TConfig>;
|
|
30
|
+
payloadSchema?: ReportDefinition<TConfig>["payloadSchema"];
|
|
31
|
+
payloadValidationPolicy?: ReportDefinition<TConfig>["payloadValidationPolicy"];
|
|
32
|
+
partialUpdatePolicy?: ReportDefinition<TConfig>["partialUpdatePolicy"];
|
|
33
|
+
clonePayload?: ReportDefinition<TConfig>["clonePayload"];
|
|
34
|
+
fetch?: ReportDefinition<TConfig>["fetch"];
|
|
35
|
+
resolvePayload?: ReportDefinition<TConfig>["resolvePayload"];
|
|
36
|
+
describe?: (config: NormalizedReportConfig<TConfig>, context: ReportDescriptorContext) => ReportDescriptor | null;
|
|
37
|
+
definition: ReportDefinition<TConfig>;
|
|
38
|
+
presenter: ReportPresenter<NormalizedReportConfig<TConfig>>;
|
|
39
|
+
};
|
|
40
|
+
export declare const defineReportKind: <TConfig extends ReportConfig, TPayload>(kind: DeclarativeReportKind<TConfig, TPayload>) => DefinedReportKind<TConfig, TPayload>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { defineFieldKind, type DeclarativeFieldKind, type DefinedFieldKind, } from './define-field-kind';
|
|
2
|
+
export { defineReportKind, type DeclarativeReportKind, type DefinedReportKind, type ReportRenderSpec, type ReportRenderSpecContext, } from './define-report-kind';
|
|
3
|
+
export { registerDefinedFieldKind, registerDefinedReportKind } from './register-kind';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Registry } from '../../schema';
|
|
2
|
+
import { DefinedFieldKind, DefinedReportKind } from './index';
|
|
3
|
+
import { PrimitiveDescriptorRegistry } from '../../primitives';
|
|
4
|
+
export declare const registerDefinedFieldKind: <TConfig extends import('../../schema').FieldConfig, TValue>(registry: Registry, descriptorRegistry: PrimitiveDescriptorRegistry, kind: DefinedFieldKind<TConfig, TValue>) => void;
|
|
5
|
+
export declare const registerDefinedReportKind: <TConfig extends import('../../schema').ReportConfig>(registry: Registry, descriptorRegistry: PrimitiveDescriptorRegistry, kind: DefinedReportKind<TConfig, unknown>) => void;
|