Update docs.

This commit is contained in:
Dillon Kearns 2022-07-08 18:00:30 -07:00
parent 50ce177be1
commit 102d27c84b
23 changed files with 27 additions and 27 deletions

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@
"Pages.Flags",
"Pages.Fetcher",
"Form.Field",
"Pages.Form",
"Form",
"Form.FieldView",
"Form.Value",
"Pages.Transition",

View File

@ -2,13 +2,13 @@ module Api exposing (routes)
import ApiRoute exposing (ApiRoute)
import DataSource exposing (DataSource)
import Form
import Form.Field as Field
import Form.Validation as Validation
import Html exposing (Html)
import Json.Decode as Decode
import Json.Encode as Encode
import Pages
import Pages.Form as Form
import Random
import Result.Extra
import Route exposing (Route)

View File

@ -4,6 +4,7 @@ import DataSource exposing (DataSource)
import Date exposing (Date)
import Dict
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -14,7 +15,6 @@ import Html exposing (Html)
import Html.Attributes as Attr
import Html.Styled
import Html.Styled.Attributes as StyledAttr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -2,6 +2,7 @@ module Route.Login exposing (ActionData, Data, Model, Msg, route)
import DataSource exposing (DataSource)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.Validation as Validation
import Head
@ -9,7 +10,6 @@ import Head.Seo as Seo
import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -4,6 +4,7 @@ import DataSource exposing (DataSource)
import Date exposing (Date)
import Dict
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -14,7 +15,6 @@ import Html exposing (Html)
import Html.Attributes as Attr
import Html.Styled
import Html.Styled.Attributes as StyledAttr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -2,6 +2,7 @@ module Route.Login exposing (ActionData, Data, Model, Msg, route)
import DataSource exposing (DataSource)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.Validation as Validation
import Head
@ -9,7 +10,6 @@ import Head.Seo as Seo
import Html as Html exposing (Html)
import Html.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -3,6 +3,7 @@ module Route.Search exposing (ActionData, Data, Model, Msg, route)
import DataSource exposing (DataSource)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -10,7 +11,6 @@ import Head
import Head.Seo as Seo
import Html exposing (Html)
import Html.Attributes as Attr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -4,6 +4,7 @@ import DataSource exposing (DataSource)
import Dict
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -14,7 +15,6 @@ import Html exposing (Html)
import Html.Attributes as Attr
import Http
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -8,6 +8,7 @@ import Date exposing (Date)
import Dict exposing (Dict)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form exposing (Form)
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -18,7 +19,6 @@ import Html.Styled as Html exposing (Html)
import Html.Styled.Attributes as Attr exposing (css)
import Http
import Icon
import Pages.Form as Form exposing (Form)
import Pages.FormState
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)

View File

@ -10,6 +10,7 @@ import Api.Scalar exposing (Id(..))
import DataSource exposing (DataSource)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -22,7 +23,6 @@ import Head.Seo as Seo
import Html exposing (Html)
import Html.Attributes as Attr
import List.Extra
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -4,6 +4,7 @@ import DataSource exposing (DataSource)
import Description exposing (Description)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -11,7 +12,6 @@ import GroupName exposing (GroupName)
import Head
import Html exposing (Html)
import Html.Attributes as Attr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)

View File

@ -3,13 +3,13 @@ module Route.DependentForm exposing (ActionData, Data, Model, Msg, route)
import DataSource exposing (DataSource)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
import Head
import Html exposing (Html)
import Html.Attributes as Attr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)

View File

@ -8,6 +8,7 @@ import DataSource exposing (DataSource)
import Dict exposing (Dict)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.Validation as Validation
import Form.Value
@ -17,7 +18,6 @@ import Html exposing (Html)
import Html.Attributes as Attr
import Icon
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)

View File

@ -3,6 +3,7 @@ module Route.Login exposing (ActionData, Data, Model, Msg, route)
import DataSource exposing (DataSource)
import Dict exposing (Dict)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -11,7 +12,6 @@ import Head.Seo as Seo
import Html exposing (Html)
import Html.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Pages.Url

View File

@ -7,6 +7,7 @@ import Dict
import Dict.Extra
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView as FieldView
import Form.Validation as Validation
@ -14,7 +15,6 @@ import Head
import Html exposing (Html)
import Html.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.FormState
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)

View File

@ -4,13 +4,13 @@ import DataSource exposing (DataSource)
import Dict
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation exposing (Validation)
import Head
import Html exposing (Html)
import Html.Attributes as Attr
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)

View File

@ -6,6 +6,7 @@ import DataSource exposing (DataSource)
import Dict exposing (Dict)
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView as FieldView
import Form.Validation as Validation
@ -15,7 +16,6 @@ import Head.Seo as Seo
import Html exposing (Html)
import Html.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.FormState
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)

View File

@ -6,6 +6,7 @@ import DataSource exposing (DataSource)
import Dict
import Effect exposing (Effect)
import ErrorPage exposing (ErrorPage)
import Form
import Form.Field as Field
import Form.FieldView
import Form.Validation as Validation
@ -14,7 +15,6 @@ import Head
import Html exposing (Html)
import Html.Attributes as Attr
import MySession
import Pages.Form as Form
import Pages.Msg
import Pages.PageUrl exposing (PageUrl)
import Path exposing (Path)

View File

@ -1,4 +1,4 @@
module Pages.Form exposing
module Form exposing
( Form(..), FieldErrors, HtmlForm, StyledHtmlForm
, init
, ParsedField, field, hiddenField, hiddenKind

View File

@ -95,13 +95,13 @@ module Server.Request exposing
import CookieParser
import DataSource exposing (DataSource)
import Dict exposing (Dict)
import Form
import Form.Validation as Validation exposing (Validation)
import FormData
import Internal.Request
import Json.Decode
import Json.Encode
import List.NonEmpty
import Pages.Form
import QueryParams
import Time
import Url
@ -890,7 +890,7 @@ fileField_ name =
{-| -}
formParserResultNew :
List (Pages.Form.Form error (Validation error combined named) data (Pages.Form.Context error data -> viewFn))
List (Form.Form error (Validation error combined named) data (Form.Context error data -> viewFn))
-> Parser (Result { fields : List ( String, String ), errors : Dict String (List error) } combined)
formParserResultNew formParsers =
formData
@ -898,7 +898,7 @@ formParserResultNew formParsers =
(\rawFormData ->
let
( maybeDecoded, errors ) =
Pages.Form.runOneOfServerSide
Form.runOneOfServerSide
rawFormData
formParsers
in
@ -921,7 +921,7 @@ formParserResultNew formParsers =
{-| -}
formParserResultNew2 :
List (Pages.Form.Form error (Validation error combined named) data (Pages.Form.Context error data -> viewFn))
List (Form.Form error (Validation error combined named) data (Form.Context error data -> viewFn))
-> Parser (DataSource (Result { fields : List ( String, String ), errors : Dict String (List error) } combined))
formParserResultNew2 formParsers =
formData
@ -929,7 +929,7 @@ formParserResultNew2 formParsers =
(\rawFormData ->
let
( maybeDecoded, errorsDataSource ) =
Pages.Form.runOneOfServerSideWithServerValidations
Form.runOneOfServerSideWithServerValidations
rawFormData
formParsers
in

View File

@ -3,9 +3,9 @@ module FormTests exposing (all)
import Date exposing (Date)
import Dict
import Expect
import Form exposing (Form)
import Form.Field as Field
import Form.Validation as Validation exposing (Validation)
import Pages.Form as Form exposing (Form)
import Test exposing (Test, describe, test)

View File

@ -2,13 +2,13 @@ module ServerRequestTest exposing (all)
import Dict exposing (Dict)
import Expect exposing (Expectation)
import Form
import Form.Field as Field
import Form.Validation as Validation
import FormData
import Internal.Request exposing (Parser(..))
import Json.Decode as Decode
import Json.Encode
import Pages.Form as Form
import Server.Request as Request
import Test exposing (Test, describe, test)