react-native-nitro-input 0.2.0 → 0.3.1
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/CHANGELOG.md +87 -0
- package/README.md +132 -2
- package/android/CMakeLists.txt +4 -0
- package/android/gradle.properties +1 -1
- package/android/src/main/cpp/JReflowEngine.cpp +32 -0
- package/android/src/main/cpp/JReflowEngine.hpp +13 -0
- package/android/src/main/cpp/JRollingEngine.cpp +43 -2
- package/android/src/main/cpp/JRollingEngine.hpp +9 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroInputView.kt +20 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatform.kt +284 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroNumberView.kt +113 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextMeasure.kt +25 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/HybridNitroTextView.kt +140 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputPackage.kt +2 -1
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroInputView.kt +69 -10
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroNumberView.kt +522 -130
- package/android/src/main/java/com/margelo/nitro/nitroinput/NitroTextView.kt +868 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/ReflowEngine.kt +21 -0
- package/android/src/main/java/com/margelo/nitro/nitroinput/RollingEngine.kt +14 -2
- package/cpp/RollingEngine.cpp +102 -8
- package/cpp/RollingEngine.hpp +44 -3
- package/cpp/numberformat/HybridNitroNumberFormat.cpp +498 -0
- package/cpp/numberformat/HybridNitroNumberFormat.hpp +74 -0
- package/cpp/numberformat/HybridNitroNumberFormatFactory.hpp +11 -0
- package/cpp/numberformat/NumberFormatCore.cpp +629 -0
- package/cpp/numberformat/NumberFormatCore.hpp +154 -0
- package/cpp/numberformat/NumberFormatProbe.cpp +354 -0
- package/cpp/numberformat/NumberFormatProbe.hpp +63 -0
- package/ios/HybridNitroInputView.swift +15 -0
- package/ios/HybridNitroNumberFormatPlatform.swift +426 -0
- package/ios/HybridNitroNumberView.swift +101 -1
- package/ios/HybridNitroTextView.swift +134 -0
- package/ios/NitroInputView.swift +79 -19
- package/ios/NitroNumberView.swift +520 -147
- package/ios/NitroTextView.swift +583 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
- package/lib/commonjs/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/lib/commonjs/src/NitroInput.js +8 -6
- package/lib/commonjs/src/NitroNumber.js +54 -3
- package/lib/commonjs/src/NitroText.js +138 -0
- package/lib/commonjs/src/NitroTime.js +65 -0
- package/lib/commonjs/src/NumberFormat.js +525 -0
- package/lib/commonjs/src/formatProps.js +108 -0
- package/lib/commonjs/src/index.js +8 -1
- package/lib/commonjs/src/specs/NitroText.nitro.js +2 -0
- package/lib/commonjs/src/specs/NumberFormat.nitro.js +2 -0
- package/lib/module/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/lib/module/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
- package/lib/module/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/lib/module/src/NitroInput.js +8 -6
- package/lib/module/src/NitroNumber.js +54 -3
- package/lib/module/src/NitroText.js +98 -0
- package/lib/module/src/NitroTime.js +29 -0
- package/lib/module/src/NumberFormat.js +521 -0
- package/lib/module/src/formatProps.js +104 -0
- package/lib/module/src/index.js +3 -0
- package/lib/module/src/specs/NitroText.nitro.js +1 -0
- package/lib/module/src/specs/NumberFormat.nitro.js +1 -0
- package/lib/typescript/src/NitroInput.d.ts +22 -0
- package/lib/typescript/src/NitroNumber.d.ts +115 -2
- package/lib/typescript/src/NitroText.d.ts +67 -0
- package/lib/typescript/src/NitroTime.d.ts +19 -0
- package/lib/typescript/src/NumberFormat.d.ts +47 -0
- package/lib/typescript/src/formatProps.d.ts +47 -0
- package/lib/typescript/src/index.d.ts +6 -1
- package/lib/typescript/src/specs/NitroInput.nitro.d.ts +10 -0
- package/lib/typescript/src/specs/NitroNumber.nitro.d.ts +80 -1
- package/lib/typescript/src/specs/NitroText.nitro.d.ts +60 -0
- package/lib/typescript/src/specs/NumberFormat.nitro.d.ts +139 -0
- package/nitro.json +36 -0
- package/nitrogen/generated/android/NitroInput+autolinking.cmake +12 -0
- package/nitrogen/generated/android/NitroInputOnLoad.cpp +62 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.cpp +45 -0
- package/nitrogen/generated/android/c++/JHybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.cpp +118 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberFormatPlatformSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.cpp +297 -0
- package/nitrogen/generated/android/c++/JHybridNitroNumberViewSpec.hpp +52 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.cpp +65 -0
- package/nitrogen/generated/android/c++/JHybridNitroPlatformNumberFormatterSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.cpp +58 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextMeasureSpec.hpp +64 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.cpp +253 -0
- package/nitrogen/generated/android/c++/JHybridNitroTextViewSpec.hpp +104 -0
- package/nitrogen/generated/android/c++/JNitroNumberDirection.hpp +3 -0
- package/nitrogen/generated/android/c++/JNitroNumberShimmerDirection.hpp +61 -0
- package/nitrogen/generated/android/c++/JNitroNumberSignDisplay.hpp +67 -0
- package/nitrogen/generated/android/c++/JNumberFormatCompactDisplay.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencyDisplay.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatCurrencySign.hpp +58 -0
- package/nitrogen/generated/android/c++/JNumberFormatNotation.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformOptions.hpp +161 -0
- package/nitrogen/generated/android/c++/JNumberFormatPlatformSymbols.hpp +89 -0
- package/nitrogen/generated/android/c++/JNumberFormatRoundingMode.hpp +79 -0
- package/nitrogen/generated/android/c++/JNumberFormatSignDisplay.hpp +67 -0
- package/nitrogen/generated/android/c++/JNumberFormatStyle.hpp +64 -0
- package/nitrogen/generated/android/c++/JNumberFormatUnitDisplay.hpp +61 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroInputViewStateUpdater.cpp +25 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroNumberViewStateUpdater.cpp +130 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.cpp +174 -0
- package/nitrogen/generated/android/c++/views/JHybridNitroTextViewStateUpdater.hpp +54 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroInputViewSpec.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberFormatPlatformSpec.kt +60 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroNumberViewSpec.kt +172 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroPlatformNumberFormatterSpec.kt +62 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextMeasureSpec.kt +60 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/HybridNitroTextViewSpec.kt +179 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberDirection.kt +2 -1
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberShimmerDirection.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NitroNumberSignDisplay.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCompactDisplay.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencyDisplay.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatCurrencySign.kt +23 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatNotation.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformOptions.kt +136 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatPlatformSymbols.kt +91 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatRoundingMode.kt +30 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatSignDisplay.kt +26 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatStyle.kt +25 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/NumberFormatUnitDisplay.kt +24 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewManager.kt +96 -0
- package/nitrogen/generated/android/kotlin/com/margelo/nitro/nitroinput/views/HybridNitroTextViewStateUpdater.kt +23 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.cpp +68 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Bridge.hpp +184 -0
- package/nitrogen/generated/ios/NitroInput-Swift-Cxx-Umbrella.hpp +56 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.mm +34 -0
- package/nitrogen/generated/ios/NitroInputAutolinking.swift +36 -0
- package/nitrogen/generated/ios/c++/HybridNitroInputViewSpecSwift.hpp +30 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberFormatPlatformSpecSwift.hpp +122 -0
- package/nitrogen/generated/ios/c++/HybridNitroNumberViewSpecSwift.hpp +188 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroPlatformNumberFormatterSpecSwift.hpp +94 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextMeasureSpecSwift.hpp +90 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.cpp +11 -0
- package/nitrogen/generated/ios/c++/HybridNitroTextViewSpecSwift.hpp +233 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroInputViewComponent.mm +30 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroNumberViewComponent.mm +156 -0
- package/nitrogen/generated/ios/c++/views/HybridNitroTextViewComponent.mm +264 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec.swift +5 -0
- package/nitrogen/generated/ios/swift/HybridNitroInputViewSpec_cxx.swift +55 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberFormatPlatformSpec_cxx.swift +159 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec.swift +26 -0
- package/nitrogen/generated/ios/swift/HybridNitroNumberViewSpec_cxx.swift +658 -21
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroPlatformNumberFormatterSpec_cxx.swift +155 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec.swift +56 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextMeasureSpec_cxx.swift +150 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec.swift +75 -0
- package/nitrogen/generated/ios/swift/HybridNitroTextViewSpec_cxx.swift +608 -0
- package/nitrogen/generated/ios/swift/NitroNumberDirection.swift +4 -0
- package/nitrogen/generated/ios/swift/NitroNumberShimmerDirection.swift +44 -0
- package/nitrogen/generated/ios/swift/NitroNumberSignDisplay.swift +52 -0
- package/nitrogen/generated/ios/swift/NumberFormatCompactDisplay.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencyDisplay.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatCurrencySign.swift +40 -0
- package/nitrogen/generated/ios/swift/NumberFormatNotation.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformOptions.swift +159 -0
- package/nitrogen/generated/ios/swift/NumberFormatPlatformSymbols.swift +69 -0
- package/nitrogen/generated/ios/swift/NumberFormatRoundingMode.swift +68 -0
- package/nitrogen/generated/ios/swift/NumberFormatSignDisplay.swift +52 -0
- package/nitrogen/generated/ios/swift/NumberFormatStyle.swift +48 -0
- package/nitrogen/generated/ios/swift/NumberFormatUnitDisplay.swift +44 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.cpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroInputViewSpec.hpp +10 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatFactorySpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatPlatformSpec.hpp +70 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberFormatSpec.hpp +71 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.cpp +52 -0
- package/nitrogen/generated/shared/c++/HybridNitroNumberViewSpec.hpp +58 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.cpp +23 -0
- package/nitrogen/generated/shared/c++/HybridNitroPlatformNumberFormatterSpec.hpp +65 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.cpp +22 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextMeasureSpec.hpp +63 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.cpp +62 -0
- package/nitrogen/generated/shared/c++/HybridNitroTextViewSpec.hpp +115 -0
- package/nitrogen/generated/shared/c++/NitroNumberDirection.hpp +4 -0
- package/nitrogen/generated/shared/c++/NitroNumberShimmerDirection.hpp +80 -0
- package/nitrogen/generated/shared/c++/NitroNumberSignDisplay.hpp +88 -0
- package/nitrogen/generated/shared/c++/NumberFormatCompactDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencyDisplay.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatCurrencySign.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatGrouping.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatNotation.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatOptions.hpp +193 -0
- package/nitrogen/generated/shared/c++/NumberFormatPart.hpp +87 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformOptions.hpp +176 -0
- package/nitrogen/generated/shared/c++/NumberFormatPlatformSymbols.hpp +115 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingMode.hpp +104 -0
- package/nitrogen/generated/shared/c++/NumberFormatRoundingPriority.hpp +80 -0
- package/nitrogen/generated/shared/c++/NumberFormatSignDisplay.hpp +88 -0
- package/nitrogen/generated/shared/c++/NumberFormatStyle.hpp +84 -0
- package/nitrogen/generated/shared/c++/NumberFormatTrailingZeroDisplay.hpp +76 -0
- package/nitrogen/generated/shared/c++/NumberFormatUnitDisplay.hpp +80 -0
- package/nitrogen/generated/shared/c++/ResolvedNumberFormatOptions.hpp +197 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.cpp +10 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroInputViewComponent.hpp +15 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.cpp +52 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroNumberViewComponent.hpp +80 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.cpp +74 -0
- package/nitrogen/generated/shared/c++/views/HybridNitroTextViewComponent.hpp +149 -0
- package/nitrogen/generated/shared/json/NitroInputViewConfig.json +5 -0
- package/nitrogen/generated/shared/json/NitroNumberViewConfig.json +26 -0
- package/nitrogen/generated/shared/json/NitroTextViewConfig.json +30 -0
- package/package.json +2 -2
- package/src/NitroInput.tsx +42 -7
- package/src/NitroNumber.tsx +236 -12
- package/src/NitroText.tsx +166 -0
- package/src/NitroTime.tsx +68 -0
- package/src/NumberFormat.ts +563 -0
- package/src/formatProps.ts +149 -0
- package/src/index.ts +23 -0
- package/src/specs/NitroInput.nitro.ts +10 -0
- package/src/specs/NitroNumber.nitro.ts +82 -1
- package/src/specs/NitroText.nitro.ts +65 -0
- package/src/specs/NumberFormat.nitro.ts +145 -0
|
@@ -10,8 +10,20 @@
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
11
|
// Forward declaration of `HybridNitroInputViewSpec` to properly resolve imports.
|
|
12
12
|
namespace margelo::nitro::nitroinput { class HybridNitroInputViewSpec; }
|
|
13
|
+
// Forward declaration of `HybridNitroNumberFormatPlatformSpec` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::nitroinput { class HybridNitroNumberFormatPlatformSpec; }
|
|
13
15
|
// Forward declaration of `HybridNitroNumberViewSpec` to properly resolve imports.
|
|
14
16
|
namespace margelo::nitro::nitroinput { class HybridNitroNumberViewSpec; }
|
|
17
|
+
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::nitroinput { class HybridNitroPlatformNumberFormatterSpec; }
|
|
19
|
+
// Forward declaration of `HybridNitroTextMeasureSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextMeasureSpec; }
|
|
21
|
+
// Forward declaration of `HybridNitroTextViewSpec` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextViewSpec; }
|
|
23
|
+
// Forward declaration of `NitroInputEasing` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEasing; }
|
|
25
|
+
// Forward declaration of `NitroInputEffect` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::nitroinput { enum class NitroInputEffect; }
|
|
15
27
|
// Forward declaration of `NitroInputNotation` to properly resolve imports.
|
|
16
28
|
namespace margelo::nitro::nitroinput { struct NitroInputNotation; }
|
|
17
29
|
// Forward declaration of `NitroNumberAffixAlign` to properly resolve imports.
|
|
@@ -22,6 +34,10 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberDirection; }
|
|
|
22
34
|
namespace margelo::nitro::nitroinput { enum class NitroNumberEasing; }
|
|
23
35
|
// Forward declaration of `NitroNumberRevealStyle` to properly resolve imports.
|
|
24
36
|
namespace margelo::nitro::nitroinput { enum class NitroNumberRevealStyle; }
|
|
37
|
+
// Forward declaration of `NitroNumberShimmerDirection` to properly resolve imports.
|
|
38
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberShimmerDirection; }
|
|
39
|
+
// Forward declaration of `NitroNumberSignDisplay` to properly resolve imports.
|
|
40
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberSignDisplay; }
|
|
25
41
|
// Forward declaration of `NitroNumberTextAlign` to properly resolve imports.
|
|
26
42
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
27
43
|
// Forward declaration of `NitroNumberTransition` to properly resolve imports.
|
|
@@ -30,17 +46,33 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
|
30
46
|
// Forward declarations of Swift defined types
|
|
31
47
|
// Forward declaration of `HybridNitroInputViewSpec_cxx` to properly resolve imports.
|
|
32
48
|
namespace NitroInput { class HybridNitroInputViewSpec_cxx; }
|
|
49
|
+
// Forward declaration of `HybridNitroNumberFormatPlatformSpec_cxx` to properly resolve imports.
|
|
50
|
+
namespace NitroInput { class HybridNitroNumberFormatPlatformSpec_cxx; }
|
|
33
51
|
// Forward declaration of `HybridNitroNumberViewSpec_cxx` to properly resolve imports.
|
|
34
52
|
namespace NitroInput { class HybridNitroNumberViewSpec_cxx; }
|
|
53
|
+
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec_cxx` to properly resolve imports.
|
|
54
|
+
namespace NitroInput { class HybridNitroPlatformNumberFormatterSpec_cxx; }
|
|
55
|
+
// Forward declaration of `HybridNitroTextMeasureSpec_cxx` to properly resolve imports.
|
|
56
|
+
namespace NitroInput { class HybridNitroTextMeasureSpec_cxx; }
|
|
57
|
+
// Forward declaration of `HybridNitroTextViewSpec_cxx` to properly resolve imports.
|
|
58
|
+
namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
35
59
|
|
|
36
60
|
// Include C++ defined types
|
|
37
61
|
#include "HybridNitroInputViewSpec.hpp"
|
|
62
|
+
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
38
63
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
64
|
+
#include "HybridNitroPlatformNumberFormatterSpec.hpp"
|
|
65
|
+
#include "HybridNitroTextMeasureSpec.hpp"
|
|
66
|
+
#include "HybridNitroTextViewSpec.hpp"
|
|
67
|
+
#include "NitroInputEasing.hpp"
|
|
68
|
+
#include "NitroInputEffect.hpp"
|
|
39
69
|
#include "NitroInputNotation.hpp"
|
|
40
70
|
#include "NitroNumberAffixAlign.hpp"
|
|
41
71
|
#include "NitroNumberDirection.hpp"
|
|
42
72
|
#include "NitroNumberEasing.hpp"
|
|
43
73
|
#include "NitroNumberRevealStyle.hpp"
|
|
74
|
+
#include "NitroNumberShimmerDirection.hpp"
|
|
75
|
+
#include "NitroNumberSignDisplay.hpp"
|
|
44
76
|
#include "NitroNumberTextAlign.hpp"
|
|
45
77
|
#include "NitroNumberTransition.hpp"
|
|
46
78
|
#include <NitroModules/Result.hpp>
|
|
@@ -499,6 +531,21 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
499
531
|
return optional.value();
|
|
500
532
|
}
|
|
501
533
|
|
|
534
|
+
// pragma MARK: std::optional<NitroNumberShimmerDirection>
|
|
535
|
+
/**
|
|
536
|
+
* Specialized version of `std::optional<NitroNumberShimmerDirection>`.
|
|
537
|
+
*/
|
|
538
|
+
using std__optional_NitroNumberShimmerDirection_ = std::optional<NitroNumberShimmerDirection>;
|
|
539
|
+
inline std::optional<NitroNumberShimmerDirection> create_std__optional_NitroNumberShimmerDirection_(const NitroNumberShimmerDirection& value) noexcept {
|
|
540
|
+
return std::optional<NitroNumberShimmerDirection>(value);
|
|
541
|
+
}
|
|
542
|
+
inline bool has_value_std__optional_NitroNumberShimmerDirection_(const std::optional<NitroNumberShimmerDirection>& optional) noexcept {
|
|
543
|
+
return optional.has_value();
|
|
544
|
+
}
|
|
545
|
+
inline NitroNumberShimmerDirection get_std__optional_NitroNumberShimmerDirection_(const std::optional<NitroNumberShimmerDirection>& optional) noexcept {
|
|
546
|
+
return optional.value();
|
|
547
|
+
}
|
|
548
|
+
|
|
502
549
|
// pragma MARK: std::optional<NitroNumberAffixAlign>
|
|
503
550
|
/**
|
|
504
551
|
* Specialized version of `std::optional<NitroNumberAffixAlign>`.
|
|
@@ -514,6 +561,47 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
514
561
|
return optional.value();
|
|
515
562
|
}
|
|
516
563
|
|
|
564
|
+
// pragma MARK: std::optional<NitroNumberSignDisplay>
|
|
565
|
+
/**
|
|
566
|
+
* Specialized version of `std::optional<NitroNumberSignDisplay>`.
|
|
567
|
+
*/
|
|
568
|
+
using std__optional_NitroNumberSignDisplay_ = std::optional<NitroNumberSignDisplay>;
|
|
569
|
+
inline std::optional<NitroNumberSignDisplay> create_std__optional_NitroNumberSignDisplay_(const NitroNumberSignDisplay& value) noexcept {
|
|
570
|
+
return std::optional<NitroNumberSignDisplay>(value);
|
|
571
|
+
}
|
|
572
|
+
inline bool has_value_std__optional_NitroNumberSignDisplay_(const std::optional<NitroNumberSignDisplay>& optional) noexcept {
|
|
573
|
+
return optional.has_value();
|
|
574
|
+
}
|
|
575
|
+
inline NitroNumberSignDisplay get_std__optional_NitroNumberSignDisplay_(const std::optional<NitroNumberSignDisplay>& optional) noexcept {
|
|
576
|
+
return optional.value();
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
// pragma MARK: std::vector<std::string>
|
|
580
|
+
/**
|
|
581
|
+
* Specialized version of `std::vector<std::string>`.
|
|
582
|
+
*/
|
|
583
|
+
using std__vector_std__string_ = std::vector<std::string>;
|
|
584
|
+
inline std::vector<std::string> create_std__vector_std__string_(size_t size) noexcept {
|
|
585
|
+
std::vector<std::string> vector;
|
|
586
|
+
vector.reserve(size);
|
|
587
|
+
return vector;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
// pragma MARK: std::optional<std::vector<std::string>>
|
|
591
|
+
/**
|
|
592
|
+
* Specialized version of `std::optional<std::vector<std::string>>`.
|
|
593
|
+
*/
|
|
594
|
+
using std__optional_std__vector_std__string__ = std::optional<std::vector<std::string>>;
|
|
595
|
+
inline std::optional<std::vector<std::string>> create_std__optional_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
596
|
+
return std::optional<std::vector<std::string>>(value);
|
|
597
|
+
}
|
|
598
|
+
inline bool has_value_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
599
|
+
return optional.has_value();
|
|
600
|
+
}
|
|
601
|
+
inline std::vector<std::string> get_std__optional_std__vector_std__string__(const std::optional<std::vector<std::string>>& optional) noexcept {
|
|
602
|
+
return optional.value();
|
|
603
|
+
}
|
|
604
|
+
|
|
517
605
|
// pragma MARK: std::optional<NitroNumberTextAlign>
|
|
518
606
|
/**
|
|
519
607
|
* Specialized version of `std::optional<NitroNumberTextAlign>`.
|
|
@@ -592,5 +680,101 @@ namespace margelo::nitro::nitroinput::bridge::swift {
|
|
|
592
680
|
// pragma MARK: std::weak_ptr<HybridNitroNumberViewSpec>
|
|
593
681
|
using std__weak_ptr_HybridNitroNumberViewSpec_ = std::weak_ptr<HybridNitroNumberViewSpec>;
|
|
594
682
|
inline std__weak_ptr_HybridNitroNumberViewSpec_ weakify_std__shared_ptr_HybridNitroNumberViewSpec_(const std::shared_ptr<HybridNitroNumberViewSpec>& strong) noexcept { return strong; }
|
|
683
|
+
|
|
684
|
+
// pragma MARK: std::shared_ptr<HybridNitroTextMeasureSpec>
|
|
685
|
+
/**
|
|
686
|
+
* Specialized version of `std::shared_ptr<HybridNitroTextMeasureSpec>`.
|
|
687
|
+
*/
|
|
688
|
+
using std__shared_ptr_HybridNitroTextMeasureSpec_ = std::shared_ptr<HybridNitroTextMeasureSpec>;
|
|
689
|
+
std::shared_ptr<HybridNitroTextMeasureSpec> create_std__shared_ptr_HybridNitroTextMeasureSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
690
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroTextMeasureSpec_(std__shared_ptr_HybridNitroTextMeasureSpec_ cppType);
|
|
691
|
+
|
|
692
|
+
// pragma MARK: std::weak_ptr<HybridNitroTextMeasureSpec>
|
|
693
|
+
using std__weak_ptr_HybridNitroTextMeasureSpec_ = std::weak_ptr<HybridNitroTextMeasureSpec>;
|
|
694
|
+
inline std__weak_ptr_HybridNitroTextMeasureSpec_ weakify_std__shared_ptr_HybridNitroTextMeasureSpec_(const std::shared_ptr<HybridNitroTextMeasureSpec>& strong) noexcept { return strong; }
|
|
695
|
+
|
|
696
|
+
// pragma MARK: std::optional<NitroInputEasing>
|
|
697
|
+
/**
|
|
698
|
+
* Specialized version of `std::optional<NitroInputEasing>`.
|
|
699
|
+
*/
|
|
700
|
+
using std__optional_NitroInputEasing_ = std::optional<NitroInputEasing>;
|
|
701
|
+
inline std::optional<NitroInputEasing> create_std__optional_NitroInputEasing_(const NitroInputEasing& value) noexcept {
|
|
702
|
+
return std::optional<NitroInputEasing>(value);
|
|
703
|
+
}
|
|
704
|
+
inline bool has_value_std__optional_NitroInputEasing_(const std::optional<NitroInputEasing>& optional) noexcept {
|
|
705
|
+
return optional.has_value();
|
|
706
|
+
}
|
|
707
|
+
inline NitroInputEasing get_std__optional_NitroInputEasing_(const std::optional<NitroInputEasing>& optional) noexcept {
|
|
708
|
+
return optional.value();
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
// pragma MARK: std::optional<NitroInputEffect>
|
|
712
|
+
/**
|
|
713
|
+
* Specialized version of `std::optional<NitroInputEffect>`.
|
|
714
|
+
*/
|
|
715
|
+
using std__optional_NitroInputEffect_ = std::optional<NitroInputEffect>;
|
|
716
|
+
inline std::optional<NitroInputEffect> create_std__optional_NitroInputEffect_(const NitroInputEffect& value) noexcept {
|
|
717
|
+
return std::optional<NitroInputEffect>(value);
|
|
718
|
+
}
|
|
719
|
+
inline bool has_value_std__optional_NitroInputEffect_(const std::optional<NitroInputEffect>& optional) noexcept {
|
|
720
|
+
return optional.has_value();
|
|
721
|
+
}
|
|
722
|
+
inline NitroInputEffect get_std__optional_NitroInputEffect_(const std::optional<NitroInputEffect>& optional) noexcept {
|
|
723
|
+
return optional.value();
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
// pragma MARK: std::shared_ptr<HybridNitroTextViewSpec>
|
|
727
|
+
/**
|
|
728
|
+
* Specialized version of `std::shared_ptr<HybridNitroTextViewSpec>`.
|
|
729
|
+
*/
|
|
730
|
+
using std__shared_ptr_HybridNitroTextViewSpec_ = std::shared_ptr<HybridNitroTextViewSpec>;
|
|
731
|
+
std::shared_ptr<HybridNitroTextViewSpec> create_std__shared_ptr_HybridNitroTextViewSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
732
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroTextViewSpec_(std__shared_ptr_HybridNitroTextViewSpec_ cppType);
|
|
733
|
+
|
|
734
|
+
// pragma MARK: std::weak_ptr<HybridNitroTextViewSpec>
|
|
735
|
+
using std__weak_ptr_HybridNitroTextViewSpec_ = std::weak_ptr<HybridNitroTextViewSpec>;
|
|
736
|
+
inline std__weak_ptr_HybridNitroTextViewSpec_ weakify_std__shared_ptr_HybridNitroTextViewSpec_(const std::shared_ptr<HybridNitroTextViewSpec>& strong) noexcept { return strong; }
|
|
737
|
+
|
|
738
|
+
// pragma MARK: std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>
|
|
739
|
+
/**
|
|
740
|
+
* Specialized version of `std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>`.
|
|
741
|
+
*/
|
|
742
|
+
using std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_ = std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>;
|
|
743
|
+
std::shared_ptr<HybridNitroPlatformNumberFormatterSpec> create_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
744
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_ cppType);
|
|
745
|
+
|
|
746
|
+
// pragma MARK: std::weak_ptr<HybridNitroPlatformNumberFormatterSpec>
|
|
747
|
+
using std__weak_ptr_HybridNitroPlatformNumberFormatterSpec_ = std::weak_ptr<HybridNitroPlatformNumberFormatterSpec>;
|
|
748
|
+
inline std__weak_ptr_HybridNitroPlatformNumberFormatterSpec_ weakify_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec_(const std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>& strong) noexcept { return strong; }
|
|
749
|
+
|
|
750
|
+
// pragma MARK: std::shared_ptr<HybridNitroNumberFormatPlatformSpec>
|
|
751
|
+
/**
|
|
752
|
+
* Specialized version of `std::shared_ptr<HybridNitroNumberFormatPlatformSpec>`.
|
|
753
|
+
*/
|
|
754
|
+
using std__shared_ptr_HybridNitroNumberFormatPlatformSpec_ = std::shared_ptr<HybridNitroNumberFormatPlatformSpec>;
|
|
755
|
+
std::shared_ptr<HybridNitroNumberFormatPlatformSpec> create_std__shared_ptr_HybridNitroNumberFormatPlatformSpec_(void* NON_NULL swiftUnsafePointer) noexcept;
|
|
756
|
+
void* NON_NULL get_std__shared_ptr_HybridNitroNumberFormatPlatformSpec_(std__shared_ptr_HybridNitroNumberFormatPlatformSpec_ cppType);
|
|
757
|
+
|
|
758
|
+
// pragma MARK: std::weak_ptr<HybridNitroNumberFormatPlatformSpec>
|
|
759
|
+
using std__weak_ptr_HybridNitroNumberFormatPlatformSpec_ = std::weak_ptr<HybridNitroNumberFormatPlatformSpec>;
|
|
760
|
+
inline std__weak_ptr_HybridNitroNumberFormatPlatformSpec_ weakify_std__shared_ptr_HybridNitroNumberFormatPlatformSpec_(const std::shared_ptr<HybridNitroNumberFormatPlatformSpec>& strong) noexcept { return strong; }
|
|
761
|
+
|
|
762
|
+
// pragma MARK: Result<std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>>
|
|
763
|
+
using Result_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec__ = Result<std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>>;
|
|
764
|
+
inline Result_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec__ create_Result_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec__(const std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>& value) noexcept {
|
|
765
|
+
return Result<std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>>::withValue(value);
|
|
766
|
+
}
|
|
767
|
+
inline Result_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec__ create_Result_std__shared_ptr_HybridNitroPlatformNumberFormatterSpec__(const std::exception_ptr& error) noexcept {
|
|
768
|
+
return Result<std::shared_ptr<HybridNitroPlatformNumberFormatterSpec>>::withError(error);
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
// pragma MARK: Result<std::vector<std::string>>
|
|
772
|
+
using Result_std__vector_std__string__ = Result<std::vector<std::string>>;
|
|
773
|
+
inline Result_std__vector_std__string__ create_Result_std__vector_std__string__(const std::vector<std::string>& value) noexcept {
|
|
774
|
+
return Result<std::vector<std::string>>::withValue(value);
|
|
775
|
+
}
|
|
776
|
+
inline Result_std__vector_std__string__ create_Result_std__vector_std__string__(const std::exception_ptr& error) noexcept {
|
|
777
|
+
return Result<std::vector<std::string>>::withError(error);
|
|
778
|
+
}
|
|
595
779
|
|
|
596
780
|
} // namespace margelo::nitro::nitroinput::bridge::swift
|
|
@@ -10,8 +10,16 @@
|
|
|
10
10
|
// Forward declarations of C++ defined types
|
|
11
11
|
// Forward declaration of `HybridNitroInputViewSpec` to properly resolve imports.
|
|
12
12
|
namespace margelo::nitro::nitroinput { class HybridNitroInputViewSpec; }
|
|
13
|
+
// Forward declaration of `HybridNitroNumberFormatPlatformSpec` to properly resolve imports.
|
|
14
|
+
namespace margelo::nitro::nitroinput { class HybridNitroNumberFormatPlatformSpec; }
|
|
13
15
|
// Forward declaration of `HybridNitroNumberViewSpec` to properly resolve imports.
|
|
14
16
|
namespace margelo::nitro::nitroinput { class HybridNitroNumberViewSpec; }
|
|
17
|
+
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::nitroinput { class HybridNitroPlatformNumberFormatterSpec; }
|
|
19
|
+
// Forward declaration of `HybridNitroTextMeasureSpec` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextMeasureSpec; }
|
|
21
|
+
// Forward declaration of `HybridNitroTextViewSpec` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { class HybridNitroTextViewSpec; }
|
|
15
23
|
// Forward declaration of `NitroInputAffixAlign` to properly resolve imports.
|
|
16
24
|
namespace margelo::nitro::nitroinput { enum class NitroInputAffixAlign; }
|
|
17
25
|
// Forward declaration of `NitroInputAutoCapitalize` to properly resolve imports.
|
|
@@ -50,14 +58,42 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberDirection; }
|
|
|
50
58
|
namespace margelo::nitro::nitroinput { enum class NitroNumberEasing; }
|
|
51
59
|
// Forward declaration of `NitroNumberRevealStyle` to properly resolve imports.
|
|
52
60
|
namespace margelo::nitro::nitroinput { enum class NitroNumberRevealStyle; }
|
|
61
|
+
// Forward declaration of `NitroNumberShimmerDirection` to properly resolve imports.
|
|
62
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberShimmerDirection; }
|
|
63
|
+
// Forward declaration of `NitroNumberSignDisplay` to properly resolve imports.
|
|
64
|
+
namespace margelo::nitro::nitroinput { enum class NitroNumberSignDisplay; }
|
|
53
65
|
// Forward declaration of `NitroNumberTextAlign` to properly resolve imports.
|
|
54
66
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTextAlign; }
|
|
55
67
|
// Forward declaration of `NitroNumberTransition` to properly resolve imports.
|
|
56
68
|
namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
69
|
+
// Forward declaration of `NumberFormatCompactDisplay` to properly resolve imports.
|
|
70
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCompactDisplay; }
|
|
71
|
+
// Forward declaration of `NumberFormatCurrencyDisplay` to properly resolve imports.
|
|
72
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencyDisplay; }
|
|
73
|
+
// Forward declaration of `NumberFormatCurrencySign` to properly resolve imports.
|
|
74
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencySign; }
|
|
75
|
+
// Forward declaration of `NumberFormatNotation` to properly resolve imports.
|
|
76
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatNotation; }
|
|
77
|
+
// Forward declaration of `NumberFormatPlatformOptions` to properly resolve imports.
|
|
78
|
+
namespace margelo::nitro::nitroinput { struct NumberFormatPlatformOptions; }
|
|
79
|
+
// Forward declaration of `NumberFormatPlatformSymbols` to properly resolve imports.
|
|
80
|
+
namespace margelo::nitro::nitroinput { struct NumberFormatPlatformSymbols; }
|
|
81
|
+
// Forward declaration of `NumberFormatRoundingMode` to properly resolve imports.
|
|
82
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatRoundingMode; }
|
|
83
|
+
// Forward declaration of `NumberFormatSignDisplay` to properly resolve imports.
|
|
84
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatSignDisplay; }
|
|
85
|
+
// Forward declaration of `NumberFormatStyle` to properly resolve imports.
|
|
86
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatStyle; }
|
|
87
|
+
// Forward declaration of `NumberFormatUnitDisplay` to properly resolve imports.
|
|
88
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
57
89
|
|
|
58
90
|
// Include C++ defined types
|
|
59
91
|
#include "HybridNitroInputViewSpec.hpp"
|
|
92
|
+
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
60
93
|
#include "HybridNitroNumberViewSpec.hpp"
|
|
94
|
+
#include "HybridNitroPlatformNumberFormatterSpec.hpp"
|
|
95
|
+
#include "HybridNitroTextMeasureSpec.hpp"
|
|
96
|
+
#include "HybridNitroTextViewSpec.hpp"
|
|
61
97
|
#include "NitroInputAffixAlign.hpp"
|
|
62
98
|
#include "NitroInputAutoCapitalize.hpp"
|
|
63
99
|
#include "NitroInputEasing.hpp"
|
|
@@ -77,8 +113,20 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
|
77
113
|
#include "NitroNumberDirection.hpp"
|
|
78
114
|
#include "NitroNumberEasing.hpp"
|
|
79
115
|
#include "NitroNumberRevealStyle.hpp"
|
|
116
|
+
#include "NitroNumberShimmerDirection.hpp"
|
|
117
|
+
#include "NitroNumberSignDisplay.hpp"
|
|
80
118
|
#include "NitroNumberTextAlign.hpp"
|
|
81
119
|
#include "NitroNumberTransition.hpp"
|
|
120
|
+
#include "NumberFormatCompactDisplay.hpp"
|
|
121
|
+
#include "NumberFormatCurrencyDisplay.hpp"
|
|
122
|
+
#include "NumberFormatCurrencySign.hpp"
|
|
123
|
+
#include "NumberFormatNotation.hpp"
|
|
124
|
+
#include "NumberFormatPlatformOptions.hpp"
|
|
125
|
+
#include "NumberFormatPlatformSymbols.hpp"
|
|
126
|
+
#include "NumberFormatRoundingMode.hpp"
|
|
127
|
+
#include "NumberFormatSignDisplay.hpp"
|
|
128
|
+
#include "NumberFormatStyle.hpp"
|
|
129
|
+
#include "NumberFormatUnitDisplay.hpp"
|
|
82
130
|
#include <NitroModules/Result.hpp>
|
|
83
131
|
#include <exception>
|
|
84
132
|
#include <functional>
|
|
@@ -99,8 +147,16 @@ namespace margelo::nitro::nitroinput { enum class NitroNumberTransition; }
|
|
|
99
147
|
// Forward declarations of Swift defined types
|
|
100
148
|
// Forward declaration of `HybridNitroInputViewSpec_cxx` to properly resolve imports.
|
|
101
149
|
namespace NitroInput { class HybridNitroInputViewSpec_cxx; }
|
|
150
|
+
// Forward declaration of `HybridNitroNumberFormatPlatformSpec_cxx` to properly resolve imports.
|
|
151
|
+
namespace NitroInput { class HybridNitroNumberFormatPlatformSpec_cxx; }
|
|
102
152
|
// Forward declaration of `HybridNitroNumberViewSpec_cxx` to properly resolve imports.
|
|
103
153
|
namespace NitroInput { class HybridNitroNumberViewSpec_cxx; }
|
|
154
|
+
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec_cxx` to properly resolve imports.
|
|
155
|
+
namespace NitroInput { class HybridNitroPlatformNumberFormatterSpec_cxx; }
|
|
156
|
+
// Forward declaration of `HybridNitroTextMeasureSpec_cxx` to properly resolve imports.
|
|
157
|
+
namespace NitroInput { class HybridNitroTextMeasureSpec_cxx; }
|
|
158
|
+
// Forward declaration of `HybridNitroTextViewSpec_cxx` to properly resolve imports.
|
|
159
|
+
namespace NitroInput { class HybridNitroTextViewSpec_cxx; }
|
|
104
160
|
|
|
105
161
|
// Include Swift defined types
|
|
106
162
|
#if __has_include("NitroInput-Swift.h")
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
#include "HybridNitroInputViewSpecSwift.hpp"
|
|
14
14
|
#include "HybridNitroInputWorklets.hpp"
|
|
15
15
|
#include "HybridNitroNumberViewSpecSwift.hpp"
|
|
16
|
+
#include "HybridNitroNumberFormatFactory.hpp"
|
|
17
|
+
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
18
|
+
#include "HybridNitroTextViewSpecSwift.hpp"
|
|
19
|
+
#include "HybridNitroTextMeasureSpecSwift.hpp"
|
|
16
20
|
|
|
17
21
|
@interface NitroInputAutolinking : NSObject
|
|
18
22
|
@end
|
|
@@ -46,6 +50,36 @@
|
|
|
46
50
|
return hybridObject;
|
|
47
51
|
}
|
|
48
52
|
);
|
|
53
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
54
|
+
"NitroNumberFormatFactory",
|
|
55
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
56
|
+
static_assert(std::is_default_constructible_v<HybridNitroNumberFormatFactory>,
|
|
57
|
+
"The HybridObject \"HybridNitroNumberFormatFactory\" is not default-constructible! "
|
|
58
|
+
"Create a public constructor that takes zero arguments to be able to autolink this HybridObject.");
|
|
59
|
+
return std::make_shared<HybridNitroNumberFormatFactory>();
|
|
60
|
+
}
|
|
61
|
+
);
|
|
62
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
63
|
+
"NitroNumberFormatPlatform",
|
|
64
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
65
|
+
std::shared_ptr<HybridNitroNumberFormatPlatformSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroNumberFormatPlatform();
|
|
66
|
+
return hybridObject;
|
|
67
|
+
}
|
|
68
|
+
);
|
|
69
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
70
|
+
"NitroTextView",
|
|
71
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
72
|
+
std::shared_ptr<HybridNitroTextViewSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroTextView();
|
|
73
|
+
return hybridObject;
|
|
74
|
+
}
|
|
75
|
+
);
|
|
76
|
+
HybridObjectRegistry::registerHybridObjectConstructor(
|
|
77
|
+
"NitroTextMeasure",
|
|
78
|
+
[]() -> std::shared_ptr<HybridObject> {
|
|
79
|
+
std::shared_ptr<HybridNitroTextMeasureSpec> hybridObject = NitroInput::NitroInputAutolinking::createNitroTextMeasure();
|
|
80
|
+
return hybridObject;
|
|
81
|
+
}
|
|
82
|
+
);
|
|
49
83
|
}
|
|
50
84
|
|
|
51
85
|
@end
|
|
@@ -35,4 +35,40 @@ public final class NitroInputAutolinking {
|
|
|
35
35
|
public static func isNitroNumberViewRecyclable() -> Bool {
|
|
36
36
|
return HybridNitroNumberView.self is any RecyclableView.Type
|
|
37
37
|
}
|
|
38
|
+
|
|
39
|
+
public static func createNitroNumberFormatPlatform() -> bridge.std__shared_ptr_HybridNitroNumberFormatPlatformSpec_ {
|
|
40
|
+
let hybridObject = HybridNitroNumberFormatPlatform()
|
|
41
|
+
return { () -> bridge.std__shared_ptr_HybridNitroNumberFormatPlatformSpec_ in
|
|
42
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
43
|
+
return __cxxWrapped.getCxxPart()
|
|
44
|
+
}()
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
public static func isNitroNumberFormatPlatformRecyclable() -> Bool {
|
|
48
|
+
return HybridNitroNumberFormatPlatform.self is any RecyclableView.Type
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
public static func createNitroTextView() -> bridge.std__shared_ptr_HybridNitroTextViewSpec_ {
|
|
52
|
+
let hybridObject = HybridNitroTextView()
|
|
53
|
+
return { () -> bridge.std__shared_ptr_HybridNitroTextViewSpec_ in
|
|
54
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
55
|
+
return __cxxWrapped.getCxxPart()
|
|
56
|
+
}()
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
public static func isNitroTextViewRecyclable() -> Bool {
|
|
60
|
+
return HybridNitroTextView.self is any RecyclableView.Type
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
public static func createNitroTextMeasure() -> bridge.std__shared_ptr_HybridNitroTextMeasureSpec_ {
|
|
64
|
+
let hybridObject = HybridNitroTextMeasure()
|
|
65
|
+
return { () -> bridge.std__shared_ptr_HybridNitroTextMeasureSpec_ in
|
|
66
|
+
let __cxxWrapped = hybridObject.getCxxWrapper()
|
|
67
|
+
return __cxxWrapped.getCxxPart()
|
|
68
|
+
}()
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
public static func isNitroTextMeasureRecyclable() -> Bool {
|
|
72
|
+
return HybridNitroTextMeasure.self is any RecyclableView.Type
|
|
73
|
+
}
|
|
38
74
|
}
|
|
@@ -303,6 +303,36 @@ namespace margelo::nitro::nitroinput {
|
|
|
303
303
|
inline void setSuffixAlign(NitroInputAffixAlign suffixAlign) noexcept override {
|
|
304
304
|
_swiftPart.setSuffixAlign(static_cast<int>(suffixAlign));
|
|
305
305
|
}
|
|
306
|
+
inline double getLetterSpacing() noexcept override {
|
|
307
|
+
return _swiftPart.getLetterSpacing();
|
|
308
|
+
}
|
|
309
|
+
inline void setLetterSpacing(double letterSpacing) noexcept override {
|
|
310
|
+
_swiftPart.setLetterSpacing(std::forward<decltype(letterSpacing)>(letterSpacing));
|
|
311
|
+
}
|
|
312
|
+
inline double getPrefixSpacing() noexcept override {
|
|
313
|
+
return _swiftPart.getPrefixSpacing();
|
|
314
|
+
}
|
|
315
|
+
inline void setPrefixSpacing(double prefixSpacing) noexcept override {
|
|
316
|
+
_swiftPart.setPrefixSpacing(std::forward<decltype(prefixSpacing)>(prefixSpacing));
|
|
317
|
+
}
|
|
318
|
+
inline double getSuffixSpacing() noexcept override {
|
|
319
|
+
return _swiftPart.getSuffixSpacing();
|
|
320
|
+
}
|
|
321
|
+
inline void setSuffixSpacing(double suffixSpacing) noexcept override {
|
|
322
|
+
_swiftPart.setSuffixSpacing(std::forward<decltype(suffixSpacing)>(suffixSpacing));
|
|
323
|
+
}
|
|
324
|
+
inline double getPrefixOffset() noexcept override {
|
|
325
|
+
return _swiftPart.getPrefixOffset();
|
|
326
|
+
}
|
|
327
|
+
inline void setPrefixOffset(double prefixOffset) noexcept override {
|
|
328
|
+
_swiftPart.setPrefixOffset(std::forward<decltype(prefixOffset)>(prefixOffset));
|
|
329
|
+
}
|
|
330
|
+
inline double getSuffixOffset() noexcept override {
|
|
331
|
+
return _swiftPart.getSuffixOffset();
|
|
332
|
+
}
|
|
333
|
+
inline void setSuffixOffset(double suffixOffset) noexcept override {
|
|
334
|
+
_swiftPart.setSuffixOffset(std::forward<decltype(suffixOffset)>(suffixOffset));
|
|
335
|
+
}
|
|
306
336
|
inline std::string getPlaceholder() noexcept override {
|
|
307
337
|
auto __result = _swiftPart.getPlaceholder();
|
|
308
338
|
return __result;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroNumberFormatPlatformSpecSwift.cpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#include "HybridNitroNumberFormatPlatformSpecSwift.hpp"
|
|
9
|
+
|
|
10
|
+
namespace margelo::nitro::nitroinput {
|
|
11
|
+
} // namespace margelo::nitro::nitroinput
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
///
|
|
2
|
+
/// HybridNitroNumberFormatPlatformSpecSwift.hpp
|
|
3
|
+
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
4
|
+
/// https://github.com/mrousavy/nitro
|
|
5
|
+
/// Copyright © Marc Rousavy @ Margelo
|
|
6
|
+
///
|
|
7
|
+
|
|
8
|
+
#pragma once
|
|
9
|
+
|
|
10
|
+
#include "HybridNitroNumberFormatPlatformSpec.hpp"
|
|
11
|
+
|
|
12
|
+
// Forward declaration of `HybridNitroNumberFormatPlatformSpec_cxx` to properly resolve imports.
|
|
13
|
+
namespace NitroInput { class HybridNitroNumberFormatPlatformSpec_cxx; }
|
|
14
|
+
|
|
15
|
+
// Forward declaration of `HybridNitroPlatformNumberFormatterSpec` to properly resolve imports.
|
|
16
|
+
namespace margelo::nitro::nitroinput { class HybridNitroPlatformNumberFormatterSpec; }
|
|
17
|
+
// Forward declaration of `NumberFormatPlatformOptions` to properly resolve imports.
|
|
18
|
+
namespace margelo::nitro::nitroinput { struct NumberFormatPlatformOptions; }
|
|
19
|
+
// Forward declaration of `NumberFormatStyle` to properly resolve imports.
|
|
20
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatStyle; }
|
|
21
|
+
// Forward declaration of `NumberFormatCurrencyDisplay` to properly resolve imports.
|
|
22
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencyDisplay; }
|
|
23
|
+
// Forward declaration of `NumberFormatCurrencySign` to properly resolve imports.
|
|
24
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCurrencySign; }
|
|
25
|
+
// Forward declaration of `NumberFormatUnitDisplay` to properly resolve imports.
|
|
26
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatUnitDisplay; }
|
|
27
|
+
// Forward declaration of `NumberFormatNotation` to properly resolve imports.
|
|
28
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatNotation; }
|
|
29
|
+
// Forward declaration of `NumberFormatCompactDisplay` to properly resolve imports.
|
|
30
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatCompactDisplay; }
|
|
31
|
+
// Forward declaration of `NumberFormatRoundingMode` to properly resolve imports.
|
|
32
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatRoundingMode; }
|
|
33
|
+
// Forward declaration of `NumberFormatSignDisplay` to properly resolve imports.
|
|
34
|
+
namespace margelo::nitro::nitroinput { enum class NumberFormatSignDisplay; }
|
|
35
|
+
|
|
36
|
+
#include <memory>
|
|
37
|
+
#include "HybridNitroPlatformNumberFormatterSpec.hpp"
|
|
38
|
+
#include "NumberFormatPlatformOptions.hpp"
|
|
39
|
+
#include <string>
|
|
40
|
+
#include <vector>
|
|
41
|
+
#include <optional>
|
|
42
|
+
#include "NumberFormatStyle.hpp"
|
|
43
|
+
#include "NumberFormatCurrencyDisplay.hpp"
|
|
44
|
+
#include "NumberFormatCurrencySign.hpp"
|
|
45
|
+
#include "NumberFormatUnitDisplay.hpp"
|
|
46
|
+
#include "NumberFormatNotation.hpp"
|
|
47
|
+
#include "NumberFormatCompactDisplay.hpp"
|
|
48
|
+
#include "NumberFormatRoundingMode.hpp"
|
|
49
|
+
#include "NumberFormatSignDisplay.hpp"
|
|
50
|
+
|
|
51
|
+
#include "NitroInput-Swift-Cxx-Umbrella.hpp"
|
|
52
|
+
|
|
53
|
+
namespace margelo::nitro::nitroinput {
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* The C++ part of HybridNitroNumberFormatPlatformSpec_cxx.swift.
|
|
57
|
+
*
|
|
58
|
+
* HybridNitroNumberFormatPlatformSpecSwift (C++) accesses HybridNitroNumberFormatPlatformSpec_cxx (Swift), and might
|
|
59
|
+
* contain some additional bridging code for C++ <> Swift interop.
|
|
60
|
+
*
|
|
61
|
+
* Since this obviously introduces an overhead, I hope at some point in
|
|
62
|
+
* the future, HybridNitroNumberFormatPlatformSpec_cxx can directly inherit from the C++ class HybridNitroNumberFormatPlatformSpec
|
|
63
|
+
* to simplify the whole structure and memory management.
|
|
64
|
+
*/
|
|
65
|
+
class HybridNitroNumberFormatPlatformSpecSwift: public virtual HybridNitroNumberFormatPlatformSpec {
|
|
66
|
+
public:
|
|
67
|
+
// Constructor from a Swift instance
|
|
68
|
+
explicit HybridNitroNumberFormatPlatformSpecSwift(const NitroInput::HybridNitroNumberFormatPlatformSpec_cxx& swiftPart):
|
|
69
|
+
HybridObject(HybridNitroNumberFormatPlatformSpec::TAG),
|
|
70
|
+
_swiftPart(swiftPart) { }
|
|
71
|
+
|
|
72
|
+
public:
|
|
73
|
+
// Get the Swift part
|
|
74
|
+
inline NitroInput::HybridNitroNumberFormatPlatformSpec_cxx& getSwiftPart() noexcept {
|
|
75
|
+
return _swiftPart;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
public:
|
|
79
|
+
inline size_t getExternalMemorySize() noexcept override {
|
|
80
|
+
return _swiftPart.getMemorySize();
|
|
81
|
+
}
|
|
82
|
+
bool equals(const std::shared_ptr<HybridObject>& other) override {
|
|
83
|
+
if (auto otherCast = std::dynamic_pointer_cast<HybridNitroNumberFormatPlatformSpecSwift>(other)) {
|
|
84
|
+
return _swiftPart.equals(otherCast->_swiftPart);
|
|
85
|
+
}
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
void dispose() noexcept override {
|
|
89
|
+
_swiftPart.dispose();
|
|
90
|
+
}
|
|
91
|
+
std::string toString() override {
|
|
92
|
+
return _swiftPart.toString();
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
public:
|
|
96
|
+
// Properties
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
public:
|
|
100
|
+
// Methods
|
|
101
|
+
inline std::shared_ptr<HybridNitroPlatformNumberFormatterSpec> create(const NumberFormatPlatformOptions& options) override {
|
|
102
|
+
auto __result = _swiftPart.create(std::forward<decltype(options)>(options));
|
|
103
|
+
if (__result.hasError()) [[unlikely]] {
|
|
104
|
+
std::rethrow_exception(__result.error());
|
|
105
|
+
}
|
|
106
|
+
auto __value = std::move(__result.value());
|
|
107
|
+
return __value;
|
|
108
|
+
}
|
|
109
|
+
inline std::vector<std::string> supportedLocalesOf(const std::vector<std::string>& locales) override {
|
|
110
|
+
auto __result = _swiftPart.supportedLocalesOf(locales);
|
|
111
|
+
if (__result.hasError()) [[unlikely]] {
|
|
112
|
+
std::rethrow_exception(__result.error());
|
|
113
|
+
}
|
|
114
|
+
auto __value = std::move(__result.value());
|
|
115
|
+
return __value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
private:
|
|
119
|
+
NitroInput::HybridNitroNumberFormatPlatformSpec_cxx _swiftPart;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
} // namespace margelo::nitro::nitroinput
|