react-native-external-keyboard 0.8.4 → 0.8.5-rc
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/android/src/main/java/com/externalkeyboard/delegates/FocusOrderDelegate.java +2 -4
- package/android/src/main/java/com/externalkeyboard/delegates/FocusOrderDelegateHost.java +14 -0
- package/android/src/main/java/com/externalkeyboard/views/ExternalKeyboardView/ExternalKeyboardView.java +2 -1
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapper.java +150 -3
- package/android/src/main/java/com/externalkeyboard/views/TextInputFocusWrapper/TextInputFocusWrapperManager.java +92 -0
- package/android/src/oldarch/TextInputFocusWrapperManagerSpec.java +24 -0
- package/ios/Delegates/RNCEKVFocusOrderDelegate/RNCEKVFocusOrderDelegate.mm +2 -2
- package/ios/Views/RNCEKVExternalKeyboardView/RNCEKVExternalKeyboardView.mm +5 -6
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.h +38 -2
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapper.mm +167 -10
- package/ios/Views/RNCEKVTextInputFocusWrapper/RNCEKVTextInputFocusWrapperManager.mm +69 -0
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js +51 -0
- package/lib/commonjs/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/commonjs/nativeSpec/TextInputFocusWrapperNativeComponent.ts +12 -0
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js +51 -0
- package/lib/module/components/KeyboardExtendedInput/KeyboardExtendedInput.js.map +1 -1
- package/lib/module/nativeSpec/TextInputFocusWrapperNativeComponent.ts +12 -0
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.d.ts.map +1 -1
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts +11 -0
- package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map +1 -1
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts +12 -0
- package/lib/typescript/src/nativeSpec/TextInputFocusWrapperNativeComponent.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx +56 -0
- package/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts +11 -0
- package/src/nativeSpec/TextInputFocusWrapperNativeComponent.ts +12 -0
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
#import <React/RCTUITextView.h>
|
|
6
6
|
#import "RNCEKVFocusEffectUtility.h"
|
|
7
7
|
#import "RCTBaseTextInputView.h"
|
|
8
|
+
#import "RNCEKVFocusOrderDelegate.h"
|
|
9
|
+
#import "RNCEKVOrderLinking.h"
|
|
10
|
+
#import "UIViewController+RNCEKVExternalKeyboard.h"
|
|
8
11
|
|
|
9
12
|
#ifdef RCT_NEW_ARCH_ENABLED
|
|
10
13
|
#import "RCTTextInputComponentView+RNCEKVExternalKeyboard.h"
|
|
@@ -24,6 +27,7 @@
|
|
|
24
27
|
|
|
25
28
|
#import <React/RCTConversions.h>
|
|
26
29
|
|
|
30
|
+
#import "RNCEKVPropHelper.h"
|
|
27
31
|
#import "RCTViewComponentView+RNCEKVExternalKeyboard.h"
|
|
28
32
|
#import "RCTFabricComponentsPlugins.h"
|
|
29
33
|
|
|
@@ -38,8 +42,11 @@ using namespace facebook::react;
|
|
|
38
42
|
static const NSInteger AUTO_FOCUS = 2;
|
|
39
43
|
static const NSInteger AUTO_BLUR = 2;
|
|
40
44
|
|
|
41
|
-
@implementation RNCEKVTextInputFocusWrapper
|
|
42
|
-
|
|
45
|
+
@implementation RNCEKVTextInputFocusWrapper {
|
|
46
|
+
RNCEKVFocusOrderDelegate *_focusOrderDelegate;
|
|
47
|
+
BOOL _isLinked;
|
|
48
|
+
BOOL _isIdLinked;
|
|
49
|
+
}
|
|
43
50
|
|
|
44
51
|
- (instancetype)initWithFrame:(CGRect)frame
|
|
45
52
|
{
|
|
@@ -48,6 +55,9 @@ static const NSInteger AUTO_BLUR = 2;
|
|
|
48
55
|
static const auto defaultProps = std::make_shared<const TextInputFocusWrapperProps>();
|
|
49
56
|
_props = defaultProps;
|
|
50
57
|
#endif
|
|
58
|
+
_focusOrderDelegate = [[RNCEKVFocusOrderDelegate alloc] initWithView:self];
|
|
59
|
+
_isLinked = NO;
|
|
60
|
+
_isIdLinked = NO;
|
|
51
61
|
}
|
|
52
62
|
|
|
53
63
|
return self;
|
|
@@ -107,13 +117,36 @@ static const NSInteger AUTO_BLUR = 2;
|
|
|
107
117
|
}
|
|
108
118
|
}
|
|
109
119
|
|
|
120
|
+
UIColor* newColor = RCTUIColorFromSharedColor(newViewProps.tintColor);
|
|
121
|
+
BOOL renewColor = newColor != nil && self.tintColor == nil;
|
|
122
|
+
BOOL isColorChanged = oldViewProps.tintColor != newViewProps.tintColor;
|
|
123
|
+
if(isColorChanged || renewColor) {
|
|
124
|
+
self.tintColor = RCTUIColorFromSharedColor(newViewProps.tintColor);
|
|
125
|
+
}
|
|
110
126
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
127
|
+
BOOL isLockChanged = [RNCEKVPropHelper isPropChanged:_lockFocus intValue: newViewProps.lockFocus];
|
|
128
|
+
if(isLockChanged) {
|
|
129
|
+
NSNumber* lockValue = [RNCEKVPropHelper unwrapIntValue: newViewProps.lockFocus];
|
|
130
|
+
[self setLockFocus: lockValue];
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
BOOL isIndexChanged = [RNCEKVPropHelper isPropChanged:_orderPosition intValue: newViewProps.orderIndex];
|
|
135
|
+
if(isIndexChanged) {
|
|
136
|
+
NSNumber* position = [RNCEKVPropHelper unwrapIntValue: newViewProps.orderIndex];
|
|
137
|
+
[self updateOrderPosition: position];
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
RKNA_PROP_UPDATE(orderGroup, setOrderGroup, newViewProps);
|
|
141
|
+
RKNA_PROP_UPDATE(orderId, setOrderId, newViewProps);
|
|
142
|
+
RKNA_PROP_UPDATE(orderLeft, setOrderLeft, newViewProps);
|
|
143
|
+
RKNA_PROP_UPDATE(orderRight, setOrderRight, newViewProps);
|
|
144
|
+
RKNA_PROP_UPDATE(orderUp, setOrderUp, newViewProps);
|
|
145
|
+
RKNA_PROP_UPDATE(orderDown, setOrderDown, newViewProps);
|
|
146
|
+
RKNA_PROP_UPDATE(orderForward, setOrderForward, newViewProps);
|
|
147
|
+
RKNA_PROP_UPDATE(orderBackward, setOrderBackward, newViewProps);
|
|
148
|
+
RKNA_PROP_UPDATE(orderLast, setOrderLast, newViewProps);
|
|
149
|
+
RKNA_PROP_UPDATE(orderFirst, setOrderFirst, newViewProps);
|
|
117
150
|
}
|
|
118
151
|
|
|
119
152
|
Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
@@ -165,6 +198,108 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
|
165
198
|
|
|
166
199
|
#endif
|
|
167
200
|
|
|
201
|
+
|
|
202
|
+
- (void)focus {
|
|
203
|
+
UIViewController *viewController = self.reactViewController;
|
|
204
|
+
[self updateFocus:viewController];
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
- (void)updateFocus:(UIViewController *)controller {
|
|
208
|
+
UIView *focusingView = self.subviews.count ? self.subviews[0] : nil;
|
|
209
|
+
|
|
210
|
+
if (self.superview != nil && controller != nil) {
|
|
211
|
+
controller.rncekvCustomFocusView = focusingView;
|
|
212
|
+
dispatch_async(dispatch_get_main_queue(), ^{
|
|
213
|
+
[controller setNeedsFocusUpdate];
|
|
214
|
+
[controller updateFocusIfNeeded];
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
// Focus order linking
|
|
220
|
+
|
|
221
|
+
- (void)link {
|
|
222
|
+
if(_orderPosition != nil && _orderGroup != nil && !_isLinked) {
|
|
223
|
+
[[RNCEKVOrderLinking sharedInstance] add: _orderPosition withOrderKey: _orderGroup withObject:self];
|
|
224
|
+
_isLinked = YES;
|
|
225
|
+
}
|
|
226
|
+
if(_orderId != nil) {
|
|
227
|
+
[[RNCEKVOrderLinking sharedInstance] storeOrderId:_orderId withView: self];
|
|
228
|
+
[_focusOrderDelegate linkId];
|
|
229
|
+
_isIdLinked = YES;
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
- (void)unlink {
|
|
234
|
+
if(_orderPosition != nil && _orderGroup != nil && _isLinked) {
|
|
235
|
+
[[RNCEKVOrderLinking sharedInstance] remove:_orderPosition withOrderKey: _orderGroup];
|
|
236
|
+
}
|
|
237
|
+
if(_orderId != nil) {
|
|
238
|
+
[[RNCEKVOrderLinking sharedInstance] cleanOrderId:_orderId];
|
|
239
|
+
[_focusOrderDelegate clear];
|
|
240
|
+
}
|
|
241
|
+
_isLinked = NO;
|
|
242
|
+
_isIdLinked = NO;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
- (void)setOrderGroup:(NSString *)orderGroup {
|
|
246
|
+
if(_orderPosition != nil && self.superview != nil) {
|
|
247
|
+
[[RNCEKVOrderLinking sharedInstance] updateOrderKey:(NSString *)_orderGroup next:orderGroup position:_orderPosition withView: self];
|
|
248
|
+
}
|
|
249
|
+
_orderGroup = orderGroup;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
- (void)setOrderId:(NSString *)next {
|
|
253
|
+
[_focusOrderDelegate refreshId:_orderId next:next];
|
|
254
|
+
_orderId = next;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
- (void)setOrderLeft:(NSString *)orderLeft {
|
|
258
|
+
[_focusOrderDelegate refreshLeft: _orderLeft next: orderLeft];
|
|
259
|
+
_orderLeft = orderLeft;
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
- (void)setOrderRight:(NSString *)orderRight {
|
|
263
|
+
[_focusOrderDelegate refreshRight: _orderRight next: orderRight];
|
|
264
|
+
_orderRight = orderRight;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
- (void)setOrderUp:(NSString *)orderUp {
|
|
268
|
+
[_focusOrderDelegate refreshUp: _orderUp next: orderUp];
|
|
269
|
+
_orderUp = orderUp;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
- (void)setOrderDown:(NSString *)orderDown {
|
|
273
|
+
[_focusOrderDelegate refreshDown: _orderDown next: orderDown];
|
|
274
|
+
_orderDown = orderDown;
|
|
275
|
+
}
|
|
276
|
+
|
|
277
|
+
- (void)updateOrderPosition:(NSNumber *)position {
|
|
278
|
+
if(_orderPosition != nil || _orderPosition != position) {
|
|
279
|
+
if(_orderGroup != nil && self.superview != nil && _isLinked) {
|
|
280
|
+
[[RNCEKVOrderLinking sharedInstance] update:position lastPosition:_orderPosition withOrderKey: _orderGroup withView: self];
|
|
281
|
+
}
|
|
282
|
+
_orderPosition = position;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if(_orderPosition == nil && _orderPosition != position) {
|
|
286
|
+
_orderPosition = position;
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
- (BOOL)shouldUpdateFocusInContext:(UIFocusUpdateContext *)context {
|
|
291
|
+
if(!_orderGroup && !_orderPosition && !_lockFocus && !_orderForward && !_orderBackward) {
|
|
292
|
+
return [super shouldUpdateFocusInContext: context];
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
NSNumber* result = [_focusOrderDelegate shouldUpdateFocusInContext: context];
|
|
296
|
+
if(result == nil) {
|
|
297
|
+
return [super shouldUpdateFocusInContext: context];
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
return result.boolValue;
|
|
301
|
+
}
|
|
302
|
+
|
|
168
303
|
// ToDo RNCEKV-3, if we return yes here, it means that wrapper is focusable, with current implementation it works as expected, but it would be better to double check
|
|
169
304
|
- (BOOL)canBecomeFocused {
|
|
170
305
|
return NO;
|
|
@@ -182,6 +317,7 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
|
182
317
|
|
|
183
318
|
if(isNext) {
|
|
184
319
|
[self onFocusChange: YES];
|
|
320
|
+
[_focusOrderDelegate setIsFocused: YES];
|
|
185
321
|
if(self.focusType == AUTO_FOCUS) {
|
|
186
322
|
if(_textField != nil) {
|
|
187
323
|
[_textField reactFocus];
|
|
@@ -191,6 +327,7 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
|
191
327
|
|
|
192
328
|
if(isPrev) {
|
|
193
329
|
[self onFocusChange: NO];
|
|
330
|
+
[_focusOrderDelegate setIsFocused: NO];
|
|
194
331
|
if(self.blurType == AUTO_BLUR) {
|
|
195
332
|
if(_textField != nil) {
|
|
196
333
|
[_textField reactBlur];
|
|
@@ -226,6 +363,19 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
|
226
363
|
_textField = nil;
|
|
227
364
|
_textView = nil;
|
|
228
365
|
_customGroupId = nil;
|
|
366
|
+
[self unlink];
|
|
367
|
+
_orderGroup = nil;
|
|
368
|
+
_orderPosition = nil;
|
|
369
|
+
_orderLeft = nil;
|
|
370
|
+
_orderRight = nil;
|
|
371
|
+
_orderUp = nil;
|
|
372
|
+
_orderDown = nil;
|
|
373
|
+
_orderForward = nil;
|
|
374
|
+
_orderBackward = nil;
|
|
375
|
+
_orderLast = nil;
|
|
376
|
+
_orderFirst = nil;
|
|
377
|
+
_orderId = nil;
|
|
378
|
+
_lockFocus = nil;
|
|
229
379
|
}
|
|
230
380
|
|
|
231
381
|
-(BOOL)isHaloHidden {
|
|
@@ -295,11 +445,18 @@ Class<RCTComponentViewProtocol> TextInputFocusWrapperCls(void)
|
|
|
295
445
|
}
|
|
296
446
|
|
|
297
447
|
// ToDo, check if needed
|
|
298
|
-
#ifndef RCT_NEW_ARCH_ENABLED
|
|
299
448
|
- (void)didMoveToWindow {
|
|
449
|
+
#ifndef RCT_NEW_ARCH_ENABLED
|
|
300
450
|
[self updateHalo];
|
|
451
|
+
#endif
|
|
452
|
+
|
|
453
|
+
if (self.window) {
|
|
454
|
+
[self link];
|
|
455
|
+
} else {
|
|
456
|
+
[self unlink];
|
|
457
|
+
}
|
|
301
458
|
}
|
|
302
|
-
|
|
459
|
+
|
|
303
460
|
|
|
304
461
|
|
|
305
462
|
- (UIView*)getFocusTargetView {
|
|
@@ -74,5 +74,74 @@ RCT_CUSTOM_VIEW_PROPERTY(tintColor, UIColor, RNCEKVTextInputFocusWrapper)
|
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderGroup, NSString, RNCEKVTextInputFocusWrapper)
|
|
78
|
+
{
|
|
79
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
80
|
+
[view setOrderGroup: value];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderIndex, NSInteger, RNCEKVTextInputFocusWrapper)
|
|
84
|
+
{
|
|
85
|
+
if (json) {
|
|
86
|
+
NSNumber* value = [RCTConvert NSNumber:json];
|
|
87
|
+
[view setOrderPosition: value];
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderId, NSString, RNCEKVTextInputFocusWrapper)
|
|
92
|
+
{
|
|
93
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
94
|
+
[view setOrderId: value];
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderLeft, NSString, RNCEKVTextInputFocusWrapper)
|
|
98
|
+
{
|
|
99
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
100
|
+
[view setOrderLeft: value];
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderRight, NSString, RNCEKVTextInputFocusWrapper)
|
|
104
|
+
{
|
|
105
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
106
|
+
[view setOrderRight: value];
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderUp, NSString, RNCEKVTextInputFocusWrapper)
|
|
110
|
+
{
|
|
111
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
112
|
+
[view setOrderUp: value];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderDown, NSString, RNCEKVTextInputFocusWrapper)
|
|
116
|
+
{
|
|
117
|
+
NSString* value = json ? [RCTConvert NSString:json] : nil;
|
|
118
|
+
[view setOrderDown: value];
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderForward, NSString, RNCEKVTextInputFocusWrapper)
|
|
122
|
+
{
|
|
123
|
+
view.orderForward = json ? [RCTConvert NSString:json] : nil;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderBackward, NSString, RNCEKVTextInputFocusWrapper)
|
|
127
|
+
{
|
|
128
|
+
view.orderBackward = json ? [RCTConvert NSString:json] : nil;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderFirst, NSString, RNCEKVTextInputFocusWrapper)
|
|
132
|
+
{
|
|
133
|
+
view.orderFirst = json ? [RCTConvert NSString:json] : nil;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
RCT_CUSTOM_VIEW_PROPERTY(orderLast, NSString, RNCEKVTextInputFocusWrapper)
|
|
137
|
+
{
|
|
138
|
+
view.orderLast = json ? [RCTConvert NSString:json] : nil;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
RCT_CUSTOM_VIEW_PROPERTY(lockFocus, NSNumber, RNCEKVTextInputFocusWrapper)
|
|
142
|
+
{
|
|
143
|
+
view.lockFocus = json ? [RCTConvert NSNumber:json] : nil;
|
|
144
|
+
}
|
|
145
|
+
|
|
77
146
|
|
|
78
147
|
@end
|
|
@@ -11,9 +11,39 @@ var _useFocusStyle = require("../../utils/useFocusStyle");
|
|
|
11
11
|
var _focusEventMapper = require("../../utils/focusEventMapper");
|
|
12
12
|
var _RenderPropComponent = require("../RenderPropComponent/RenderPropComponent");
|
|
13
13
|
var _GroupIdentifierContext = require("../../context/GroupIdentifierContext");
|
|
14
|
+
var _OrderFocusContext = require("../../context/OrderFocusContext");
|
|
14
15
|
var _KeyboardExtendedInput = require("./KeyboardExtendedInput.consts");
|
|
16
|
+
var _BaseKeyboardView = require("../../types/BaseKeyboardView");
|
|
15
17
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
18
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
19
|
+
var BITS = /*#__PURE__*/function (BITS) {
|
|
20
|
+
BITS[BITS["BIT_01"] = 1] = "BIT_01";
|
|
21
|
+
BITS[BITS["BIT_02"] = 2] = "BIT_02";
|
|
22
|
+
BITS[BITS["BIT_03"] = 4] = "BIT_03";
|
|
23
|
+
BITS[BITS["BIT_04"] = 8] = "BIT_04";
|
|
24
|
+
BITS[BITS["BIT_05"] = 16] = "BIT_05";
|
|
25
|
+
BITS[BITS["BIT_06"] = 32] = "BIT_06";
|
|
26
|
+
BITS[BITS["BIT_07"] = 64] = "BIT_07";
|
|
27
|
+
BITS[BITS["BIT_08"] = 128] = "BIT_08";
|
|
28
|
+
BITS[BITS["BIT_09"] = 256] = "BIT_09";
|
|
29
|
+
BITS[BITS["BIT_10"] = 512] = "BIT_10";
|
|
30
|
+
return BITS;
|
|
31
|
+
}(BITS || {});
|
|
32
|
+
const focusBinaryValue = {
|
|
33
|
+
[_BaseKeyboardView.LockFocusEnum.Up]: BITS.BIT_01,
|
|
34
|
+
[_BaseKeyboardView.LockFocusEnum.Down]: BITS.BIT_02,
|
|
35
|
+
[_BaseKeyboardView.LockFocusEnum.Left]: BITS.BIT_03,
|
|
36
|
+
[_BaseKeyboardView.LockFocusEnum.Right]: BITS.BIT_04,
|
|
37
|
+
[_BaseKeyboardView.LockFocusEnum.Forward]: BITS.BIT_05,
|
|
38
|
+
[_BaseKeyboardView.LockFocusEnum.Backward]: BITS.BIT_06,
|
|
39
|
+
[_BaseKeyboardView.LockFocusEnum.First]: BITS.BIT_09,
|
|
40
|
+
[_BaseKeyboardView.LockFocusEnum.Last]: BITS.BIT_10
|
|
41
|
+
};
|
|
42
|
+
const mapLockFocus = values => {
|
|
43
|
+
if (!values || !values.length) return 0;
|
|
44
|
+
// eslint-disable-next-line no-bitwise
|
|
45
|
+
return values.reduce((acc, item) => acc | focusBinaryValue[item], 0);
|
|
46
|
+
};
|
|
17
47
|
const isIOS = _reactNative.Platform.OS === 'ios';
|
|
18
48
|
const KeyboardExtendedInput = exports.KeyboardExtendedInput = /*#__PURE__*/_react.default.forwardRef(({
|
|
19
49
|
focusType = 'default',
|
|
@@ -32,6 +62,16 @@ const KeyboardExtendedInput = exports.KeyboardExtendedInput = /*#__PURE__*/_reac
|
|
|
32
62
|
onSubmitEditing,
|
|
33
63
|
submitBehavior,
|
|
34
64
|
groupIdentifier,
|
|
65
|
+
lockFocus,
|
|
66
|
+
orderGroup,
|
|
67
|
+
orderIndex,
|
|
68
|
+
orderId,
|
|
69
|
+
orderForward,
|
|
70
|
+
orderBackward,
|
|
71
|
+
orderLeft,
|
|
72
|
+
orderRight,
|
|
73
|
+
orderUp,
|
|
74
|
+
orderDown,
|
|
35
75
|
rejectResponderTermination,
|
|
36
76
|
selectionHandleColor,
|
|
37
77
|
cursorColor,
|
|
@@ -52,6 +92,7 @@ const KeyboardExtendedInput = exports.KeyboardExtendedInput = /*#__PURE__*/_reac
|
|
|
52
92
|
tintType
|
|
53
93
|
});
|
|
54
94
|
const contextIdentifier = (0, _GroupIdentifierContext.useGroupIdentifierContext)();
|
|
95
|
+
const contextOrderGroup = (0, _OrderFocusContext.useOrderFocusGroup)();
|
|
55
96
|
const withHaloEffect = tintType === 'default' && haloEffect;
|
|
56
97
|
const nativeFocusHandler = (0, _react.useMemo)(() => (0, _focusEventMapper.focusEventMapper)(onFocusChangeHandler), [onFocusChangeHandler]);
|
|
57
98
|
const HoverComonent = (0, _react.useMemo)(() => {
|
|
@@ -75,6 +116,16 @@ const KeyboardExtendedInput = exports.KeyboardExtendedInput = /*#__PURE__*/_reac
|
|
|
75
116
|
canBeFocused: canBeFocusable && focusable,
|
|
76
117
|
tintColor: isIOS ? tintColor : undefined,
|
|
77
118
|
groupIdentifier: groupIdentifier ?? contextIdentifier,
|
|
119
|
+
lockFocus: mapLockFocus(lockFocus),
|
|
120
|
+
orderGroup: orderGroup ?? contextOrderGroup,
|
|
121
|
+
orderIndex: orderIndex,
|
|
122
|
+
orderId: orderId,
|
|
123
|
+
orderForward: orderForward,
|
|
124
|
+
orderBackward: orderBackward,
|
|
125
|
+
orderLeft: orderLeft,
|
|
126
|
+
orderRight: orderRight,
|
|
127
|
+
orderUp: orderUp,
|
|
128
|
+
orderDown: orderDown,
|
|
78
129
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactNative.TextInput, {
|
|
79
130
|
ref: ref,
|
|
80
131
|
editable: canBeFocusable && focusable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nativeSpec","_useFocusStyle","_focusEventMapper","_RenderPropComponent","_GroupIdentifierContext","_KeyboardExtendedInput","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","isIOS","Platform","OS","KeyboardExtendedInput","exports","React","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","useFocusStyle","contextIdentifier","useGroupIdentifierContext","withHaloEffect","nativeFocusHandler","useMemo","focusEventMapper","HoverComonent","jsx","View","styles","absolute","opacity","undefined","blurOnSubmit","jsxs","TextInputFocusWrapperNative","focusMap","blurMap","multiline","onMultiplyTextSubmit","canBeFocused","children","TextInput","editable","RenderPropComponent","render","StyleSheet","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNative","_nativeSpec","_useFocusStyle","_focusEventMapper","_RenderPropComponent","_GroupIdentifierContext","_OrderFocusContext","_KeyboardExtendedInput","_BaseKeyboardView","_jsxRuntime","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","BITS","focusBinaryValue","LockFocusEnum","Up","BIT_01","Down","BIT_02","Left","BIT_03","Right","BIT_04","Forward","BIT_05","Backward","BIT_06","First","BIT_09","Last","BIT_10","mapLockFocus","values","length","reduce","acc","item","isIOS","Platform","OS","KeyboardExtendedInput","exports","React","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","lockFocus","orderGroup","orderIndex","orderId","orderForward","orderBackward","orderLeft","orderRight","orderUp","orderDown","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","useFocusStyle","contextIdentifier","useGroupIdentifierContext","contextOrderGroup","useOrderFocusGroup","withHaloEffect","nativeFocusHandler","useMemo","focusEventMapper","HoverComonent","jsx","View","styles","absolute","opacity","undefined","blurOnSubmit","jsxs","TextInputFocusWrapperNative","focusMap","blurMap","multiline","onMultiplyTextSubmit","canBeFocused","children","TextInput","editable","RenderPropComponent","render","StyleSheet","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,WAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAJ,OAAA;AACA,IAAAK,oBAAA,GAAAL,OAAA;AACA,IAAAM,uBAAA,GAAAN,OAAA;AACA,IAAAO,kBAAA,GAAAP,OAAA;AAEA,IAAAQ,sBAAA,GAAAR,OAAA;AACA,IAAAS,iBAAA,GAAAT,OAAA;AAGsC,IAAAU,WAAA,GAAAV,OAAA;AAAA,SAAAD,wBAAAY,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAA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IAAIc,aAAa,iBACvB,IAAAlG,WAAA,CAAAmG,GAAA,EAACxG,oBAAA,CAAAyH,mBAAmB;MAACC,MAAM,EAAEnB;IAAc,CAAE,CAC9C;EAAA,CAC0B,CAAC;AAElC,CACF,CAAC;AAED,MAAMG,MAAM,GAAGiB,uBAAU,CAACC,MAAM,CAAC;EAC/BjB,QAAQ,EAAE;IACRkB,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDrB,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -25,6 +25,18 @@ export interface TextInputFocusWrapperNativeComponent extends ViewProps {
|
|
|
25
25
|
blurOnSubmit?: boolean;
|
|
26
26
|
multiline?: boolean;
|
|
27
27
|
groupIdentifier?: string;
|
|
28
|
+
lockFocus?: Int32;
|
|
29
|
+
orderGroup?: string;
|
|
30
|
+
orderIndex?: Int32;
|
|
31
|
+
orderId?: string;
|
|
32
|
+
orderLeft?: string;
|
|
33
|
+
orderRight?: string;
|
|
34
|
+
orderUp?: string;
|
|
35
|
+
orderDown?: string;
|
|
36
|
+
orderForward?: string;
|
|
37
|
+
orderBackward?: string;
|
|
38
|
+
orderFirst?: string;
|
|
39
|
+
orderLast?: string;
|
|
28
40
|
}
|
|
29
41
|
|
|
30
42
|
export default codegenNativeComponent<TextInputFocusWrapperNativeComponent>(
|
|
@@ -7,8 +7,38 @@ import { useFocusStyle } from '../../utils/useFocusStyle';
|
|
|
7
7
|
import { focusEventMapper } from '../../utils/focusEventMapper';
|
|
8
8
|
import { RenderPropComponent } from '../RenderPropComponent/RenderPropComponent';
|
|
9
9
|
import { useGroupIdentifierContext } from '../../context/GroupIdentifierContext';
|
|
10
|
+
import { useOrderFocusGroup } from '../../context/OrderFocusContext';
|
|
10
11
|
import { blurMap, focusMap } from './KeyboardExtendedInput.consts';
|
|
12
|
+
import { LockFocusEnum } from '../../types/BaseKeyboardView';
|
|
11
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
var BITS = /*#__PURE__*/function (BITS) {
|
|
15
|
+
BITS[BITS["BIT_01"] = 1] = "BIT_01";
|
|
16
|
+
BITS[BITS["BIT_02"] = 2] = "BIT_02";
|
|
17
|
+
BITS[BITS["BIT_03"] = 4] = "BIT_03";
|
|
18
|
+
BITS[BITS["BIT_04"] = 8] = "BIT_04";
|
|
19
|
+
BITS[BITS["BIT_05"] = 16] = "BIT_05";
|
|
20
|
+
BITS[BITS["BIT_06"] = 32] = "BIT_06";
|
|
21
|
+
BITS[BITS["BIT_07"] = 64] = "BIT_07";
|
|
22
|
+
BITS[BITS["BIT_08"] = 128] = "BIT_08";
|
|
23
|
+
BITS[BITS["BIT_09"] = 256] = "BIT_09";
|
|
24
|
+
BITS[BITS["BIT_10"] = 512] = "BIT_10";
|
|
25
|
+
return BITS;
|
|
26
|
+
}(BITS || {});
|
|
27
|
+
const focusBinaryValue = {
|
|
28
|
+
[LockFocusEnum.Up]: BITS.BIT_01,
|
|
29
|
+
[LockFocusEnum.Down]: BITS.BIT_02,
|
|
30
|
+
[LockFocusEnum.Left]: BITS.BIT_03,
|
|
31
|
+
[LockFocusEnum.Right]: BITS.BIT_04,
|
|
32
|
+
[LockFocusEnum.Forward]: BITS.BIT_05,
|
|
33
|
+
[LockFocusEnum.Backward]: BITS.BIT_06,
|
|
34
|
+
[LockFocusEnum.First]: BITS.BIT_09,
|
|
35
|
+
[LockFocusEnum.Last]: BITS.BIT_10
|
|
36
|
+
};
|
|
37
|
+
const mapLockFocus = values => {
|
|
38
|
+
if (!values || !values.length) return 0;
|
|
39
|
+
// eslint-disable-next-line no-bitwise
|
|
40
|
+
return values.reduce((acc, item) => acc | focusBinaryValue[item], 0);
|
|
41
|
+
};
|
|
12
42
|
const isIOS = Platform.OS === 'ios';
|
|
13
43
|
export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
14
44
|
focusType = 'default',
|
|
@@ -27,6 +57,16 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
27
57
|
onSubmitEditing,
|
|
28
58
|
submitBehavior,
|
|
29
59
|
groupIdentifier,
|
|
60
|
+
lockFocus,
|
|
61
|
+
orderGroup,
|
|
62
|
+
orderIndex,
|
|
63
|
+
orderId,
|
|
64
|
+
orderForward,
|
|
65
|
+
orderBackward,
|
|
66
|
+
orderLeft,
|
|
67
|
+
orderRight,
|
|
68
|
+
orderUp,
|
|
69
|
+
orderDown,
|
|
30
70
|
rejectResponderTermination,
|
|
31
71
|
selectionHandleColor,
|
|
32
72
|
cursorColor,
|
|
@@ -47,6 +87,7 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
47
87
|
tintType
|
|
48
88
|
});
|
|
49
89
|
const contextIdentifier = useGroupIdentifierContext();
|
|
90
|
+
const contextOrderGroup = useOrderFocusGroup();
|
|
50
91
|
const withHaloEffect = tintType === 'default' && haloEffect;
|
|
51
92
|
const nativeFocusHandler = useMemo(() => focusEventMapper(onFocusChangeHandler), [onFocusChangeHandler]);
|
|
52
93
|
const HoverComonent = useMemo(() => {
|
|
@@ -70,6 +111,16 @@ export const KeyboardExtendedInput = /*#__PURE__*/React.forwardRef(({
|
|
|
70
111
|
canBeFocused: canBeFocusable && focusable,
|
|
71
112
|
tintColor: isIOS ? tintColor : undefined,
|
|
72
113
|
groupIdentifier: groupIdentifier ?? contextIdentifier,
|
|
114
|
+
lockFocus: mapLockFocus(lockFocus),
|
|
115
|
+
orderGroup: orderGroup ?? contextOrderGroup,
|
|
116
|
+
orderIndex: orderIndex,
|
|
117
|
+
orderId: orderId,
|
|
118
|
+
orderForward: orderForward,
|
|
119
|
+
orderBackward: orderBackward,
|
|
120
|
+
orderLeft: orderLeft,
|
|
121
|
+
orderRight: orderRight,
|
|
122
|
+
orderUp: orderUp,
|
|
123
|
+
orderDown: orderDown,
|
|
73
124
|
children: [/*#__PURE__*/_jsx(TextInput, {
|
|
74
125
|
ref: ref,
|
|
75
126
|
editable: canBeFocusable && focusable,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","useMemo","View","TextInput","Platform","StyleSheet","TextInputFocusWrapperNative","useFocusStyle","focusEventMapper","RenderPropComponent","useGroupIdentifierContext","blurMap","focusMap","jsx","_jsx","jsxs","_jsxs","isIOS","OS","KeyboardExtendedInput","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","contextIdentifier","withHaloEffect","nativeFocusHandler","HoverComonent","styles","absolute","opacity","undefined","blurOnSubmit","multiline","onMultiplyTextSubmit","canBeFocused","children","editable","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEpE,SAASC,2BAA2B,QAAQ,kBAAkB;AAC9D,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,mBAAmB,QAAQ,4CAA4C;AAChF,SAASC,yBAAyB,QAAQ,sCAAsC;
|
|
1
|
+
{"version":3,"names":["React","useMemo","View","TextInput","Platform","StyleSheet","TextInputFocusWrapperNative","useFocusStyle","focusEventMapper","RenderPropComponent","useGroupIdentifierContext","useOrderFocusGroup","blurMap","focusMap","LockFocusEnum","jsx","_jsx","jsxs","_jsxs","BITS","focusBinaryValue","Up","BIT_01","Down","BIT_02","Left","BIT_03","Right","BIT_04","Forward","BIT_05","Backward","BIT_06","First","BIT_09","Last","BIT_10","mapLockFocus","values","length","reduce","acc","item","isIOS","OS","KeyboardExtendedInput","forwardRef","focusType","blurType","containerStyle","onFocusChange","focusStyle","style","haloEffect","canBeFocusable","focusable","containerFocusStyle","tintColor","tintType","FocusHoverComponent","onSubmitEditing","submitBehavior","groupIdentifier","lockFocus","orderGroup","orderIndex","orderId","orderForward","orderBackward","orderLeft","orderRight","orderUp","orderDown","rejectResponderTermination","selectionHandleColor","cursorColor","maxFontSizeMultiplier","props","ref","focused","containerFocusedStyle","componentFocusedStyle","onFocusChangeHandler","hoverColor","contextIdentifier","contextOrderGroup","withHaloEffect","nativeFocusHandler","HoverComonent","styles","absolute","opacity","undefined","blurOnSubmit","multiline","onMultiplyTextSubmit","canBeFocused","children","editable","render","create","position","top","left","right","bottom"],"sourceRoot":"../../../../src","sources":["components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"mappings":";;AAAA,OAAOA,KAAK,IAAIC,OAAO,QAAQ,OAAO;AACtC,SAASC,IAAI,EAAEC,SAAS,EAAEC,QAAQ,EAAEC,UAAU,QAAQ,cAAc;AAEpE,SAASC,2BAA2B,QAAQ,kBAAkB;AAC9D,SAASC,aAAa,QAAQ,2BAA2B;AACzD,SAASC,gBAAgB,QAAQ,8BAA8B;AAC/D,SAASC,mBAAmB,QAAQ,4CAA4C;AAChF,SAASC,yBAAyB,QAAQ,sCAAsC;AAChF,SAASC,kBAAkB,QAAQ,iCAAiC;AAEpE,SAASC,OAAO,EAAEC,QAAQ,QAAQ,gCAAgC;AAClE,SACEC,aAAa,QAER,8BAA8B;AAAC,SAAAC,GAAA,IAAAC,IAAA,EAAAC,IAAA,IAAAC,KAAA;AAAA,IAEjCC,IAAI,0BAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAAI;EAAJA,IAAI,CAAJA,IAA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B,EAAEA,qBAAqB,IAAIgB,SAAU;MAAA,GACtDf;IAAK,CACV,CAAC,EACDE,OAAO,IAAIS,aAAa,iBACvBxE,IAAA,CAACP,mBAAmB;MAAC0F,MAAM,EAAEX;IAAc,CAAE,CAC9C;EAAA,CAC0B,CAAC;AAElC,CACF,CAAC;AAED,MAAMC,MAAM,GAAGpF,UAAU,CAAC+F,MAAM,CAAC;EAC/BV,QAAQ,EAAE;IACRW,QAAQ,EAAE,UAAU;IACpBC,GAAG,EAAE,CAAC;IACNC,IAAI,EAAE,CAAC;IACPC,KAAK,EAAE,CAAC;IACRC,MAAM,EAAE;EACV,CAAC;EACDd,OAAO,EAAE;IACPA,OAAO,EAAE;EACX;AACF,CAAC,CAAC","ignoreList":[]}
|
|
@@ -25,6 +25,18 @@ export interface TextInputFocusWrapperNativeComponent extends ViewProps {
|
|
|
25
25
|
blurOnSubmit?: boolean;
|
|
26
26
|
multiline?: boolean;
|
|
27
27
|
groupIdentifier?: string;
|
|
28
|
+
lockFocus?: Int32;
|
|
29
|
+
orderGroup?: string;
|
|
30
|
+
orderIndex?: Int32;
|
|
31
|
+
orderId?: string;
|
|
32
|
+
orderLeft?: string;
|
|
33
|
+
orderRight?: string;
|
|
34
|
+
orderUp?: string;
|
|
35
|
+
orderDown?: string;
|
|
36
|
+
orderForward?: string;
|
|
37
|
+
orderBackward?: string;
|
|
38
|
+
orderFirst?: string;
|
|
39
|
+
orderLast?: string;
|
|
28
40
|
}
|
|
29
41
|
|
|
30
42
|
export default codegenNativeComponent<TextInputFocusWrapperNativeComponent>(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyboardExtendedInput.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAgDvC,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoI+klB,CAAC;;;;;;;;;;;;;;yLAdjnlB,CAAC"}
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import type { FocusStyle } from '../../types/FocusStyle';
|
|
|
3
3
|
import type { TintType } from '../../types/WithKeyboardFocus';
|
|
4
4
|
import { type RenderProp } from '../RenderPropComponent/RenderPropComponent';
|
|
5
5
|
import type { blurMap, focusMap } from './KeyboardExtendedInput.consts';
|
|
6
|
+
import type { LockFocusType } from '../../types/BaseKeyboardView';
|
|
6
7
|
export type ExtraKeyboardProps = {
|
|
7
8
|
focusType?: keyof typeof focusMap;
|
|
8
9
|
blurType?: keyof typeof blurMap;
|
|
@@ -18,6 +19,16 @@ export type ExtraKeyboardProps = {
|
|
|
18
19
|
FocusHoverComponent?: RenderProp;
|
|
19
20
|
submitBehavior?: string;
|
|
20
21
|
groupIdentifier?: string;
|
|
22
|
+
lockFocus?: LockFocusType[];
|
|
23
|
+
orderGroup?: string;
|
|
24
|
+
orderIndex?: number;
|
|
25
|
+
orderId?: string;
|
|
26
|
+
orderForward?: string;
|
|
27
|
+
orderBackward?: string;
|
|
28
|
+
orderLeft?: string;
|
|
29
|
+
orderRight?: string;
|
|
30
|
+
orderUp?: string;
|
|
31
|
+
orderDown?: string;
|
|
21
32
|
};
|
|
22
33
|
type IgnoreForCompatibility = 'rejectResponderTermination' | 'selectionHandleColor' | 'cursorColor' | 'maxFontSizeMultiplier';
|
|
23
34
|
type CompatibleInputProp<TextInputPropsType extends object, CompatibilityProp extends IgnoreForCompatibility> = CompatibilityProp extends keyof TextInputPropsType ? TextInputPropsType[CompatibilityProp] : CompatibilityProp extends keyof TextInputProps ? TextInputProps[CompatibilityProp] : never;
|
package/lib/typescript/src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeyboardExtendedInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"KeyboardExtendedInput.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/KeyboardExtendedInput/KeyboardExtendedInput.types.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,cAAc,EACnB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,UAAU,EAChB,MAAM,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,4CAA4C,CAAC;AAC7E,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,KA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BAAkB,GAClD,kBAAkB,CAAC,iBAAiB,CAAC,GACrC,iBAAiB,SAAS,MAAM,cAAc,GAC9C,cAAc,CAAC,iBAAiB,CAAC,GACjC,KAAK,CAAC;AAEV,KAAK,6BAA6B,CAChC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,IAAI,CAAC,kBAAkB,EAAE,sBAAsB,CAAC,GAAG;KACpD,iBAAiB,IAAI,sBAAsB,CAAC,CAAC,EAAE,mBAAmB,CACjE,kBAAkB,EAClB,iBAAiB,CAClB,GAAG,IAAI;CACT,CAAC;AAEF,MAAM,MAAM,6BAA6B,CACvC,kBAAkB,SAAS,MAAM,GAAG,cAAc,IAChD,6BAA6B,CAAC,kBAAkB,CAAC,GAAG,kBAAkB,CAAC;AAE3E,MAAM,MAAM,kBAAkB,GAAG,6BAA6B,CAAC,cAAc,CAAC,CAAC"}
|
|
@@ -17,6 +17,18 @@ export interface TextInputFocusWrapperNativeComponent extends ViewProps {
|
|
|
17
17
|
blurOnSubmit?: boolean;
|
|
18
18
|
multiline?: boolean;
|
|
19
19
|
groupIdentifier?: string;
|
|
20
|
+
lockFocus?: Int32;
|
|
21
|
+
orderGroup?: string;
|
|
22
|
+
orderIndex?: Int32;
|
|
23
|
+
orderId?: string;
|
|
24
|
+
orderLeft?: string;
|
|
25
|
+
orderRight?: string;
|
|
26
|
+
orderUp?: string;
|
|
27
|
+
orderDown?: string;
|
|
28
|
+
orderForward?: string;
|
|
29
|
+
orderBackward?: string;
|
|
30
|
+
orderFirst?: string;
|
|
31
|
+
orderLast?: string;
|
|
20
32
|
}
|
|
21
33
|
declare const _default: (props: Omit<TextInputFocusWrapperNativeComponent, "ref"> & {
|
|
22
34
|
ref?: React.Ref<import("react-native").HostInstance>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TextInputFocusWrapperNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpec/TextInputFocusWrapperNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAInD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,oCAAqC,SAAQ,SAAS;IACrE,aAAa,CAAC,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAChD,oBAAoB,CAAC,EAAE,kBAAkB,CAAC,kBAAkB,CAAC,CAAC;IAC9D,SAAS,CAAC,EAAE,KAAK,CAAC;IAClB,QAAQ,CAAC,EAAE,KAAK,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,SAAS,CAAC,EAAE,UAAU,CAAC;IACvB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"TextInputFocusWrapperNativeComponent.d.ts","sourceRoot":"","sources":["../../../../src/nativeSpec/TextInputFocusWrapperNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1D,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAInD,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,QAAQ,CAAC;IACxC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC,CAAC;AAEH,MAAM,WAAW,oCAAqC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