@wavemaker-ai/app-rn-runtime 1.0.0-rc.324 → 1.0.0-rc.328

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 (172) hide show
  1. package/components/advanced/offline-banner/offline-banner.component.js +68 -0
  2. package/components/advanced/offline-banner/offline-banner.component.js.map +1 -0
  3. package/components/advanced/offline-banner/offline-banner.props.js +12 -0
  4. package/components/advanced/offline-banner/offline-banner.props.js.map +1 -0
  5. package/components/advanced/offline-banner/offline-banner.styles.js +99 -0
  6. package/components/advanced/offline-banner/offline-banner.styles.js.map +1 -0
  7. package/components/advanced/webview/webview.component.js +2 -2
  8. package/components/advanced/webview/webview.component.js.map +1 -1
  9. package/components/advanced/webview/webview.props.js +1 -1
  10. package/components/advanced/webview/webview.props.js.map +1 -1
  11. package/components/basic/bottomsheet/bottomsheet.component.js +156 -14
  12. package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -1
  13. package/components/basic/bottomsheet/bottomsheet.styles.js +0 -3
  14. package/components/basic/bottomsheet/bottomsheet.styles.js.map +1 -1
  15. package/components/basic/progress-circle/progress-circle.component.js +3 -1
  16. package/components/basic/progress-circle/progress-circle.component.js.map +1 -1
  17. package/components/chart/area-chart/area-chart.component.js +86 -93
  18. package/components/chart/area-chart/area-chart.component.js.map +1 -1
  19. package/components/chart/area-chart/area-chart.props.js +2 -0
  20. package/components/chart/area-chart/area-chart.props.js.map +1 -1
  21. package/components/chart/bar-chart/bar-chart.component.js +79 -97
  22. package/components/chart/bar-chart/bar-chart.component.js.map +1 -1
  23. package/components/chart/basechart.component.js +117 -96
  24. package/components/chart/basechart.component.js.map +1 -1
  25. package/components/chart/basechart.props.js +12 -0
  26. package/components/chart/basechart.props.js.map +1 -1
  27. package/components/chart/basechart.styles.js.map +1 -1
  28. package/components/chart/bubble-chart/bubble-chart.component.js +72 -70
  29. package/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
  30. package/components/chart/bubble-chart/bubble-chart.props.js +1 -0
  31. package/components/chart/bubble-chart/bubble-chart.props.js.map +1 -1
  32. package/components/chart/line-chart/line-chart.component.js +105 -79
  33. package/components/chart/line-chart/line-chart.component.js.map +1 -1
  34. package/components/chart/pie-chart/pie-chart.component.js +70 -166
  35. package/components/chart/pie-chart/pie-chart.component.js.map +1 -1
  36. package/components/chart/pie-chart/pie-chart.props.js +1 -0
  37. package/components/chart/pie-chart/pie-chart.props.js.map +1 -1
  38. package/components/container/accordion/accordionpane/accordionpane.component.js +6 -2
  39. package/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -1
  40. package/components/container/container.component.js +27 -1
  41. package/components/container/container.component.js.map +1 -1
  42. package/components/container/container.props.js +7 -0
  43. package/components/container/container.props.js.map +1 -1
  44. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +25 -1
  45. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -1
  46. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +1 -0
  47. package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -1
  48. package/components/container/tabs/tabheader/tabheader.component.js +5 -14
  49. package/components/container/tabs/tabheader/tabheader.component.js.map +1 -1
  50. package/components/container/tabs/tabheader/tabheader.props.js +0 -2
  51. package/components/container/tabs/tabheader/tabheader.props.js.map +1 -1
  52. package/components/container/tabs/tabheader/tabheader.styles.js +1 -43
  53. package/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
  54. package/components/container/tabs/tabpane/tabpane.component.js +6 -2
  55. package/components/container/tabs/tabpane/tabpane.component.js.map +1 -1
  56. package/components/container/tabs/tabs.component.js +2 -6
  57. package/components/container/tabs/tabs.component.js.map +1 -1
  58. package/components/container/tabs/tabs.props.js +0 -2
  59. package/components/container/tabs/tabs.props.js.map +1 -1
  60. package/components/container/wizard/wizardstep/wizardstep.component.js +28 -5
  61. package/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
  62. package/components/container/wizard/wizardstep/wizardstep.props.js +2 -0
  63. package/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
  64. package/components/data/form/form-field/form-field.component.js +1 -0
  65. package/components/data/form/form-field/form-field.component.js.map +1 -1
  66. package/components/data/form/form-field/form-field.props.js +1 -0
  67. package/components/data/form/form-field/form-field.props.js.map +1 -1
  68. package/components/data/list/list-template/list-template.component.js +3 -0
  69. package/components/data/list/list-template/list-template.component.js.map +1 -1
  70. package/components/data/list/list.component.js +6 -4
  71. package/components/data/list/list.component.js.map +1 -1
  72. package/components/data/list/list.styles.js +1 -14
  73. package/components/data/list/list.styles.js.map +1 -1
  74. package/components/input/baseinput/baseinput.component.js +7 -0
  75. package/components/input/baseinput/baseinput.component.js.map +1 -1
  76. package/components/input/calendar/calendar.component.js +4 -0
  77. package/components/input/calendar/calendar.component.js.map +1 -1
  78. package/components/input/calendar/views/month-view.js +8 -1
  79. package/components/input/calendar/views/month-view.js.map +1 -1
  80. package/components/input/checkboxset/checkboxset.component.js.map +1 -1
  81. package/components/input/checkboxset/checkboxset.styles.js.map +1 -1
  82. package/components/input/chips/chips.component.js +3 -4
  83. package/components/input/chips/chips.component.js.map +1 -1
  84. package/components/input/chips/chips.styles.js +1 -2
  85. package/components/input/chips/chips.styles.js.map +1 -1
  86. package/components/input/currency/currency.component.js +1 -0
  87. package/components/input/currency/currency.component.js.map +1 -1
  88. package/components/input/number/number.component.js +1 -0
  89. package/components/input/number/number.component.js.map +1 -1
  90. package/components/input/switch/switch.component.js +2 -16
  91. package/components/input/switch/switch.component.js.map +1 -1
  92. package/components/input/switch/switch.props.js +0 -1
  93. package/components/input/switch/switch.props.js.map +1 -1
  94. package/components/input/switch/switch.styles.js +0 -19
  95. package/components/input/switch/switch.styles.js.map +1 -1
  96. package/components/input/text/text.component.js +14 -3
  97. package/components/input/text/text.component.js.map +1 -1
  98. package/components/input/text/text.props.js +1 -0
  99. package/components/input/text/text.props.js.map +1 -1
  100. package/components/input/text/text.styles.js +3 -1
  101. package/components/input/text/text.styles.js.map +1 -1
  102. package/components/input/textarea/textarea.component.js +3 -2
  103. package/components/input/textarea/textarea.component.js.map +1 -1
  104. package/components/input/toggle/toggle.component.js +4 -13
  105. package/components/input/toggle/toggle.component.js.map +1 -1
  106. package/components/input/toggle/toggle.props.js +1 -3
  107. package/components/input/toggle/toggle.props.js.map +1 -1
  108. package/components/input/toggle/toggle.styles.js +4 -12
  109. package/components/input/toggle/toggle.styles.js.map +1 -1
  110. package/components/navigation/appnavbar/appnavbar.props.js +1 -1
  111. package/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
  112. package/components/page/page-content/page-content.component.js +3 -0
  113. package/components/page/page-content/page-content.component.js.map +1 -1
  114. package/components/page/page-content/page-content.props.js +2 -0
  115. package/components/page/page-content/page-content.props.js.map +1 -1
  116. package/components/page/page.component.js +95 -2
  117. package/components/page/page.component.js.map +1 -1
  118. package/components/page/page.props.js +3 -0
  119. package/components/page/page.props.js.map +1 -1
  120. package/components/page/tabbar/tabbar.component.js +3 -2
  121. package/components/page/tabbar/tabbar.component.js.map +1 -1
  122. package/components/page/tabbar/tabbar.props.js +1 -0
  123. package/components/page/tabbar/tabbar.props.js.map +1 -1
  124. package/components-prism/basic/search/search.component.js +8 -12
  125. package/components-prism/basic/search/search.component.js.map +1 -1
  126. package/components-prism/basic/search/search.props.js +1 -1
  127. package/components-prism/basic/search/search.props.js.map +1 -1
  128. package/components-prism/basic/search/search.styles.js +60 -25
  129. package/components-prism/basic/search/search.styles.js.map +1 -1
  130. package/core/AppConfig.js.map +1 -1
  131. package/core/accessibility.js +9 -0
  132. package/core/accessibility.js.map +1 -1
  133. package/core/auto-layout-host.component.js +8 -2
  134. package/core/auto-layout-host.component.js.map +1 -1
  135. package/core/auto-layout.utils.js +59 -0
  136. package/core/auto-layout.utils.js.map +1 -1
  137. package/core/base.component.js +22 -1
  138. package/core/base.component.js.map +1 -1
  139. package/core/components/floatinglabel.component.js +5 -2
  140. package/core/components/floatinglabel.component.js.map +1 -1
  141. package/core/components/textinput.component.js +3 -0
  142. package/core/components/textinput.component.js.map +1 -1
  143. package/core/network.service.js.map +1 -1
  144. package/core/tappable.component.js +109 -15
  145. package/core/tappable.component.js.map +1 -1
  146. package/npm-shrinkwrap.json +2835 -5858
  147. package/package-lock.json +2835 -5858
  148. package/package.json +25 -18
  149. package/runtime/base-fragment.component.js +7 -1
  150. package/runtime/base-fragment.component.js.map +1 -1
  151. package/runtime/base-page.component.js +24 -0
  152. package/runtime/base-page.component.js.map +1 -1
  153. package/runtime/base-partial.component.js.map +1 -1
  154. package/runtime/navigator/drawer.navigator.js +1 -0
  155. package/runtime/navigator/drawer.navigator.js.map +1 -1
  156. package/runtime/navigator/stack.navigator.js +16 -1
  157. package/runtime/navigator/stack.navigator.js.map +1 -1
  158. package/runtime/services/device/scan-service.js +12 -34
  159. package/runtime/services/device/scan-service.js.map +1 -1
  160. package/styles/theme.variables.js.map +1 -1
  161. package/variables/http.service.js +6 -1
  162. package/variables/http.service.js.map +1 -1
  163. package/variables/interceptor/intercept-context.impl.js +46 -0
  164. package/variables/interceptor/intercept-context.impl.js.map +1 -0
  165. package/variables/interceptor/interceptor.factory.js +78 -0
  166. package/variables/interceptor/interceptor.factory.js.map +1 -0
  167. package/variables/interceptor/persistent.storage.js +142 -0
  168. package/variables/interceptor/persistent.storage.js.map +1 -0
  169. package/variables/interceptor/service-variable-interceptor.js +52 -0
  170. package/variables/interceptor/service-variable-interceptor.js.map +1 -0
  171. package/variables/service-variable.js +109 -1
  172. package/variables/service-variable.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Platform","Animated","WmContainerProps","DEFAULT_CLASS","Tappable","Animatedview","PartialHost","PartialHostState","createSkeleton","StickyWrapperContext","SafeAreaInsetsContext","StickyContainer","getParentStyles","injector","isAutoLayout","checkAutoLayout","getContentContainerStyle","getDirectionStyle","getDimensionStyle","extractAutoLayoutProps","AutoLayoutHost","WmContainerState","constructor","args","_defineProperty","WmContainer","props","get","top","bottom","left","right","containerRef","createRef","stickyContainerOpacity","Value","subscribe","_event","sticky","setTimeout","getStickyHeaderTranslateY","getBackground","_showSkeleton","_background","getAutoLayoutProps","_this$parent","parent","state","renderSkeleton","showskeletonchildren","_this$props","dimensions","width","styles","root","undefined","height","skeletonStyles","skeleton","text","theme","createElement","style","opacity","_extends","getTestPropsForAction","target","disableTouchEffect","disabletoucheffect","content","renderContent","_this$appConfig","_this$containerRef","isEdgeToEdgeApp","appConfig","edgeToEdgeConfig","current","measure","_x","_y","_width","_height","px","py","_this$insets","topInsetsInYposition","OS","insets","context","stickyContainerTranslateY","value","updateState","stickyContainerVisibility","componentDidUpdate","_prevProps","prevState","timing","toValue","delay","useNativeDriver","start","renderStickyContent","positioningStyles","alProps","autoLayoutStyle","directionStyle","autoLayoutDimensionsInner","Fragment","component","backgroundColor","positionStyles","show","ref","renderWidget","autoLayoutDimensionsOuter","isSticky","Consumer","entryanimation","animation","animationdelay","onLayout","event","handleLayout","autoLayoutProps","shouldScroll","overflow","containerStyle","contentStyle","minWidth","onScroll","notify"],"sources":["container.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, View, ViewStyle, Platform, Animated } from 'react-native';\nimport WmContainerProps from './container.props';\nimport { DEFAULT_CLASS, WmContainerStyles } from './container.styles';\nimport { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker-ai/app-rn-runtime/components/basic/animatedview.component';\nimport { PartialHost, PartialHostState } from './partial-host.component';\nimport { createSkeleton } from '../basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '../basic/skeleton/skeleton.styles';\nimport { StickyWrapperContextType, StickyWrapperContext } from '@wavemaker-ai/app-rn-runtime/core/sticky-wrapper';\nimport { EdgeInsets, SafeAreaInsetsContext } from 'react-native-safe-area-context';\nimport { StickyContainer } from '@wavemaker-ai/app-rn-runtime/core/components/sticky-container.component';\nimport { getParentStyles } from '@wavemaker-ai/app-rn-runtime/core/components/sticky-container.styles';\nimport injector from '@wavemaker-ai/app-rn-runtime/core/injector';\nimport AppConfig from '@wavemaker-ai/app-rn-runtime/core/AppConfig';\nimport {\n isAutoLayout as checkAutoLayout,\n getContentContainerStyle,\n getDirectionStyle,\n getDimensionStyle,\n extractAutoLayoutProps,\n} from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\nimport { AutoLayoutHost } from '@wavemaker-ai/app-rn-runtime/core/auto-layout-host.component';\n\nexport class WmContainerState extends PartialHostState<WmContainerProps> {\n isPartialLoaded = false;\n stickyContainerVisibility = false;\n}\n\nexport default class WmContainer extends PartialHost<WmContainerProps, WmContainerState, WmContainerStyles> {\n static contextType = StickyWrapperContext;\n private containerRef: React.RefObject<View | null>;\n private stickyContainerOpacity: Animated.Value;\n private appConfig = injector.get<AppConfig>('APP_CONFIG');\n insets: EdgeInsets | null = {\n top: 0, bottom: 0, left: 0, right: 0\n };\n\n constructor(props: WmContainerProps) {\n super(props, DEFAULT_CLASS, new WmContainerProps(), new WmContainerState());\n this.containerRef = React.createRef();\n this.stickyContainerOpacity = new Animated.Value(1);\n\n this.subscribe('updateStickyHeaders', (_event: any) => {\n if(this.props.sticky){\n setTimeout(()=>{\n this.getStickyHeaderTranslateY();\n }, 500);\n }\n })\n }\n\n getBackground(): React.JSX.Element | null {\n return this._showSkeleton ? null : this._background\n }\n\n private getAutoLayoutProps() {\n return extractAutoLayoutProps(this.props, this.parent?.state?.props);\n }\n\n public renderSkeleton(props: WmContainerProps): React.ReactNode {\n if(!props.showskeletonchildren) {\n const dimensions = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n const skeletonStyles: WmSkeletonStyles = this.props?.styles?.skeleton || { root: {}, text: {} } as WmSkeletonStyles\n return createSkeleton(this.theme, skeletonStyles, {\n ...this.styles.root\n }, (<View style={[this.styles.root, { opacity: 0 }]}>\n <Tappable {...this.getTestPropsForAction()} target={this} styles={dimensions} disableTouchEffect={this.state.props.disabletoucheffect}>\n <View style={[dimensions as ViewStyle, this.styles.content]}>{this.renderContent(props)}</View>\n </Tappable>\n\n </View>))\n }\n return null;\n }\n\n public getStickyHeaderTranslateY(){\n const isEdgeToEdgeApp = !!this.appConfig?.edgeToEdgeConfig?.isEdgeToEdgeApp;\n this.containerRef?.current?.measure((_x = 0, _y = 0, _width = 0, _height = 0, px = 0, py = 0)=>{\n const topInsetsInYposition = (Platform.OS == 'ios' && !isEdgeToEdgeApp) ? (this.insets?.top || 0): 0\n if((this.context) && (this.context as StickyWrapperContextType).stickyContainerTranslateY) {\n (this.context as StickyWrapperContextType).stickyContainerTranslateY.value = py - topInsetsInYposition ;\n this.updateState({ stickyContainerVisibility: true} as WmContainerState);\n }\n })\n }\n\n componentDidUpdate(_prevProps: any, prevState: any) {\n if (prevState.stickyContainerVisibility !== this.state.stickyContainerVisibility) {\n Animated.timing(this.stickyContainerOpacity, {\n toValue: this.state.stickyContainerVisibility ? 0 : 1,\n delay: 500,\n useNativeDriver: true\n }).start();\n }\n }\n\n private renderStickyContent(props: WmContainerProps, dimensions: ViewStyle, styles: ViewStyle) {\n const { stickyContainerVisibility } = this.state;\n const { positioningStyles } = getParentStyles(this);\n const alProps = this.getAutoLayoutProps();\n const autoLayoutStyle = getContentContainerStyle(alProps);\n const directionStyle = getDirectionStyle(alProps);\n const autoLayoutDimensionsInner = getDimensionStyle(alProps, this.styles.root, true);\n const isAutoLayout = checkAutoLayout(alProps);\n\n return (\n <>\n {stickyContainerVisibility ? (\n <StickyContainer\n component={this}\n theme={this.theme}\n style={[\n this.styles.sticky,\n { backgroundColor: styles.backgroundColor },\n isAutoLayout ? directionStyle : {}\n ]}\n positionStyles={positioningStyles}\n show={props.show as boolean}\n >\n <View style={[isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle, { backgroundColor: styles.backgroundColor }, this.styles.content, isAutoLayout ? autoLayoutStyle : {}]}>\n {this.renderContent(props)}\n </View>\n </StickyContainer>\n ) : <></>}\n <Animated.View\n style={[\n isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle,\n { opacity: this.stickyContainerOpacity },\n this.styles.content,\n isAutoLayout ? autoLayoutStyle : {}\n ]}\n ref={this.containerRef}\n >\n {this.renderContent(props)}\n </Animated.View>\n </>\n );\n }\n\n renderWidget(props: WmContainerProps) {\n const alProps = this.getAutoLayoutProps();\n const autoLayoutStyle = getContentContainerStyle(alProps);\n const directionStyle = getDirectionStyle(alProps);\n const autoLayoutDimensionsInner = getDimensionStyle(alProps, this.styles.root, true);\n const autoLayoutDimensionsOuter = getDimensionStyle(alProps, this.styles.root);\n\n const dimensions: ViewStyle = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n\n const styles = this._showSkeleton ? {\n ...this.styles.root,\n ...this.styles.skeleton.root\n } : this.styles.root;\n\n if (props.sticky) {\n this.isSticky = true;\n }\n\n const isAutoLayout = checkAutoLayout(alProps);\n return (\n <SafeAreaInsetsContext.Consumer>\n {(insets = { top: 0, bottom: 0, left: 0, right: 0 }) => {\n this.insets = insets;\n return (\n <Animatedview\n entryanimation={props.animation}\n delay={props.animationdelay}\n style={[styles, isAutoLayout ? {...autoLayoutDimensionsOuter, ...directionStyle} : {}]}\n onLayout={(event: LayoutChangeEvent, ref: React.RefObject<View>) => {\n this.handleLayout(event, ref);\n }}\n >\n {this.getBackground()}\n <Tappable\n {...this.getTestPropsForAction()}\n target={this}\n styles={[isAutoLayout ? { ...autoLayoutDimensionsInner, ...directionStyle } : dimensions]}\n disableTouchEffect={this.state.props.disabletoucheffect}\n >\n {props.sticky ? (\n this.renderStickyContent(props, dimensions, styles)\n ) : (\n <AutoLayoutHost\n autoLayoutProps={alProps}\n shouldScroll={props.overflow === 'scroll'}\n containerStyle={isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle}\n contentStyle={[\n this.styles.content,\n isAutoLayout ? { ...directionStyle, ...autoLayoutStyle, minWidth: 0 } : {},\n ]}\n onScroll={(event) => this.notify('scroll', [event])}\n >\n {this.renderContent(props)}\n </AutoLayoutHost>\n )}\n </Tappable>\n </Animatedview>\n );\n }}\n </SafeAreaInsetsContext.Consumer>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA4BC,IAAI,EAAaC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACrF,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,SAASC,QAAQ,QAAQ,sDAAsD;AAC/E,SAASC,YAAY,QAAQ,sEAAsE;AACnG,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,0BAA0B;AACxE,SAASC,cAAc,QAAQ,sCAAsC;AAErE,SAAmCC,oBAAoB,QAAQ,kDAAkD;AACjH,SAAqBC,qBAAqB,QAAQ,gCAAgC;AAClF,SAASC,eAAe,QAAQ,yEAAyE;AACzG,SAASC,eAAe,QAAQ,sEAAsE;AACtG,OAAOC,QAAQ,MAAM,4CAA4C;AAEjE,SACEC,YAAY,IAAIC,eAAe,EAC/BC,wBAAwB,EACxBC,iBAAiB,EACjBC,iBAAiB,EACjBC,sBAAsB,QACjB,qDAAqD;AAC5D,SAASC,cAAc,QAAQ,8DAA8D;AAE7F,OAAO,MAAMC,gBAAgB,SAASd,gBAAgB,CAAmB;EAAAe,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,0BACrD,KAAK;IAAAA,eAAA,oCACK,KAAK;EAAA;AACnC;AAEA,eAAe,MAAMC,WAAW,SAASnB,WAAW,CAAwD;EAS1GgB,WAAWA,CAACI,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEvB,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,EAAE,IAAImB,gBAAgB,CAAC,CAAC,CAAC;IAACG,eAAA;IAAAA,eAAA;IAAAA,eAAA,oBAN1DX,QAAQ,CAACc,GAAG,CAAY,YAAY,CAAC;IAAAH,eAAA,iBAC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1E,MAAM,CAACgB,OAAO,EACnBvD,YAAY,GAAG;UAAE,GAAG2F,cAAc;UAAE,GAAGD,eAAe;UAAEwB,QAAQ,EAAE;QAAE,CAAC,GAAG,CAAC,CAAC,CAC1E;QACFC,QAAQ,EAAGR,KAAK,IAAK,IAAI,CAACS,MAAM,CAAC,QAAQ,EAAE,CAACT,KAAK,CAAC;MAAE,GAEnD,IAAI,CAACnD,aAAa,CAAC5C,KAAK,CACX,CAEZ,CACE,CAAC;IAEnB,CAC8B,CAAC;EAErC;AACF;AAACF,eAAA,CAnLoBC,WAAW,iBACThB,oBAAoB","ignoreList":[]}
1
+ {"version":3,"names":["React","View","Platform","Animated","WmContainerProps","DEFAULT_CLASS","Tappable","Animatedview","PartialHost","PartialHostState","createSkeleton","StickyWrapperContext","SafeAreaInsetsContext","StickyContainer","getParentStyles","injector","isAutoLayout","checkAutoLayout","getContentContainerStyle","getDirectionStyle","getDimensionStyle","extractAutoLayoutProps","AutoLayoutHost","WmContainerState","constructor","args","_defineProperty","WmContainer","props","createRef","get","top","bottom","left","right","event","_event$nativeEvent","currentY","nativeEvent","contentOffset","y","invokeEventCallback","proxy","_event$nativeEvent2","containerRef","stickyContainerOpacity","Value","subscribe","_event","sticky","setTimeout","getStickyHeaderTranslateY","getBackground","_showSkeleton","_background","getAutoLayoutProps","_this$parent","parent","state","hasOwnFillHugResolution","renderSkeleton","showskeletonchildren","_this$props","dimensions","width","styles","root","undefined","height","skeletonStyles","skeleton","text","theme","createElement","style","opacity","_extends","getTestPropsForAction","target","disableTouchEffect","disabletoucheffect","content","renderContent","_this$appConfig","_this$containerRef","isEdgeToEdgeApp","appConfig","edgeToEdgeConfig","current","measure","_x","_y","_width","_height","px","py","_this$insets","topInsetsInYposition","OS","insets","context","stickyContainerTranslateY","value","updateState","stickyContainerVisibility","componentDidUpdate","_prevProps","prevState","timing","toValue","delay","useNativeDriver","start","scrollViewRef","notify","renderStickyContent","positioningStyles","alProps","autoLayoutStyle","directionStyle","autoLayoutDimensionsInner","Fragment","component","backgroundColor","positionStyles","show","ref","renderWidget","autoLayoutDimensionsOuter","isSticky","Consumer","entryanimation","animation","animationdelay","onLayout","handleLayout","autoLayoutProps","shouldScroll","overflow","containerStyle","contentStyle","minWidth","onScroll","scrollEventThrottle","onScrollEndDrag","handleOnScrollEndDrag","onMomentumScrollEnd","handleOnMomentumScrollEnd"],"sources":["container.component.tsx"],"sourcesContent":["import React from 'react';\nimport { LayoutChangeEvent, View, ViewStyle, Platform, Animated } from 'react-native';\nimport WmContainerProps from './container.props';\nimport { DEFAULT_CLASS, WmContainerStyles } from './container.styles';\nimport { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';\nimport { Animatedview } from '@wavemaker-ai/app-rn-runtime/components/basic/animatedview.component';\nimport { PartialHost, PartialHostState } from './partial-host.component';\nimport { createSkeleton } from '../basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '../basic/skeleton/skeleton.styles';\nimport { StickyWrapperContextType, StickyWrapperContext } from '@wavemaker-ai/app-rn-runtime/core/sticky-wrapper';\nimport { EdgeInsets, SafeAreaInsetsContext } from 'react-native-safe-area-context';\nimport { StickyContainer } from '@wavemaker-ai/app-rn-runtime/core/components/sticky-container.component';\nimport { getParentStyles } from '@wavemaker-ai/app-rn-runtime/core/components/sticky-container.styles';\nimport injector from '@wavemaker-ai/app-rn-runtime/core/injector';\nimport AppConfig from '@wavemaker-ai/app-rn-runtime/core/AppConfig';\nimport {\n isAutoLayout as checkAutoLayout,\n getContentContainerStyle,\n getDirectionStyle,\n getDimensionStyle,\n extractAutoLayoutProps,\n} from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\nimport { AutoLayoutHost } from '@wavemaker-ai/app-rn-runtime/core/auto-layout-host.component';\nimport { ScrollView } from 'react-native-gesture-handler';\n\n\nexport class WmContainerState extends PartialHostState<WmContainerProps> {\n isPartialLoaded = false;\n stickyContainerVisibility = false;\n}\n\nexport default class WmContainer extends PartialHost<WmContainerProps, WmContainerState, WmContainerStyles> {\n static contextType = StickyWrapperContext;\n private containerRef: React.RefObject<View | null>;\n private scrollViewRef = React.createRef<ScrollView>();\n private stickyContainerOpacity: Animated.Value;\n private appConfig = injector.get<AppConfig>('APP_CONFIG');\n insets: EdgeInsets | null = {\n top: 0, bottom: 0, left: 0, right: 0\n };\n\n constructor(props: WmContainerProps) {\n super(props, DEFAULT_CLASS, new WmContainerProps(), new WmContainerState());\n this.containerRef = React.createRef();\n this.stickyContainerOpacity = new Animated.Value(1);\n\n this.subscribe('updateStickyHeaders', (_event: any) => {\n if(this.props.sticky){\n setTimeout(()=>{\n this.getStickyHeaderTranslateY();\n }, 500);\n }\n })\n }\n\n getBackground(): React.JSX.Element | null {\n return this._showSkeleton ? null : this._background\n }\n\n private getAutoLayoutProps() {\n return extractAutoLayoutProps(this.props, this.parent?.state?.props);\n }\n\n protected hasOwnFillHugResolution(): boolean {\n return checkAutoLayout(this.getAutoLayoutProps());\n }\n\n public renderSkeleton(props: WmContainerProps): React.ReactNode {\n if(!props.showskeletonchildren) {\n const dimensions = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n const skeletonStyles: WmSkeletonStyles = this.props?.styles?.skeleton || { root: {}, text: {} } as WmSkeletonStyles\n return createSkeleton(this.theme, skeletonStyles, {\n ...this.styles.root\n }, (<View style={[this.styles.root, { opacity: 0 }]}>\n <Tappable {...this.getTestPropsForAction()} target={this} styles={dimensions} disableTouchEffect={this.state.props.disabletoucheffect}>\n <View style={[dimensions as ViewStyle, this.styles.content]}>{this.renderContent(props)}</View>\n </Tappable>\n\n </View>))\n }\n return null;\n }\n\n public getStickyHeaderTranslateY(){\n const isEdgeToEdgeApp = !!this.appConfig?.edgeToEdgeConfig?.isEdgeToEdgeApp;\n this.containerRef?.current?.measure((_x = 0, _y = 0, _width = 0, _height = 0, px = 0, py = 0)=>{\n const topInsetsInYposition = (Platform.OS == 'ios' && !isEdgeToEdgeApp) ? (this.insets?.top || 0): 0\n if((this.context) && (this.context as StickyWrapperContextType).stickyContainerTranslateY) {\n (this.context as StickyWrapperContextType).stickyContainerTranslateY.value = py - topInsetsInYposition ;\n this.updateState({ stickyContainerVisibility: true} as WmContainerState);\n }\n })\n }\n private handleOnScrollEndDrag = (event: any) => {\n const currentY = event?.nativeEvent?.contentOffset?.y;\n if (currentY > 0) {\n this.invokeEventCallback('onScroll', [null, this.proxy]);\n }\n }\n\n private handleOnMomentumScrollEnd = (event: any) => {\n const currentY = event?.nativeEvent?.contentOffset?.y;\n if (currentY < 1) {\n this.invokeEventCallback('onScrolltotop', [null, this.proxy]);\n }\n }\n\n\n componentDidUpdate(_prevProps: any, prevState: any) {\n if (prevState.stickyContainerVisibility !== this.state.stickyContainerVisibility) {\n Animated.timing(this.stickyContainerOpacity, {\n toValue: this.state.stickyContainerVisibility ? 0 : 1,\n delay: 500,\n useNativeDriver: true\n }).start();\n }\n //emiting container wdiget scrollview ref value to bottom sheet widget(bottom sheet sticky header/footer feature)\n if (this.scrollViewRef.current) {\n this.notify('containerScrollViewReady', [this.scrollViewRef], true);\n }\n \n }\n\n private renderStickyContent(props: WmContainerProps, dimensions: ViewStyle, styles: ViewStyle) {\n const { stickyContainerVisibility } = this.state;\n const { positioningStyles } = getParentStyles(this);\n const alProps = this.getAutoLayoutProps();\n const autoLayoutStyle = getContentContainerStyle(alProps);\n const directionStyle = getDirectionStyle(alProps);\n const autoLayoutDimensionsInner = getDimensionStyle(alProps, this.styles.root, true);\n const isAutoLayout = checkAutoLayout(alProps);\n\n return (\n <>\n {stickyContainerVisibility ? (\n <StickyContainer\n component={this}\n theme={this.theme}\n style={[\n this.styles.sticky,\n { backgroundColor: styles.backgroundColor },\n isAutoLayout ? directionStyle : {}\n ]}\n positionStyles={positioningStyles}\n show={props.show as boolean}\n >\n <View style={[isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle, { backgroundColor: styles.backgroundColor }, this.styles.content, isAutoLayout ? autoLayoutStyle : {}]}>\n {this.renderContent(props)}\n </View>\n </StickyContainer>\n ) : <></>}\n <Animated.View\n style={[\n isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle,\n { opacity: this.stickyContainerOpacity },\n this.styles.content,\n isAutoLayout ? autoLayoutStyle : {}\n ]}\n ref={this.containerRef}\n >\n {this.renderContent(props)}\n </Animated.View>\n </>\n );\n }\n\n renderWidget(props: WmContainerProps) {\n const alProps = this.getAutoLayoutProps();\n const autoLayoutStyle = getContentContainerStyle(alProps);\n const directionStyle = getDirectionStyle(alProps);\n const autoLayoutDimensionsInner = getDimensionStyle(alProps, this.styles.root, true);\n const autoLayoutDimensionsOuter = getDimensionStyle(alProps, this.styles.root);\n\n const dimensions: ViewStyle = {\n width: this.styles.root.width ? '100%' : undefined,\n height: this.styles.root.height ? '100%' : undefined\n };\n\n const styles = this._showSkeleton ? {\n ...this.styles.root,\n ...this.styles.skeleton.root\n } : this.styles.root;\n\n if (props.sticky) {\n this.isSticky = true;\n }\n\n const isAutoLayout = checkAutoLayout(alProps);\n return (\n <SafeAreaInsetsContext.Consumer>\n {(insets = { top: 0, bottom: 0, left: 0, right: 0 }) => {\n this.insets = insets;\n return (\n <Animatedview\n entryanimation={props.animation}\n delay={props.animationdelay}\n style={[styles, isAutoLayout ? {...autoLayoutDimensionsOuter, ...directionStyle} : {}]}\n onLayout={(event: LayoutChangeEvent, ref: React.RefObject<View>) => {\n this.handleLayout(event, ref);\n }}\n >\n {this.getBackground()}\n <Tappable\n {...this.getTestPropsForAction()}\n target={this}\n styles={[isAutoLayout ? { ...autoLayoutDimensionsInner, ...directionStyle } : dimensions]}\n disableTouchEffect={this.state.props.disabletoucheffect}\n >\n {props.sticky ? (\n this.renderStickyContent(props, dimensions, styles)\n ) : (\n <AutoLayoutHost\n autoLayoutProps={alProps}\n shouldScroll={props.overflow === 'scroll'}\n containerStyle={isAutoLayout ? autoLayoutDimensionsInner : dimensions as ViewStyle}\n contentStyle={[\n this.styles.content,\n isAutoLayout ? { ...directionStyle, ...autoLayoutStyle, minWidth: 0 } : {},\n ]}\n onScroll={(event) => this.notify('scroll', [event])}\n scrollEventThrottle={48}\n ref={this.scrollViewRef}\n onScrollEndDrag={this.handleOnScrollEndDrag}\n onMomentumScrollEnd={this.handleOnMomentumScrollEnd}\n >\n {this.renderContent(props)}\n </AutoLayoutHost>\n )}\n </Tappable>\n </Animatedview>\n );\n }}\n </SafeAreaInsetsContext.Consumer>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAA4BC,IAAI,EAAaC,QAAQ,EAAEC,QAAQ,QAAQ,cAAc;AACrF,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,SAASC,QAAQ,QAAQ,sDAAsD;AAC/E,SAASC,YAAY,QAAQ,sEAAsE;AACnG,SAASC,WAAW,EAAEC,gBAAgB,QAAQ,0BAA0B;AACxE,SAASC,cAAc,QAAQ,sCAAsC;AAErE,SAAmCC,oBAAoB,QAAQ,kDAAkD;AACjH,SAAqBC,qBAAqB,QAAQ,gCAAgC;AAClF,SAASC,eAAe,QAAQ,yEAAyE;AACzG,SAASC,eAAe,QAAQ,sEAAsE;AACtG,OAAOC,QAAQ,MAAM,4CAA4C;AAEjE,SACEC,YAAY,IAAIC,eAAe,EAC/BC,wBAAwB,EACxBC,iBAAiB,EACjBC,iBAAiB,EACjBC,sBAAsB,QACjB,qDAAqD;AAC5D,SAASC,cAAc,QAAQ,8DAA8D;AAI7F,OAAO,MAAMC,gBAAgB,SAASd,gBAAgB,CAAmB;EAAAe,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,0BACrD,KAAK;IAAAA,eAAA,oCACK,KAAK;EAAA;AACnC;AAEA,eAAe,MAAMC,WAAW,SAASnB,WAAW,CAAwD;EAU1GgB,WAAWA,CAACI,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEvB,aAAa,EAAE,IAAID,g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B,GAAGzD,UAAwB;QACnF6E,YAAY,EAAE,CACZ,IAAI,CAAC3E,MAAM,CAACgB,OAAO,EACnBjE,YAAY,GAAG;UAAE,GAAGuG,cAAc;UAAE,GAAGD,eAAe;UAAEuB,QAAQ,EAAE;QAAE,CAAC,GAAG,CAAC,CAAC,CAC1E;QACFC,QAAQ,EAAG3G,KAAK,IAAK,IAAI,CAAC+E,MAAM,CAAC,QAAQ,EAAE,CAAC/E,KAAK,CAAC,CAAE;QACpD4G,mBAAmB,EAAE,EAAG;QACxBjB,GAAG,EAAE,IAAI,CAACb,aAAc;QACxB+B,eAAe,EAAE,IAAI,CAACC,qBAAsB;QAC5CC,mBAAmB,EAAE,IAAI,CAACC;MAA0B,GAEnD,IAAI,CAACjE,aAAa,CAACtD,KAAK,CACX,CAEZ,CACE,CAAC;IAEnB,CAC8B,CAAC;EAErC;AACF;AAACF,eAAA,CA/MoBC,WAAW,iBACThB,oBAAoB","ignoreList":[]}
@@ -12,6 +12,13 @@ class WmContainerProps extends PartialHostProps {
12
12
  _defineProperty(this, "sticky", false);
13
13
  _defineProperty(this, "stickyContainerVisibility", false);
14
14
  _defineProperty(this, "stickyContainerOpacity", void 0);
15
+ _defineProperty(this, "direction", void 0);
16
+ _defineProperty(this, "wrap", void 0);
17
+ _defineProperty(this, "alignment", void 0);
18
+ _defineProperty(this, "gap", void 0);
19
+ _defineProperty(this, "columngap", void 0);
20
+ _defineProperty(this, "parent-direction", void 0);
21
+ _defineProperty(this, "emittoparent", false);
15
22
  }
16
23
  }
17
24
  export default WmContainerProps;
@@ -1 +1 @@
1
- {"version":3,"names":["PartialHostProps","WmContainerProps","constructor","args","_defineProperty"],"sources":["container.props.ts"],"sourcesContent":["import { PartialHostProps } from './partial-host.component';\nimport { Animated } from 'react-native';\nimport { AutoLayoutProps } from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\n\ninterface WmContainerProps extends AutoLayoutProps {}\n\nclass WmContainerProps extends PartialHostProps {\n animation?: string = null as any;\n animationdelay?: number = null as any;\n onLoad?: Function;\n scrollable?: Boolean = false as any;\n sticky?: Boolean = false as boolean;\n stickyContainerVisibility?: Boolean = false;\n stickyContainerOpacity?: Animated.Value;\n}\nexport default WmContainerProps;\n"],"mappings":";;;AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAM3D,MAAMC,gBAAgB,SAASD,gBAAgB,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBACzB,IAAI;IAAAA,eAAA,yBACC,IAAI;IAAAA,eAAA;IAAAA,eAAA,qBAEP,KAAK;IAAAA,eAAA,iBACT,KAAK;IAAAA,eAAA,oCACc,KAAK;IAAAA,eAAA;EAAA;AAE7C;AACA,eAAeH,gBAAgB","ignoreList":[]}
1
+ {"version":3,"names":["PartialHostProps","WmContainerProps","constructor","args","_defineProperty"],"sources":["container.props.ts"],"sourcesContent":["import { PartialHostProps } from './partial-host.component';\nimport { Animated } from 'react-native';\nimport { AutoLayoutProps } from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\n\ninterface WmContainerProps extends AutoLayoutProps {}\n\nclass WmContainerProps extends PartialHostProps {\n animation?: string = null as any;\n animationdelay?: number = null as any;\n onLoad?: Function;\n scrollable?: Boolean = false as any;\n sticky?: Boolean = false as boolean;\n stickyContainerVisibility?: Boolean = false;\n stickyContainerOpacity?: Animated.Value;\n direction?: 'row' | 'column';\n wrap?: boolean;\n alignment?: string;\n gap?: number | string | 'auto';\n columngap?: number | string | 'auto';\n \"parent-direction\"?: string;\n emittoparent?: boolean = false;\n}\nexport default WmContainerProps;\n"],"mappings":";;;AAAA,SAASA,gBAAgB,QAAQ,0BAA0B;AAM3D,MAAMC,gBAAgB,SAASD,gBAAgB,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,oBACzB,IAAI;IAAAA,eAAA,yBACC,IAAI;IAAAA,eAAA;IAAAA,eAAA,qBAEP,KAAK;IAAAA,eAAA,iBACT,KAAK;IAAAA,eAAA,oCACc,KAAK;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA;IAAAA,eAAA,OAO3C,kBAAkB;IAAAA,eAAA,uBACO,KAAK;EAAA;AAChC;AACA,eAAeH,gBAAgB","ignoreList":[]}
@@ -1,17 +1,33 @@
1
+ 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; }
2
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
3
+ 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); }
1
4
  import React from 'react';
2
5
  import { View, Platform } from 'react-native';
3
6
  import { isNil } from 'lodash-es';
4
7
  import { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';
8
+ import { Gesture, GestureDetector } from 'react-native-gesture-handler';
5
9
  import WmLinearlayoutitemProps from './linearlayoutitem.props';
6
10
  import { DEFAULT_CLASS } from './linearlayoutitem.styles';
7
11
  export class WmLinearlayoutitemState extends BaseComponentState {}
8
12
  export default class WmLinearlayoutitem extends BaseComponent {
9
13
  constructor(props) {
10
14
  super(props, DEFAULT_CLASS, new WmLinearlayoutitemProps());
15
+ //linear layout item swipe up/down gesture logic
16
+ _defineProperty(this, "swipeGesture", void 0);
17
+ this.swipeGesture = Gesture.Pan().runOnJS(true).activeOffsetY([-8, 8]) // Only activates on vertical movement
18
+ .failOffsetX([-30, 30]) // Blocks horizontal swipes
19
+ .onEnd(event => {
20
+ // If we're here, it's definitely a vertical swipe
21
+ if (event.translationY < 0) {
22
+ this.invokeEventCallback('onSwipeup', [null, this]);
23
+ } else {
24
+ this.invokeEventCallback('onSwipedown', [null, this]);
25
+ }
26
+ });
11
27
  }
12
28
  renderWidget(props) {
13
29
  const direction = this.parent.state.props.direction;
14
- return /*#__PURE__*/React.createElement(View, {
30
+ const content = /*#__PURE__*/React.createElement(View, {
15
31
  style: {
16
32
  ...this.styles.root,
17
33
  flexGrow: props.flexgrow,
@@ -20,6 +36,14 @@ export default class WmLinearlayoutitem extends BaseComponent {
20
36
  },
21
37
  onLayout: event => this.handleLayout(event)
22
38
  }, this._background, props.children);
39
+
40
+ //Conditionally wrap with GestureDetector
41
+ if (props.enableswipe) {
42
+ return /*#__PURE__*/React.createElement(GestureDetector, {
43
+ gesture: this.swipeGesture
44
+ }, content);
45
+ }
46
+ return content;
23
47
  }
24
48
  }
25
49
  //# sourceMappingURL=linearlayoutitem.component.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["React","View","Platform","isNil","BaseComponent","BaseComponentState","WmLinearlayoutitemProps","DEFAULT_CLASS","WmLinearlayoutitemState","WmLinearlayoutitem","constructor","props","renderWidget","direction","parent","state","createElement","style","styles","root","flexGrow","flexgrow","flexShrink","flexshrink","OS","flexBasis","onLayout","event","handleLayout","_background","children"],"sources":["linearlayoutitem.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Platform } from 'react-native';\nimport { isNil } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nimport WmLinearlayout from '../linearlayout.component';\nimport WmLinearlayoutitemProps from './linearlayoutitem.props';\nimport { DEFAULT_CLASS, WmLinearlayoutitemStyles } from './linearlayoutitem.styles';\n\nexport class WmLinearlayoutitemState extends BaseComponentState<WmLinearlayoutitemProps> {}\n\nexport default class WmLinearlayoutitem extends BaseComponent<WmLinearlayoutitemProps, WmLinearlayoutitemState, WmLinearlayoutitemStyles> {\n\n constructor(props: WmLinearlayoutitemProps) {\n super(props, DEFAULT_CLASS, new WmLinearlayoutitemProps());\n }\n\n renderWidget(props: WmLinearlayoutitemProps) {\n const direction = (this.parent as WmLinearlayout).state.props.direction;\n return (\n <View\n style={{\n ...this.styles.root,\n flexGrow: props.flexgrow,\n flexShrink: isNil(props.flexshrink) ? Platform.OS == \"web\" ? props.flexgrow : 0 : props.flexshrink,\n flexBasis: (props.flexgrow && (direction === 'row' || direction === 'row-reverse') ? 0 : 'auto')\n } as any}\n onLayout={(event) => this.handleLayout(event)}\n >{this._background}{props.children}</View>);\n\n }\n}\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7C,SAASC,KAAK,QAAQ,WAAW;AACjC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AAGpG,OAAOC,uBAAuB,MAAM,0BAA0B;AAC9D,SAASC,aAAa,QAAkC,2BAA2B;AAEnF,OAAO,MAAMC,uBAAuB,SAASH,kBAAkB,CAA0B;AAEzF,eAAe,MAAMI,kBAAkB,SAASL,aAAa,CAA6E;EAExIM,WAAWA,CAACC,KAA8B,EAAE;IAC1C,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,uBAAuB,CAAC,CAAC,CAAC;EAC5D;EAEAM,YAAYA,CAACD,KAA8B,EAAE;IAC3C,MAAME,SAAS,GAAI,IAAI,CAACC,MAAM,CAAoBC,KAAK,CAACJ,KAAK,CAACE,SAAS;IACvE,oBACAb,KAAA,CAAAgB,aAAA,CAACf,IAAI;MACHgB,KAAK,EAAE;QACL,GAAG,IAAI,CAACC,MAAM,CAACC,IAAI;QACnBC,QAAQ,EAAET,KAAK,CAACU,QAAQ;QACxBC,UAAU,EAAEnB,KAAK,CAACQ,KAAK,CAACY,UAAU,CAAC,GAAGrB,QAAQ,CAACsB,EAAE,IAAI,KAAK,GAAGb,KAAK,CAACU,QAAQ,GAAG,CAAC,GAAGV,KAAK,CAACY,UAAU;QAClGE,SAAS,EAAId,KAAK,CAACU,QAAQ,KAAKR,SAAS,KAAK,KAAK,IAAIA,SAAS,KAAK,aAAa,CAAC,GAAG,CAAC,GAAG;MAC5F,CAAS;MACTa,QAAQ,EAAGC,KAAK,IAAK,IAAI,CAACC,YAAY,CAACD,KAAK;IAAE,GAC9C,IAAI,CAACE,WAAW,EAAElB,KAAK,CAACmB,QAAe,CAAC;EAE5C;AACF","ignoreList":[]}
1
+ {"version":3,"names":["React","View","Platform","isNil","BaseComponent","BaseComponentState","Gesture","GestureDetector","WmLinearlayoutitemProps","DEFAULT_CLASS","WmLinearlayoutitemState","WmLinearlayoutitem","constructor","props","_defineProperty","swipeGesture","Pan","runOnJS","activeOffsetY","failOffsetX","onEnd","event","translationY","invokeEventCallback","renderWidget","direction","parent","state","content","createElement","style","styles","root","flexGrow","flexgrow","flexShrink","flexshrink","OS","flexBasis","onLayout","handleLayout","_background","children","enableswipe","gesture"],"sources":["linearlayoutitem.component.tsx"],"sourcesContent":["import React from 'react';\nimport { View, Platform } from 'react-native';\nimport { isNil } from 'lodash-es';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport { Gesture, GestureDetector, GestureType } from 'react-native-gesture-handler';\n\nimport WmLinearlayout from '../linearlayout.component';\nimport WmLinearlayoutitemProps from './linearlayoutitem.props';\nimport { DEFAULT_CLASS, WmLinearlayoutitemStyles } from './linearlayoutitem.styles';\n\nexport class WmLinearlayoutitemState extends BaseComponentState<WmLinearlayoutitemProps> {}\n\nexport default class WmLinearlayoutitem extends BaseComponent<WmLinearlayoutitemProps, WmLinearlayoutitemState, WmLinearlayoutitemStyles> {\n\n private swipeGesture: GestureType;\n constructor(props: WmLinearlayoutitemProps) {\n super(props, DEFAULT_CLASS, new WmLinearlayoutitemProps());\n //linear layout item swipe up/down gesture logic\n this.swipeGesture = Gesture.Pan()\n .runOnJS(true)\n .activeOffsetY([-8, 8]) // Only activates on vertical movement\n .failOffsetX([-30, 30]) // Blocks horizontal swipes\n .onEnd((event) => {\n // If we're here, it's definitely a vertical swipe\n if (event.translationY < 0) {\n this.invokeEventCallback('onSwipeup', [null, this]);\n } else {\n this.invokeEventCallback('onSwipedown', [null, this]);\n }\n });\n }\n\n \n\n renderWidget(props: WmLinearlayoutitemProps) {\n const direction = (this.parent as WmLinearlayout).state.props.direction;\n\n const content = (\n <View \n style={{\n ...this.styles.root,\n flexGrow: props.flexgrow,\n flexShrink: isNil(props.flexshrink) ? Platform.OS == \"web\" ? props.flexgrow : 0 : props.flexshrink,\n flexBasis: (props.flexgrow && (direction === 'row' || direction === 'row-reverse') ? 0 : 'auto')\n } as any}\n onLayout={(event) => this.handleLayout(event)}\n >{this._background}{props.children}</View>); \n \n\n //Conditionally wrap with GestureDetector\n if (props.enableswipe) {\n return (\n <GestureDetector gesture={this.swipeGesture}>\n {content}\n </GestureDetector>\n );\n }\n \n return content;\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,IAAI,EAAEC,QAAQ,QAAQ,cAAc;AAC7C,SAASC,KAAK,QAAQ,WAAW;AACjC,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AACpG,SAASC,OAAO,EAAEC,eAAe,QAAqB,8BAA8B;AAGpF,OAAOC,uBAAuB,MAAM,0BAA0B;AAC9D,SAASC,aAAa,QAAkC,2BAA2B;AAEnF,OAAO,MAAMC,uBAAuB,SAASL,kBAAkB,CAA0B;AAEzF,eAAe,MAAMM,kBAAkB,SAASP,aAAa,CAA6E;EAGxIQ,WAAWA,CAACC,KAA8B,EAAE;IAC1C,KAAK,CAACA,KAAK,EAAEJ,aAAa,EAAE,IAAID,uBAAuB,CAAC,CAAC,CAAC;IAC1D;IAAAM,eAAA;IACA,IAAI,CAACC,YAAY,GAAGT,OAAO,CAACU,GAAG,CAAC,CAAC,CAC9BC,OAAO,CAAC,IAAI,CAAC,CACbC,aAAa,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAI;IAAA,CAC1BC,WAAW,CAAC,CAA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AOA,OAAO;EAChB;AACF","ignoreList":[]}
@@ -6,6 +6,7 @@ export default class WmLinearlayoutitemProps extends BaseProps {
6
6
  constructor(...args) {
7
7
  super(...args);
8
8
  _defineProperty(this, "children", []);
9
+ _defineProperty(this, "enableswipe", false);
9
10
  _defineProperty(this, "flexgrow", null);
10
11
  _defineProperty(this, "flexshrink", null);
11
12
  }
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmLinearlayoutitemProps","constructor","args","_defineProperty"],"sources":["linearlayoutitem.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport default class WmLinearlayoutitemProps extends BaseProps {\n children?: any[] = [];\n flexgrow: number = null as any;\n flexshrink: number = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAE5E,eAAe,MAAMC,uBAAuB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,mBACxC,EAAE;IAAAA,eAAA,mBACF,IAAI;IAAAA,eAAA,qBACF,IAAI;EAAA;AAC7B","ignoreList":[]}
1
+ {"version":3,"names":["BaseProps","WmLinearlayoutitemProps","constructor","args","_defineProperty"],"sources":["linearlayoutitem.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport default class WmLinearlayoutitemProps extends BaseProps {\n children?: any[] = [];\n enableswipe?: boolean = false;\n flexgrow: number = null as any;\n flexshrink: number = null as any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAE5E,eAAe,MAAMC,uBAAuB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,mBACxC,EAAE;IAAAA,eAAA,sBACG,KAAK;IAAAA,eAAA,mBACV,IAAI;IAAAA,eAAA,qBACF,IAAI;EAAA;AAC7B","ignoreList":[]}
@@ -72,9 +72,6 @@ export default class WmTabheader extends BaseComponent {
72
72
  const maxScrollPosition = 0;
73
73
  toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);
74
74
  toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);
75
- const headertype = this.state.props.headertype || 'icon-label';
76
- const iconposition = headertype === 'icon-label' ? this.state.props.iconposition || 'top' : this.state.props.iconposition;
77
- const indicatorTargetWidth = iconposition === 'left' || iconposition === 'right' ? toIndicatorWidth : toIndicatorWidth / 3;
78
75
  let positionIndicator = toIndicatorPosition - (100 - toIndicatorWidth) / 2;
79
76
  let position = this.isRTL ? -positionIndicator : positionIndicator;
80
77
  const positionX = this.scrollPosition(selectedTabIndex, totalWidth, toIndicatorPosition);
@@ -90,12 +87,12 @@ export default class WmTabheader extends BaseComponent {
90
87
  easing: Easing.linear
91
88
  }), Animated.timing(this.indicatorWidth, {
92
89
  useNativeDriver: true,
93
- toValue: indicatorTargetWidth / 100,
90
+ toValue: toIndicatorWidth / 100,
94
91
  duration: 200,
95
92
  easing: Easing.linear
96
93
  }), Animated.timing(this.reverseIndicatorWidth, {
97
94
  useNativeDriver: true,
98
- toValue: indicatorTargetWidth ? 100 / indicatorTargetWidth : 0,
95
+ toValue: toIndicatorWidth ? 100 / toIndicatorWidth : 0,
99
96
  duration: 200,
100
97
  easing: Easing.linear
101
98
  }), Animated.timing(this.indicatorPosition, {
@@ -149,12 +146,6 @@ export default class WmTabheader extends BaseComponent {
149
146
  }
150
147
  renderHeaderContent(props) {
151
148
  const arrowIndicator = this.styles.arrowIndicator;
152
- const headertype = props.headertype || 'icon-label';
153
- const variantClass = `${DEFAULT_CLASS}-${headertype}`;
154
- const variantStyles = this.theme.getStyle(variantClass);
155
- const iconposition = props.iconposition || 'top';
156
- const iconpositionClass = iconposition ? `${DEFAULT_CLASS}-iconposition-${iconposition}` : '';
157
- const iconpositionStyles = iconpositionClass ? this.theme.getStyle(iconpositionClass) : null;
158
149
  return /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(View, {
159
150
  style: this.styles.root
160
151
  }, this._background, props.data.map((header, i) => {
@@ -177,17 +168,17 @@ export default class WmTabheader extends BaseComponent {
177
168
  }), /*#__PURE__*/React.createElement(View, {
178
169
  onLayout: this.setHeaderPositon.bind(this, i)
179
170
  }, /*#__PURE__*/React.createElement(View, {
180
- style: [this.styles.header, variantStyles === null || variantStyles === void 0 ? void 0 : variantStyles.header, iconpositionStyles === null || iconpositionStyles === void 0 ? void 0 : iconpositionStyles.header, {
171
+ style: [this.styles.header, {
181
172
  flexGrow: undefined
182
173
  }, isSelected ? this.styles.activeHeader : null]
183
174
  }, /*#__PURE__*/React.createElement(WmIcon, {
184
175
  id: this.getTestId(i + 'icon'),
185
- styles: this.theme.mergeStyle({}, this.styles.headerIcon, variantStyles === null || variantStyles === void 0 ? void 0 : variantStyles.headerIcon, iconpositionStyles === null || iconpositionStyles === void 0 ? void 0 : iconpositionStyles.headerIcon, isSelected ? this.styles.activeHeaderIcon : null),
176
+ styles: this.theme.mergeStyle({}, this.styles.headerIcon, isSelected ? this.styles.activeHeaderIcon : null),
186
177
  iconclass: header.icon,
187
178
  accessible: false
188
179
  }), /*#__PURE__*/React.createElement(Text, _extends({
189
180
  numberOfLines: 1,
190
- style: [this.styles.headerText, variantStyles === null || variantStyles === void 0 ? void 0 : variantStyles.headerText, iconpositionStyles === null || iconpositionStyles === void 0 ? void 0 : iconpositionStyles.headerText, isSelected ? this.styles.activeHeaderText : null]
181
+ style: [this.styles.headerText, isSelected ? this.styles.activeHeaderText : null]
191
182
  }, this.getTestPropsForLabel(i + '_title')), header.title))));
192
183
  })), /*#__PURE__*/React.createElement(Animated.View, {
193
184
  style: [this.styles.activeIndicator, {
@@ -1 +1 @@
1
- {"version":3,"names":["React","createRef","Animated","Easing","Text","View","ScrollView","BaseComponent","BaseComponentState","WmTabheaderProps","DEFAULT_CLASS","Tappable","createSkeleton","BackgroundComponent","WmIcon","AccessibilityWidgetType","getAccessibilityProps","WmTabheaderState","WmTabheader","constructor","props","_defineProperty","Value","headerScrollPosition","addListener","value","headerScrollPositionValue","setHeaderPanelPositon","nativeEvent","headerPanelLayout","layout","forceUpdate","setHeaderPositon","index","headersLayout","selectedTabIndex","onTabSelection","state","onIndexChange","scrollPosition","totalWidth","toIndicatorPosition","_this$headersLayout$s","_this$headersLayout$s2","_this$headerPanelLayo","initialPosition","isRTL","baseWidth","elementWidth","width","positionX","setPosition","_this$headersLayout$s3","_this$headerPanelLayo2","_this$headerPanelLayo3","_this$listRef$current","toIndicatorWidth","toHeaderScrollPosition","data","length","forEach","p","i","minScrollPosition","maxScrollPosition","Math","max","min","headertype","iconposition","indicatorTargetWidth","positionIndicator","position","listRef","current","scrollTo","x","y","parallel","timing","useNativeDriver","toValue","duration","easing","linear","indicatorWidth","reverseIndicatorWidth","indicatorPosition","start","renderSkeleton","createElement","style","transform","translateX","onLayout","bind","styles","root","map","header","_this$styles$root","_this$styles$root2","_this$styles$activeHe","isSelected","onTap","key","flex","disableTouchEffect","disabletoucheffect","activeHeader","theme","borderRadius","height","activeHeaderText","fontSize","activeIndicator","scaleX","renderHeaderContent","arrowIndicator","variantClass","variantStyles","getStyle","iconpositionClass","iconpositionStyles","_background","accessibilityProps","TABS","selected","accessibilitylabel","hint","accessibilityrole","_extends","getTestPropsForAction","flexGrow","undefined","id","getTestId","mergeStyle","headerIcon","activeHeaderIcon","iconclass","icon","accessible","numberOfLines","headerText","getTestPropsForLabel","title","backgroundImage","image","backgroundPosition","size","backgroundSize","repeat","backgroundRepeat","resizeMode","backgroundResizeMode","arrowIndicatorDot","renderWidget","overflow","zIndex","getTestProps","event","handleLayout","shouldScroll","ref","horizontal","contentContainerStyle","showsHorizontalScrollIndicator","scrollEnabled","Fragment"],"sources":["tabheader.component.tsx"],"sourcesContent":["import React, { createRef } from 'react';\nimport { Animated, Easing, LayoutChangeEvent, LayoutRectangle, Text, View, ScrollView } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nimport WmTabheaderProps from './tabheader.props';\nimport { DEFAULT_CLASS, WmTabheaderStyles } from './tabheader.styles';\nimport { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';\nimport WmSkeleton, { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\nimport { BackgroundComponent } from '@wavemaker-ai/app-rn-runtime/styles/background.component';\nimport WmIcon from \"@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.component\";\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker-ai/app-rn-runtime/core/accessibility';\n\nexport class WmTabheaderState extends BaseComponentState<WmTabheaderProps> {\n}\n\nexport default class WmTabheader extends BaseComponent<WmTabheaderProps, WmTabheaderState, WmTabheaderStyles> {\n\n private headerPanelLayout: LayoutRectangle = null as any;\n private headersLayout: LayoutRectangle[] = [];\n private headerScrollPosition = new Animated.Value(0);\n private headerScrollPositionValue = 0;\n private indicatorPosition = new Animated.Value(0);\n private reverseIndicatorWidth = new Animated.Value(0);\n private indicatorWidth = new Animated.Value(0);\n private listRef: any = createRef();\n\n constructor(props: WmTabheaderProps) {\n super(props, DEFAULT_CLASS, new WmTabheaderProps(), new WmTabheaderState());\n this.headerScrollPosition.addListener(({value}) => this.headerScrollPositionValue = value);\n }\n\n setHeaderPanelPositon(nativeEvent: LayoutChangeEvent) {\n this.headerPanelLayout = nativeEvent.nativeEvent.layout;\n this.forceUpdate();\n }\n\n setHeaderPositon(index: number, nativeEvent: LayoutChangeEvent) {\n this.headersLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.props.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n onTabSelection(index: number) {\n if (this.state.props.selectedTabIndex != index) {\n this.state.props.onIndexChange && this.state.props.onIndexChange(index);\n }\n }\n\n scrollPosition(selectedTabIndex: number, totalWidth: number, toIndicatorPosition: number) {\n const initialPosition = this.isRTL ? totalWidth : 0;\n const baseWidth = this.isRTL ? totalWidth - toIndicatorPosition : toIndicatorPosition;\n const elementWidth = this.isRTL ? -1 * (this.headersLayout[selectedTabIndex]?.width/2) : this.headersLayout[selectedTabIndex]?.width/2\n const positionX = selectedTabIndex === 0 ? initialPosition :\n ((baseWidth + (elementWidth)) - (this.headerPanelLayout?.width || 0) / 2);\n\n return positionX\n }\n\n setPosition() {\n const selectedTabIndex = this.state.props.selectedTabIndex ? this.state.props.selectedTabIndex : 0\n let toIndicatorPosition = 0;\n let toIndicatorWidth = this.headersLayout[selectedTabIndex]?.width || 0;\n let toHeaderScrollPosition = this.headerScrollPositionValue;\n let totalWidth = 0;\n if (this.state.props.data.length !== this.headersLayout.length) {\n return;\n }\n this.headersLayout.forEach((p, i) => {\n if (i < selectedTabIndex) {\n toIndicatorPosition += p.width;\n }\n totalWidth += p.width;\n });\n toHeaderScrollPosition = -1 * (toIndicatorPosition - (this.headerPanelLayout?.width || 0) / 2 + toIndicatorWidth/ 2) ;\n const minScrollPosition = -1 * (totalWidth - (this.headerPanelLayout?.width || 0));\n const maxScrollPosition = 0;\n toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);\n toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);\n const headertype = this.state.props.headertype || 'icon-label';\n const iconposition =\n headertype === 'icon-label'\n ? (this.state.props.iconposition || 'top')\n : this.state.props.iconposition;\n const indicatorTargetWidth =\n iconposition === 'left' || iconposition === 'right'\n ? toIndicatorWidth\n : (toIndicatorWidth / 3);\n\n let positionIndicator = (toIndicatorPosition - (100 - toIndicatorWidth) / 2);\n let position = this.isRTL?-positionIndicator:positionIndicator;\n\n const positionX = this.scrollPosition(selectedTabIndex, totalWidth, toIndicatorPosition)\n\n this.listRef.current?.scrollTo({\n x: positionX,\n y: 0,\n Animated: true\n });\n\n Animated.parallel([\n Animated.timing(this.headerScrollPosition, {\n useNativeDriver: true,\n toValue: toHeaderScrollPosition,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorWidth, {\n useNativeDriver: true,\n toValue: indicatorTargetWidth / 100,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.reverseIndicatorWidth, {\n useNativeDriver: true,\n toValue: indicatorTargetWidth ? 100 / indicatorTargetWidth : 0,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorPosition, {\n useNativeDriver: true,\n toValue: position,\n duration: 200,\n easing: Easing.linear\n })\n ]).start();\n }\n\n public renderSkeleton(props: WmTabheaderProps){\n return(\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this.props.data.map((header ,i) => {\n const isSelected = i === this.props.selectedTabIndex;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)} key={header.key} styles={{flex: 1}} disableTouchEffect={this.state.props.disabletoucheffect}>\n <View onLayout={this.setHeaderPositon.bind(this, i)} style={[\n this.styles.header,\n isSelected ? this.styles.activeHeader : null]}>\n {\n createSkeleton(this.theme, { root: { borderRadius: 4 }} as WmSkeletonStyles, {\n ...this.styles.root,\n width: this.styles.root?.width || \"80%\",\n height: this.styles.root?.height || this.styles.activeHeaderText?.fontSize || 16\n })\n }\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}></Animated.View>\n </Animated.View>\n\n )\n }\n\n public renderHeaderContent(props: WmTabheaderProps){\n const arrowIndicator = this.styles.arrowIndicator as any;\n const headertype = props.headertype || 'icon-label';\n const variantClass = `${DEFAULT_CLASS}-${headertype}`;\n const variantStyles = this.theme.getStyle(variantClass) as any;\n const iconposition = props.iconposition || 'top';\n const iconpositionClass = iconposition ? `${DEFAULT_CLASS}-iconposition-${iconposition}` : '';\n const iconpositionStyles = iconpositionClass ? (this.theme.getStyle(iconpositionClass) as any) : null;\n return (\n <View>\n <View style={this.styles.root}>\n {this._background}\n {props.data.map((header ,i) => {\n const isSelected = i === props.selectedTabIndex ;\n const accessibilityProps = getAccessibilityProps(AccessibilityWidgetType.TABS, {\n selected: isSelected,\n accessibilitylabel: props.accessibilityProps[i].accessibilitylabel,\n hint: props.accessibilityProps[i].hint,\n accessibilityrole: props.accessibilityProps[i].accessibilityrole,\n });\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)}\n {...this.getTestPropsForAction(i +'')}\n key={header.key}\n disableTouchEffect={this.state.props.disabletoucheffect}\n styles={this.styles.header.flexGrow ? {flexGrow: this.styles.header.flexGrow} : null} accessibilityProps={accessibilityProps}>\n <View onLayout={this.setHeaderPositon.bind(this, i)}>\n <View style={[\n this.styles.header,\n variantStyles?.header,\n iconpositionStyles?.header,\n {flexGrow: undefined},\n isSelected ? this.styles.activeHeader : null]}>\n <WmIcon\n id={this.getTestId(i + 'icon')}\n styles={this.theme.mergeStyle(\n {},\n this.styles.headerIcon,\n variantStyles?.headerIcon,\n iconpositionStyles?.headerIcon,\n isSelected ? this.styles.activeHeaderIcon : null\n )}\n iconclass={header.icon}\n accessible={false}></WmIcon>\n <Text numberOfLines={1}\n style={[\n this.styles.headerText,\n variantStyles?.headerText,\n iconpositionStyles?.headerText,\n isSelected ? this.styles.activeHeaderText : null\n ]}\n {...this.getTestPropsForLabel(i + '_title')}\n >{header.title}</Text>\n </View>\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}>\n <Animated.View style={[{\n transform: [{\n scaleX: this.reverseIndicatorWidth\n }]\n },\n this.styles.arrowIndicator\n ]}>\n {\n arrowIndicator.backgroundImage ? (\n <BackgroundComponent\n image={arrowIndicator.backgroundImage}\n position={arrowIndicator.backgroundPosition}\n size={arrowIndicator.backgroundSize}\n repeat={arrowIndicator.backgroundRepeat}\n resizeMode={arrowIndicator.backgroundResizeMode}\n style={{borderRadius: this.styles.root.borderRadius}}\n ></BackgroundComponent>\n ) : null }\n <View style={this.styles.arrowIndicatorDot}></View>\n </Animated.View>\n </Animated.View>\n </View>)\n }\n\n renderWidget(props: WmTabheaderProps) {\n this.setPosition();\n return (\n <View\n style={{overflow: 'hidden', zIndex: 16}}\n {...this.getTestProps('tabheader')}\n onLayout={(event) => this.handleLayout(event)}\n >\n {props.shouldScroll ?\n <ScrollView\n ref={this.listRef}\n horizontal={true}\n onLayout={this.setHeaderPanelPositon.bind(this)}\n contentContainerStyle={{width: '100%'}}\n showsHorizontalScrollIndicator={false}\n scrollEnabled={props.shouldScroll}\n >\n {this.renderHeaderContent(props)}\n </ScrollView> : <>\n {this.renderHeaderContent(props)}\n </>\n }\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,QAAQ,EAAEC,MAAM,EAAsCC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC3G,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AAEpG,OAAOC,gBAAgB,MAAM,mBAAmB;AAChD,SAASC,aAAa,QAA2B,oBAAoB;AACrE,SAASC,QAAQ,QAAQ,sDAAsD;AAC/E,SAAqBC,cAAc,QAAQ,2EAA2E;AAEtH,SAASC,mBAAmB,QAAQ,0DAA0D;AAC9F,OAAOC,MAAM,MAAM,mEAAmE;AACtF,SAASC,uBAAuB,EAAEC,qBAAqB,QAAQ,iDAAiD;AAEhH,OAAO,MAAMC,gBAAgB,SAAST,kBAAkB,CAAmB;AAG3E,eAAe,MAAMU,WAAW,SAASX,aAAa,CAAwD;EAW5GY,WAAWA,CAACC,KAAuB,EAAE;IACnC,KAAK,CAACA,KAAK,EAAEV,aAAa,EAAE,IAAID,gBAAgB,CAAC,CAAC,EAAE,IAAIQ,gBAAgB,CAAC,C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AA,CAAA0F,aAAA,CAACrF,IAAI;MAACsF,KAAK,EAAE,IAAI,CAACK,MAAM,CAAC4D;IAAkB,CAAO,CACrC,CACF,CACT,CAAC;EACb;EAEAC,YAAYA,CAACzI,KAAuB,EAAE;IACpC,IAAI,CAAC+B,WAAW,CAAC,CAAC;IAClB,oBACEnD,KAAA,CAAA0F,aAAA,CAACrF,IAAI,EAAA8H,QAAA;MACHxC,KAAK,EAAE;QAACmE,QAAQ,EAAE,QAAQ;QAAEC,MAAM,EAAE;MAAE;IAAE,GACpC,IAAI,CAACC,YAAY,CAAC,WAAW,CAAC;MAClClE,QAAQ,EAAGmE,KAAK,IAAK,IAAI,CAACC,YAAY,CAACD,KAAK;IAAE,IAEhD7I,KAAK,CAAC+I,YAAY,gBAClBnK,KAAA,CAAA0F,aAAA,CAACpF,UAAU;MACT8J,GAAG,EAAE,IAAI,CAAC3F,OAAQ;MAClB4F,UAAU,EAAE,IAAK;MACjBvE,QAAQ,EAAE,IAAI,CAACnE,qBAAqB,CAACoE,IAAI,CAAC,IAAI,CAAE;MAChDuE,qBAAqB,EAAE;QAACrH,KAAK,EAAE;MAAM,CAAE;MACvCsH,8BAA8B,EAAE,KAAM;MACtCC,aAAa,EAAEpJ,KAAK,CAAC+I;IAAa,GAEpC,IAAI,CAAC9C,mBAAmB,CAACjG,KAAK,CAClB,CAAC,gBAAGpB,KAAA,CAAA0F,aAAA,CAAA1F,KAAA,CAAAyK,QAAA,QACf,IAAI,CAACpD,mBAAmB,CAACjG,KAAK,CAC7B,CAEI,CAAC;EAEX;AACF","ignoreList":[]}
1
+ {"version":3,"names":["React","createRef","Animated","Easing","Text","View","ScrollView","BaseComponent","BaseComponentState","WmTabheaderProps","DEFAULT_CLASS","Tappable","createSkeleton","BackgroundComponent","WmIcon","AccessibilityWidgetType","getAccessibilityProps","WmTabheaderState","WmTabheader","constructor","props","_defineProperty","Value","headerScrollPosition","addListener","value","headerScrollPositionValue","setHeaderPanelPositon","nativeEvent","headerPanelLayout","layout","forceUpdate","setHeaderPositon","index","headersLayout","selectedTabIndex","onTabSelection","state","onIndexChange","scrollPosition","totalWidth","toIndicatorPosition","_this$headersLayout$s","_this$headersLayout$s2","_this$headerPanelLayo","initialPosition","isRTL","baseWidth","elementWidth","width","positionX","setPosition","_this$headersLayout$s3","_this$headerPanelLayo2","_this$headerPanelLayo3","_this$listRef$current","toIndicatorWidth","toHeaderScrollPosition","data","length","forEach","p","i","minScrollPosition","maxScrollPosition","Math","max","min","positionIndicator","position","listRef","current","scrollTo","x","y","parallel","timing","useNativeDriver","toValue","duration","easing","linear","indicatorWidth","reverseIndicatorWidth","indicatorPosition","start","renderSkeleton","createElement","style","transform","translateX","onLayout","bind","styles","root","map","header","_this$styles$root","_this$styles$root2","_this$styles$activeHe","isSelected","onTap","key","flex","disableTouchEffect","disabletoucheffect","activeHeader","theme","borderRadius","height","activeHeaderText","fontSize","activeIndicator","scaleX","renderHeaderContent","arrowIndicator","_background","accessibilityProps","TABS","selected","accessibilitylabel","hint","accessibilityrole","_extends","getTestPropsForAction","flexGrow","undefined","id","getTestId","mergeStyle","headerIcon","activeHeaderIcon","iconclass","icon","accessible","numberOfLines","headerText","getTestPropsForLabel","title","backgroundImage","image","backgroundPosition","size","backgroundSize","repeat","backgroundRepeat","resizeMode","backgroundResizeMode","arrowIndicatorDot","renderWidget","overflow","zIndex","getTestProps","event","handleLayout","shouldScroll","ref","horizontal","contentContainerStyle","showsHorizontalScrollIndicator","scrollEnabled","Fragment"],"sources":["tabheader.component.tsx"],"sourcesContent":["import React, { createRef } from 'react';\nimport { Animated, Easing, LayoutChangeEvent, LayoutRectangle, Text, View, ScrollView } from 'react-native';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nimport WmTabheaderProps from './tabheader.props';\nimport { DEFAULT_CLASS, WmTabheaderStyles } from './tabheader.styles';\nimport { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';\nimport WmSkeleton, { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\nimport { BackgroundComponent } from '@wavemaker-ai/app-rn-runtime/styles/background.component';\nimport WmIcon from \"@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.component\";\nimport { AccessibilityWidgetType, getAccessibilityProps } from '@wavemaker-ai/app-rn-runtime/core/accessibility';\n\nexport class WmTabheaderState extends BaseComponentState<WmTabheaderProps> {\n}\n\nexport default class WmTabheader extends BaseComponent<WmTabheaderProps, WmTabheaderState, WmTabheaderStyles> {\n\n private headerPanelLayout: LayoutRectangle = null as any;\n private headersLayout: LayoutRectangle[] = [];\n private headerScrollPosition = new Animated.Value(0);\n private headerScrollPositionValue = 0;\n private indicatorPosition = new Animated.Value(0);\n private reverseIndicatorWidth = new Animated.Value(0);\n private indicatorWidth = new Animated.Value(0);\n private listRef: any = createRef();\n\n constructor(props: WmTabheaderProps) {\n super(props, DEFAULT_CLASS, new WmTabheaderProps(), new WmTabheaderState());\n this.headerScrollPosition.addListener(({value}) => this.headerScrollPositionValue = value);\n }\n\n setHeaderPanelPositon(nativeEvent: LayoutChangeEvent) {\n this.headerPanelLayout = nativeEvent.nativeEvent.layout;\n this.forceUpdate();\n }\n\n setHeaderPositon(index: number, nativeEvent: LayoutChangeEvent) {\n this.headersLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.props.selectedTabIndex) {\n this.forceUpdate();\n }\n }\n\n onTabSelection(index: number) {\n if (this.state.props.selectedTabIndex != index) {\n this.state.props.onIndexChange && this.state.props.onIndexChange(index);\n }\n }\n\n scrollPosition(selectedTabIndex: number, totalWidth: number, toIndicatorPosition: number) {\n const initialPosition = this.isRTL ? totalWidth : 0;\n const baseWidth = this.isRTL ? totalWidth - toIndicatorPosition : toIndicatorPosition;\n const elementWidth = this.isRTL ? -1 * (this.headersLayout[selectedTabIndex]?.width/2) : this.headersLayout[selectedTabIndex]?.width/2\n const positionX = selectedTabIndex === 0 ? initialPosition :\n ((baseWidth + (elementWidth)) - (this.headerPanelLayout?.width || 0) / 2);\n\n return positionX\n }\n\n setPosition() {\n const selectedTabIndex = this.state.props.selectedTabIndex ? this.state.props.selectedTabIndex : 0\n let toIndicatorPosition = 0;\n let toIndicatorWidth = this.headersLayout[selectedTabIndex]?.width || 0;\n let toHeaderScrollPosition = this.headerScrollPositionValue;\n let totalWidth = 0;\n if (this.state.props.data.length !== this.headersLayout.length) {\n return;\n }\n this.headersLayout.forEach((p, i) => {\n if (i < selectedTabIndex) {\n toIndicatorPosition += p.width;\n }\n totalWidth += p.width;\n });\n toHeaderScrollPosition = -1 * (toIndicatorPosition - (this.headerPanelLayout?.width || 0) / 2 + toIndicatorWidth/ 2) ;\n const minScrollPosition = -1 * (totalWidth - (this.headerPanelLayout?.width || 0));\n const maxScrollPosition = 0;\n toHeaderScrollPosition = Math.max(minScrollPosition, toHeaderScrollPosition);\n toHeaderScrollPosition = Math.min(maxScrollPosition, toHeaderScrollPosition);\n let positionIndicator = (toIndicatorPosition - (100 - toIndicatorWidth) / 2);\n let position = this.isRTL?-positionIndicator:positionIndicator;\n\n const positionX = this.scrollPosition(selectedTabIndex, totalWidth, toIndicatorPosition)\n\n this.listRef.current?.scrollTo({\n x: positionX,\n y: 0,\n Animated: true\n });\n\n Animated.parallel([\n Animated.timing(this.headerScrollPosition, {\n useNativeDriver: true,\n toValue: toHeaderScrollPosition,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorWidth, {\n useNativeDriver: true,\n toValue: toIndicatorWidth / 100,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.reverseIndicatorWidth, {\n useNativeDriver: true,\n toValue: toIndicatorWidth ? 100 / toIndicatorWidth : 0,\n duration: 200,\n easing: Easing.linear\n }),\n Animated.timing(this.indicatorPosition, {\n useNativeDriver: true,\n toValue: position,\n duration: 200,\n easing: Easing.linear\n })\n ]).start();\n }\n\n public renderSkeleton(props: WmTabheaderProps){\n return(\n <Animated.View style={{\n transform: [{\n translateX: this.headerScrollPosition\n }]\n }}\n onLayout={this.setHeaderPanelPositon.bind(this)}>\n <View style={this.styles.root}>\n {this.props.data.map((header ,i) => {\n const isSelected = i === this.props.selectedTabIndex;\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)} key={header.key} styles={{flex: 1}} disableTouchEffect={this.state.props.disabletoucheffect}>\n <View onLayout={this.setHeaderPositon.bind(this, i)} style={[\n this.styles.header,\n isSelected ? this.styles.activeHeader : null]}>\n {\n createSkeleton(this.theme, { root: { borderRadius: 4 }} as WmSkeletonStyles, {\n ...this.styles.root,\n width: this.styles.root?.width || \"80%\",\n height: this.styles.root?.height || this.styles.activeHeaderText?.fontSize || 16\n })\n }\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}></Animated.View>\n </Animated.View>\n\n )\n }\n\n public renderHeaderContent(props: WmTabheaderProps){\n const arrowIndicator = this.styles.arrowIndicator as any;\n return (\n <View>\n <View style={this.styles.root}>\n {this._background}\n {props.data.map((header ,i) => {\n const isSelected = i === props.selectedTabIndex ;\n const accessibilityProps = getAccessibilityProps(AccessibilityWidgetType.TABS, {\n selected: isSelected,\n accessibilitylabel: props.accessibilityProps[i].accessibilitylabel,\n hint: props.accessibilityProps[i].hint,\n accessibilityrole: props.accessibilityProps[i].accessibilityrole,\n });\n return (\n <Tappable onTap={this.onTabSelection.bind(this, i)}\n {...this.getTestPropsForAction(i +'')}\n key={header.key}\n disableTouchEffect={this.state.props.disabletoucheffect}\n styles={this.styles.header.flexGrow ? {flexGrow: this.styles.header.flexGrow} : null} accessibilityProps={accessibilityProps}>\n <View onLayout={this.setHeaderPositon.bind(this, i)}>\n <View style={[\n this.styles.header,\n {flexGrow: undefined},\n isSelected ? this.styles.activeHeader : null]}>\n <WmIcon\n id={this.getTestId(i + 'icon')}\n styles={this.theme.mergeStyle({}, this.styles.headerIcon, isSelected ? this.styles.activeHeaderIcon : null)}\n iconclass={header.icon}\n accessible={false}></WmIcon>\n <Text numberOfLines={1} style={[\n this.styles.headerText,\n isSelected ? this.styles.activeHeaderText : null]}\n {...this.getTestPropsForLabel(i + '_title')}\n >{header.title}</Text>\n </View>\n </View>\n </Tappable>\n );\n })}\n </View>\n <Animated.View style={[this.styles.activeIndicator, {\n transform: [{\n translateX: this.indicatorPosition\n }, {\n scaleX: this.indicatorWidth\n }]\n }]}>\n <Animated.View style={[{\n transform: [{\n scaleX: this.reverseIndicatorWidth\n }]\n },\n this.styles.arrowIndicator\n ]}>\n {\n arrowIndicator.backgroundImage ? (\n <BackgroundComponent\n image={arrowIndicator.backgroundImage}\n position={arrowIndicator.backgroundPosition}\n size={arrowIndicator.backgroundSize}\n repeat={arrowIndicator.backgroundRepeat}\n resizeMode={arrowIndicator.backgroundResizeMode}\n style={{borderRadius: this.styles.root.borderRadius}}\n ></BackgroundComponent>\n ) : null }\n <View style={this.styles.arrowIndicatorDot}></View>\n </Animated.View>\n </Animated.View>\n </View>)\n }\n\n renderWidget(props: WmTabheaderProps) {\n this.setPosition();\n return (\n <View\n style={{overflow: 'hidden', zIndex: 16}}\n {...this.getTestProps('tabheader')}\n onLayout={(event) => this.handleLayout(event)}\n >\n {props.shouldScroll ?\n <ScrollView\n ref={this.listRef}\n horizontal={true}\n onLayout={this.setHeaderPanelPositon.bind(this)}\n contentContainerStyle={{width: '100%'}}\n showsHorizontalScrollIndicator={false}\n scrollEnabled={props.shouldScroll}\n >\n {this.renderHeaderContent(props)}\n </ScrollView> : <>\n {this.renderHeaderContent(props)}\n </>\n }\n </View>\n );\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAIC,SAAS,QAAQ,OAAO;AACxC,SAASC,QAAQ,EAAEC,MAAM,EAAsCC,IAAI,EAAEC,IAAI,EAAEC,UAAU,QAAQ,cAAc;AAC3G,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IAAI,CAAE;MAChDkE,qBAAqB,EAAE;QAAC7G,KAAK,EAAE;MAAM,CAAE;MACvC8G,8BAA8B,EAAE,KAAM;MACtCC,aAAa,EAAE5I,KAAK,CAACuI;IAAa,GAEpC,IAAI,CAACzC,mBAAmB,CAAC9F,KAAK,CAClB,CAAC,gBAAGpB,KAAA,CAAAuF,aAAA,CAAAvF,KAAA,CAAAiK,QAAA,QACf,IAAI,CAAC/C,mBAAmB,CAAC9F,KAAK,CAC7B,CAEI,CAAC;EAEX;AACF","ignoreList":[]}
@@ -11,8 +11,6 @@ export default class WmTabheaderProps extends BaseProps {
11
11
  _defineProperty(this, "shouldScroll", void 0);
12
12
  _defineProperty(this, "disabletoucheffect", false);
13
13
  _defineProperty(this, "accessibilityProps", void 0);
14
- _defineProperty(this, "headertype", 'icon-label');
15
- _defineProperty(this, "iconposition", void 0);
16
14
  }
17
15
  }
18
16
  //# sourceMappingURL=tabheader.props.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BaseProps","WmTabheaderProps","constructor","args","_defineProperty"],"sources":["tabheader.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport default class WmTabheaderProps extends BaseProps {\n data: {icon: string, key: string, title: string}[] = [] as any;\n selectedTabIndex? = 0;\n onIndexChange?: (index: number) => any = null as any;\n shouldScroll?: boolean;\n disabletoucheffect?: boolean = false;\n accessibilityProps?: any;\n headertype?: 'icon-only' | 'icon-label' | 'label-only' = 'icon-label';\n iconposition?: 'left' | 'right' | 'top';\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAE5E,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,eACD,EAAE;IAAAA,eAAA,2BACnC,CAAC;IAAAA,eAAA,wBACoB,IAAI;IAAAA,eAAA;IAAAA,eAAA,6BAEd,KAAK;IAAAA,eAAA;IAAAA,eAAA,qBAEqB,YAAY;IAAAA,eAAA;EAAA;AAEvE","ignoreList":[]}
1
+ {"version":3,"names":["BaseProps","WmTabheaderProps","constructor","args","_defineProperty"],"sources":["tabheader.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\n\nexport default class WmTabheaderProps extends BaseProps {\n data: {icon: string, key: string, title: string}[] = [] as any;\n selectedTabIndex? = 0;\n onIndexChange?: (index: number) => any = null as any;\n shouldScroll?: boolean;\n disabletoucheffect?: boolean = false;\n accessibilityProps?: any;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAE5E,eAAe,MAAMC,gBAAgB,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,eACD,EAAE;IAAAA,eAAA,2BACnC,CAAC;IAAAA,eAAA,wBACoB,IAAI;IAAAA,eAAA;IAAAA,eAAA,6BAEd,KAAK;IAAAA,eAAA;EAAA;AAEtC","ignoreList":[]}
@@ -16,11 +16,9 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
16
16
  paddingVertical: 12,
17
17
  minWidth: 80,
18
18
  minHeight: 48,
19
- flexDirection: 'column',
19
+ flexDirection: 'row',
20
20
  justifyContent: 'center',
21
- alignItems: 'center',
22
21
  flexGrow: 1
23
- // gap: 4
24
22
  },
25
23
  headerIcon: {
26
24
  text: {
@@ -67,45 +65,5 @@ BASE_THEME.registerStyle((themeVariables, addStyle) => {
67
65
  skeleton: {}
68
66
  };
69
67
  addStyle(DEFAULT_CLASS, '', defaultStyles);
70
- addStyle(DEFAULT_CLASS + '-icon-label', '', {});
71
- addStyle(DEFAULT_CLASS + '-icon-only', '', {
72
- headerText: {
73
- display: 'none'
74
- }
75
- });
76
- addStyle(DEFAULT_CLASS + '-label-only', '', {
77
- headerIcon: {
78
- root: {
79
- display: 'none'
80
- }
81
- }
82
- });
83
- addStyle(DEFAULT_CLASS + '-iconposition-top', '', {
84
- header: {
85
- flexDirection: 'column'
86
- }
87
- });
88
- addStyle(DEFAULT_CLASS + '-iconposition-left', '', {
89
- header: {
90
- flexDirection: 'row',
91
- gap: 8
92
- },
93
- headerIcon: {
94
- root: {
95
- marginRight: 8
96
- }
97
- }
98
- });
99
- addStyle(DEFAULT_CLASS + '-iconposition-right', '', {
100
- header: {
101
- flexDirection: 'row-reverse',
102
- gap: 8
103
- },
104
- headerIcon: {
105
- root: {
106
- marginLeft: 8
107
- }
108
- }
109
- });
110
68
  });
111
69
  //# sourceMappingURL=tabheader.styles.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","minWidth","overflow","backgroundColor","tabHeaderBgColor","text","header","paddingTop","paddingBottom","paddingVertical","minHeight","justifyContent","alignItems","flexGrow","headerIcon","color","tabHeaderIconColor","icon","fontSize","headerText","tabHeaderTextColor","fontFamily","baseFont","fontWeight","activeHeader","tabActiveHeaderBgColor","activeIndicator","tabActiveIndicatorBgColor","width","height","marginTop","activeHeaderIcon","tabActiveHeaderIconColor","activeHeaderText","tabActiveHeaderTextColor","arrowIndicator","display","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","arrowIndicatorDot","skeleton","gap","marginRight","marginLeft"],"sources":["tabheader.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';\nimport { BaseStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTabheaderStyles = BaseStyles & {\n activeIndicator: ViewStyle,\n header: ViewStyle,\n headerIcon: WmIconStyles,\n headerText: TextStyle,\n arrowIndicator: ViewStyle,\n arrowIndicatorDot: ViewStyle,\n activeHeader: ViewStyle,\n activeHeaderIcon: WmIconStyles,\n activeHeaderText: TextStyle,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-tabheader';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = {\n root: {\n flexDirection: 'row',\n minWidth: '100%',\n overflow: 'visible',\n backgroundColor: themeVariables.tabHeaderBgColor,\n },\n text: {},\n header: {\n backgroundColor: themeVariables.tabHeaderBgColor,\n paddingTop: 16,\n paddingBottom: 16,\n paddingVertical: 12,\n minWidth: 80,\n minHeight:48,\n flexDirection: 'column',\n justifyContent: 'center',\n alignItems: 'center',\n flexGrow: 1,\n // gap: 4\n },\n headerIcon: {\n text: {\n color: themeVariables.tabHeaderIconColor\n },\n icon: {\n fontSize : 12\n }\n } as WmIconStyles,\n headerText: {\n color: themeVariables.tabHeaderTextColor,\n overflow: 'visible',\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n fontSize: 14,\n },\n activeHeader: {\n backgroundColor: themeVariables.tabActiveHeaderBgColor\n },\n activeIndicator: {\n backgroundColor: themeVariables.tabActiveIndicatorBgColor,\n width: 100,\n height: 2,\n marginTop: -2\n },\n activeHeaderIcon: {\n text: {\n color: themeVariables.tabActiveHeaderIconColor\n }\n } as WmIconStyles,\n activeHeaderText: {\n color: themeVariables.tabActiveHeaderTextColor\n },\n arrowIndicator: {\n display: 'none',\n backgroundImage: '',\n backgroundSize: '100% 100%',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat'\n },\n arrowIndicatorDot: {\n display: 'none'\n },\n skeleton: {} as WmSkeletonStyles\n } as WmTabheaderStyles;\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n addStyle(DEFAULT_CLASS + '-icon-label', '', {} as any);\n addStyle(DEFAULT_CLASS + '-icon-only', '', {\n headerText: {\n display: 'none'\n }\n } as any);\n addStyle(DEFAULT_CLASS + '-label-only', '', {\n headerIcon: {\n root: {\n display: 'none'\n }\n } as any\n } as any);\n\n addStyle(DEFAULT_CLASS + '-iconposition-top', '', {\n header: {\n flexDirection: 'column'\n }\n } as any);\n\n addStyle(DEFAULT_CLASS + '-iconposition-left', '', {\n header: {\n flexDirection: 'row',\n gap: 8\n },\n headerIcon: {\n root: {\n marginRight: 8\n }\n } as any\n } as any);\n\n addStyle(DEFAULT_CLASS + '-iconposition-right', '', {\n header: {\n flexDirection: 'row-reverse',\n gap: 8\n },\n headerIcon: {\n root: {\n marginLeft: 8\n }\n } as any\n } as any);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,2CAA2C;AAmBlE,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,MAAMC,aAAa,GAAG;IAClBC,IAAI,EAAE;MACFC,aAAa,EAAE,KAAK;MACpBC,QAAQ,EAAE,MAAM;MAChBC,QAAQ,EAAE,SAAS;MACnBC,eAAe,EAAEP,cAAc,CAACQ;IACpC,CAAC;IACDC,IAAI,EAAE,CAAC,CAAC;IACRC,MAAM,EAAE;MACJH,eAAe,EAAEP,cAAc,CAACQ,gBAAgB;MAChDG,UAAU,EAAE,EAAE;MACdC,aAAa,EAAE,EAAE;MACjBC,eAAe,EAAE,EAAE;MACnBR,QAAQ,EAAE,EAAE;MACZS,SAAS,EAAC,EAAE;MACZV,aAAa,EAAE,QAAQ;MACvBW,cAAc,EAAE,QAAQ;MACxBC,UAAU,EAAE,QAAQ;MACpBC,QAAQ,EAAE;MACV;IACJ,CAAC;IACDC,UAAU,EAAE;MACRT,IAAI,EAAE;QACFU,KAAK,EAAEnB,cAAc,CAACoB;MAC1B,CAAC;MACDC,IAAI,EAAE;QACFC,QAAQ,EAAG;MACd;IACL,CAAiB;IACjBC,UAAU,EAAE;MACRJ,KAAK,EAAEnB,cAAc,CAACwB,kBAAkB;MACxClB,QAAQ,EAAE,SAAS;MACnBmB,UAAU,EAAEzB,cAAc,CAAC0B,QAAQ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oBAAoB,EAAE,EAAE,EAAE;IAC/CY,MAAM,EAAE;MACJN,aAAa,EAAE,KAAK;MACpB2C,GAAG,EAAE;IACT,CAAC;IACD7B,UAAU,EAAE;MACRf,IAAI,EAAE;QACF6C,WAAW,EAAE;MACjB;IACJ;EACJ,CAAQ,CAAC;EAET/C,QAAQ,CAACH,aAAa,GAAG,qBAAqB,EAAE,EAAE,EAAE;IAChDY,MAAM,EAAE;MACJN,aAAa,EAAE,aAAa;MAC5B2C,GAAG,EAAE;IACT,CAAC;IACD7B,UAAU,EAAE;MACRf,IAAI,EAAE;QACF8C,UAAU,EAAE;MAChB;IACJ;EACJ,CAAQ,CAAC;AACb,CAAC,CAAC","ignoreList":[]}
1
+ {"version":3,"names":["BASE_THEME","DEFAULT_CLASS","registerStyle","themeVariables","addStyle","defaultStyles","root","flexDirection","minWidth","overflow","backgroundColor","tabHeaderBgColor","text","header","paddingTop","paddingBottom","paddingVertical","minHeight","justifyContent","flexGrow","headerIcon","color","tabHeaderIconColor","icon","fontSize","headerText","tabHeaderTextColor","fontFamily","baseFont","fontWeight","activeHeader","tabActiveHeaderBgColor","activeIndicator","tabActiveIndicatorBgColor","width","height","marginTop","activeHeaderIcon","tabActiveHeaderIconColor","activeHeaderText","tabActiveHeaderTextColor","arrowIndicator","display","backgroundImage","backgroundSize","backgroundPosition","backgroundRepeat","arrowIndicatorDot","skeleton"],"sources":["tabheader.styles.ts"],"sourcesContent":["import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';\nimport { BaseStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport { TextStyle, ViewStyle } from 'react-native';\nimport { WmIconStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.styles';\nimport { WmSkeletonStyles } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.styles';\n\nexport type WmTabheaderStyles = BaseStyles & {\n activeIndicator: ViewStyle,\n header: ViewStyle,\n headerIcon: WmIconStyles,\n headerText: TextStyle,\n arrowIndicator: ViewStyle,\n arrowIndicatorDot: ViewStyle,\n activeHeader: ViewStyle,\n activeHeaderIcon: WmIconStyles,\n activeHeaderText: TextStyle,\n skeleton: WmSkeletonStyles\n};\n\nexport const DEFAULT_CLASS = 'app-tabheader';\nBASE_THEME.registerStyle((themeVariables, addStyle) => {\n const defaultStyles = {\n root: {\n flexDirection: 'row',\n minWidth: '100%',\n overflow: 'visible',\n backgroundColor: themeVariables.tabHeaderBgColor,\n },\n text: {},\n header: {\n backgroundColor: themeVariables.tabHeaderBgColor,\n paddingTop: 16,\n paddingBottom: 16,\n paddingVertical: 12,\n minWidth: 80,\n minHeight:48,\n flexDirection: 'row',\n justifyContent: 'center',\n flexGrow: 1\n },\n headerIcon: {\n text: {\n color: themeVariables.tabHeaderIconColor\n },\n icon: {\n fontSize : 12\n }\n } as WmIconStyles,\n headerText: {\n color: themeVariables.tabHeaderTextColor,\n overflow: 'visible',\n fontFamily: themeVariables.baseFont,\n fontWeight: '500',\n fontSize: 14,\n },\n activeHeader: {\n backgroundColor: themeVariables.tabActiveHeaderBgColor\n },\n activeIndicator: {\n backgroundColor: themeVariables.tabActiveIndicatorBgColor,\n width: 100,\n height: 2,\n marginTop: -2\n },\n activeHeaderIcon: {\n text: {\n color: themeVariables.tabActiveHeaderIconColor\n }\n } as WmIconStyles,\n activeHeaderText: {\n color: themeVariables.tabActiveHeaderTextColor\n },\n arrowIndicator: {\n display: 'none',\n backgroundImage: '',\n backgroundSize: '100% 100%',\n backgroundPosition: 'center',\n backgroundRepeat: 'no-repeat'\n },\n arrowIndicatorDot: {\n display: 'none'\n },\n skeleton: {} as WmSkeletonStyles\n } as WmTabheaderStyles;\n addStyle(DEFAULT_CLASS, '', defaultStyles);\n});\n"],"mappings":"AAAA,OAAOA,UAAU,MAAM,2CAA2C;AAmBlE,OAAO,MAAMC,aAAa,GAAG,eAAe;AAC5CD,UAAU,CAACE,aAAa,CAAC,CAACC,cAAc,EAAEC,QAAQ,KAAK;EACnD,M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EAAE,WAAW;MAC3BC,kBAAkB,EAAE,QAAQ;MAC5BC,gBAAgB,EAAE;IACtB,CAAC;IACDC,iBAAiB,EAAE;MACfL,OAAO,EAAE;IACb,CAAC;IACDM,QAAQ,EAAE,CAAC;EACf,CAAsB;EACtB5C,QAAQ,CAACH,aAAa,EAAE,EAAE,EAAEI,aAAa,CAAC;AAC9C,CAAC,CAAC","ignoreList":[]}
@@ -25,6 +25,10 @@ export default class WmTabpane extends BaseComponent {
25
25
  onPartialLoad() {
26
26
  this.invokeEventCallback('onLoad', [null, this]);
27
27
  }
28
+ hasOwnFillHugResolution() {
29
+ var _this$parent;
30
+ return isAutoLayout(extractAutoLayoutProps(this.state.props, (_this$parent = this.parent) === null || _this$parent === void 0 || (_this$parent = _this$parent.state) === null || _this$parent === void 0 ? void 0 : _this$parent.props));
31
+ }
28
32
  renderContent(props) {
29
33
  if (props.renderPartial) {
30
34
  if (!this.state.isPartialLoaded) {
@@ -71,8 +75,8 @@ export default class WmTabpane extends BaseComponent {
71
75
  this.parent.selectTabPane(this);
72
76
  }
73
77
  renderWidget(props) {
74
- var _this$parent;
75
- const autoLayoutProps = extractAutoLayoutProps(props, (_this$parent = this.parent) === null || _this$parent === void 0 || (_this$parent = _this$parent.state) === null || _this$parent === void 0 ? void 0 : _this$parent.props);
78
+ var _this$parent2;
79
+ const autoLayoutProps = extractAutoLayoutProps(props, (_this$parent2 = this.parent) === null || _this$parent2 === void 0 || (_this$parent2 = _this$parent2.state) === null || _this$parent2 === void 0 ? void 0 : _this$parent2.props);
76
80
  const hasAutoLayout = isAutoLayout(autoLayoutProps);
77
81
  const shouldScroll = !hasAutoLayout || autoLayoutProps.overflow === 'scroll';
78
82
  const autoLayoutDirectionStyle = hasAutoLayout ? getDirectionStyle(autoLayoutProps) : {};
@@ -1 +1 @@
1
- {"version":3,"names":["React","BaseComponent","BaseComponentState","extractAutoLayoutProps","getContentContainerStyle","getDirectionStyle","getDimensionStyle","isAutoLayout","AutoLayoutHost","WmTabpaneProps","DEFAULT_CLASS","WmTabpaneState","constructor","args","_defineProperty","WmTabpane","props","subscribe","event","state","isActive","onPartialLoad","invokeEventCallback","renderContent","renderPartial","isPartialLoaded","setTimeout","updateState","bind","children","showView","isVisible","componentDidMount","tabs","parent","addTabPane","proxy","componentWillUnmount","removeTabPane","_onSelect","_onDeselect","select","selectTabPane","renderWidget","_this$parent","autoLayoutProps","hasAutoLayout","shouldScroll","overflow","autoLayoutDirectionStyle","autoLayoutContentStyle","autoLayoutOuterDimensionStyle","styles","root","autoLayoutInnerDimensionStyle","createElement","containerStyle","contentStyle","minWidth","undefined","onScroll","notify","onLayout","handleLayout","_background"],"sources":["tabpane.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport {extractAutoLayoutProps, getContentContainerStyle, getDirectionStyle, getDimensionStyle, isAutoLayout} from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\nimport { AutoLayoutHost } from '@wavemaker-ai/app-rn-runtime/core/auto-layout-host.component';\n\nimport WmTabpaneProps from './tabpane.props';\nimport { DEFAULT_CLASS, WmTabpaneStyles } from './tabpane.styles';\nimport WmTabs from '../tabs.component';\n\nexport class WmTabpaneState extends BaseComponentState<WmTabpaneProps> {\n isPartialLoaded = false;\n isActive = false;\n}\n\nexport default class WmTabpane extends BaseComponent<WmTabpaneProps, WmTabpaneState, WmTabpaneStyles> {\n public paneId: string = \"\";\n constructor(props: WmTabpaneProps) {\n super(props, DEFAULT_CLASS, new WmTabpaneProps(), new WmTabpaneState());\n this.subscribe('scroll', (event: any) => {\n return this.state.isActive;\n });\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [null, this]);\n }\n\n renderContent(props: WmTabpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmTabpaneState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n\n showView(): boolean {\n return this.isVisible() && this.state.isActive;\n }\n\n componentDidMount() {\n const tabs = (this.parent) as WmTabs;\n // When skeleton is enabled in the tabs component, the parent would be WMSkeleton which doesnot have addTabPane function\n if(tabs.addTabPane) {\n tabs.addTabPane(this.proxy as WmTabpane);\n }\n super.componentDidMount();\n }\n\n componentWillUnmount() {\n const tabs = (this.parent) as WmTabs;\n if(tabs.removeTabPane) {\n tabs.removeTabPane(this)\n }\n }\n\n _onSelect() {\n this.updateState({\n isActive: true\n } as WmTabpaneState);\n this.invokeEventCallback('onSelect', [null, this.proxy]);\n }\n _onDeselect() {\n this.updateState({\n isActive: false\n } as WmTabpaneState);\n this.invokeEventCallback('onDeselect', [null, this.proxy]);\n }\n\n select() {\n (this.parent as WmTabs).selectTabPane(this);\n }\n\n renderWidget(props: WmTabpaneProps) {\n const autoLayoutProps = extractAutoLayoutProps(\n props,\n this.parent?.state?.props\n );\n const hasAutoLayout = isAutoLayout(autoLayoutProps);\n const shouldScroll = !hasAutoLayout || autoLayoutProps.overflow === 'scroll';\n const autoLayoutDirectionStyle = hasAutoLayout ? getDirectionStyle(autoLayoutProps) : {};\n const autoLayoutContentStyle = hasAutoLayout ? getContentContainerStyle(autoLayoutProps) : {};\n const autoLayoutOuterDimensionStyle = hasAutoLayout ? getDimensionStyle(autoLayoutProps, this.styles.root) : {};\n const autoLayoutInnerDimensionStyle = hasAutoLayout ? getDimensionStyle(autoLayoutProps, this.styles.root, true) : {};\n\n return (\n <AutoLayoutHost\n autoLayoutProps={autoLayoutProps}\n shouldScroll={shouldScroll}\n containerStyle={[\n this.styles.root,\n hasAutoLayout ? { ...autoLayoutDirectionStyle, ...autoLayoutOuterDimensionStyle } : {},\n ]}\n contentStyle={hasAutoLayout ? {\n ...autoLayoutDirectionStyle,\n ...autoLayoutContentStyle,\n ...autoLayoutInnerDimensionStyle,\n minWidth: 0,\n } : undefined}\n onScroll={(event) => {this.notify('scroll', [event])}}\n onL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AAQ,EAAG5C,KAAK,IAAK,IAAI,CAAC6C,YAAY,CAAC7C,KAAK;IAAE,GAE3C,IAAI,CAAC8C,WAAW,EAChB,IAAI,CAACzC,aAAa,CAACP,KAAK,CACX,CAAC;EACrB;AACF","ignoreList":[]}
1
+ {"version":3,"names":["React","BaseComponent","BaseComponentState","extractAutoLayoutProps","getContentContainerStyle","getDirectionStyle","getDimensionStyle","isAutoLayout","AutoLayoutHost","WmTabpaneProps","DEFAULT_CLASS","WmTabpaneState","constructor","args","_defineProperty","WmTabpane","props","subscribe","event","state","isActive","onPartialLoad","invokeEventCallback","hasOwnFillHugResolution","_this$parent","parent","renderContent","renderPartial","isPartialLoaded","setTimeout","updateState","bind","children","showView","isVisible","componentDidMount","tabs","addTabPane","proxy","componentWillUnmount","removeTabPane","_onSelect","_onDeselect","select","selectTabPane","renderWidget","_this$parent2","autoLayoutProps","hasAutoLayout","shouldScroll","overflow","autoLayoutDirectionStyle","autoLayoutContentStyle","autoLayoutOuterDimensionStyle","styles","root","autoLayoutInnerDimensionStyle","createElement","containerStyle","contentStyle","minWidth","undefined","onScroll","notify","onLayout","handleLayout","_background"],"sources":["tabpane.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport {extractAutoLayoutProps, getContentContainerStyle, getDirectionStyle, getDimensionStyle, isAutoLayout} from '@wavemaker-ai/app-rn-runtime/core/auto-layout.utils';\nimport { AutoLayoutHost } from '@wavemaker-ai/app-rn-runtime/core/auto-layout-host.component';\n\nimport WmTabpaneProps from './tabpane.props';\nimport { DEFAULT_CLASS, WmTabpaneStyles } from './tabpane.styles';\nimport WmTabs from '../tabs.component';\n\nexport class WmTabpaneState extends BaseComponentState<WmTabpaneProps> {\n isPartialLoaded = false;\n isActive = false;\n}\n\nexport default class WmTabpane extends BaseComponent<WmTabpaneProps, WmTabpaneState, WmTabpaneStyles> {\n public paneId: string = \"\";\n constructor(props: WmTabpaneProps) {\n super(props, DEFAULT_CLASS, new WmTabpaneProps(), new WmTabpaneState());\n this.subscribe('scroll', (event: any) => {\n return this.state.isActive;\n });\n }\n\n onPartialLoad() {\n this.invokeEventCallback('onLoad', [null, this]);\n }\n\n protected hasOwnFillHugResolution(): boolean {\n return isAutoLayout(extractAutoLayoutProps(this.state.props, this.parent?.state?.props));\n }\n\n renderContent(props: WmTabpaneProps) {\n if (props.renderPartial) {\n if (!this.state.isPartialLoaded) {\n setTimeout(() => {\n this.updateState({\n isPartialLoaded: true\n } as WmTabpaneState);\n });\n }\n return props.renderPartial(props, this.onPartialLoad.bind(this));\n }\n return props.children;\n }\n\n showView(): boolean {\n return this.isVisible() && this.state.isActive;\n }\n\n componentDidMount() {\n const tabs = (this.parent) as WmTabs;\n // When skeleton is enabled in the tabs component, the parent would be WMSkeleton which doesnot have addTabPane function\n if(tabs.addTabPane) {\n tabs.addTabPane(this.proxy as WmTabpane);\n }\n super.componentDidMount();\n }\n\n componentWillUnmount() {\n const tabs = (this.parent) as WmTabs;\n if(tabs.removeTabPane) {\n tabs.removeTabPane(this)\n }\n }\n\n _onSelect() {\n this.updateState({\n isActive: true\n } as WmTabpaneState);\n this.invokeEventCallback('onSelect', [null, this.proxy]);\n }\n _onDeselect() {\n this.updateState({\n isActive: false\n } as WmTabpaneState);\n this.invokeEventCallback('onDeselect', [null, this.proxy]);\n }\n\n select() {\n (this.parent as WmTabs).selectTabPane(this);\n }\n\n renderWidget(props: WmTabpaneProps) {\n const autoLayoutProps = extractAutoLayoutProps(\n props,\n this.parent?.state?.props\n );\n const hasAutoLayout = isAutoLayout(autoLayoutProps);\n const shouldScroll = !hasAutoLayout || autoLayoutProps.overflow === 'scroll';\n const autoLayoutDirectionStyle = hasAutoLayout ? getDirectionStyle(autoLayoutProps) : {};\n const autoLayoutContentStyle = hasAutoLayout ? getContentContainerStyle(autoLayoutProps) : {};\n const autoLayoutOuterDimensionStyle = hasAutoLayout ? getDimensionStyle(autoLayoutProps, this.styles.root) : {};\n const autoLayoutInnerDimensionStyle = hasAutoLayout ? getDimensionStyle(autoLayoutProps, this.styles.root, true) : {};\n\n return (\n <AutoLayoutHost\n autoLayoutProps={autoLayoutProps}\n shouldScroll={shouldScroll}\n containerStyle={[\n this.styles.root,\n hasAutoLayout ? { ...autoLayoutDirectionStyle, ...autoLayoutOuterDimensionStyle } : {},\n ]}\n contentStyle={hasAutoLayout ? {\n ...autoLayoutDirectionStyle,\n ...autoLayoutContentStyle,\n ...autoLayoutInnerDimensionStyle,\n minWidth: 0,\n } : undefined}\n onScroll={(event) => {this.notify('scroll', [event])}}\n onLayout={(event) => this.handleLayout(event)}\n >\n {this._background}\n {this.renderContent(props)}\n </AutoLayoutHost>);\n }\n}\n"],"mappings":";;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AACpG,SAAQC,sBAAsB,EAAEC,wBAAwB,EAAEC,iBAAiB,EAAEC,iBAAiB,EAAEC,YAAY,QAAO,qDAAqD;AACxK,SAASC,cAAc,QAAQ,8DAA8D;AAE7F,OAAOC,cAAc,MAAM,iBAAiB;AAC5C,SAASC,aAAa,QAAyB,kBAAkB;AAGjE,OAAO,MAAMC,cAAc,SAAST,kBAAkB,CAAiB;EAAAU,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,0BACnD,KAAK;IAAAA,eAAA,mBACZ,KAAK;EAAA;AAClB;AAEA,eAAe,MAAMC,SAAS,SAASd,aAAa,CAAkD;EAEpGW,WAAWA,CAACI,KAAqB,EAAE;IACjC,KAAK,CAACA,KAAK,EAAEN,aAAa,EAAE,IAAID,cAAc,CAAC,CAAC,EAAE,IAAIE,cAAc,CAAC,CAAC,CAAC;IAACG,eAAA,iBAFlD,EAAE;IAGxB,IAAI,CAACG,SAAS,CAAC,QAAQ,EAAGC,KAAU,IAAK;MACvC,OAAO,IAAI,CAACC,KAAK,CAACC,QAAQ;IAC5B,CAAC,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