|
@@ -15,7 +15,7 @@ extension MicItem { |
|
|
|
|
|
|
|
|
extension MicItem { |
|
|
extension MicItem { |
|
|
final class Controller: MPAK.Controller<MicItem.Model> { |
|
|
final class Controller: MPAK.Controller<MicItem.Model> { |
|
|
init() { |
|
|
|
|
|
|
|
|
init(_ id: String? = nil) { |
|
|
/**/print("MicIC.init") |
|
|
/**/print("MicIC.init") |
|
|
super.init( |
|
|
super.init( |
|
|
MicItem.Model(), |
|
|
MicItem.Model(), |
|
@@ -26,13 +26,13 @@ extension MicItem { |
|
|
|
|
|
|
|
|
// Нижеследующее предстоит сгенерить. |
|
|
// Нижеследующее предстоит сгенерить. |
|
|
m |
|
|
m |
|
|
.sink { v in Bus.send(K.MI, v) } |
|
|
|
|
|
|
|
|
.sink { v in Bus.send(Bus.keyId(K.MI, id), v) } |
|
|
.store(in: &subscriptions) |
|
|
.store(in: &subscriptions) |
|
|
|
|
|
|
|
|
pipeValue( |
|
|
pipeValue( |
|
|
dbg: "activityD", |
|
|
dbg: "activityD", |
|
|
sub: nil, |
|
|
sub: nil, |
|
|
Bus.events.compactMap { Bus.convertKeyValue(K.activityDate, $0) }.map { (k: String, v: Date?) in v }.eraseToAnyPublisher(), |
|
|
|
|
|
|
|
|
Bus.events.compactMap { Bus.convertKeyValue(Bus.keyId(K.activityDate, id), $0) }.map { (k: String, v: Date?) in v }.eraseToAnyPublisher(), |
|
|
{ |
|
|
{ |
|
|
$0.activityDate.value = $1 |
|
|
$0.activityDate.value = $1 |
|
|
$0.activityDate.isRecent = true |
|
|
$0.activityDate.isRecent = true |
|
@@ -43,7 +43,7 @@ extension MicItem { |
|
|
pipe( |
|
|
pipe( |
|
|
dbg: "timeout", |
|
|
dbg: "timeout", |
|
|
sub: nil, |
|
|
sub: nil, |
|
|
Bus.events.compactMap { Bus.convertKeyValue(K.timeout, $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(), |
|
|
|
|
|
|
|
|
Bus.events.compactMap { Bus.convertKeyValue(Bus.keyId(K.timeout, id), $0) }.map { (k: String, v: Bool) in v }.eraseToAnyPublisher(), |
|
|
{ $0.timeout = true }, |
|
|
{ $0.timeout = true }, |
|
|
{ $0.timeout = false } |
|
|
{ $0.timeout = false } |
|
|
) |
|
|
) |
|
|