Module
InteractiveData
- Package
- purescript-interactive-data
- Repository
- thought2/purescript-interactive-data.all
Re-exports from DataMVC.Types
#DataUiInterface Source
newtype DataUiInterface :: (Type -> Type) -> Type -> Type -> Type -> Type
newtype DataUiInterface srf msg sta a
Constructors
DataUiInterface { extract :: sta -> DataResult a, init :: Maybe a -> sta, name :: String, update :: msg -> sta -> sta, view :: sta -> srf msg }
Instances
Newtype (DataUiInterface srf msg sta a) _
#DataPathSegment Source
#DataPath Source
type DataPath = Array DataPathSegment
Re-exports from DataMVC.Types.DataError
#DataResult Source
type DataResult a = Either (NonEmptyArray DataError) a
#DataErrorCase Source
#scopeOpt Source
scopeOpt :: forall a. DataPathSegment -> DataResult a -> DataResult a
#scopeError Source
scopeError :: DataPathSegment -> DataError -> DataError
Re-exports from DataMVC.Types.DataUI
#refineDataUi Source
refineDataUi :: forall srf fm fs msg sta a b. RefineDataResults a b -> DataUI srf fm fs msg sta a -> DataUI srf fm fs msg sta b
Re-exports from InteractiveData.App
Re-exports from InteractiveData.Class
#IDDataUI Source
class IDDataUI :: (Type -> Type) -> (Type -> Type) -> (Type -> Type) -> Type -> Type -> Type -> Constraint
class IDDataUI (html :: Type -> Type) (fm :: Type -> Type) (fs :: Type -> Type) (msg :: Type) (sta :: Type) (a :: Type) | a -> msg sta where
Members
Instances
(Html html) => IDDataUI html fm fs StringMsg StringState String
(Html html) => IDDataUI html fm fs IntMsg IntState Int
(Html html) => IDDataUI html fm fs BooleanMsg BooleanState Boolean
(Html html) => IDDataUI html fm fs NumberMsg NumberState Number
(Html html) => IDDataUI html fm fs Unit Unit Unit
(DefaultRecord Tok html fm fs rmsg rsta row) => IDDataUI html fm fs (RecordMsg rmsg) (RecordState rsta) (Record row)
(DefaultVariant Tok html fm fs rcase rmsg rsta row) => IDDataUI html fm fs (VariantMsg rcase rmsg) (VariantState rsta) (Variant row)
(DefaultGeneric "Nothing" Tok html fm fs msg sta (Maybe a)) => IDDataUI html fm fs msg sta (Maybe a)
(DefaultGeneric "Left" Tok html fm fs msg sta (Either a b)) => IDDataUI html fm fs msg sta (Either a b)
(DefaultGeneric "Tuple" Tok html fm fs msg sta (Tuple a b)) => IDDataUI html fm fs msg sta (Tuple a b)
(Html html, IDDataUI html fm fs msg sta a) => IDDataUI html fm fs (ArrayMsg (fm msg)) (ArrayState (fs sta)) (Array a)
Re-exports from InteractiveData.Class.Partial
#variantPartial_ Source
variantPartial_ :: forall html fm fs @initsym rcase rmsg rsta row datauisGiven. DefaultVariantPartial Tok datauisGiven html fm fs initsym rcase rmsg rsta row => Record datauisGiven -> DataUI (IDSurface html) fm fs (VariantMsg rcase rmsg) (VariantState rsta) (Variant row)
#recordPartial_ Source
recordPartial_ :: forall html fm fs rmsg rsta row datauisGiven. DefaultRecordPartial Tok (Record ()) datauisGiven html fm fs rmsg rsta row => Record datauisGiven -> DataUI (IDSurface html) fm fs (RecordMsg rmsg) (RecordState rsta) (Record row)
#recordPartial Source
recordPartial :: forall opt html fm fs rmsg rsta row datauisGiven. DefaultRecordPartial Tok opt datauisGiven html fm fs rmsg rsta row => opt -> Record datauisGiven -> DataUI (IDSurface html) fm fs (RecordMsg rmsg) (RecordState rsta) (Record row)
#genericPartial_ Source
genericPartial_ :: forall html fm fs @initsym msg sta a datauisGiven. DefaultGenericPartial initsym Tok datauisGiven html fm fs msg sta a => String -> Record datauisGiven -> DataUI (IDSurface html) fm fs msg sta a
Re-exports from InteractiveData.Core
#DataAction Source
newtype DataAction msg
Constructors
DataAction { description :: String, label :: String, msg :: These msg IDOutMsg }
Instances
Functor DataAction
(Eq msg) => Eq (DataAction msg)
(Ord msg) => Ord (DataAction msg)
Re-exports from InteractiveData.Core.Classes.OptArgs
#OptArgs Source
class OptArgs all given
Instances
(ConvertOptionsWithDefaults NoConvert all given all) => OptArgs all given
Re-exports from InteractiveData.Core.Types.IDHtmlT
#IDHtmlT Source
newtype IDHtmlT :: (Type -> Type) -> Type -> Type
newtype IDHtmlT html a
Instances
(Html html) => Html (IDHtmlT html)
(Html html) => MapMaybe (IDHtmlT html)
AskCtx IDViewCtx (IDHtmlT html)
Ctx IDViewCtx (IDHtmlT html)
(Html html) => OutMsg IDOutMsg (IDHtmlT html)
(Html html) => RunOutMsg IDOutMsg (IDHtmlT html)
(Functor html) => Functor (IDHtmlT html)
(Html html) => HtmlStyled (IDHtmlT html)
(Html html) => IDHtml (IDHtmlT html)
Re-exports from InteractiveData.DataUIs
#VariantState Source
newtype VariantState :: Row Type -> Type
newtype VariantState r
Instances
Newtype (VariantState r) _
Generic (VariantState r) _
(RowToList r rl, VariantTags rl, VariantShows rl) => Show (VariantState r)
(RowToList r rl, VariantTags rl, VariantEqs rl) => Eq (VariantState r)
#VariantMsg Source
data VariantMsg :: Row Type -> Row Type -> Type
data VariantMsg rcase rmsg
Instances
Generic (VariantMsg rcase rmsg) _
(RowToList rcase rlcase, RowToList rmsg rlmsg, VariantTags rlcase, VariantTags rlmsg, VariantShows rlcase, VariantShows rlmsg) => Show (VariantMsg rcase rmsg)
(RowToList rcase rlcase, RowToList rmsg rlmsg, VariantTags rlcase, VariantTags rlmsg, VariantEqs rlcase, VariantEqs rlmsg) => Eq (VariantMsg rcase rmsg)
#TrivialCfg Source
type TrivialCfg :: Row Type -> Type -> Type
type TrivialCfg extraCfg a = { init :: Maybe a, text :: Maybe String | extraCfg }
#RecordState Source
newtype RecordState :: Row Type -> Type
newtype RecordState r
Instances
Generic (RecordState r) _
(Eq (Record r)) => Eq (RecordState r)
(Show (Record r)) => Show (RecordState r)
#RecordMsg Source
newtype RecordMsg :: Row Type -> Type
newtype RecordMsg r
Instances
Generic (RecordMsg r) _
(RowToList r rl, VariantTags rl, VariantEqs rl) => Eq (RecordMsg r)
(RowToList r rl, VariantTags rl, VariantShows rl) => Show (RecordMsg r)
#Product Source
data Product a b
Instances
(HlistToRecord countNext as rowPrev, Add count 1 countNext, ToString count sym, IsSymbol sym, Lacks sym rowPrev, Cons sym a rowPrev row) => HlistToRecord count (Product a as) row
#BooleanMsg Source
data BooleanMsg
#GenericDataUI Source
class GenericDataUI :: Symbol -> Type -> (Type -> Type) -> Row Type -> (Type -> Type) -> (Type -> Type) -> Type -> Type -> Type -> Constraint
class GenericDataUI (initcase :: Symbol) (opt :: Type) (html :: Type -> Type) (datauis :: Row Type) (fm :: Type -> Type) (fs :: Type -> Type) (msg :: Type) (sta :: Type) (a :: Type) | datauis opt -> initcase html fm fs datauis msg sta a where
Members
Instances
(DataUiVariant datauis fm fs (IDSurface html) initcase rcase rmsg rsta r, IDHtml html, GenericVariantLike DefaultTransform a r, HMap MappingHlistToRecord (Record datauisHlist) (Record datauis), OptArgs CfgGeneric opt) => GenericDataUI initcase opt html datauisHlist fm fs (VariantMsg rcase rmsg) (VariantState rsta) a
#variant_ Source
variant_ :: forall datauis html fm fs @initsym rcase rmsg rsta r. DataUiVariant datauis fm fs (IDSurface html) initsym rcase rmsg rsta r => IDHtml html => Record datauis -> DataUI (IDSurface html) fm fs (VariantMsg rcase rmsg) (VariantState rsta) (Variant r)
#variant Source
variant :: forall opt datauis html fm fs @initsym rcase rmsg rsta r. OptArgs CfgVariant opt => DataUiVariant datauis fm fs (IDSurface html) initsym rcase rmsg rsta r => IDHtml html => opt -> Record datauis -> DataUI (IDSurface html) fm fs (VariantMsg rcase rmsg) (VariantState rsta) (Variant r)
#record_ Source
record_ :: forall datauis html fm fs rmsg rsta r. DataUiRecord datauis fm fs (IDSurface html) rmsg rsta r => IDHtml html => Record datauis -> DataUI (IDSurface html) fm fs (RecordMsg rmsg) (RecordState rsta) (Record r)
#mkTrivialDataUi Source
mkTrivialDataUi :: forall html opt extraCfg fm fs a. IDHtml html => OptArgs (TrivialCfg extraCfg a) opt => Lacks "init" extraCfg => Lacks "text" extraCfg => MkTrivialDataUiCfg html extraCfg a -> opt -> DataUI (IDSurface html) fm fs a a a
#json Source
json :: forall given html fm fs a. OptArgsMixed (JsonCfg a) (JsonOptional ()) given => DecodeJson a => EncodeJson a => IDHtml html => given -> DataUI (IDSurface html) fm fs JsonMsg JsonState a
#boolean_ Source
boolean_ :: forall html fm fs. IDHtml html => DataUI (IDSurface html) fm fs BooleanMsg BooleanState Boolean
#boolean Source
boolean :: forall opt html fm fs. OptArgs CfgBoolean opt => IDHtml html => opt -> DataUI (IDSurface html) fm fs BooleanMsg BooleanState Boolean
#(~) Source
Operator alias for InteractiveData.DataUIs.Generic.Product (right-associative / precedence 6)
#type (~) Source
Operator alias for InteractiveData.DataUIs.Generic.Product (right-associative / precedence 6)
Re-exports from InteractiveData.Entry
#toApp Source
toApp :: forall html given msg sta a. Html html => OptArgsMixed (ToAppCfg a) (ToAppOptional a ()) given => given -> DataUI (IDSurface (IDHtmlT html)) WrapMsg WrapState msg sta a -> InteractiveDataApp html (AppMsg (WrapMsg msg)) (AppState (WrapState sta)) a
#mkDataError Source
mkDataError :: String -> DataError
Re-exports from InteractiveData.Run
#getUi Source
getUi :: forall html msg sta a. { initData :: Maybe a } -> DataUiInterface html msg sta a -> UI html msg sta
#getExtract Source
getExtract :: forall html msg sta a. DataUiInterface html msg sta a -> (sta -> DataResult a)
- Modules
- InteractiveData
- InteractiveData.
App - InteractiveData.
App. EnvVars - InteractiveData.
App. FastForward. Inline - InteractiveData.
App. FastForward. Standalone - InteractiveData.
App. Routing - InteractiveData.
App. Types - InteractiveData.
App. UI. ActionButton - InteractiveData.
App. UI. Assets - InteractiveData.
App. UI. Body - InteractiveData.
App. UI. Breadcrumbs - InteractiveData.
App. UI. Card - InteractiveData.
App. UI. DataLabel - InteractiveData.
App. UI. Footer - InteractiveData.
App. UI. Header - InteractiveData.
App. UI. Layout - InteractiveData.
App. UI. Menu - InteractiveData.
App. UI. NotFound - InteractiveData.
App. UI. SideBar - InteractiveData.
App. UI. Types. SumTree - InteractiveData.
App. WrapApp - InteractiveData.
App. WrapData - InteractiveData.
Class - InteractiveData.
Class. Defaults - InteractiveData.
Class. Defaults. Generic - InteractiveData.
Class. Defaults. Record - InteractiveData.
Class. Defaults. Variant - InteractiveData.
Class. InitDataUI - InteractiveData.
Class. Partial - InteractiveData.
Core - InteractiveData.
Core. Classes. IDHtml - InteractiveData.
Core. Classes. OptArgs - InteractiveData.
Core. FeatureFlags - InteractiveData.
Core. Prelude - InteractiveData.
Core. Types. Common - InteractiveData.
Core. Types. DataAction - InteractiveData.
Core. Types. DataPathExtra - InteractiveData.
Core. Types. DataTree - InteractiveData.
Core. Types. IDHtmlT - InteractiveData.
Core. Types. IDOutMsg - InteractiveData.
Core. Types. IDSurface - InteractiveData.
Core. Types. IDViewCtx - InteractiveData.
Core. Util. RecordProjection - InteractiveData.
DataUIs - InteractiveData.
DataUIs. Array - InteractiveData.
DataUIs. Boolean - InteractiveData.
DataUIs. Common - InteractiveData.
DataUIs. Generic - InteractiveData.
DataUIs. Int - InteractiveData.
DataUIs. Json - InteractiveData.
DataUIs. Newtype - InteractiveData.
DataUIs. Number - InteractiveData.
DataUIs. Record - InteractiveData.
DataUIs. String - InteractiveData.
DataUIs. Trivial - InteractiveData.
DataUIs. Types - InteractiveData.
DataUIs. Variant - InteractiveData.
Entry - InteractiveData.
Run - InteractiveData.
UI. NumberInput - InteractiveData.
UI. Slider