@wavemaker/app-rn-runtime 11.11.0-rc.6124 → 11.11.1-rc.210

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.
Files changed (51) hide show
  1. package/components/advanced/carousel/carousel.component.js +4 -2
  2. package/components/advanced/carousel/carousel.component.js.map +1 -1
  3. package/components/basic/label/label.component.js +7 -5
  4. package/components/basic/label/label.component.js.map +1 -1
  5. package/components/basic/progress-bar/progress-bar.component.js +2 -2
  6. package/components/basic/progress-bar/progress-bar.component.js.map +1 -1
  7. package/components/data/form/form-field/form-field.component.js +1 -0
  8. package/components/data/form/form-field/form-field.component.js.map +1 -1
  9. package/components/data/list/list.component.js +43 -9
  10. package/components/data/list/list.component.js.map +1 -1
  11. package/components/data/list/list.props.js +1 -0
  12. package/components/data/list/list.props.js.map +1 -1
  13. package/components/dialogs/dialogcontent/dialogcontent.component.js +5 -1
  14. package/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -1
  15. package/components/input/baseinput/baseinput.component.js +6 -2
  16. package/components/input/baseinput/baseinput.component.js.map +1 -1
  17. package/components/input/calendar/views/month-view.js +15 -2
  18. package/components/input/calendar/views/month-view.js.map +1 -1
  19. package/components/input/epoch/base-datetime.component.js +5 -0
  20. package/components/input/epoch/base-datetime.component.js.map +1 -1
  21. package/components/input/textarea/textarea.component.js +5 -3
  22. package/components/input/textarea/textarea.component.js.map +1 -1
  23. package/components/input/textarea/textarea.props.js +1 -0
  24. package/components/input/textarea/textarea.props.js.map +1 -1
  25. package/components/input/textarea/textarea.styles.js +7 -0
  26. package/components/input/textarea/textarea.styles.js.map +1 -1
  27. package/components/page/left-panel/left-panel.component.js +27 -10
  28. package/components/page/left-panel/left-panel.component.js.map +1 -1
  29. package/components/page/page-content/page-content.component.js +3 -2
  30. package/components/page/page-content/page-content.component.js.map +1 -1
  31. package/components/page/page-content/page-content.props.js +2 -0
  32. package/components/page/page-content/page-content.props.js.map +1 -1
  33. package/components/page/page.component.js +10 -2
  34. package/components/page/page.component.js.map +1 -1
  35. package/components/page/page.props.js +1 -0
  36. package/components/page/page.props.js.map +1 -1
  37. package/core/base.component.js +1 -0
  38. package/core/base.component.js.map +1 -1
  39. package/core/utils.js +266 -22
  40. package/core/utils.js.map +1 -1
  41. package/gestures/carousel-swipe.animation.js +225 -0
  42. package/gestures/carousel-swipe.animation.js.map +1 -0
  43. package/npm-shrinkwrap.json +1498 -1923
  44. package/package-lock.json +1498 -1923
  45. package/package.json +2 -2
  46. package/runtime/App.js +7 -0
  47. package/runtime/App.js.map +1 -1
  48. package/runtime/base-prefab.component.js +4 -0
  49. package/runtime/base-prefab.component.js.map +1 -1
  50. package/styles/theme.variables.js +2 -0
  51. package/styles/theme.variables.js.map +1 -1
@@ -0,0 +1,225 @@
1
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
3
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
4
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5
+ import { isNil } from 'lodash-es';
6
+ import React from 'react';
7
+ import { Animated, Easing, View as RNView, PanResponder } from 'react-native';
8
+ import injector from '@wavemaker/app-rn-runtime/core/injector';
9
+ export class Handlers {
10
+ constructor() {
11
+ _defineProperty(this, "bounds", null);
12
+ _defineProperty(this, "onAnimation", () => {});
13
+ _defineProperty(this, "onLower", () => {});
14
+ _defineProperty(this, "onUpper", () => {});
15
+ _defineProperty(this, "computePhase", null);
16
+ }
17
+ }
18
+ export class Props {
19
+ constructor() {
20
+ _defineProperty(this, "threshold", 5);
21
+ _defineProperty(this, "direction", 'horizontal');
22
+ _defineProperty(this, "handlers", {});
23
+ _defineProperty(this, "style", {});
24
+ _defineProperty(this, "children", void 0);
25
+ _defineProperty(this, "enableGestures", void 0);
26
+ _defineProperty(this, "slideWidth", '100%');
27
+ _defineProperty(this, "slideMinWidth", undefined);
28
+ _defineProperty(this, "slidesLayout", []);
29
+ _defineProperty(this, "activeIndex", null);
30
+ }
31
+ }
32
+ export class State {
33
+ constructor() {
34
+ _defineProperty(this, "threshold", 5);
35
+ _defineProperty(this, "isHorizontal", false);
36
+ _defineProperty(this, "bounds", {});
37
+ _defineProperty(this, "maxPosition", Number.MAX_VALUE);
38
+ }
39
+ }
40
+ export class View extends React.Component {
41
+ constructor(props) {
42
+ super(props);
43
+ _defineProperty(this, "position", new Animated.Value(0));
44
+ _defineProperty(this, "animationPhase", new Animated.Value(0));
45
+ _defineProperty(this, "i18nService", injector.I18nService.get());
46
+ _defineProperty(this, "childrenLayout", []);
47
+ _defineProperty(this, "viewLayout", null);
48
+ _defineProperty(this, "panResponder", null);
49
+ _defineProperty(this, "shouldEnablePanResponder", (dx, dy) => {
50
+ const gestureEnableThreshold = 30;
51
+ const shouldEnable = (this.props.direction === 'horizontal' ? Math.abs(dx) > Math.abs(dy) : Math.abs(dx) < Math.abs(dy)) && (this.props.direction === 'horizontal' ? Math.abs(dx) > gestureEnableThreshold : Math.abs(dy) > gestureEnableThreshold);
52
+ return this.props.enableGestures && shouldEnable;
53
+ });
54
+ _defineProperty(this, "onChange", e => {
55
+ var _this$props$handlers, _this$props$handlers2;
56
+ const bounds = ((_this$props$handlers = this.props.handlers) === null || _this$props$handlers === void 0 ? void 0 : _this$props$handlers.bounds) && ((_this$props$handlers2 = this.props.handlers) === null || _this$props$handlers2 === void 0 ? void 0 : _this$props$handlers2.bounds(e)) || {};
57
+ const d = this.state.isHorizontal ? e.dx : e.dy;
58
+ let phase = this.computePhase((bounds === null || bounds === void 0 ? void 0 : bounds.center) || 0);
59
+ if (d && d < 0 && !isNil(bounds.center) && !isNil(bounds.lower) && bounds.center !== bounds.lower) {
60
+ phase += d / (bounds.center - bounds.lower) || 0;
61
+ } else if (d && d > 0 && !isNil(bounds.center) && !isNil(bounds.upper) && bounds.center !== bounds.upper) {
62
+ phase += d / (bounds.upper - bounds.center) || 0;
63
+ }
64
+ this.animationPhase.setValue(phase);
65
+ this.position.setValue((this.isRTL() ? -(bounds === null || bounds === void 0 ? void 0 : bounds.center) : (bounds === null || bounds === void 0 ? void 0 : bounds.center) || 0) + d);
66
+ });
67
+ _defineProperty(this, "onEnd", e => {
68
+ var _this$props$handlers3, _this$props$handlers4;
69
+ ((_this$props$handlers3 = this.props.handlers) === null || _this$props$handlers3 === void 0 ? void 0 : _this$props$handlers3.onAnimation) && ((_this$props$handlers4 = this.props.handlers) === null || _this$props$handlers4 === void 0 ? void 0 : _this$props$handlers4.onAnimation(e));
70
+ if (e.dx < 0) {
71
+ this.isRTL() ? this.goToLower(e) : this.goToUpper(e);
72
+ } else if (e.dx > 0) {
73
+ this.isRTL() ? this.goToUpper(e) : this.goToLower(e);
74
+ }
75
+ });
76
+ this.state = {
77
+ isHorizontal: props.direction === 'horizontal',
78
+ threshold: props.threshold || 49,
79
+ bounds: {}
80
+ };
81
+ var touchStart = {
82
+ x: 0,
83
+ y: 0,
84
+ active: false
85
+ };
86
+ this.panResponder = PanResponder.create({
87
+ onStartShouldSetPanResponder: (evt, gestureState) => {
88
+ return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);
89
+ },
90
+ onStartShouldSetPanResponderCapture: (evt, gestureState) => {
91
+ return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);
92
+ },
93
+ onMoveShouldSetPanResponder: (evt, gestureState) => {
94
+ return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);
95
+ },
96
+ onMoveShouldSetPanResponderCapture: (evt, gestureState) => {
97
+ return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);
98
+ },
99
+ onPanResponderMove: (evt, gestureState) => {
100
+ this.onChange(gestureState);
101
+ },
102
+ onPanResponderRelease: (evt, gestureState) => {
103
+ if (this.props.direction === 'horizontal' && (gestureState.dx > this.state.threshold || gestureState.dx < -this.state.threshold)) {
104
+ this.onEnd(gestureState);
105
+ }
106
+ if (this.props.direction === 'vertical' && (gestureState.dy > this.state.threshold || gestureState.dy < -this.state.threshold)) {
107
+ this.onEnd(gestureState);
108
+ }
109
+ if (!(gestureState.dy > this.state.threshold || gestureState.dy < -this.state.threshold) && !(gestureState.dx > this.state.threshold || gestureState.dx < -this.state.threshold)) {
110
+ if (this.props.activeIndex) {
111
+ this.setPosition(this.props.slidesLayout[this.props.activeIndex]);
112
+ }
113
+ }
114
+ }
115
+ });
116
+ }
117
+ computeMaxScroll() {
118
+ var _this$viewLayout2;
119
+ let max = Number.MAX_VALUE;
120
+ const childrenWidth = this.childrenLayout.reduce((s, v) => s + v.width, 0);
121
+ const childrenHeight = this.childrenLayout.reduce((s, v) => s + v.height, 0);
122
+ if (this.props.direction === 'horizontal') {
123
+ var _this$viewLayout;
124
+ if (childrenWidth && (_this$viewLayout = this.viewLayout) !== null && _this$viewLayout !== void 0 && _this$viewLayout.width) {
125
+ max = childrenWidth - this.viewLayout.width;
126
+ }
127
+ } else if (childrenHeight && (_this$viewLayout2 = this.viewLayout) !== null && _this$viewLayout2 !== void 0 && _this$viewLayout2.height) {
128
+ max = childrenHeight - this.viewLayout.height;
129
+ }
130
+ this.setState({
131
+ maxPosition: -1 * max
132
+ });
133
+ }
134
+ setChildrenLayout(event, index) {
135
+ this.childrenLayout[index] = event.nativeEvent.layout;
136
+ this.computeMaxScroll();
137
+ }
138
+ setViewLayout(event) {
139
+ this.viewLayout = event.nativeEvent.layout;
140
+ this.computeMaxScroll();
141
+ }
142
+ computePhase(value) {
143
+ var _this$props$handlers5, _this$props$handlers6;
144
+ return ((_this$props$handlers5 = this.props.handlers) === null || _this$props$handlers5 === void 0 ? void 0 : _this$props$handlers5.computePhase) && ((_this$props$handlers6 = this.props.handlers) === null || _this$props$handlers6 === void 0 ? void 0 : _this$props$handlers6.computePhase(value)) || 0;
145
+ }
146
+ isRTL() {
147
+ return this.i18nService.isRTLLocale();
148
+ }
149
+ goToLower(e) {
150
+ var _this$props$handlers7, _this$props$handlers8;
151
+ const bounds = ((_this$props$handlers7 = this.props.handlers) === null || _this$props$handlers7 === void 0 ? void 0 : _this$props$handlers7.bounds) && ((_this$props$handlers8 = this.props.handlers) === null || _this$props$handlers8 === void 0 ? void 0 : _this$props$handlers8.bounds(e)) || {};
152
+ console.log("🚀 ~ View ~ goToLower ~ bounds:", bounds);
153
+ this.setPosition(bounds.lower).then(() => {
154
+ if (!isNil(bounds.lower) && bounds.center !== bounds.lower) {
155
+ var _this$props$handlers9, _this$props$handlers10;
156
+ ((_this$props$handlers9 = this.props.handlers) === null || _this$props$handlers9 === void 0 ? void 0 : _this$props$handlers9.onLower) && ((_this$props$handlers10 = this.props.handlers) === null || _this$props$handlers10 === void 0 ? void 0 : _this$props$handlers10.onLower(e));
157
+ }
158
+ });
159
+ }
160
+ goToUpper(e) {
161
+ var _this$props$handlers11, _this$props$handlers12;
162
+ const bounds = ((_this$props$handlers11 = this.props.handlers) === null || _this$props$handlers11 === void 0 ? void 0 : _this$props$handlers11.bounds) && ((_this$props$handlers12 = this.props.handlers) === null || _this$props$handlers12 === void 0 ? void 0 : _this$props$handlers12.bounds(e)) || {};
163
+ this.setPosition(bounds.upper).then(() => {
164
+ if (!isNil(bounds.upper) && bounds.center !== bounds.upper) {
165
+ var _this$props$handlers13, _this$props$handlers14;
166
+ ((_this$props$handlers13 = this.props.handlers) === null || _this$props$handlers13 === void 0 ? void 0 : _this$props$handlers13.onUpper) && ((_this$props$handlers14 = this.props.handlers) === null || _this$props$handlers14 === void 0 ? void 0 : _this$props$handlers14.onUpper(e));
167
+ }
168
+ });
169
+ }
170
+ setPosition(value) {
171
+ if (isNil(value)) {
172
+ return Promise.reject();
173
+ }
174
+ let position = isNaN(this.state.maxPosition) ? value : Math.max(this.state.maxPosition, value);
175
+ return new Promise(resolve => {
176
+ Animated.parallel([Animated.timing(this.animationPhase, {
177
+ useNativeDriver: true,
178
+ toValue: this.computePhase(value),
179
+ duration: 200,
180
+ easing: Easing.out(Easing.linear)
181
+ }), Animated.timing(this.position, {
182
+ useNativeDriver: true,
183
+ toValue: (this.isRTL() ? -1 : 1) * position,
184
+ duration: 200,
185
+ easing: Easing.out(Easing.linear)
186
+ })]).start(resolve);
187
+ });
188
+ }
189
+ render() {
190
+ const isHorizontal = this.props.direction === 'horizontal';
191
+ return (
192
+ /*#__PURE__*/
193
+ //@ts-ignore
194
+ React.createElement(RNView, _extends({
195
+ style: [isHorizontal ? {
196
+ flexDirection: 'row',
197
+ flexWrap: 'nowrap',
198
+ alignItems: 'center'
199
+ } : null, this.props.style],
200
+ onLayout: this.setViewLayout.bind(this)
201
+ }, this.panResponder.panHandlers), this.props.children.map((c, i) => {
202
+ var _this$props$style;
203
+ return /*#__PURE__*/React.createElement(Animated.View, {
204
+ onLayout: e => this.setChildrenLayout(e, i),
205
+ key: c.key,
206
+ style: [this.props.slideMinWidth ? {
207
+ minWidth: this.props.slideMinWidth
208
+ } : {
209
+ width: this.props.slideWidth
210
+ }, ((_this$props$style = this.props.style) === null || _this$props$style === void 0 ? void 0 : _this$props$style.height) === '100%' ? {
211
+ height: '100%'
212
+ } : null, {
213
+ transform: this.state.isHorizontal ? [{
214
+ translateX: this.position
215
+ }] : [{
216
+ translateY: this.position
217
+ }]
218
+ }]
219
+ }, c);
220
+ }))
221
+ );
222
+ }
223
+ }
224
+ _defineProperty(View, "defaultProps", new Props());
225
+ //# sourceMappingURL=carousel-swipe.animation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["isNil","React","Animated","Easing","View","RNView","PanResponder","injector","Handlers","constructor","_defineProperty","Props","undefined","State","Number","MAX_VALUE","Component","props","Value","I18nService","get","dx","dy","gestureEnableThreshold","shouldEnable","direction","Math","abs","enableGestures","e","_this$props$handlers","_this$props$handlers2","bounds","handlers","d","state","isHorizontal","phase","computePhase","center","lower","upper","animationPhase","setValue","position","isRTL","_this$props$handlers3","_this$props$handlers4","onAnimation","goToLower","goToUpper","threshold","touchStart","x","y","active","panResponder","create","onStartShouldSetPanResponder","evt","gestureState","shouldEnablePanResponder","onStartShouldSetPanResponderCapture","onMoveShouldSetPanResponder","onMoveShouldSetPanResponderCapture","onPanResponderMove","onChange","onPanResponderRelease","onEnd","activeIndex","setPosition","slidesLayout","computeMaxScroll","_this$viewLayout2","max","childrenWidth","childrenLayout","reduce","s","v","width","childrenHeight","height","_this$viewLayout","viewLayout","setState","maxPosition","setChildrenLayout","event","index","nativeEvent","layout","setViewLayout","value","_this$props$handlers5","_this$props$handlers6","i18nService","isRTLLocale","_this$props$handlers7","_this$props$handlers8","console","log","then","_this$props$handlers9","_this$props$handlers10","onLower","_this$props$handlers11","_this$props$handlers12","_this$props$handlers13","_this$props$handlers14","onUpper","Promise","reject","isNaN","resolve","parallel","timing","useNativeDriver","toValue","duration","easing","out","linear","start","render","createElement","_extends","style","flexDirection","flexWrap","alignItems","onLayout","bind","panHandlers","children","map","c","i","_this$props$style","key","slideMinWidth","minWidth","slideWidth","transform","translateX","translateY"],"sources":["carousel-swipe.animation.tsx"],"sourcesContent":["import { isNil } from 'lodash-es';\nimport React from 'react';\nimport { Animated, Easing, View as RNView, ViewStyle, LayoutChangeEvent, LayoutRectangle, DimensionValue, PanResponder } from 'react-native';\nimport { Gesture, GestureDetector, GestureUpdateEvent } from 'react-native-gesture-handler';\nimport { isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport injector from '@wavemaker/app-rn-runtime/core/injector';\n\nexport class Handlers {\n bounds?: (g: GestureUpdateEvent<any>) => Bounds = null as any;\n onAnimation?: (g: GestureUpdateEvent<any>) => any = () => { };\n onLower?: (g: GestureUpdateEvent<any>) => any = () => { };\n onUpper?: (g: GestureUpdateEvent<any>) => any = () => { };\n computePhase?: (value: number) => number = null as any;\n}\n\nexport interface Bounds {\n upper?: number;\n center?: number;\n lower?: number;\n}\n\nexport class Props {\n threshold?: number = 5;\n direction?: 'horizontal' | 'vertical' = 'horizontal';\n handlers?: Handlers = {} as any;\n style?: ViewStyle = {} as any;\n children: any;\n enableGestures: any;\n slideWidth?: DimensionValue = '100%';\n slideMinWidth?: DimensionValue = undefined;\n slidesLayout?: any = [];\n activeIndex?: number | null = null;\n}\n\nexport class State {\n threshold = 5;\n isHorizontal = false;\n bounds: Bounds = {} as any;\n maxPosition = Number.MAX_VALUE;\n}\n\nexport class View extends React.Component<Props, State> {\n\n static defaultProps = new Props();\n private position = new Animated.Value(0);\n public animationPhase = new Animated.Value(0);\n private i18nService = injector.I18nService.get();\n private childrenLayout: LayoutRectangle[] = [];\n private viewLayout: LayoutRectangle = null as any;\n private panResponder: any = null;\n\n constructor(props: Props) {\n super(props);\n this.state = {\n isHorizontal: props.direction === 'horizontal',\n threshold: props.threshold || 49,\n bounds: {} as any\n } as State;\n var touchStart = {\n x: 0,\n y: 0,\n active: false\n };\n\n this.panResponder = PanResponder.create({\n onStartShouldSetPanResponder: (evt, gestureState) => {\n return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);\n },\n onStartShouldSetPanResponderCapture: (evt, gestureState) => {\n return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);\n },\n onMoveShouldSetPanResponder: (evt, gestureState) => {\n return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);\n },\n onMoveShouldSetPanResponderCapture: (evt, gestureState) =>{\n return this.shouldEnablePanResponder(gestureState.dx, gestureState.dy);\n },\n onPanResponderMove: (evt, gestureState) => {\n this.onChange(gestureState)\n },\n onPanResponderRelease: (evt, gestureState) => {\n if (\n this.props.direction === 'horizontal' && \n (gestureState.dx > this.state.threshold || gestureState.dx < -this.state.threshold)\n ) {\n this.onEnd(gestureState);\n }\n if (\n this.props.direction === 'vertical' && \n (gestureState.dy > this.state.threshold || gestureState.dy < -this.state.threshold)\n ) {\n this.onEnd(gestureState);\n }\n\n if (\n !(gestureState.dy > this.state.threshold || gestureState.dy < -this.state.threshold) && \n !(gestureState.dx > this.state.threshold || gestureState.dx < -this.state.threshold)\n ) {\n if (this.props.activeIndex) {\n this.setPosition(this.props.slidesLayout[this.props.activeIndex])\n }\n }\n }\n });\n\n }\n\n\n shouldEnablePanResponder = (dx: number, dy: number) => {\n const gestureEnableThreshold = 30;\n\n const shouldEnable = (this.props.direction === 'horizontal' ? Math.abs(dx) > Math.abs(dy) : Math.abs(dx) < Math.abs(dy)) &&\n (this.props.direction === 'horizontal' ? Math.abs(dx) > gestureEnableThreshold : Math.abs(dy) > gestureEnableThreshold)\n\n return this.props.enableGestures && shouldEnable;\n }\n\n onChange = (e: any) => {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n const d = (this.state.isHorizontal ? e.dx : e.dy);\n let phase = this.computePhase(bounds?.center || 0);\n if (d && d < 0 && !isNil(bounds.center) && !isNil(bounds.lower)\n && bounds.center !== bounds.lower) {\n phase += (d / (bounds.center - bounds.lower)) || 0;\n } else if (d && d > 0 && !isNil(bounds.center) && !isNil(bounds.upper)\n && bounds.center !== bounds.upper) {\n phase += (d / (bounds.upper - bounds.center)) || 0;\n }\n this.animationPhase.setValue(phase);\n this.position.setValue(\n (this.isRTL() ? -bounds?.center! : bounds?.center || 0) + d);\n }\n\n onEnd = (e: any) => {\n this.props.handlers?.onAnimation &&\n this.props.handlers?.onAnimation(e);\n if (e.dx < 0) {\n this.isRTL() ? this.goToLower(e) : this.goToUpper(e);\n } else if (e.dx > 0) {\n this.isRTL() ? this.goToUpper(e) : this.goToLower(e);\n }\n }\n\n computeMaxScroll() {\n let max = Number.MAX_VALUE;\n const childrenWidth = this.childrenLayout.reduce((s, v) => s + v.width, 0);\n const childrenHeight = this.childrenLayout.reduce((s, v) => s + v.height, 0);\n if (this.props.direction === 'horizontal') {\n if (childrenWidth && this.viewLayout?.width) {\n max = childrenWidth - this.viewLayout.width;\n }\n } else if (childrenHeight && this.viewLayout?.height) {\n max = childrenHeight - this.viewLayout.height;\n }\n this.setState({ maxPosition: -1 * max });\n }\n\n setChildrenLayout(event: LayoutChangeEvent, index: number) {\n this.childrenLayout[index] = event.nativeEvent.layout;\n this.computeMaxScroll();\n }\n\n setViewLayout(event: LayoutChangeEvent) {\n this.viewLayout = event.nativeEvent.layout;\n this.computeMaxScroll();\n }\n\n computePhase(value: number) {\n return (this.props.handlers?.computePhase &&\n this.props.handlers?.computePhase(value)) || 0;\n }\n\n isRTL() {\n return this.i18nService.isRTLLocale();\n }\n\n goToLower(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n console.log(\"🚀 ~ View ~ goToLower ~ bounds:\", bounds)\n this.setPosition(bounds.lower)\n .then(() => {\n if (!isNil(bounds.lower) && bounds.center !== bounds.lower) {\n this.props.handlers?.onLower &&\n this.props.handlers?.onLower(e);\n }\n });\n }\n\n goToUpper(e?: any) {\n const bounds = (this.props.handlers?.bounds && this.props.handlers?.bounds(e)) || {};\n this.setPosition(bounds.upper)\n .then(() => {\n if (!isNil(bounds.upper) && bounds.center !== bounds.upper) {\n this.props.handlers?.onUpper &&\n this.props.handlers?.onUpper(e);\n }\n });\n }\n\n setPosition(value: number | undefined) {\n if (isNil(value)) {\n return Promise.reject();\n }\n let position = isNaN(this.state.maxPosition) ? value : Math.max(this.state.maxPosition, value);\n return new Promise((resolve) => {\n Animated.parallel([\n Animated.timing(this.animationPhase, {\n useNativeDriver: true,\n toValue: this.computePhase(value),\n duration: 200,\n easing: Easing.out(Easing.linear)\n }),\n Animated.timing(this.position, {\n useNativeDriver: true,\n toValue: (this.isRTL() ? -1 : 1) * position,\n duration: 200,\n easing: Easing.out(Easing.linear)\n })\n ]).start(resolve);\n });\n }\n\n public render() {\n const isHorizontal = this.props.direction === 'horizontal';\n return (\n //@ts-ignore\n <RNView style={[\n isHorizontal ? {\n flexDirection: 'row',\n flexWrap: 'nowrap',\n alignItems: 'center',\n } : null,\n this.props.style]}\n onLayout={this.setViewLayout.bind(this)}\n {...this.panResponder.panHandlers}\n >\n {this.props.children.map((c: any, i: number) => {\n return (<Animated.View onLayout={(e) => this.setChildrenLayout(e, i)} key={c.key}\n style={[this.props.slideMinWidth ? {\n minWidth: this.props.slideMinWidth\n } : {\n width: this.props.slideWidth\n },\n this.props.style?.height === '100%' ? {\n height: '100%'\n } : null,\n {\n transform: this.state.isHorizontal ? [{\n translateX: this.position\n }] : [{\n translateY: this.position\n }]\n }\n ]}>\n {c}\n </Animated.View>);\n })}\n </RNView>\n );\n }\n\n}\n"],"mappings":";;;;AAAA,SAASA,KAAK,QAAQ,WAAW;AACjC,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,IAAIC,MAAM,EAAiEC,YAAY,QAAQ,cAAc;AAG5I,OAAOC,QAAQ,MAAM,yCAAyC;AAE9D,OAAO,MAAMC,QAAQ,CAAC;EAAAC,YAAA;IAAAC,eAAA,iBACgC,IAAI;IAAAA,eAAA,sBACF,MAAM,CAAE,CAAC;IAAAA,eAAA,kBACb,MAAM,CAAE,CAAC;IAAAA,eAAA,kBACT,MAAM,CAAE,CAAC;IAAAA,eAAA,uBACd,IAAI;EAAA;AACnD;AAQA,OAAO,MAAMC,KAAK,CAAC;EAAAF,YAAA;IAAAC,eAAA,oBACM,CAAC;IAAAA,eAAA,oBACkB,YAAY;IAAAA,eAAA,mBAC9B,CAAC,CAAC;IAAAA,eAAA,gBACJ,CAAC,CAAC;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,qBAGQ,MAAM;IAAAA,eAAA,wBACHE,SAAS;IAAAF,eAAA,uBACrB,EAAE;IAAAA,eAAA,sBACO,IAAI;EAAA;AACtC;AAEA,OAAO,MAAMG,KAAK,CAA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