Moved to package config
This commit is contained in:
parent
98c510f29a
commit
75f73164aa
|
@ -18,8 +18,8 @@ import net.codinux.banking.client.model.AccountTransaction
|
||||||
import net.codinux.banking.ui.composables.StateHandler
|
import net.codinux.banking.ui.composables.StateHandler
|
||||||
import net.codinux.banking.ui.composables.TransactionsList
|
import net.codinux.banking.ui.composables.TransactionsList
|
||||||
import net.codinux.banking.ui.dialogs.AddAccountDialog
|
import net.codinux.banking.ui.dialogs.AddAccountDialog
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.service.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||||
|
|
||||||
private val typography = Typography(
|
private val typography = Typography(
|
||||||
|
|
|
@ -10,7 +10,7 @@ import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.text.style.TextOverflow
|
import androidx.compose.ui.text.style.TextOverflow
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import net.codinux.banking.client.model.AccountTransaction
|
import net.codinux.banking.client.model.AccountTransaction
|
||||||
import net.codinux.banking.ui.service.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
|
|
||||||
private val formatUtil = DI.formatUtil
|
private val formatUtil = DI.formatUtil
|
||||||
|
|
||||||
|
|
|
@ -22,8 +22,8 @@ import net.codinux.banking.client.model.AccountTransaction
|
||||||
import net.codinux.banking.client.model.Amount
|
import net.codinux.banking.client.model.Amount
|
||||||
import net.codinux.banking.ui.extensions.toBigDecimal
|
import net.codinux.banking.ui.extensions.toBigDecimal
|
||||||
import net.codinux.banking.ui.forms.RoundedCornersCard
|
import net.codinux.banking.ui.forms.RoundedCornersCard
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.service.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
import org.jetbrains.compose.ui.tooling.preview.Preview
|
import org.jetbrains.compose.ui.tooling.preview.Preview
|
||||||
|
|
||||||
private val formatUtil = DI.formatUtil
|
private val formatUtil = DI.formatUtil
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
package net.codinux.banking.ui.service
|
package net.codinux.banking.ui.config
|
||||||
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
|
|
|
@ -1,7 +1,10 @@
|
||||||
package net.codinux.banking.ui.service
|
package net.codinux.banking.ui.config
|
||||||
|
|
||||||
import net.codinux.banking.ui.Platform
|
import net.codinux.banking.ui.Platform
|
||||||
import net.codinux.banking.ui.getPlatform
|
import net.codinux.banking.ui.getPlatform
|
||||||
|
import net.codinux.banking.ui.service.BankFinder
|
||||||
|
import net.codinux.banking.ui.service.BankingService
|
||||||
|
import net.codinux.banking.ui.service.FormatUtil
|
||||||
import net.codinux.banking.ui.state.UiState
|
import net.codinux.banking.ui.state.UiState
|
||||||
|
|
||||||
object DI {
|
object DI {
|
|
@ -1,4 +1,4 @@
|
||||||
package net.codinux.banking.ui.service
|
package net.codinux.banking.ui.config
|
||||||
|
|
||||||
import androidx.compose.ui.graphics.Color
|
import androidx.compose.ui.graphics.Color
|
||||||
import androidx.compose.ui.text.font.FontWeight
|
import androidx.compose.ui.text.font.FontWeight
|
|
@ -16,9 +16,9 @@ import kotlinx.coroutines.launch
|
||||||
import kotlinx.coroutines.withContext
|
import kotlinx.coroutines.withContext
|
||||||
import net.codinux.banking.ui.forms.*
|
import net.codinux.banking.ui.forms.*
|
||||||
import net.codinux.banking.ui.model.BankInfo
|
import net.codinux.banking.ui.model.BankInfo
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.service.DI
|
import net.codinux.banking.ui.config.DI
|
||||||
import net.codinux.banking.ui.service.Style
|
import net.codinux.banking.ui.config.Style
|
||||||
|
|
||||||
|
|
||||||
private val bankingService = DI.bankingService
|
private val bankingService = DI.bankingService
|
||||||
|
|
|
@ -8,8 +8,8 @@ import androidx.compose.material.TextButton
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.ui.Modifier
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.text.style.TextAlign
|
import androidx.compose.ui.text.style.TextAlign
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
import net.codinux.banking.ui.service.Style
|
import net.codinux.banking.ui.config.Style
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun ErrorDialog(
|
fun ErrorDialog(
|
||||||
|
|
|
@ -21,7 +21,7 @@ import androidx.compose.ui.platform.LocalFocusManager
|
||||||
import androidx.compose.ui.unit.dp
|
import androidx.compose.ui.unit.dp
|
||||||
import androidx.compose.ui.unit.toSize
|
import androidx.compose.ui.unit.toSize
|
||||||
import kotlinx.coroutines.launch
|
import kotlinx.coroutines.launch
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun <T> AutocompleteTextField(
|
fun <T> AutocompleteTextField(
|
||||||
|
|
|
@ -12,7 +12,7 @@ import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.graphics.Shape
|
import androidx.compose.ui.graphics.Shape
|
||||||
import androidx.compose.ui.text.TextStyle
|
import androidx.compose.ui.text.TextStyle
|
||||||
import androidx.compose.ui.text.input.VisualTransformation
|
import androidx.compose.ui.text.input.VisualTransformation
|
||||||
import net.codinux.banking.ui.service.Colors
|
import net.codinux.banking.ui.config.Colors
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun OutlinedTextField(
|
fun OutlinedTextField(
|
||||||
|
|
|
@ -4,6 +4,7 @@ import androidx.compose.ui.graphics.Color
|
||||||
import kotlinx.datetime.LocalDate
|
import kotlinx.datetime.LocalDate
|
||||||
import kotlinx.datetime.Month
|
import kotlinx.datetime.Month
|
||||||
import net.codinux.banking.client.model.Amount
|
import net.codinux.banking.client.model.Amount
|
||||||
|
import net.codinux.banking.ui.config.Colors
|
||||||
|
|
||||||
class FormatUtil {
|
class FormatUtil {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue