@momo-kits/native-kits 0.163.1-beta.8-debug → 0.163.1-beta.9-debug
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +1 -1
- package/compose/build.gradle.kts +1 -1
- package/compose/compose.podspec +1 -1
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/OsFontScale.android.kt +7 -0
- package/compose/src/androidMain/kotlin/vn/momo/kits/platform/Platform.android.kt +30 -3
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/Context.kt +5 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/HeaderRight.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/NavigationContainer.kt +3 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/application/WidgetContainer.kt +56 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/components/ScaleSizeScope.kt +4 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/KitFontScale.kt +22 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/const/Typography.kt +8 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Card.kt +63 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Item.kt +32 -19
- package/compose/src/commonMain/kotlin/vn/momo/kits/layout/Section.kt +49 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/BottomSheet.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/ModalScreen.kt +1 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/Navigation.kt +3 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/NavigationContainer.kt +93 -75
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/StackScreen.kt +26 -7
- package/compose/src/commonMain/kotlin/vn/momo/kits/navigation/bottomtab/BottomTab.kt +3 -1
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/ComposeLottieAnimation.kt +23 -2
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/OsFontScale.kt +9 -0
- package/compose/src/commonMain/kotlin/vn/momo/kits/platform/Platform.kt +11 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/platform/OsFontScale.ios.kt +66 -0
- package/compose/src/iosMain/kotlin/vn/momo/kits/platform/Platform.ios.kt +26 -3
- package/gradle.properties +1 -1
- package/ios/Application/ApplicationEnvironment.swift +15 -2
- package/ios/Application/Components.swift +50 -44
- package/ios/Application/FloatingButton.swift +10 -9
- package/ios/Application/HeaderRight.swift +79 -45
- package/ios/Application/Localize.swift +277 -0
- package/ios/Application/MaxApi.swift +18 -0
- package/ios/Application/Navigation/BottomTab/BottomTab.swift +104 -0
- package/ios/Application/Navigation/BottomTab/BottomTabBar.swift +215 -0
- package/ios/Application/Navigation/BottomTab/CurvedContainer.swift +65 -0
- package/ios/Application/Navigation/HeaderBackProps.swift +66 -0
- package/ios/Application/Navigation/HeaderTitle.swift +57 -0
- package/ios/Application/Navigation/HeaderUser.swift +209 -0
- package/ios/Application/Navigation/NavigationContainer.swift +200 -0
- package/ios/Application/Navigation/NavigationOptions.swift +109 -0
- package/ios/Application/Navigation/Navigator.swift +385 -0
- package/ios/Application/Navigation/Overplay/BottomSheet.swift +256 -0
- package/ios/Application/Navigation/Overplay/ModalScreen.swift +74 -0
- package/ios/Application/Navigation/Overplay/SnackBar.swift +144 -0
- package/ios/Application/Navigation/Tracking/ScreenTracker.swift +117 -0
- package/ios/Application/Navigation/component/Header.swift +178 -0
- package/ios/Application/Navigation/component/HeaderBackground.swift +83 -0
- package/ios/Application/Navigation/component/HeaderColor.swift +65 -0
- package/ios/Application/Screen.swift +2 -1
- package/ios/Application/StackScreen.swift +501 -0
- package/ios/Avatar/Avatar.swift +193 -0
- package/ios/Badge/Badge.swift +11 -14
- package/ios/Badge/BadgeRibbon.swift +92 -21
- package/ios/BaselineView/BaselineView.swift +163 -0
- package/ios/Button/Button.swift +124 -29
- package/ios/Carousel/Carousel.swift +196 -0
- package/ios/Checkbox/Checkbox.swift +23 -28
- package/ios/Chip/Chip.swift +56 -33
- package/ios/Collapse/Collapse.swift +192 -0
- package/ios/Colors+Radius+Spacing/Colors.swift +20 -17
- package/ios/Colors+Radius+Spacing/Spacing.swift +3 -1
- package/ios/Colors+Radius+Spacing/Theme.swift +295 -0
- package/ios/DateTimePicker/DateTimePicker.swift +212 -0
- package/ios/DateTimePicker/DateTimePickerTypes.swift +55 -0
- package/ios/DateTimePicker/DateTimePickerUtils.swift +167 -0
- package/ios/DateTimePicker/WheelPicker.swift +165 -0
- package/ios/Divider/Divider.swift +16 -0
- package/ios/Extensions/ActiveOpacityButtonStyle.swift +14 -0
- package/ios/Extensions/Color++.swift +32 -0
- package/ios/Icon/Icon.swift +10 -1
- package/ios/IconButton/IconButton.swift +140 -0
- package/ios/Image/Image.swift +16 -3
- package/ios/Information/Information.swift +3 -1
- package/ios/Input/ErrorView.swift +3 -1
- package/ios/Input/Input.swift +72 -33
- package/ios/Input/InputPhoneNumber.swift +33 -21
- package/ios/Input/InputSearch.swift +107 -48
- package/ios/Input/InputTextArea.swift +134 -64
- package/ios/InputDropDown/InputDropDown.swift +201 -0
- package/ios/InputMoney/InputMoney.swift +347 -0
- package/ios/InputOTP/InputOTP.swift +210 -0
- package/ios/Loader/Loader.swift +113 -0
- package/ios/MoMoUIKits.podspec +5 -0
- package/ios/Pagination/PaginationDot.swift +61 -0
- package/ios/Pagination/PaginationNumber.swift +35 -0
- package/ios/Pagination/PaginationScroll.swift +101 -0
- package/ios/Pagination/PaginationWhiteDot.swift +37 -0
- package/ios/Popup/PopupDisplay.swift +11 -20
- package/ios/Popup/PopupInput.swift +2 -8
- package/ios/Popup/PopupNotify.swift +218 -0
- package/ios/Popup/PopupPromotion.swift +16 -8
- package/ios/ProgressInfo/ProgressInfo.swift +296 -0
- package/ios/Radio/Radio.swift +69 -0
- package/ios/Rating/Rating.swift +82 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/AccentColor.colorset/Contents.json +11 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Background.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Border.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Card.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Contents.json +6 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Error.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryDark.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/PrimaryLight.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Success.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Text.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/TextSecondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/Contents.json +9 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-pressed.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-selected.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-surface.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/background-tonal.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/border-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/gradient.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-container.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-primary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/success-secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-default.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-disable.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-hint.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/ThemeColors/text-secondary.colorset/Contents.json +38 -0
- package/ios/Resources/MoMoUIKitsColors.xcassets/Warning.colorset/Contents.json +38 -0
- package/ios/Skeleton/Skeleton.swift +99 -0
- package/ios/Slider/Slider.swift +237 -0
- package/ios/Stepper/Stepper.swift +220 -0
- package/ios/Steps/Steps.swift +467 -0
- package/ios/SuggestAction/SuggestAction.swift +99 -0
- package/ios/Swipeable/SwipeCell.swift +187 -0
- package/ios/Swipeable/SwipeCellModel.swift +21 -0
- package/ios/Switch/Switch.swift +53 -28
- package/ios/TabView/TabView.swift +534 -0
- package/ios/Tag/Tag.swift +98 -0
- package/ios/Template/TrustBanner/TrustBanner.swift +6 -7
- package/ios/Title/Title.swift +269 -0
- package/ios/Tooltip/Tooltip.swift +485 -0
- package/ios/Typography/FontScaleStore.swift +19 -0
- package/ios/Typography/Text.swift +79 -5
- package/ios/Typography/Typography.swift +3 -0
- package/ios/Uploader/Uploader.swift +174 -0
- package/ios/native-kits.podspec +61 -8
- package/ios-demo/MoMoUIKitsDemo.podspec +20 -0
- package/ios-demo/README.md +120 -0
- package/ios-demo/Resources/dot_loading.json +558 -0
- package/ios-demo/Resources/icon.json +4052 -0
- package/ios-demo/Resources/lottie_circle_loader.json +1 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/DemoScaffold.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsBadgeDemoView.swift +25 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsButtonDemoView.swift +26 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsCheckboxDemoView.swift +19 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsChipDemoView.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsInputDemoView.swift +48 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsPopupDemoView.swift +21 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsRadioDemoView.swift +17 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/Demos/UIKitsTypographyDemoView.swift +28 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoContext.swift +31 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/MoMoUIKitsDemoFactory.swift +24 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AnimatedHeaderDemo.swift +110 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/AvatarDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BadgeDemo.swift +269 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BaselineView.swift +117 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/BottomTabDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ButtonDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CarouselDemo.swift +126 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CheckboxDemo.swift +63 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ChipDemo.swift +20 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/CollapseDemo.swift +93 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ContentView.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DateTimePickerDemo.swift +124 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/DividerDemo.swift +14 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/HeaderUserDemo.swift +49 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/Home.swift +279 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/IconButtonDemo.swift +58 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ImageDemo.swift +78 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InformationDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDemo.swift +111 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputDropDownDemo.swift +136 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputMoneyDemo.swift +107 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputOTPDemo.swift +73 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputPhoneNumberDemo.swift +100 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputSearchDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/InputTextAreaDemo.swift +57 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LoaderDemo.swift +70 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/LocalizeDemo.swift +188 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/NavigationDemo.swift +229 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PaginationDemo.swift +72 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupDisplayDemo.swift +175 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupNotifyDemo.swift +121 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/PopupPromotionDemo.swift +76 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ProgressInfoDemo.swift +89 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RadioDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/RatingDemo.swift +56 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SkeletonDemo.swift +32 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SliderDemo.swift +150 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SnackBarDemo.swift +138 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepperDemo.swift +103 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/StepsDemo.swift +94 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SuggestActionDemo.swift +79 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwipeDemo.swift +152 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/SwitchDemo.swift +33 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TabViewDemo.swift +190 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TagDemo.swift +34 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/ThemeDemo.swift +182 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TitleDemo.swift +109 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TooltipDemo.swift +187 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/TypographyDemo.swift +87 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SampleDemos/UploaderDemo.swift +131 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/SwiftUIDemoBrowserView.swift +51 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoModels.swift +15 -0
- package/ios-demo/Sources/MoMoUIKitsDemo/UIKitsDemoRegistry.swift +73 -0
- package/local.properties +2 -2
- package/package.json +1 -1
- package/publish.sh +53 -0
- package/scripts/gen-ios-color.mjs +136 -0
- package/.claude/settings.local.json +0 -62
|
@@ -83,9 +83,8 @@ public struct HeaderBackground: View {
|
|
|
83
83
|
self.headerTransparent = headerTransparent
|
|
84
84
|
self.fullScreenContent = fullScreenContent
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
public var body: some View {
|
|
88
|
-
|
|
89
88
|
let statusBarHeight = safeAreaTopInset()
|
|
90
89
|
let opacity = max(0, 1 - scrollState / 200)
|
|
91
90
|
let height = fullScreenContent ? 0 : statusBarHeight + 52
|
|
@@ -101,21 +100,6 @@ public struct HeaderBackground: View {
|
|
|
101
100
|
.frame(height: height)
|
|
102
101
|
.shadow(color: Colors.black20.opacity(0.2), radius: 10, x: 0, y: -2)
|
|
103
102
|
.background(backgroundColor)
|
|
104
|
-
.overlay(
|
|
105
|
-
headerTransparent ? AnyView(EmptyView()) :
|
|
106
|
-
AnyView(
|
|
107
|
-
Rectangle()
|
|
108
|
-
.fill(LinearGradient(
|
|
109
|
-
gradient: Gradient(colors: [
|
|
110
|
-
Color(red: 1, green: 0.8, blue: 0.87),
|
|
111
|
-
Color(red: 1, green: 0.8, blue: 0.87).opacity(0.5)
|
|
112
|
-
]),
|
|
113
|
-
startPoint: .top,
|
|
114
|
-
endPoint: .bottom))
|
|
115
|
-
.opacity(opacity)
|
|
116
|
-
.frame(height: height))
|
|
117
|
-
)
|
|
118
|
-
|
|
119
103
|
if !headerTransparent {
|
|
120
104
|
Rectangle()
|
|
121
105
|
.fill(Color.black.opacity(0.1))
|
|
@@ -148,12 +132,42 @@ public struct HeaderBackground: View {
|
|
|
148
132
|
}
|
|
149
133
|
}
|
|
150
134
|
|
|
135
|
+
// MARK: - Header right width preference
|
|
136
|
+
|
|
137
|
+
/// Reports the measured width of the header-right area so the animated search
|
|
138
|
+
/// header can compute its trailing inset (mirrors Compose's headerRightWidthPx).
|
|
139
|
+
public struct HeaderRightWidthKey: PreferenceKey {
|
|
140
|
+
public static var defaultValue: CGFloat = 0
|
|
141
|
+
public static func reduce(value: inout CGFloat, nextValue: () -> CGFloat) {
|
|
142
|
+
value = max(value, nextValue())
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// MARK: - Bottom-tab root preference
|
|
147
|
+
|
|
148
|
+
/// Set by `BottomTab` on appear so its enclosing `StackScreen` can detect that
|
|
149
|
+
/// it's hosting a self-contained bottom-tab surface and skip its own bottom
|
|
150
|
+
/// safe-area reservation — mirrors Compose's `Navigation.markAsBottomTabRoot()`
|
|
151
|
+
/// (`navigation.isBottomTabRoot`, read by `StackScreen.kt`'s `MainContent`).
|
|
152
|
+
/// Without this, `BottomTab`'s own internal safe-area handling gets an extra,
|
|
153
|
+
/// unwanted inset stacked on top of it by the outer `StackScreen`, pushing the
|
|
154
|
+
/// tab bar up higher than the true bottom inset.
|
|
155
|
+
public struct IsBottomTabRootKey: PreferenceKey {
|
|
156
|
+
public static var defaultValue: Bool = false
|
|
157
|
+
public static func reduce(value: inout Bool, nextValue: () -> Bool) {
|
|
158
|
+
value = value || nextValue()
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
151
162
|
// MARK: - Header View
|
|
152
163
|
|
|
153
164
|
public struct Header: View {
|
|
154
165
|
var headerType: HeaderType = .default
|
|
155
166
|
var titlePosition: TitlePosition
|
|
156
167
|
var title: String
|
|
168
|
+
/// Optional rich title (mirrors Compose's `HeaderTitle`); `.user` renders an
|
|
169
|
+
/// avatar group instead of `title`. Defaults to nil → plain `title` text.
|
|
170
|
+
var headerTitle: HeaderTitle?
|
|
157
171
|
var headerRight: (()->any View)? = {HeaderRight()}
|
|
158
172
|
var goBack: (() -> Void)?
|
|
159
173
|
var opacity: CGFloat = 1
|
|
@@ -161,22 +175,27 @@ public struct Header: View {
|
|
|
161
175
|
var scrollState: CGFloat = 0
|
|
162
176
|
var inputSearchProps: InputSearchProps?
|
|
163
177
|
var tintColor: Color?
|
|
178
|
+
/// Title opacity; used by the animated search header to fade the title out on scroll.
|
|
179
|
+
var titleOpacity: CGFloat = 1
|
|
164
180
|
|
|
165
181
|
public init(
|
|
166
182
|
headerType: HeaderType = .default,
|
|
167
183
|
titlePosition: TitlePosition,
|
|
168
184
|
title: String,
|
|
185
|
+
headerTitle: HeaderTitle? = nil,
|
|
169
186
|
headerRight: (()->any View)? = {HeaderRight()},
|
|
170
187
|
goBack: (() -> Void)? = nil,
|
|
171
188
|
opacity: CGFloat = 1,
|
|
172
189
|
animatedHeader: AnimatedHeader? = nil,
|
|
173
190
|
scrollState: CGFloat = 0,
|
|
174
191
|
inputSearchProps: InputSearchProps? = nil,
|
|
175
|
-
tintColor: Color? = nil
|
|
192
|
+
tintColor: Color? = nil,
|
|
193
|
+
titleOpacity: CGFloat = 1
|
|
176
194
|
) {
|
|
177
195
|
self.headerType = headerType
|
|
178
196
|
self.titlePosition = titlePosition
|
|
179
197
|
self.title = title
|
|
198
|
+
self.headerTitle = headerTitle
|
|
180
199
|
self.headerRight = headerRight
|
|
181
200
|
self.goBack = goBack
|
|
182
201
|
self.opacity = opacity
|
|
@@ -184,10 +203,11 @@ public struct Header: View {
|
|
|
184
203
|
self.scrollState = scrollState
|
|
185
204
|
self.inputSearchProps = inputSearchProps
|
|
186
205
|
self.tintColor = tintColor
|
|
206
|
+
self.titleOpacity = titleOpacity
|
|
187
207
|
}
|
|
188
|
-
|
|
208
|
+
|
|
189
209
|
public var body: some View {
|
|
190
|
-
|
|
210
|
+
|
|
191
211
|
let backgroundButtonColor: Color = tintColor == Colors.black01 ? Colors.black20.opacity(0.6) : Colors.black01.opacity(0.6)
|
|
192
212
|
let borderColor: Color = tintColor == Colors.black01 ? Colors.black01.opacity(0.2) : Colors.black20.opacity(0.2)
|
|
193
213
|
|
|
@@ -212,6 +232,9 @@ public struct Header: View {
|
|
|
212
232
|
|
|
213
233
|
if let headerRight = headerRight {
|
|
214
234
|
AnyView(headerRight())
|
|
235
|
+
.background(GeometryReader { geo in
|
|
236
|
+
Color.clear.preference(key: HeaderRightWidthKey.self, value: geo.size.width)
|
|
237
|
+
})
|
|
215
238
|
}
|
|
216
239
|
}
|
|
217
240
|
.padding(.horizontal, 12)
|
|
@@ -223,33 +246,16 @@ public struct Header: View {
|
|
|
223
246
|
}
|
|
224
247
|
|
|
225
248
|
if let inputProps = inputSearchProps {
|
|
226
|
-
InputSearch(
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
placeholder: inputProps.placeholder,
|
|
232
|
-
onChangeText: inputProps.onChangeText,
|
|
233
|
-
onPressButtonText: inputProps.onPressButtonText,
|
|
234
|
-
error: inputProps.error,
|
|
235
|
-
disabled: inputProps.disabled,
|
|
236
|
-
icon: inputProps.icon,
|
|
237
|
-
iconColor: inputProps.iconColor,
|
|
238
|
-
onRightIconPressed: inputProps.onRightIconPressed,
|
|
239
|
-
onFocus: inputProps.onFocus,
|
|
240
|
-
onBlur: inputProps.onBlur,
|
|
241
|
-
loading: inputProps.loading,
|
|
242
|
-
fontWeight: inputProps.fontWeight,
|
|
243
|
-
keyboardType: inputProps.keyboardType
|
|
244
|
-
)
|
|
249
|
+
InputSearch(props: inputProps)
|
|
250
|
+
} else if case let .user(userData)? = headerTitle {
|
|
251
|
+
if #available(iOS 16.0, *) {
|
|
252
|
+
HeaderUserView(userData)
|
|
253
|
+
}
|
|
245
254
|
} else {
|
|
246
|
-
|
|
247
|
-
.
|
|
248
|
-
.ignoreBoldTextSetting()
|
|
249
|
-
.foregroundColor(tintColor ?? Colors.black17)
|
|
255
|
+
MomoText(headerTitle?.defaultTitle ?? title, typography: .headerDefaultBold, color: tintColor ?? Colors.black17, maxLines: 1)
|
|
256
|
+
.opacity(titleOpacity)
|
|
250
257
|
.frame(maxWidth: titlePosition == .center ? UIScreen.main.bounds.width - 252 : nil)
|
|
251
258
|
.frame(maxWidth: titlePosition == .center ? .infinity : UIScreen.main.bounds.width - 172, alignment: titlePosition == .center ? .center : .leading)
|
|
252
|
-
.lineLimit(1)
|
|
253
259
|
}
|
|
254
260
|
|
|
255
261
|
Spacer()
|
|
@@ -3,11 +3,16 @@ import Combine
|
|
|
3
3
|
|
|
4
4
|
public enum FABSize {
|
|
5
5
|
case small
|
|
6
|
+
case `default`
|
|
7
|
+
/// Backward-compatible alias for older iOS call sites. Compose names this
|
|
8
|
+
/// size `DEFAULT`.
|
|
6
9
|
case large
|
|
7
|
-
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
public enum FABPosition {
|
|
13
|
+
case end
|
|
14
|
+
/// Backward-compatible alias for older iOS call sites. Compose names this
|
|
15
|
+
/// position `END`.
|
|
11
16
|
case right
|
|
12
17
|
case center
|
|
13
18
|
}
|
|
@@ -31,10 +36,10 @@ public struct FabProps {
|
|
|
31
36
|
label: String? = nil,
|
|
32
37
|
onClick: (() -> Void)? = nil,
|
|
33
38
|
containerColor: Color? = Colors.primary,
|
|
34
|
-
size: FABSize? = .
|
|
39
|
+
size: FABSize? = .default,
|
|
35
40
|
iconSize: CGFloat? = nil,
|
|
36
41
|
scrollOffset: CGFloat? = nil,
|
|
37
|
-
position: FABPosition? = .
|
|
42
|
+
position: FABPosition? = .end,
|
|
38
43
|
bottomPadding: CGFloat? = nil,
|
|
39
44
|
renderComponent: (() -> AnyView)? = nil
|
|
40
45
|
) {
|
|
@@ -65,7 +70,7 @@ public struct FloatingButton: View {
|
|
|
65
70
|
private var keyboardOffset: CGFloat
|
|
66
71
|
private var scrollOffset: CGFloat
|
|
67
72
|
private var bottomPadding: CGFloat { props.bottomPadding ?? 12 + keyboardOffset}
|
|
68
|
-
private var position: FABPosition? { props.position ?? .
|
|
73
|
+
private var position: FABPosition? { props.position ?? .end }
|
|
69
74
|
private var containerColor: Color? { props.containerColor ?? Colors.primary }
|
|
70
75
|
private var iconColor: Color? { props.iconColor ?? .white }
|
|
71
76
|
private var label: String? { props.label }
|
|
@@ -152,11 +157,7 @@ public struct FloatingButton: View {
|
|
|
152
157
|
if let label = label {
|
|
153
158
|
if showText {
|
|
154
159
|
Spacer().frame(width: 8)
|
|
155
|
-
|
|
156
|
-
.foregroundColor(.white)
|
|
157
|
-
.font(.system(size: scaleSize(16), weight: .bold))
|
|
158
|
-
.ignoreBoldTextSetting()
|
|
159
|
-
.lineLimit(1)
|
|
160
|
+
MomoText(label, typography: .actionDefaultBold, color: .white, maxLines: 1)
|
|
160
161
|
.background(
|
|
161
162
|
GeometryReader { geo in
|
|
162
163
|
Color.clear.onAppear {
|
|
@@ -101,69 +101,98 @@ struct ToolkitHeaderRight: View {
|
|
|
101
101
|
var tintColor: Color?
|
|
102
102
|
@State private var isFavorite: Bool = false
|
|
103
103
|
@State private var isLoading: Bool = false
|
|
104
|
-
@
|
|
104
|
+
@Environment(\.applicationEnvironment) private var environment
|
|
105
|
+
|
|
106
|
+
private func apiValue(_ value: Any?) -> Any {
|
|
107
|
+
value ?? NSNull()
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
private var contextMap: [String: Any] {
|
|
111
|
+
let context = environment.applicationContext
|
|
112
|
+
return [
|
|
113
|
+
"appId": apiValue(context?.appId),
|
|
114
|
+
"code": apiValue(context?.appCode),
|
|
115
|
+
"name": apiValue(context?.appName),
|
|
116
|
+
"icon": apiValue(context?.appIcon),
|
|
117
|
+
"description": apiValue(context?.description),
|
|
118
|
+
"support": apiValue(context?.support),
|
|
119
|
+
"toolkitConfig": apiValue(context?.toolkitConfig),
|
|
120
|
+
"providerId": apiValue(context?.providerId),
|
|
121
|
+
"permissions": apiValue(context?.permissions)
|
|
122
|
+
]
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
private var shouldShowShortcut: Bool {
|
|
126
|
+
headerRight?.useShortcut == true && !(headerRight?.useMore == true && environment.applicationContext == nil)
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
private func parseResponse(_ response: String) -> Any? {
|
|
130
|
+
guard let jsonData = response.data(using: .utf8),
|
|
131
|
+
let json = try? JSONSerialization.jsonObject(with: jsonData) as? [String: Any] else {
|
|
132
|
+
return nil
|
|
133
|
+
}
|
|
134
|
+
return json["response"]
|
|
135
|
+
}
|
|
105
136
|
|
|
106
137
|
// MARK: - Actions
|
|
138
|
+
private func loadFavoriteState() {
|
|
139
|
+
environment.composeApi?.request(
|
|
140
|
+
funcName: "isFavoriteApp",
|
|
141
|
+
params: ["code": apiValue(environment.applicationContext?.appCode)]
|
|
142
|
+
) { response in
|
|
143
|
+
if let isFavorite = parseResponse(response) as? Bool {
|
|
144
|
+
self.isFavorite = isFavorite
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
107
149
|
private func onPressShortcut() {
|
|
108
150
|
environment.composeApi?.request(
|
|
109
151
|
funcName: "onToolAction",
|
|
110
|
-
params: [
|
|
111
|
-
|
|
112
|
-
|
|
152
|
+
params: [
|
|
153
|
+
"item": ["key": "onFavorite"],
|
|
154
|
+
"context": contextMap
|
|
155
|
+
]
|
|
156
|
+
) { response in
|
|
157
|
+
if let result = parseResponse(response) as? [String: Any],
|
|
158
|
+
result["success"] as? Bool == true {
|
|
159
|
+
isFavorite.toggle()
|
|
160
|
+
}
|
|
113
161
|
}
|
|
114
162
|
}
|
|
115
163
|
|
|
116
164
|
private func onPressHelpCenter() {
|
|
117
|
-
let context = environment.applicationContext
|
|
118
|
-
let paramMap: [String: Any] = [
|
|
119
|
-
"appId": context?.appId,
|
|
120
|
-
"code": context?.appCode,
|
|
121
|
-
"name": context?.appName,
|
|
122
|
-
"icon": context?.appIcon,
|
|
123
|
-
"description": context?.description
|
|
124
|
-
]
|
|
125
165
|
environment.composeApi?.request(
|
|
126
166
|
funcName: "showHelpCenter",
|
|
127
|
-
params:
|
|
167
|
+
params: [
|
|
168
|
+
"appId": apiValue(environment.applicationContext?.appId),
|
|
169
|
+
"code": apiValue(environment.applicationContext?.appCode),
|
|
170
|
+
"name": apiValue(environment.applicationContext?.appName),
|
|
171
|
+
"icon": apiValue(environment.applicationContext?.appIcon),
|
|
172
|
+
"description": apiValue(environment.applicationContext?.description)
|
|
173
|
+
]
|
|
128
174
|
) { _ in }
|
|
129
175
|
}
|
|
130
176
|
|
|
131
177
|
private func onPressClose() {
|
|
132
178
|
environment.composeApi?.request(
|
|
133
179
|
funcName: "dismissAll",
|
|
134
|
-
params:
|
|
180
|
+
params: nil
|
|
135
181
|
) { _ in }
|
|
136
182
|
}
|
|
137
183
|
|
|
138
184
|
private func onPressMore() {
|
|
139
|
-
let context = environment.applicationContext
|
|
140
185
|
let params: [String: Any] = [
|
|
141
|
-
"useSystemTools": headerRight?.useSystemTools,
|
|
186
|
+
"useSystemTools": headerRight?.useSystemTools ?? true,
|
|
142
187
|
"tools": headerRight?.tools.map { $0.toMap() } ?? [],
|
|
143
|
-
"context":
|
|
144
|
-
"appId": context?.appId,
|
|
145
|
-
"code": context?.appCode,
|
|
146
|
-
"name": context?.appName,
|
|
147
|
-
"icon": context?.appIcon,
|
|
148
|
-
"description": context?.description,
|
|
149
|
-
"support": context?.support,
|
|
150
|
-
"toolkitConfig": context?.toolkitConfig,
|
|
151
|
-
"providerId": context?.providerId,
|
|
152
|
-
"permissions": context?.permissions
|
|
153
|
-
]
|
|
188
|
+
"context": contextMap
|
|
154
189
|
]
|
|
155
190
|
environment.composeApi?.request(
|
|
156
191
|
funcName: "showTools",
|
|
157
192
|
params: params
|
|
158
193
|
) { response in
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
let json = try JSONSerialization.jsonObject(with: jsonData) as? [String: Any],
|
|
162
|
-
let toolResponse = json["response"] as? String {
|
|
163
|
-
headerRight?.toolCallback?(toolResponse)
|
|
164
|
-
}
|
|
165
|
-
} catch {
|
|
166
|
-
print("Error parsing response:", error)
|
|
194
|
+
if let toolResponse = parseResponse(response) as? String {
|
|
195
|
+
headerRight?.toolCallback?(toolResponse)
|
|
167
196
|
}
|
|
168
197
|
}
|
|
169
198
|
}
|
|
@@ -195,7 +224,7 @@ struct ToolkitHeaderRight: View {
|
|
|
195
224
|
} ?? false
|
|
196
225
|
|
|
197
226
|
HStack(alignment: .center, spacing: 0) {
|
|
198
|
-
if
|
|
227
|
+
if shouldShowShortcut {
|
|
199
228
|
NavigationButton(
|
|
200
229
|
disabled: isLoading,
|
|
201
230
|
icon: navButtonConfig.icon,
|
|
@@ -206,15 +235,17 @@ struct ToolkitHeaderRight: View {
|
|
|
206
235
|
}
|
|
207
236
|
|
|
208
237
|
HStack(alignment: .center, spacing: 0) {
|
|
209
|
-
|
|
210
|
-
.
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
238
|
+
if environment.applicationContext != nil {
|
|
239
|
+
Icon(source: "help_center", size: 20, color: tintColor ?? Colors.black17)
|
|
240
|
+
.padding(4)
|
|
241
|
+
.onTapGesture {
|
|
242
|
+
onPressHelpCenter()
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
Rectangle()
|
|
246
|
+
.fill(tintColor ?? Colors.black20)
|
|
247
|
+
.frame(width: 0.5, height: 12)
|
|
248
|
+
}
|
|
218
249
|
|
|
219
250
|
Icon(source: "16_basic_home", size: 20, color: tintColor ?? Colors.black17)
|
|
220
251
|
.padding(4)
|
|
@@ -231,6 +262,9 @@ struct ToolkitHeaderRight: View {
|
|
|
231
262
|
)
|
|
232
263
|
.padding(.leading, Spacing.S)
|
|
233
264
|
}
|
|
265
|
+
.onAppear {
|
|
266
|
+
loadFavoriteState()
|
|
267
|
+
}
|
|
234
268
|
}
|
|
235
269
|
}
|
|
236
270
|
|
|
@@ -0,0 +1,277 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Localize.swift
|
|
3
|
+
// MoMoUIKits
|
|
4
|
+
//
|
|
5
|
+
// SwiftUI mirror of Compose's `application/Localize.kt`, itself a port of
|
|
6
|
+
// momo-kits React Native's `Application/Localize.ts`. Holds the merged
|
|
7
|
+
// dictionary (kit defaults + host overrides) and the active language,
|
|
8
|
+
// switched at runtime via `changeLanguage`. `Localize` is an `ObservableObject`
|
|
9
|
+
// so a language switch republishes to consumers of `translate`/`translateData`,
|
|
10
|
+
// mirroring Compose's snapshot-state-backed `language`.
|
|
11
|
+
//
|
|
12
|
+
|
|
13
|
+
import Foundation
|
|
14
|
+
|
|
15
|
+
/// Translation dictionary keyed by language; both `vi` and `en` are required.
|
|
16
|
+
public struct LocalizationObject {
|
|
17
|
+
public var vi: [String: String]
|
|
18
|
+
public var en: [String: String]
|
|
19
|
+
|
|
20
|
+
public init(vi: [String: String] = [:], en: [String: String] = [:]) {
|
|
21
|
+
self.vi = vi
|
|
22
|
+
self.en = en
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
public final class Localize: ObservableObject {
|
|
27
|
+
public static let VI = "vi"
|
|
28
|
+
public static let EN = "en"
|
|
29
|
+
|
|
30
|
+
private var assets: LocalizationObject
|
|
31
|
+
@Published public private(set) var currentLanguage: String = Localize.VI
|
|
32
|
+
|
|
33
|
+
public init(_ translations: LocalizationObject = LocalizationObject()) {
|
|
34
|
+
self.assets = Localize.merge(base: Localize.defaultLanguage, override: translations)
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
public func changeLanguage(_ language: String?) {
|
|
38
|
+
currentLanguage = (language == Localize.EN) ? Localize.EN : Localize.VI
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
public func translate(_ key: String) -> String {
|
|
42
|
+
let dictionary = currentLanguage == Localize.EN ? assets.en : assets.vi
|
|
43
|
+
if let value = dictionary[key], !value.isEmpty { return value }
|
|
44
|
+
return key
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public func translateData(_ data: [String: String]) -> String {
|
|
48
|
+
if let value = data[currentLanguage] { return value }
|
|
49
|
+
let body = data.map { "\"\($0.key)\":\"\($0.value)\"" }.joined(separator: ",")
|
|
50
|
+
return "{\(body)}"
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
public func translateData(vi: String, en: String) -> String {
|
|
54
|
+
currentLanguage == Localize.EN ? en : vi
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/// Existing keys win (mirrors Compose: `merge(translations, assets)`).
|
|
58
|
+
public func addTranslations(_ translations: LocalizationObject) {
|
|
59
|
+
assets = Localize.merge(base: translations, override: assets)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
private static func merge(base: LocalizationObject, override: LocalizationObject) -> LocalizationObject {
|
|
63
|
+
LocalizationObject(
|
|
64
|
+
vi: base.vi.merging(override.vi) { _, new in new },
|
|
65
|
+
en: base.en.merging(override.en) { _, new in new }
|
|
66
|
+
)
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
private static let defaultLanguage = LocalizationObject(
|
|
70
|
+
vi: [
|
|
71
|
+
"errorCode": "Mã lỗi: ",
|
|
72
|
+
"seeMore": "Xem thêm",
|
|
73
|
+
"cancel": "Huỷ",
|
|
74
|
+
"done": "Xong",
|
|
75
|
+
"confirm": "Xác nhận",
|
|
76
|
+
"month": "tháng",
|
|
77
|
+
"day": "ngày",
|
|
78
|
+
"choose": "Chọn",
|
|
79
|
+
"sent": "Đã gửi",
|
|
80
|
+
"received": "Đã tiếp nhận",
|
|
81
|
+
"processing": "Đang xử lý",
|
|
82
|
+
"processed": "Đã xử lý",
|
|
83
|
+
"addImg": "Thêm hình",
|
|
84
|
+
"chooseBtn": "Chọn button",
|
|
85
|
+
"imgEg": "Hình ảnh tham khảo",
|
|
86
|
+
"filter": "Sắp xếp",
|
|
87
|
+
"shipping": "Đang giao hàng",
|
|
88
|
+
"men": "Nam",
|
|
89
|
+
"women": "Nữ",
|
|
90
|
+
"more": "Khác",
|
|
91
|
+
"expDate": "Ngày hết hạn",
|
|
92
|
+
"exp": "HSD",
|
|
93
|
+
"inActive": "Chưa kích hoạt",
|
|
94
|
+
"voucherRemindHour": "Hết hạn sau {hours} giờ",
|
|
95
|
+
"voucherRemindMinute": "Hết hạn sau {minutes} phút",
|
|
96
|
+
"voucherRemindSecond": "Hết hạn sau {seconds} giây",
|
|
97
|
+
"voucherRemindDay": "Hết hạn sau {days} ngày",
|
|
98
|
+
"chooseRoundtrip": "Chọn vé khứ hồi",
|
|
99
|
+
"depart": "Ngày đi",
|
|
100
|
+
"return": "Ngày về",
|
|
101
|
+
"departing": "Đi",
|
|
102
|
+
"returning": "Về",
|
|
103
|
+
"jan": "Tháng 1",
|
|
104
|
+
"feb": "Tháng 2",
|
|
105
|
+
"mar": "Tháng 3",
|
|
106
|
+
"apr": "Tháng 4",
|
|
107
|
+
"may": "Tháng 5",
|
|
108
|
+
"jun": "Tháng 6",
|
|
109
|
+
"jul": "Tháng 7",
|
|
110
|
+
"aug": "Tháng 8",
|
|
111
|
+
"sep": "Tháng 9",
|
|
112
|
+
"oct": "Tháng 10",
|
|
113
|
+
"nov": "Tháng 11",
|
|
114
|
+
"dec": "Tháng 12",
|
|
115
|
+
"mon": "T2",
|
|
116
|
+
"tue": "T3",
|
|
117
|
+
"wed": "T4",
|
|
118
|
+
"thu": "T5",
|
|
119
|
+
"fri": "T6",
|
|
120
|
+
"sat": "T7",
|
|
121
|
+
"sun": "CN",
|
|
122
|
+
"showLunar": "Hiển thị lịch âm",
|
|
123
|
+
"newYear": "Tết Dương lịch",
|
|
124
|
+
"valentine": "Ngày Lễ Tình nhân",
|
|
125
|
+
"womenDay": "Ngày Quốc tế Phụ nữ",
|
|
126
|
+
"liberationDay": "Ngày giải phóng Miền Nam thống nhất đất nước",
|
|
127
|
+
"laborDay": "Ngày Quốc tế Lao động",
|
|
128
|
+
"childrenDay": "Ngày Quốc tế Thiếu nhi",
|
|
129
|
+
"nationalDay": "Quốc khánh nước CHXHCN Việt Nam",
|
|
130
|
+
"womenDayVN": "Ngày Phụ nữ Việt Nam",
|
|
131
|
+
"teacherDay": "Ngày Nhà giáo Việt Nam",
|
|
132
|
+
"christmasEve": "Ngày Lễ Giáng Sinh",
|
|
133
|
+
"christmas": "Ngày Lễ Giáng Sinh",
|
|
134
|
+
"lunarNewYear": "Tết Nguyên Đán",
|
|
135
|
+
"hungKingDay": "Giỗ Tổ Hùng Vương",
|
|
136
|
+
"balance": "Số dư trong ví",
|
|
137
|
+
"chooseDate": "Chọn ngày tháng năm",
|
|
138
|
+
"year": "năm",
|
|
139
|
+
"hour": "giờ",
|
|
140
|
+
"minute": "phút",
|
|
141
|
+
"from": "Từ",
|
|
142
|
+
"to": "Đến",
|
|
143
|
+
"connected": "Đã kết nối",
|
|
144
|
+
"disconnected": "Mất kết nối",
|
|
145
|
+
"hide": "Ẩn",
|
|
146
|
+
"viewAllTitle": "Xem tất cả",
|
|
147
|
+
"headerTitle": "Lịch sử thanh toán",
|
|
148
|
+
"SHORTEN": "THU GỌN",
|
|
149
|
+
"viewMoreBank": "XEM THÊM (${otherItemCount} ngân hàng)",
|
|
150
|
+
"transaction_success": "Thành công",
|
|
151
|
+
"transaction_fail": "Thất bại",
|
|
152
|
+
"transaction_processing": "Đang xử lý",
|
|
153
|
+
"viewMore": "Xem thêm",
|
|
154
|
+
"shorten": "Thu gọn",
|
|
155
|
+
"Payment": "Thanh toán ${serviceName}",
|
|
156
|
+
"currencyUnit": "đ",
|
|
157
|
+
"Month": "Tháng",
|
|
158
|
+
"save": "Lưu",
|
|
159
|
+
"favoriteIn": "Thêm dịch vụ yêu thích",
|
|
160
|
+
"favoriteOut": "Xóa dịch vụ yêu thích",
|
|
161
|
+
"deviceIn": "Thêm vào thiết bị",
|
|
162
|
+
"setting": "Cài đặt",
|
|
163
|
+
"transaction": "Lịch sử giao dịch",
|
|
164
|
+
"share": "Chia sẽ dịch vụ",
|
|
165
|
+
"information": "Thông tin chung",
|
|
166
|
+
"tutorial": "Hướng dẫn sử dụng",
|
|
167
|
+
"question": "Câu hỏi thường gặp",
|
|
168
|
+
"support": "Trung tâm hỗ trợ",
|
|
169
|
+
"skip": "Bỏ qua",
|
|
170
|
+
"enterPhoneNumber": "Vui lòng nhập số điện thoại",
|
|
171
|
+
"invalidPhoneNumber": "Số điện thoại không đúng",
|
|
172
|
+
],
|
|
173
|
+
en: [
|
|
174
|
+
"seeMore": "See more",
|
|
175
|
+
"cancel": "Cancel",
|
|
176
|
+
"done": "Done",
|
|
177
|
+
"confirm": "Confirm",
|
|
178
|
+
"month": "month",
|
|
179
|
+
"day": "day",
|
|
180
|
+
"choose": "Choose",
|
|
181
|
+
"sent": "Sent",
|
|
182
|
+
"received": "Received",
|
|
183
|
+
"processing": "Processing",
|
|
184
|
+
"processed": "Done",
|
|
185
|
+
"addImg": "Add image",
|
|
186
|
+
"chooseBtn": "Choose button",
|
|
187
|
+
"imgEg": "Example images",
|
|
188
|
+
"filter": "Filter",
|
|
189
|
+
"shipping": "Shipping",
|
|
190
|
+
"men": "Men",
|
|
191
|
+
"women": "Women",
|
|
192
|
+
"more": "More",
|
|
193
|
+
"expDate": "Expiration date",
|
|
194
|
+
"exp": "EXP",
|
|
195
|
+
"inActive": "Not Activated",
|
|
196
|
+
"voucherRemindHour": "Revoke after {hours} hours",
|
|
197
|
+
"voucherRemindMinute": "Revoke after {minutes} minutes",
|
|
198
|
+
"voucherRemindSecond": "Revoke after {seconds} seconds",
|
|
199
|
+
"voucherRemindDay": "Revoke after {days} days",
|
|
200
|
+
"chooseRoundtrip": "Choose roundtrip ticket",
|
|
201
|
+
"depart": "Departing",
|
|
202
|
+
"return": "Returning",
|
|
203
|
+
"departing": "De",
|
|
204
|
+
"returning": "Re",
|
|
205
|
+
"jan": "January",
|
|
206
|
+
"feb": "February",
|
|
207
|
+
"mar": "March",
|
|
208
|
+
"apr": "April",
|
|
209
|
+
"may": "May",
|
|
210
|
+
"jun": "June",
|
|
211
|
+
"jul": "July",
|
|
212
|
+
"aug": "August",
|
|
213
|
+
"sep": "September",
|
|
214
|
+
"oct": "October",
|
|
215
|
+
"nov": "November",
|
|
216
|
+
"dec": "December",
|
|
217
|
+
"mon": "Mon",
|
|
218
|
+
"tue": "Tue",
|
|
219
|
+
"wed": "Wed",
|
|
220
|
+
"thu": "Thu",
|
|
221
|
+
"fri": "Fri",
|
|
222
|
+
"sat": "Sat",
|
|
223
|
+
"sun": "Sun",
|
|
224
|
+
"showLunar": "Show Lunar Calendar",
|
|
225
|
+
"newYear": "New Year's Day",
|
|
226
|
+
"valentine": "Valentine's Day",
|
|
227
|
+
"womenDay": "International Women's Day",
|
|
228
|
+
"liberationDay": "Liberation Day",
|
|
229
|
+
"laborDay": "Internation Labor's Day",
|
|
230
|
+
"childrenDay": "International Labor's Day",
|
|
231
|
+
"nationalDay": "National Day",
|
|
232
|
+
"womenDayVN": "Vietnamese Women's Day",
|
|
233
|
+
"teacherDay": "Teacher's Day",
|
|
234
|
+
"christmasEve": "Christmas Eve",
|
|
235
|
+
"christmas": "Christmas Day",
|
|
236
|
+
"lunarNewYear": "Lunar New Year",
|
|
237
|
+
"hungKingDay": "Hung Kings' Festival",
|
|
238
|
+
"balance": "Wallet Balance",
|
|
239
|
+
"chooseDate": "Choose date",
|
|
240
|
+
"year": "year",
|
|
241
|
+
"hour": "hour",
|
|
242
|
+
"minute": "minute",
|
|
243
|
+
"from": "From",
|
|
244
|
+
"to": "To",
|
|
245
|
+
"connected": "Connected",
|
|
246
|
+
"disconnected": "Disconnected",
|
|
247
|
+
"hide": "Hide",
|
|
248
|
+
"viewAllTitle": "View all",
|
|
249
|
+
"headerTitle": "Transaction history",
|
|
250
|
+
"SHORTEN": "SHORTEN",
|
|
251
|
+
"viewMoreBank": "VIEW MORE (${otherItemCount} banks)",
|
|
252
|
+
"transaction_success": "Success",
|
|
253
|
+
"transaction_fail": "Fail",
|
|
254
|
+
"transaction_processing": "Processing",
|
|
255
|
+
"viewMore": "View more",
|
|
256
|
+
"shorten": "Shorten",
|
|
257
|
+
"Payment": "${serviceName} payment",
|
|
258
|
+
"currencyUnit": "VND",
|
|
259
|
+
"Month": "Month",
|
|
260
|
+
"save": "Save",
|
|
261
|
+
"favoriteIn": "Add to favorite services",
|
|
262
|
+
"favoriteOut": "Remove to favorite services",
|
|
263
|
+
"deviceIn": "Add to device",
|
|
264
|
+
"setting": "Settings",
|
|
265
|
+
"transaction": "Transaction History",
|
|
266
|
+
"share": "Share",
|
|
267
|
+
"information": "Information",
|
|
268
|
+
"tutorial": "Instruction",
|
|
269
|
+
"question": "FAQ",
|
|
270
|
+
"support": "Support center",
|
|
271
|
+
"errorCode": "Error code: ",
|
|
272
|
+
"skip": "Skip",
|
|
273
|
+
"enterPhoneNumber": "Please enter your phone number",
|
|
274
|
+
"invalidPhoneNumber": "Invalid phone number",
|
|
275
|
+
]
|
|
276
|
+
)
|
|
277
|
+
}
|