@@ -33,60 +33,60 @@ module WindowState =
33
33
| ValueNone -> WindowState.Closed
34
34
35
35
36
- type internal OneWayData < 'model , 'a > = {
36
+ type OneWayData < 'model , 'a > = {
37
37
Get: 'model -> 'a
38
38
}
39
39
40
- type internal OneWayLazyData < 'model , 'a , 'b > = {
40
+ type OneWayLazyData < 'model , 'a , 'b > = {
41
41
Get: 'model -> 'a
42
42
Map: 'a -> 'b
43
43
Equals: 'a -> 'a -> bool
44
44
}
45
45
46
- type internal OneWaySeqLazyData < 'model , 'a , 'b , 'id > = {
46
+ type OneWaySeqLazyData < 'model , 'a , 'b , 'id > = {
47
47
Get: 'model -> 'a
48
48
Map: 'a -> 'b seq
49
49
Equals: 'a -> 'a -> bool
50
50
GetId: 'b -> 'id
51
51
ItemEquals: 'b -> 'b -> bool
52
52
}
53
53
54
- type internal TwoWayData < 'model , 'msg , 'a > = {
54
+ type TwoWayData < 'model , 'msg , 'a > = {
55
55
Get: 'model -> 'a
56
56
Set: 'a -> 'model -> 'msg
57
57
}
58
58
59
- type internal TwoWayValidateData < 'model , 'msg , 'a > = {
59
+ type TwoWayValidateData < 'model , 'msg , 'a > = {
60
60
Get: 'model -> 'a
61
61
Set: 'a -> 'model -> 'msg
62
62
Validate: 'model -> string voption
63
63
}
64
64
65
- type internal CmdData < 'model , 'msg > = {
65
+ type CmdData < 'model , 'msg > = {
66
66
Exec: 'model -> 'msg voption
67
67
CanExec: 'model -> bool
68
68
}
69
69
70
- type internal CmdParamData < 'model , 'msg > = {
70
+ type CmdParamData < 'model , 'msg > = {
71
71
Exec: obj -> 'model -> 'msg voption
72
72
CanExec: obj -> 'model -> bool
73
73
AutoRequery: bool
74
74
}
75
75
76
- type internal SubModelSelectedItemData < 'model , 'msg , 'id > = {
76
+ type SubModelSelectedItemData < 'model , 'msg , 'id > = {
77
77
Get: 'model -> 'id voption
78
78
Set: 'id voption -> 'model -> 'msg
79
79
SubModelSeqBindingName: string
80
80
}
81
81
82
- type internal SubModelData < 'model , 'msg , 'bindingModel , 'bindingMsg > = {
82
+ type SubModelData < 'model , 'msg , 'bindingModel , 'bindingMsg > = {
83
83
GetModel: 'model -> 'bindingModel voption
84
84
GetBindings: unit -> Binding < 'bindingModel , 'bindingMsg > list
85
85
ToMsg: 'model -> 'bindingMsg -> 'msg
86
86
Sticky: bool
87
87
}
88
88
89
- and internal SubModelWinData < 'model , 'msg , 'bindingModel , 'bindingMsg > = {
89
+ and SubModelWinData < 'model , 'msg , 'bindingModel , 'bindingMsg > = {
90
90
GetState: 'model -> WindowState < 'bindingModel >
91
91
GetBindings: unit -> Binding < 'bindingModel , 'bindingMsg > list
92
92
ToMsg: 'model -> 'bindingMsg -> 'msg
@@ -95,7 +95,7 @@ and internal SubModelWinData<'model, 'msg, 'bindingModel, 'bindingMsg> = {
95
95
OnCloseRequested: 'model -> 'msg voption
96
96
}
97
97
98
- and internal SubModelSeqData < 'model , 'msg , 'bindingModel , 'bindingMsg , 'id > = {
98
+ and SubModelSeqData < 'model , 'msg , 'bindingModel , 'bindingMsg , 'id > = {
99
99
GetModels: 'model -> 'bindingModel seq
100
100
GetId: 'bindingModel -> 'id
101
101
GetBindings: unit -> Binding < 'bindingModel , 'bindingMsg > list
@@ -104,7 +104,7 @@ and internal SubModelSeqData<'model, 'msg, 'bindingModel, 'bindingMsg, 'id> = {
104
104
105
105
106
106
/// Represents all necessary data used to create the different binding types.
107
- and internal BindingData < 'model , 'msg > =
107
+ and BindingData < 'model , 'msg > =
108
108
| OneWayData of OneWayData < 'model , obj >
109
109
| OneWayLazyData of OneWayLazyData < 'model , obj , obj >
110
110
| OneWaySeqLazyData of OneWaySeqLazyData < 'model , obj , obj , obj >
@@ -120,12 +120,11 @@ and internal BindingData<'model, 'msg> =
120
120
121
121
/// Represents all necessary data used to create a binding.
122
122
and Binding < 'model , 'msg > =
123
- internal
124
123
{ Name: string
125
124
Data: BindingData < 'model , 'msg > }
126
125
127
126
128
- module internal BindingData =
127
+ module BindingData =
129
128
130
129
let subModelSelectedItemLast a b =
131
130
match a, b with
@@ -247,7 +246,7 @@ module internal BindingData =
247
246
let mapMsg f = mapMsgWithModel ( fun _ -> f)
248
247
249
248
250
- module internal Binding =
249
+ module Binding =
251
250
252
251
let mapData f binding =
253
252
{ Name = binding.Name
@@ -261,7 +260,7 @@ module internal Binding =
261
260
BindingData.subModelSelectedItemLast a.Data b.Data
262
261
263
262
264
- module internal Bindings =
263
+ module Bindings =
265
264
266
265
let mapModel f bindings = bindings |> List.map ( Binding.mapModel f)
267
266
let mapMsgWithModel f bindings = bindings |> List.map ( Binding.mapMsgWithModel f)
0 commit comments