@wavemaker-ai/app-rn-runtime 1.0.0-rc.647469
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/actions/base-action.js +12 -0
- package/actions/base-action.js.map +1 -0
- package/actions/index.js +6 -0
- package/actions/index.js.map +1 -0
- package/actions/login-action.js +32 -0
- package/actions/login-action.js.map +1 -0
- package/actions/logout-action.js +22 -0
- package/actions/logout-action.js.map +1 -0
- package/actions/navigation-action.js +44 -0
- package/actions/navigation-action.js.map +1 -0
- package/actions/notification-action.js +76 -0
- package/actions/notification-action.js.map +1 -0
- package/actions/timer-action.js +57 -0
- package/actions/timer-action.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.js +17 -0
- package/components/advanced/carousel/carousel-content/carousel-content.component.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.js +11 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.js.map +1 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.js +17 -0
- package/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.js +20 -0
- package/components/advanced/carousel/carousel-template/carousel-template.component.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.js +11 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.js.map +1 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.js +16 -0
- package/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +1 -0
- package/components/advanced/carousel/carousel.component.js +378 -0
- package/components/advanced/carousel/carousel.component.js.map +1 -0
- package/components/advanced/carousel/carousel.props.js +23 -0
- package/components/advanced/carousel/carousel.props.js.map +1 -0
- package/components/advanced/carousel/carousel.styles.js +179 -0
- package/components/advanced/carousel/carousel.styles.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js +14 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.component.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js +11 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.props.js.map +1 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js +14 -0
- package/components/advanced/customwidgetcontainer/customwidgetcontainer.styles.js.map +1 -0
- package/components/advanced/login/login.component.js +40 -0
- package/components/advanced/login/login.component.js.map +1 -0
- package/components/advanced/login/login.props.js +13 -0
- package/components/advanced/login/login.props.js.map +1 -0
- package/components/advanced/login/login.styles.js +31 -0
- package/components/advanced/login/login.styles.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.js +118 -0
- package/components/advanced/network-info-toaster/network-info-toaster.component.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.js +11 -0
- package/components/advanced/network-info-toaster/network-info-toaster.props.js.map +1 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.js +33 -0
- package/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +1 -0
- package/components/advanced/webview/webview.component.js +160 -0
- package/components/advanced/webview/webview.component.js.map +1 -0
- package/components/advanced/webview/webview.props.js +16 -0
- package/components/advanced/webview/webview.props.js.map +1 -0
- package/components/advanced/webview/webview.styles.js +18 -0
- package/components/advanced/webview/webview.styles.js.map +1 -0
- package/components/basic/anchor/anchor.component.js +124 -0
- package/components/basic/anchor/anchor.component.js.map +1 -0
- package/components/basic/anchor/anchor.props.js +34 -0
- package/components/basic/anchor/anchor.props.js.map +1 -0
- package/components/basic/anchor/anchor.styles.js +108 -0
- package/components/basic/anchor/anchor.styles.js.map +1 -0
- package/components/basic/animatedview.component.js +226 -0
- package/components/basic/animatedview.component.js.map +1 -0
- package/components/basic/audio/audio.component.js +257 -0
- package/components/basic/audio/audio.component.js.map +1 -0
- package/components/basic/audio/audio.props.js +15 -0
- package/components/basic/audio/audio.props.js.map +1 -0
- package/components/basic/audio/audio.styles.js +68 -0
- package/components/basic/audio/audio.styles.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.component.js +772 -0
- package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.props.js +26 -0
- package/components/basic/bottomsheet/bottomsheet.props.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js +88 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js.map +1 -0
- package/components/basic/button/button.component.js +124 -0
- package/components/basic/button/button.component.js.map +1 -0
- package/components/basic/button/button.props.js +28 -0
- package/components/basic/button/button.props.js.map +1 -0
- package/components/basic/button/button.styles.js +132 -0
- package/components/basic/button/button.styles.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.component.js +28 -0
- package/components/basic/buttongroup/buttongroup.component.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.props.js +14 -0
- package/components/basic/buttongroup/buttongroup.props.js.map +1 -0
- package/components/basic/buttongroup/buttongroup.styles.js +59 -0
- package/components/basic/buttongroup/buttongroup.styles.js.map +1 -0
- package/components/basic/custom/custom.component.js +26 -0
- package/components/basic/custom/custom.component.js.map +1 -0
- package/components/basic/custom/custom.props.js +16 -0
- package/components/basic/custom/custom.props.js.map +1 -0
- package/components/basic/custom/custom.styles.js +18 -0
- package/components/basic/custom/custom.styles.js.map +1 -0
- package/components/basic/icon/icon.component.js +270 -0
- package/components/basic/icon/icon.component.js.map +1 -0
- package/components/basic/icon/icon.props.js +28 -0
- package/components/basic/icon/icon.props.js.map +1 -0
- package/components/basic/icon/icon.styles.js +38 -0
- package/components/basic/icon/icon.styles.js.map +1 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js +245 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +1 -0
- package/components/basic/icon/streamline-light-icon/streamline-light-icon.ttf +0 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js +217 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +1 -0
- package/components/basic/icon/streamline-regular-icon/streamline-regular-icon.ttf +0 -0
- package/components/basic/icon/wavicon/wavicon.component.js +1161 -0
- package/components/basic/icon/wavicon/wavicon.component.js.map +1 -0
- package/components/basic/icon/wavicon/wavicon.ttf +0 -0
- package/components/basic/label/label.component.js +406 -0
- package/components/basic/label/label.component.js.map +1 -0
- package/components/basic/label/label.props.js +28 -0
- package/components/basic/label/label.props.js.map +1 -0
- package/components/basic/label/label.styles.js +146 -0
- package/components/basic/label/label.styles.js.map +1 -0
- package/components/basic/lottie/lottie.component.js +139 -0
- package/components/basic/lottie/lottie.component.js.map +1 -0
- package/components/basic/lottie/lottie.props.js +14 -0
- package/components/basic/lottie/lottie.props.js.map +1 -0
- package/components/basic/lottie/lottie.styles.js +15 -0
- package/components/basic/lottie/lottie.styles.js.map +1 -0
- package/components/basic/message/message.component.js +87 -0
- package/components/basic/message/message.component.js.map +1 -0
- package/components/basic/message/message.props.js +24 -0
- package/components/basic/message/message.props.js.map +1 -0
- package/components/basic/message/message.styles.js +116 -0
- package/components/basic/message/message.styles.js.map +1 -0
- package/components/basic/modal/modal.component.js +24 -0
- package/components/basic/modal/modal.component.js.map +1 -0
- package/components/basic/modal/modal.props.js +12 -0
- package/components/basic/modal/modal.props.js.map +1 -0
- package/components/basic/modal/modal.styles.js +29 -0
- package/components/basic/modal/modal.styles.js.map +1 -0
- package/components/basic/picture/picture.component.js +321 -0
- package/components/basic/picture/picture.component.js.map +1 -0
- package/components/basic/picture/picture.props.js +25 -0
- package/components/basic/picture/picture.props.js.map +1 -0
- package/components/basic/picture/picture.styles.js +43 -0
- package/components/basic/picture/picture.styles.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.component.js +96 -0
- package/components/basic/progress-bar/progress-bar.component.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.props.js +19 -0
- package/components/basic/progress-bar/progress-bar.props.js.map +1 -0
- package/components/basic/progress-bar/progress-bar.styles.js +45 -0
- package/components/basic/progress-bar/progress-bar.styles.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.component.js +79 -0
- package/components/basic/progress-circle/progress-circle.component.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.props.js +19 -0
- package/components/basic/progress-circle/progress-circle.props.js.map +1 -0
- package/components/basic/progress-circle/progress-circle.styles.js +82 -0
- package/components/basic/progress-circle/progress-circle.styles.js.map +1 -0
- package/components/basic/search/local-data-provider.js +113 -0
- package/components/basic/search/local-data-provider.js.map +1 -0
- package/components/basic/search/search.component.js +456 -0
- package/components/basic/search/search.component.js.map +1 -0
- package/components/basic/search/search.props.js +39 -0
- package/components/basic/search/search.props.js.map +1 -0
- package/components/basic/search/search.styles.js +187 -0
- package/components/basic/search/search.styles.js.map +1 -0
- package/components/basic/skeleton/skeleton.component.js +151 -0
- package/components/basic/skeleton/skeleton.component.js.map +1 -0
- package/components/basic/skeleton/skeleton.props.js +11 -0
- package/components/basic/skeleton/skeleton.props.js.map +1 -0
- package/components/basic/skeleton/skeleton.styles.js +41 -0
- package/components/basic/skeleton/skeleton.styles.js.map +1 -0
- package/components/basic/spinner/spinner.component.js +99 -0
- package/components/basic/spinner/spinner.component.js.map +1 -0
- package/components/basic/spinner/spinner.props.js +17 -0
- package/components/basic/spinner/spinner.props.js.map +1 -0
- package/components/basic/spinner/spinner.styles.js +41 -0
- package/components/basic/spinner/spinner.styles.js.map +1 -0
- package/components/basic/tooltip/tooltip.component.js +80 -0
- package/components/basic/tooltip/tooltip.component.js.map +1 -0
- package/components/basic/tooltip/tooltip.props.js +18 -0
- package/components/basic/tooltip/tooltip.props.js.map +1 -0
- package/components/basic/tooltip/tooltip.styles.js +49 -0
- package/components/basic/tooltip/tooltip.styles.js.map +1 -0
- package/components/basic/video/video.component.js +206 -0
- package/components/basic/video/video.component.js.map +1 -0
- package/components/basic/video/video.props.js +33 -0
- package/components/basic/video/video.props.js.map +1 -0
- package/components/basic/video/video.styles.js +33 -0
- package/components/basic/video/video.styles.js.map +1 -0
- package/components/chart/area-chart/area-chart.component.js +159 -0
- package/components/chart/area-chart/area-chart.component.js.map +1 -0
- package/components/chart/area-chart/area-chart.props.js +12 -0
- package/components/chart/area-chart/area-chart.props.js.map +1 -0
- package/components/chart/area-chart/area-chart.styles.js +13 -0
- package/components/chart/area-chart/area-chart.styles.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.component.js +144 -0
- package/components/chart/bar-chart/bar-chart.component.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.props.js +15 -0
- package/components/chart/bar-chart/bar-chart.props.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.styles.js +13 -0
- package/components/chart/bar-chart/bar-chart.styles.js.map +1 -0
- package/components/chart/basechart.component.js +709 -0
- package/components/chart/basechart.component.js.map +1 -0
- package/components/chart/basechart.props.js +65 -0
- package/components/chart/basechart.props.js.map +1 -0
- package/components/chart/basechart.styles.js +97 -0
- package/components/chart/basechart.styles.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.component.js +113 -0
- package/components/chart/bubble-chart/bubble-chart.component.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.props.js +11 -0
- package/components/chart/bubble-chart/bubble-chart.props.js.map +1 -0
- package/components/chart/bubble-chart/bubble-chart.styles.js +13 -0
- package/components/chart/bubble-chart/bubble-chart.styles.js.map +1 -0
- package/components/chart/column-chart/column-chart.component.js +8 -0
- package/components/chart/column-chart/column-chart.component.js.map +1 -0
- package/components/chart/column-chart/column-chart.props.js +3 -0
- package/components/chart/column-chart/column-chart.props.js.map +1 -0
- package/components/chart/column-chart/column-chart.styles.js +13 -0
- package/components/chart/column-chart/column-chart.styles.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.component.js +7 -0
- package/components/chart/donut-chart/donut-chart.component.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.props.js +11 -0
- package/components/chart/donut-chart/donut-chart.props.js.map +1 -0
- package/components/chart/donut-chart/donut-chart.styles.js +13 -0
- package/components/chart/donut-chart/donut-chart.styles.js.map +1 -0
- package/components/chart/legend/legend.component.js +36 -0
- package/components/chart/legend/legend.component.js.map +1 -0
- package/components/chart/line-chart/line-chart.component.js +119 -0
- package/components/chart/line-chart/line-chart.component.js.map +1 -0
- package/components/chart/line-chart/line-chart.props.js +14 -0
- package/components/chart/line-chart/line-chart.props.js.map +1 -0
- package/components/chart/line-chart/line-chart.styles.js +13 -0
- package/components/chart/line-chart/line-chart.styles.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.component.js +251 -0
- package/components/chart/pie-chart/pie-chart.component.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.props.js +14 -0
- package/components/chart/pie-chart/pie-chart.props.js.map +1 -0
- package/components/chart/pie-chart/pie-chart.styles.js +13 -0
- package/components/chart/pie-chart/pie-chart.styles.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.component.js +368 -0
- package/components/chart/stack-chart/stack-chart.component.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.props.js +17 -0
- package/components/chart/stack-chart/stack-chart.props.js.map +1 -0
- package/components/chart/stack-chart/stack-chart.styles.js +7 -0
- package/components/chart/stack-chart/stack-chart.styles.js.map +1 -0
- package/components/chart/staticdata.js +215 -0
- package/components/chart/staticdata.js.map +1 -0
- package/components/chart/theme/chart.theme.js +360 -0
- package/components/chart/theme/chart.theme.js.map +1 -0
- package/components/container/accordion/accordion.component.js +202 -0
- package/components/container/accordion/accordion.component.js.map +1 -0
- package/components/container/accordion/accordion.props.js +16 -0
- package/components/container/accordion/accordion.props.js.map +1 -0
- package/components/container/accordion/accordion.styles.js +148 -0
- package/components/container/accordion/accordion.styles.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.component.js +87 -0
- package/components/container/accordion/accordionpane/accordionpane.component.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.props.js +17 -0
- package/components/container/accordion/accordionpane/accordionpane.props.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.js +16 -0
- package/components/container/accordion/accordionpane/accordionpane.styles.js.map +1 -0
- package/components/container/container.component.js +194 -0
- package/components/container/container.component.js.map +1 -0
- package/components/container/container.props.js +18 -0
- package/components/container/container.props.js.map +1 -0
- package/components/container/container.styles.js +48 -0
- package/components/container/container.styles.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +29 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +13 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js +12 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.js +22 -0
- package/components/container/layoutgrid/gridrow/gridrow.component.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.js +11 -0
- package/components/container/layoutgrid/gridrow/gridrow.props.js.map +1 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.js +42 -0
- package/components/container/layoutgrid/gridrow/gridrow.styles.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.component.js +44 -0
- package/components/container/layoutgrid/layoutgrid.component.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.props.js +11 -0
- package/components/container/layoutgrid/layoutgrid.props.js.map +1 -0
- package/components/container/layoutgrid/layoutgrid.styles.js +34 -0
- package/components/container/layoutgrid/layoutgrid.styles.js.map +1 -0
- package/components/container/linearlayout/linearlayout.component.js +70 -0
- package/components/container/linearlayout/linearlayout.component.js.map +1 -0
- package/components/container/linearlayout/linearlayout.props.js +15 -0
- package/components/container/linearlayout/linearlayout.props.js.map +1 -0
- package/components/container/linearlayout/linearlayout.styles.js +14 -0
- package/components/container/linearlayout/linearlayout.styles.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +25 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +13 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +1 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js +11 -0
- package/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +1 -0
- package/components/container/panel/collapsible-pane.component.js +26 -0
- package/components/container/panel/collapsible-pane.component.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.component.js +17 -0
- package/components/container/panel/panel-content/panel-content.component.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.props.js +11 -0
- package/components/container/panel/panel-content/panel-content.props.js.map +1 -0
- package/components/container/panel/panel-content/panel-content.styles.js +16 -0
- package/components/container/panel/panel-content/panel-content.styles.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.component.js +17 -0
- package/components/container/panel/panel-footer/panel-footer.component.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.props.js +11 -0
- package/components/container/panel/panel-footer/panel-footer.props.js.map +1 -0
- package/components/container/panel/panel-footer/panel-footer.styles.js +19 -0
- package/components/container/panel/panel-footer/panel-footer.styles.js.map +1 -0
- package/components/container/panel/panel.component.js +163 -0
- package/components/container/panel/panel.component.js.map +1 -0
- package/components/container/panel/panel.props.js +26 -0
- package/components/container/panel/panel.props.js.map +1 -0
- package/components/container/panel/panel.styles.js +108 -0
- package/components/container/panel/panel.styles.js.map +1 -0
- package/components/container/partial-host.component.js +42 -0
- package/components/container/partial-host.component.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.component.js +240 -0
- package/components/container/tabs/tabheader/tabheader.component.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.props.js +18 -0
- package/components/container/tabs/tabheader/tabheader.props.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.styles.js +111 -0
- package/components/container/tabs/tabheader/tabheader.styles.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.component.js +82 -0
- package/components/container/tabs/tabpane/tabpane.component.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.props.js +19 -0
- package/components/container/tabs/tabpane/tabpane.props.js.map +1 -0
- package/components/container/tabs/tabpane/tabpane.styles.js +13 -0
- package/components/container/tabs/tabpane/tabpane.styles.js.map +1 -0
- package/components/container/tabs/tabs.component.js +299 -0
- package/components/container/tabs/tabs.component.js.map +1 -0
- package/components/container/tabs/tabs.props.js +16 -0
- package/components/container/tabs/tabs.props.js.map +1 -0
- package/components/container/tabs/tabs.styles.js +65 -0
- package/components/container/tabs/tabs.styles.js.map +1 -0
- package/components/container/tile/tile.component.js +54 -0
- package/components/container/tile/tile.component.js.map +1 -0
- package/components/container/tile/tile.props.js +13 -0
- package/components/container/tile/tile.props.js.map +1 -0
- package/components/container/tile/tile.styles.js +38 -0
- package/components/container/tile/tile.styles.js.map +1 -0
- package/components/container/wizard/wizard.component.js +550 -0
- package/components/container/wizard/wizard.component.js.map +1 -0
- package/components/container/wizard/wizard.props.js +31 -0
- package/components/container/wizard/wizard.props.js.map +1 -0
- package/components/container/wizard/wizard.styles.js +415 -0
- package/components/container/wizard/wizard.styles.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.component.js +17 -0
- package/components/container/wizard/wizardaction/wizardaction.component.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.props.js +11 -0
- package/components/container/wizard/wizardaction/wizardaction.props.js.map +1 -0
- package/components/container/wizard/wizardaction/wizardaction.styles.js +11 -0
- package/components/container/wizard/wizardaction/wizardaction.styles.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.component.js +92 -0
- package/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.props.js +22 -0
- package/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.js +13 -0
- package/components/container/wizard/wizardstep/wizardstep.styles.js.map +1 -0
- package/components/data/card/card-content/card-content.component.js +46 -0
- package/components/data/card/card-content/card-content.component.js.map +1 -0
- package/components/data/card/card-content/card-content.props.js +12 -0
- package/components/data/card/card-content/card-content.props.js.map +1 -0
- package/components/data/card/card-content/card-content.styles.js +17 -0
- package/components/data/card/card-content/card-content.styles.js.map +1 -0
- package/components/data/card/card-footer/card-footer.component.js +18 -0
- package/components/data/card/card-footer/card-footer.component.js.map +1 -0
- package/components/data/card/card-footer/card-footer.props.js +11 -0
- package/components/data/card/card-footer/card-footer.props.js.map +1 -0
- package/components/data/card/card-footer/card-footer.styles.js +18 -0
- package/components/data/card/card-footer/card-footer.styles.js.map +1 -0
- package/components/data/card/card.component.js +92 -0
- package/components/data/card/card.component.js.map +1 -0
- package/components/data/card/card.props.js +27 -0
- package/components/data/card/card.props.js.map +1 -0
- package/components/data/card/card.styles.js +51 -0
- package/components/data/card/card.styles.js.map +1 -0
- package/components/data/form/form-action/form-action.component.js +35 -0
- package/components/data/form/form-action/form-action.component.js.map +1 -0
- package/components/data/form/form-action/form-action.props.js +18 -0
- package/components/data/form/form-action/form-action.props.js.map +1 -0
- package/components/data/form/form-action/form-action.styles.js +34 -0
- package/components/data/form/form-action/form-action.styles.js.map +1 -0
- package/components/data/form/form-body/form-body.component.js +20 -0
- package/components/data/form/form-body/form-body.component.js.map +1 -0
- package/components/data/form/form-body/form-body.props.js +11 -0
- package/components/data/form/form-body/form-body.props.js.map +1 -0
- package/components/data/form/form-body/form-body.styles.js +13 -0
- package/components/data/form/form-body/form-body.styles.js.map +1 -0
- package/components/data/form/form-field/form-field.component.js +257 -0
- package/components/data/form/form-field/form-field.component.js.map +1 -0
- package/components/data/form/form-field/form-field.props.js +35 -0
- package/components/data/form/form-field/form-field.props.js.map +1 -0
- package/components/data/form/form-field/form-field.styles.js +40 -0
- package/components/data/form/form-field/form-field.styles.js.map +1 -0
- package/components/data/form/form-footer/form-footer.component.js +20 -0
- package/components/data/form/form-footer/form-footer.component.js.map +1 -0
- package/components/data/form/form-footer/form-footer.props.js +11 -0
- package/components/data/form/form-footer/form-footer.props.js.map +1 -0
- package/components/data/form/form-footer/form-footer.styles.js +18 -0
- package/components/data/form/form-footer/form-footer.styles.js.map +1 -0
- package/components/data/form/form.component.js +465 -0
- package/components/data/form/form.component.js.map +1 -0
- package/components/data/form/form.props.js +38 -0
- package/components/data/form/form.props.js.map +1 -0
- package/components/data/form/form.styles.js +53 -0
- package/components/data/form/form.styles.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.component.js +28 -0
- package/components/data/list/list-action-template/list-action-template.component.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.props.js +12 -0
- package/components/data/list/list-action-template/list-action-template.props.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.styles.js +36 -0
- package/components/data/list/list-action-template/list-action-template.styles.js.map +1 -0
- package/components/data/list/list-template/list-template.component.js +55 -0
- package/components/data/list/list-template/list-template.component.js.map +1 -0
- package/components/data/list/list-template/list-template.props.js +13 -0
- package/components/data/list/list-template/list-template.props.js.map +1 -0
- package/components/data/list/list-template/list-template.styles.js +35 -0
- package/components/data/list/list-template/list-template.styles.js.map +1 -0
- package/components/data/list/list.component.js +690 -0
- package/components/data/list/list.component.js.map +1 -0
- package/components/data/list/list.props.js +53 -0
- package/components/data/list/list.props.js.map +1 -0
- package/components/data/list/list.styles.js +151 -0
- package/components/data/list/list.styles.js.map +1 -0
- package/components/data/liveform/liveform.component.js +98 -0
- package/components/data/liveform/liveform.component.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.component.js +69 -0
- package/components/device/barcodescanner/barcodescanner.component.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.props.js +19 -0
- package/components/device/barcodescanner/barcodescanner.props.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.styles.js +38 -0
- package/components/device/barcodescanner/barcodescanner.styles.js.map +1 -0
- package/components/device/camera/camera.component.js +84 -0
- package/components/device/camera/camera.component.js.map +1 -0
- package/components/device/camera/camera.props.js +25 -0
- package/components/device/camera/camera.props.js.map +1 -0
- package/components/device/camera/camera.styles.js +39 -0
- package/components/device/camera/camera.styles.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.component.js +72 -0
- package/components/dialogs/alertdialog/alertdialog.component.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.props.js +24 -0
- package/components/dialogs/alertdialog/alertdialog.props.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.styles.js +34 -0
- package/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.js +78 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.js +24 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.js +58 -0
- package/components/dialogs/confirmdialog/confirmdialog.styles.js.map +1 -0
- package/components/dialogs/dialog/dialog.component.js +107 -0
- package/components/dialogs/dialog/dialog.component.js.map +1 -0
- package/components/dialogs/dialog/dialog.props.js +25 -0
- package/components/dialogs/dialog/dialog.props.js.map +1 -0
- package/components/dialogs/dialog/dialog.styles.js +78 -0
- package/components/dialogs/dialog/dialog.styles.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.component.js +22 -0
- package/components/dialogs/dialogactions/dialogactions.component.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.props.js +11 -0
- package/components/dialogs/dialogactions/dialogactions.props.js.map +1 -0
- package/components/dialogs/dialogactions/dialogactions.styles.js +17 -0
- package/components/dialogs/dialogactions/dialogactions.styles.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.js +31 -0
- package/components/dialogs/dialogcontent/dialogcontent.component.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.js +11 -0
- package/components/dialogs/dialogcontent/dialogcontent.props.js.map +1 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.js +15 -0
- package/components/dialogs/dialogcontent/dialogcontent.styles.js.map +1 -0
- package/components/input/basedataset/basedataset.component.js +232 -0
- package/components/input/basedataset/basedataset.component.js.map +1 -0
- package/components/input/basedataset/basedataset.props.js +33 -0
- package/components/input/basedataset/basedataset.props.js.map +1 -0
- package/components/input/basedataset/basedataset.styles.js +11 -0
- package/components/input/basedataset/basedataset.styles.js.map +1 -0
- package/components/input/baseinput/baseinput.component.js +203 -0
- package/components/input/baseinput/baseinput.component.js.map +1 -0
- package/components/input/baseinput/baseinput.props.js +32 -0
- package/components/input/baseinput/baseinput.props.js.map +1 -0
- package/components/input/baseinput/baseinput.styles.js +11 -0
- package/components/input/baseinput/baseinput.styles.js.map +1 -0
- package/components/input/basenumber/basenumber.component.js +357 -0
- package/components/input/basenumber/basenumber.component.js.map +1 -0
- package/components/input/basenumber/basenumber.props.js +28 -0
- package/components/input/basenumber/basenumber.props.js.map +1 -0
- package/components/input/basenumber/basenumber.styles.js +11 -0
- package/components/input/basenumber/basenumber.styles.js.map +1 -0
- package/components/input/calendar/calendar.component.js +173 -0
- package/components/input/calendar/calendar.component.js.map +1 -0
- package/components/input/calendar/calendar.props.js +14 -0
- package/components/input/calendar/calendar.props.js.map +1 -0
- package/components/input/calendar/calendar.styles.js +162 -0
- package/components/input/calendar/calendar.styles.js.map +1 -0
- package/components/input/calendar/views/month-view.js +211 -0
- package/components/input/calendar/views/month-view.js.map +1 -0
- package/components/input/calendar/views/month-view.styles.js +39 -0
- package/components/input/calendar/views/month-view.styles.js.map +1 -0
- package/components/input/checkbox/checkbox.component.js +124 -0
- package/components/input/checkbox/checkbox.component.js.map +1 -0
- package/components/input/checkbox/checkbox.props.js +18 -0
- package/components/input/checkbox/checkbox.props.js.map +1 -0
- package/components/input/checkbox/checkbox.styles.js +94 -0
- package/components/input/checkbox/checkbox.styles.js.map +1 -0
- package/components/input/checkboxset/checkboxset.component.js +159 -0
- package/components/input/checkboxset/checkboxset.component.js.map +1 -0
- package/components/input/checkboxset/checkboxset.props.js +21 -0
- package/components/input/checkboxset/checkboxset.props.js.map +1 -0
- package/components/input/checkboxset/checkboxset.styles.js +88 -0
- package/components/input/checkboxset/checkboxset.styles.js.map +1 -0
- package/components/input/chips/chips.component.js +410 -0
- package/components/input/chips/chips.component.js.map +1 -0
- package/components/input/chips/chips.props.js +30 -0
- package/components/input/chips/chips.props.js.map +1 -0
- package/components/input/chips/chips.styles.js +221 -0
- package/components/input/chips/chips.styles.js.map +1 -0
- package/components/input/composite/composite.component.js +25 -0
- package/components/input/composite/composite.component.js.map +1 -0
- package/components/input/composite/composite.props.js +12 -0
- package/components/input/composite/composite.props.js.map +1 -0
- package/components/input/composite/composite.styles.js +29 -0
- package/components/input/composite/composite.styles.js.map +1 -0
- package/components/input/currency/currency.component.js +120 -0
- package/components/input/currency/currency.component.js.map +1 -0
- package/components/input/currency/currency.props.js +13 -0
- package/components/input/currency/currency.props.js.map +1 -0
- package/components/input/currency/currency.styles.js +148 -0
- package/components/input/currency/currency.styles.js.map +1 -0
- package/components/input/epoch/base-datetime.component.js +496 -0
- package/components/input/epoch/base-datetime.component.js.map +1 -0
- package/components/input/epoch/date/date.component.js +20 -0
- package/components/input/epoch/date/date.component.js.map +1 -0
- package/components/input/epoch/date/date.props.js +11 -0
- package/components/input/epoch/date/date.props.js.map +1 -0
- package/components/input/epoch/date/date.styles.js +48 -0
- package/components/input/epoch/date/date.styles.js.map +1 -0
- package/components/input/epoch/date-picker.component.js +136 -0
- package/components/input/epoch/date-picker.component.js.map +1 -0
- package/components/input/epoch/datetime/datetime.component.js +20 -0
- package/components/input/epoch/datetime/datetime.component.js.map +1 -0
- package/components/input/epoch/datetime/datetime.props.js +36 -0
- package/components/input/epoch/datetime/datetime.props.js.map +1 -0
- package/components/input/epoch/datetime/datetime.styles.js +163 -0
- package/components/input/epoch/datetime/datetime.styles.js.map +1 -0
- package/components/input/epoch/time/time.component.js +26 -0
- package/components/input/epoch/time/time.component.js.map +1 -0
- package/components/input/epoch/time/time.props.js +15 -0
- package/components/input/epoch/time/time.props.js.map +1 -0
- package/components/input/epoch/time/time.styles.js +48 -0
- package/components/input/epoch/time/time.styles.js.map +1 -0
- package/components/input/epoch/wheel-date-picker.component.js +206 -0
- package/components/input/epoch/wheel-date-picker.component.js.map +1 -0
- package/components/input/epoch/wheel-time-picker.component.js +107 -0
- package/components/input/epoch/wheel-time-picker.component.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.js +97 -0
- package/components/input/epoch/wheelpicker/wheelpicker.component.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.js +17 -0
- package/components/input/epoch/wheelpicker/wheelpicker.props.js.map +1 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.js +55 -0
- package/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +85 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +20 -0
- package/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +66 -0
- package/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +83 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +1 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +19 -0
- package/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +1 -0
- package/components/input/fileupload/fileupload.component.js +70 -0
- package/components/input/fileupload/fileupload.component.js.map +1 -0
- package/components/input/fileupload/fileupload.props.js +19 -0
- package/components/input/fileupload/fileupload.props.js.map +1 -0
- package/components/input/fileupload/fileupload.styles.js +27 -0
- package/components/input/fileupload/fileupload.styles.js.map +1 -0
- package/components/input/number/number.component.js +86 -0
- package/components/input/number/number.component.js.map +1 -0
- package/components/input/number/number.props.js +13 -0
- package/components/input/number/number.props.js.map +1 -0
- package/components/input/number/number.styles.js +93 -0
- package/components/input/number/number.styles.js.map +1 -0
- package/components/input/radioset/radioset.component.js +147 -0
- package/components/input/radioset/radioset.component.js.map +1 -0
- package/components/input/radioset/radioset.props.js +20 -0
- package/components/input/radioset/radioset.props.js.map +1 -0
- package/components/input/radioset/radioset.styles.js +102 -0
- package/components/input/radioset/radioset.styles.js.map +1 -0
- package/components/input/rating/rating.component.js +155 -0
- package/components/input/rating/rating.component.js.map +1 -0
- package/components/input/rating/rating.props.js +25 -0
- package/components/input/rating/rating.props.js.map +1 -0
- package/components/input/rating/rating.styles.js +48 -0
- package/components/input/rating/rating.styles.js.map +1 -0
- package/components/input/select/select.component.js +303 -0
- package/components/input/select/select.component.js.map +1 -0
- package/components/input/select/select.props.js +12 -0
- package/components/input/select/select.props.js.map +1 -0
- package/components/input/select/select.styles.js +178 -0
- package/components/input/select/select.styles.js.map +1 -0
- package/components/input/slider/slider.component.js +538 -0
- package/components/input/slider/slider.component.js.map +1 -0
- package/components/input/slider/slider.props.js +20 -0
- package/components/input/slider/slider.props.js.map +1 -0
- package/components/input/slider/slider.styles.js +95 -0
- package/components/input/slider/slider.styles.js.map +1 -0
- package/components/input/switch/switch.component.js +99 -0
- package/components/input/switch/switch.component.js.map +1 -0
- package/components/input/switch/switch.props.js +13 -0
- package/components/input/switch/switch.props.js.map +1 -0
- package/components/input/switch/switch.styles.js +192 -0
- package/components/input/switch/switch.styles.js.map +1 -0
- package/components/input/text/text.component.js +132 -0
- package/components/input/text/text.component.js.map +1 -0
- package/components/input/text/text.props.js +21 -0
- package/components/input/text/text.props.js.map +1 -0
- package/components/input/text/text.styles.js +130 -0
- package/components/input/text/text.styles.js.map +1 -0
- package/components/input/textarea/textarea.component.js +88 -0
- package/components/input/textarea/textarea.component.js.map +1 -0
- package/components/input/textarea/textarea.props.js +15 -0
- package/components/input/textarea/textarea.props.js.map +1 -0
- package/components/input/textarea/textarea.styles.js +84 -0
- package/components/input/textarea/textarea.styles.js.map +1 -0
- package/components/input/toggle/toggle.component.js +202 -0
- package/components/input/toggle/toggle.component.js.map +1 -0
- package/components/input/toggle/toggle.props.js +32 -0
- package/components/input/toggle/toggle.props.js.map +1 -0
- package/components/input/toggle/toggle.styles.js +97 -0
- package/components/input/toggle/toggle.styles.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.component.js +114 -0
- package/components/navigation/appnavbar/appnavbar.component.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.props.js +22 -0
- package/components/navigation/appnavbar/appnavbar.props.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.styles.js +169 -0
- package/components/navigation/appnavbar/appnavbar.styles.js.map +1 -0
- package/components/navigation/basenav/basenav.component.js +72 -0
- package/components/navigation/basenav/basenav.component.js.map +1 -0
- package/components/navigation/basenav/basenav.props.js +18 -0
- package/components/navigation/basenav/basenav.props.js.map +1 -0
- package/components/navigation/basenav/basenav.styles.js +11 -0
- package/components/navigation/basenav/basenav.styles.js.map +1 -0
- package/components/navigation/menu/menu.component.js +66 -0
- package/components/navigation/menu/menu.component.js.map +1 -0
- package/components/navigation/menu/menu.props.js +15 -0
- package/components/navigation/menu/menu.props.js.map +1 -0
- package/components/navigation/menu/menu.styles.js +70 -0
- package/components/navigation/menu/menu.styles.js.map +1 -0
- package/components/navigation/navbar/navbar.component.js +78 -0
- package/components/navigation/navbar/navbar.component.js.map +1 -0
- package/components/navigation/navbar/navbar.props.js +16 -0
- package/components/navigation/navbar/navbar.props.js.map +1 -0
- package/components/navigation/navbar/navbar.styles.js +41 -0
- package/components/navigation/navbar/navbar.styles.js.map +1 -0
- package/components/navigation/navitem/navitem.component.js +70 -0
- package/components/navigation/navitem/navitem.component.js.map +1 -0
- package/components/navigation/navitem/navitem.props.js +19 -0
- package/components/navigation/navitem/navitem.props.js.map +1 -0
- package/components/navigation/navitem/navitem.styles.js +80 -0
- package/components/navigation/navitem/navitem.styles.js.map +1 -0
- package/components/navigation/popover/popover.component.js +220 -0
- package/components/navigation/popover/popover.component.js.map +1 -0
- package/components/navigation/popover/popover.props.js +34 -0
- package/components/navigation/popover/popover.props.js.map +1 -0
- package/components/navigation/popover/popover.styles.js +92 -0
- package/components/navigation/popover/popover.styles.js.map +1 -0
- package/components/page/content/content.component.js +16 -0
- package/components/page/content/content.component.js.map +1 -0
- package/components/page/content/content.props.js +2 -0
- package/components/page/content/content.props.js.map +1 -0
- package/components/page/content/content.styles.js +13 -0
- package/components/page/content/content.styles.js.map +1 -0
- package/components/page/left-panel/left-panel.component.js +64 -0
- package/components/page/left-panel/left-panel.component.js.map +1 -0
- package/components/page/left-panel/left-panel.props.js +12 -0
- package/components/page/left-panel/left-panel.props.js.map +1 -0
- package/components/page/left-panel/left-panel.styles.js +18 -0
- package/components/page/left-panel/left-panel.styles.js.map +1 -0
- package/components/page/page-content/page-content.component.js +207 -0
- package/components/page/page-content/page-content.component.js.map +1 -0
- package/components/page/page-content/page-content.props.js +18 -0
- package/components/page/page-content/page-content.props.js.map +1 -0
- package/components/page/page-content/page-content.styles.js +20 -0
- package/components/page/page-content/page-content.styles.js.map +1 -0
- package/components/page/page.component.js +48 -0
- package/components/page/page.component.js.map +1 -0
- package/components/page/page.props.js +15 -0
- package/components/page/page.props.js.map +1 -0
- package/components/page/page.styles.js +24 -0
- package/components/page/page.styles.js.map +1 -0
- package/components/page/partial/partial.component.js +42 -0
- package/components/page/partial/partial.component.js.map +1 -0
- package/components/page/partial/partial.props.js +2 -0
- package/components/page/partial/partial.props.js.map +1 -0
- package/components/page/partial/partial.styles.js +18 -0
- package/components/page/partial/partial.styles.js.map +1 -0
- package/components/page/partial-container/partial-container.component.js +35 -0
- package/components/page/partial-container/partial-container.component.js.map +1 -0
- package/components/page/partial-container/partial-container.props.js +13 -0
- package/components/page/partial-container/partial-container.props.js.map +1 -0
- package/components/page/partial-container/partial-container.styles.js +14 -0
- package/components/page/partial-container/partial-container.styles.js.map +1 -0
- package/components/page/tabbar/curve.js +84 -0
- package/components/page/tabbar/curve.js.map +1 -0
- package/components/page/tabbar/tabbar.component.js +258 -0
- package/components/page/tabbar/tabbar.component.js.map +1 -0
- package/components/page/tabbar/tabbar.props.js +29 -0
- package/components/page/tabbar/tabbar.props.js.map +1 -0
- package/components/page/tabbar/tabbar.styles.js +160 -0
- package/components/page/tabbar/tabbar.styles.js.map +1 -0
- package/components/prefab/prefab-container.component.js +42 -0
- package/components/prefab/prefab-container.component.js.map +1 -0
- package/components/prefab/prefab-container.props.js +2 -0
- package/components/prefab/prefab-container.props.js.map +1 -0
- package/components/prefab/prefab-container.styles.js +16 -0
- package/components/prefab/prefab-container.styles.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.component.js +322 -0
- package/components-prism/advanced/carousel/carousel.component.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.props.js +24 -0
- package/components-prism/advanced/carousel/carousel.props.js.map +1 -0
- package/components-prism/advanced/carousel/carousel.styles.js +179 -0
- package/components-prism/advanced/carousel/carousel.styles.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.component.js +227 -0
- package/components-prism/basic/progress-bar/progress-bar.component.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.props.js +20 -0
- package/components-prism/basic/progress-bar/progress-bar.props.js.map +1 -0
- package/components-prism/basic/progress-bar/progress-bar.styles.js +43 -0
- package/components-prism/basic/progress-bar/progress-bar.styles.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.component.js +80 -0
- package/components-prism/basic/progress-circle/progress-circle.component.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.props.js +19 -0
- package/components-prism/basic/progress-circle/progress-circle.props.js.map +1 -0
- package/components-prism/basic/progress-circle/progress-circle.styles.js +82 -0
- package/components-prism/basic/progress-circle/progress-circle.styles.js.map +1 -0
- package/components-prism/data/list/list-template/list-template.styles.js +27 -0
- package/components-prism/data/list/list-template/list-template.styles.js.map +1 -0
- package/components-prism/input/slider/Thumb.js +35 -0
- package/components-prism/input/slider/Thumb.js.map +1 -0
- package/components-prism/input/slider/slider.component.js +108 -0
- package/components-prism/input/slider/slider.component.js.map +1 -0
- package/components-prism/input/slider/slider.props.js +20 -0
- package/components-prism/input/slider/slider.props.js.map +1 -0
- package/components-prism/input/slider/slider.styles.js +135 -0
- package/components-prism/input/slider/slider.styles.js.map +1 -0
- package/components-prism/input/slider/withSlider.js +339 -0
- package/components-prism/input/slider/withSlider.js.map +1 -0
- package/core/AppConfig.js +2 -0
- package/core/AppConfig.js.map +1 -0
- package/core/accessibility.js +195 -0
- package/core/accessibility.js.map +1 -0
- package/core/advanced-promise-rejection-tracker.js +208 -0
- package/core/advanced-promise-rejection-tracker.js.map +1 -0
- package/core/asset.provider.js +5 -0
- package/core/asset.provider.js.map +1 -0
- package/core/auto-layout-host.component.js +31 -0
- package/core/auto-layout-host.component.js.map +1 -0
- package/core/auto-layout.utils.js +250 -0
- package/core/auto-layout.utils.js.map +1 -0
- package/core/base.component.js +671 -0
- package/core/base.component.js.map +1 -0
- package/core/components/error-fallback/error-fallback.component.js +172 -0
- package/core/components/error-fallback/error-fallback.component.js.map +1 -0
- package/core/components/error-fallback/error-fallback.styles.js +227 -0
- package/core/components/error-fallback/error-fallback.styles.js.map +1 -0
- package/core/components/floatinglabel.component.js +86 -0
- package/core/components/floatinglabel.component.js.map +1 -0
- package/core/components/sticky-base.component.js +54 -0
- package/core/components/sticky-base.component.js.map +1 -0
- package/core/components/sticky-container.component.js +34 -0
- package/core/components/sticky-container.component.js.map +1 -0
- package/core/components/sticky-container.styles.js +98 -0
- package/core/components/sticky-container.styles.js.map +1 -0
- package/core/components/sticky-nav.component.js +28 -0
- package/core/components/sticky-nav.component.js.map +1 -0
- package/core/components/textinput.component.js +226 -0
- package/core/components/textinput.component.js.map +1 -0
- package/core/components-prism/progress-circle.js +217 -0
- package/core/components-prism/progress-circle.js.map +1 -0
- package/core/constant.service.js +22 -0
- package/core/constant.service.js.map +1 -0
- package/core/constants/currency-constants.js +1066 -0
- package/core/constants/currency-constants.js.map +1 -0
- package/core/currency-constants.js +1065 -0
- package/core/currency-constants.js.map +1 -0
- package/core/device/av-service.js +8 -0
- package/core/device/av-service.js.map +1 -0
- package/core/device/calendar-service.js +8 -0
- package/core/device/calendar-service.js.map +1 -0
- package/core/device/camera-service.js +11 -0
- package/core/device/camera-service.js.map +1 -0
- package/core/device/contacts-service.js +8 -0
- package/core/device/contacts-service.js.map +1 -0
- package/core/device/fileupload-service.js +8 -0
- package/core/device/fileupload-service.js.map +1 -0
- package/core/device/location-service.js +8 -0
- package/core/device/location-service.js.map +1 -0
- package/core/device/openfile-service.js +10 -0
- package/core/device/openfile-service.js.map +1 -0
- package/core/device/scan-service.js +11 -0
- package/core/device/scan-service.js.map +1 -0
- package/core/display.manager.js +5 -0
- package/core/display.manager.js.map +1 -0
- package/core/error-boundary.component.js +64 -0
- package/core/error-boundary.component.js.map +1 -0
- package/core/event-notifier.js +69 -0
- package/core/event-notifier.js.map +1 -0
- package/core/file-extension-types.js +70 -0
- package/core/file-extension-types.js.map +1 -0
- package/core/fixed-view.component.js +94 -0
- package/core/fixed-view.component.js.map +1 -0
- package/core/formatters.js +70 -0
- package/core/formatters.js.map +1 -0
- package/core/global-error-handler.service.js +103 -0
- package/core/global-error-handler.service.js.map +1 -0
- package/core/i18n.service.js +2 -0
- package/core/i18n.service.js.map +1 -0
- package/core/if.component.js +35 -0
- package/core/if.component.js.map +1 -0
- package/core/imageSizeEstimator.js +51 -0
- package/core/imageSizeEstimator.js.map +1 -0
- package/core/injector.js +27 -0
- package/core/injector.js.map +1 -0
- package/core/key.extractor.js +21 -0
- package/core/key.extractor.js.map +1 -0
- package/core/logger.js +123 -0
- package/core/logger.js.map +1 -0
- package/core/modal.service.js +5 -0
- package/core/modal.service.js.map +1 -0
- package/core/navigation.service.js +70 -0
- package/core/navigation.service.js.map +1 -0
- package/core/network.service.js +327 -0
- package/core/network.service.js.map +1 -0
- package/core/partial.service.js +5 -0
- package/core/partial.service.js.map +1 -0
- package/core/props.provider.js +88 -0
- package/core/props.provider.js.map +1 -0
- package/core/responsive.utils.js +51 -0
- package/core/responsive.utils.js.map +1 -0
- package/core/screen-capture-protection.service.js +5 -0
- package/core/screen-capture-protection.service.js.map +1 -0
- package/core/scroll-view.component.js +52 -0
- package/core/scroll-view.component.js.map +1 -0
- package/core/secure-storage.service.js +55 -0
- package/core/secure-storage.service.js.map +1 -0
- package/core/security.service.js +5 -0
- package/core/security.service.js.map +1 -0
- package/core/spinner.service.js +5 -0
- package/core/spinner.service.js.map +1 -0
- package/core/sticky-view.component.js +51 -0
- package/core/sticky-view.component.js.map +1 -0
- package/core/sticky-wrapper.js +133 -0
- package/core/sticky-wrapper.js.map +1 -0
- package/core/storage.service.js +38 -0
- package/core/storage.service.js.map +1 -0
- package/core/tappable.component.js +163 -0
- package/core/tappable.component.js.map +1 -0
- package/core/testid.provider.js +5 -0
- package/core/testid.provider.js.map +1 -0
- package/core/toast.service.js +5 -0
- package/core/toast.service.js.map +1 -0
- package/core/ui-preferences.context.js +10 -0
- package/core/ui-preferences.context.js.map +1 -0
- package/core/utils.js +867 -0
- package/core/utils.js.map +1 -0
- package/core/viewport.js +45 -0
- package/core/viewport.js.map +1 -0
- package/core/wm-component-tree.js +58 -0
- package/core/wm-component-tree.js.map +1 -0
- package/gestures/carousel-swipe.animation.js +225 -0
- package/gestures/carousel-swipe.animation.js.map +1 -0
- package/gestures/swipe.animation.js +220 -0
- package/gestures/swipe.animation.js.map +1 -0
- package/gestures-prism/carousel.flatlist.js +349 -0
- package/gestures-prism/carousel.flatlist.js.map +1 -0
- package/index.js +2 -0
- package/index.js.map +1 -0
- package/npm-shrinkwrap.json +26212 -0
- package/package-lock.json +26212 -0
- package/package.json +291 -0
- package/runtime/App.js +763 -0
- package/runtime/App.js.map +1 -0
- package/runtime/App.navigator.js +113 -0
- package/runtime/App.navigator.js.map +1 -0
- package/runtime/base-customwidget.component.js +52 -0
- package/runtime/base-customwidget.component.js.map +1 -0
- package/runtime/base-fragment.component.js +418 -0
- package/runtime/base-fragment.component.js.map +1 -0
- package/runtime/base-page.component.js +233 -0
- package/runtime/base-page.component.js.map +1 -0
- package/runtime/base-partial.component.js +63 -0
- package/runtime/base-partial.component.js.map +1 -0
- package/runtime/base-prefab.component.js +87 -0
- package/runtime/base-prefab.component.js.map +1 -0
- package/runtime/lib-patch.js +25 -0
- package/runtime/lib-patch.js.map +1 -0
- package/runtime/memo.component.js +44 -0
- package/runtime/memo.component.js.map +1 -0
- package/runtime/navigator/drawer.navigator.js +41 -0
- package/runtime/navigator/drawer.navigator.js.map +1 -0
- package/runtime/navigator/stack.navigator.js +78 -0
- package/runtime/navigator/stack.navigator.js.map +1 -0
- package/runtime/platform.api.js +7 -0
- package/runtime/platform.api.js.map +1 -0
- package/runtime/services/app-display-manager.service.js +52 -0
- package/runtime/services/app-display-manager.service.js.map +1 -0
- package/runtime/services/app-i18n.service.js +89 -0
- package/runtime/services/app-i18n.service.js.map +1 -0
- package/runtime/services/app-modal.service.js +73 -0
- package/runtime/services/app-modal.service.js.map +1 -0
- package/runtime/services/app-security.service.js +256 -0
- package/runtime/services/app-security.service.js.map +1 -0
- package/runtime/services/app-spinner.service.js +74 -0
- package/runtime/services/app-spinner.service.js.map +1 -0
- package/runtime/services/app-toast.service.js +60 -0
- package/runtime/services/app-toast.service.js.map +1 -0
- package/runtime/services/device/calendar-service.js +95 -0
- package/runtime/services/device/calendar-service.js.map +1 -0
- package/runtime/services/device/camera-service.js +377 -0
- package/runtime/services/device/camera-service.js.map +1 -0
- package/runtime/services/device/contacts-service.js +34 -0
- package/runtime/services/device/contacts-service.js.map +1 -0
- package/runtime/services/device/location-service.js +16 -0
- package/runtime/services/device/location-service.js.map +1 -0
- package/runtime/services/device/permission-service.js +5 -0
- package/runtime/services/device/permission-service.js.map +1 -0
- package/runtime/services/device/permissions.js +45 -0
- package/runtime/services/device/permissions.js.map +1 -0
- package/runtime/services/device/scan-service.js +163 -0
- package/runtime/services/device/scan-service.js.map +1 -0
- package/runtime/services/partial.service.js +26 -0
- package/runtime/services/partial.service.js.map +1 -0
- package/runtime/services/webprocess.service.js +107 -0
- package/runtime/services/webprocess.service.js.map +1 -0
- package/runtime/watcher.js +147 -0
- package/runtime/watcher.js.map +1 -0
- package/styles/MediaQueryList.js +19 -0
- package/styles/MediaQueryList.js.map +1 -0
- package/styles/background.component.js +317 -0
- package/styles/background.component.js.map +1 -0
- package/styles/calc.js +165 -0
- package/styles/calc.js.map +1 -0
- package/styles/color-mix.js +82 -0
- package/styles/color-mix.js.map +1 -0
- package/styles/style-prop.validator.js +467 -0
- package/styles/style-prop.validator.js.map +1 -0
- package/styles/style-props.js +105 -0
- package/styles/style-props.js.map +1 -0
- package/styles/theme.js +725 -0
- package/styles/theme.js.map +1 -0
- package/styles/theme.variables.js +444 -0
- package/styles/theme.variables.js.map +1 -0
- package/variables/base-variable.js +125 -0
- package/variables/base-variable.js.map +1 -0
- package/variables/device/calendar/create-event.operation.js +53 -0
- package/variables/device/calendar/create-event.operation.js.map +1 -0
- package/variables/device/calendar/delete-event.operation.js +15 -0
- package/variables/device/calendar/delete-event.operation.js.map +1 -0
- package/variables/device/calendar/get-events.operation.js +15 -0
- package/variables/device/calendar/get-events.operation.js.map +1 -0
- package/variables/device/camera/capture-image.operation.js +13 -0
- package/variables/device/camera/capture-image.operation.js.map +1 -0
- package/variables/device/camera/capture-video.operation.js +12 -0
- package/variables/device/camera/capture-video.operation.js.map +1 -0
- package/variables/device/contacts/get-contacts.operation.js +15 -0
- package/variables/device/contacts/get-contacts.operation.js.map +1 -0
- package/variables/device/device/app-info.operation.js +13 -0
- package/variables/device/device/app-info.operation.js.map +1 -0
- package/variables/device/device/current-geo-position.operation.js +15 -0
- package/variables/device/device/current-geo-position.operation.js.map +1 -0
- package/variables/device/device/device-info.operation.js +12 -0
- package/variables/device/device/device-info.operation.js.map +1 -0
- package/variables/device/device/network-info.operation.js +33 -0
- package/variables/device/device/network-info.operation.js.map +1 -0
- package/variables/device/device/vibrate.operation.js +8 -0
- package/variables/device/device/vibrate.operation.js.map +1 -0
- package/variables/device/file/open-file.operation.js +71 -0
- package/variables/device/file/open-file.operation.js.map +1 -0
- package/variables/device/file/upload-file.operation.js +66 -0
- package/variables/device/file/upload-file.operation.js.map +1 -0
- package/variables/device/operation.provider.js +11 -0
- package/variables/device/operation.provider.js.map +1 -0
- package/variables/device/scan/scan.operation.js +15 -0
- package/variables/device/scan/scan.operation.js.map +1 -0
- package/variables/device-variable.js +28 -0
- package/variables/device-variable.js.map +1 -0
- package/variables/http.service.js +84 -0
- package/variables/http.service.js.map +1 -0
- package/variables/live-variable.js +130 -0
- package/variables/live-variable.js.map +1 -0
- package/variables/model-variable.js +47 -0
- package/variables/model-variable.js.map +1 -0
- package/variables/service-variable.js +143 -0
- package/variables/service-variable.js.map +1 -0
- package/variables/utils/dataset-util.js +139 -0
- package/variables/utils/dataset-util.js.map +1 -0
- package/variables/utils/inflight-queue.js +114 -0
- package/variables/utils/inflight-queue.js.map +1 -0
- package/variables/utils/variable.constants.js +22 -0
- package/variables/utils/variable.constants.js.map +1 -0
- package/variables/utils/variable.utils.js +189 -0
- package/variables/utils/variable.utils.js.map +1 -0
- package/wm-namespace.js +15 -0
- package/wm-namespace.js.map +1 -0
|
@@ -0,0 +1,378 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
3
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
4
|
+
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
5
|
+
import React from 'react';
|
|
6
|
+
import { isArray, isUndefined, isObject } from 'lodash-es';
|
|
7
|
+
import { Animated, Easing, View } from 'react-native';
|
|
8
|
+
import { DefaultKeyExtractor } from '@wavemaker-ai/app-rn-runtime/core/key.extractor';
|
|
9
|
+
import WmIcon from '@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.component';
|
|
10
|
+
import { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';
|
|
11
|
+
import * as SwipeAnimation from '@wavemaker-ai/app-rn-runtime/gestures/carousel-swipe.animation';
|
|
12
|
+
import { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';
|
|
13
|
+
import WmCarouselProps from './carousel.props';
|
|
14
|
+
import { DEFAULT_CLASS } from './carousel.styles';
|
|
15
|
+
export class WmCarouselState extends BaseComponentState {
|
|
16
|
+
constructor(...args) {
|
|
17
|
+
super(...args);
|
|
18
|
+
_defineProperty(this, "activeIndex", 1);
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
export default class WmCarousel extends BaseComponent {
|
|
22
|
+
constructor(_props) {
|
|
23
|
+
super(_props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());
|
|
24
|
+
_defineProperty(this, "noOfSlides", 0);
|
|
25
|
+
_defineProperty(this, "slidesLayout", []);
|
|
26
|
+
_defineProperty(this, "keyExtractor", new DefaultKeyExtractor());
|
|
27
|
+
_defineProperty(this, "stopPlay", null);
|
|
28
|
+
_defineProperty(this, "dotPosition", new Animated.Value(0));
|
|
29
|
+
_defineProperty(this, "wrapperPosition", new Animated.Value(0));
|
|
30
|
+
_defineProperty(this, "animationView", null);
|
|
31
|
+
_defineProperty(this, "animationHandlers", {
|
|
32
|
+
bounds: e => {
|
|
33
|
+
var _this$slidesLayout, _this$slidesLayout$ac;
|
|
34
|
+
const activeTabIndex = this.state.activeIndex - 1;
|
|
35
|
+
let lower = 0;
|
|
36
|
+
if (activeTabIndex > 0) {
|
|
37
|
+
lower = this.slidesLayout.filter((l, i) => i < activeTabIndex - 1).reduce((s, l) => s + l.width, 0);
|
|
38
|
+
}
|
|
39
|
+
let center = lower + (((_this$slidesLayout = this.slidesLayout[activeTabIndex - 1]) === null || _this$slidesLayout === void 0 ? void 0 : _this$slidesLayout.width) || 0);
|
|
40
|
+
let upper = center + (((_this$slidesLayout$ac = this.slidesLayout[activeTabIndex]) === null || _this$slidesLayout$ac === void 0 ? void 0 : _this$slidesLayout$ac.width) || 0);
|
|
41
|
+
return {
|
|
42
|
+
lower: -1 * lower,
|
|
43
|
+
center: -1 * center,
|
|
44
|
+
upper: -1 * upper
|
|
45
|
+
};
|
|
46
|
+
},
|
|
47
|
+
computePhase: value => {
|
|
48
|
+
var _this$slidesLayout$ac2;
|
|
49
|
+
const activeTabIndex = this.state.activeIndex - 1;
|
|
50
|
+
const w = ((_this$slidesLayout$ac2 = this.slidesLayout[activeTabIndex]) === null || _this$slidesLayout$ac2 === void 0 ? void 0 : _this$slidesLayout$ac2.width) || 0;
|
|
51
|
+
return w && Math.abs(value / w);
|
|
52
|
+
},
|
|
53
|
+
onLower: e => {
|
|
54
|
+
this.onSlideChange(this.state.activeIndex - 1);
|
|
55
|
+
},
|
|
56
|
+
onUpper: e => {
|
|
57
|
+
if (this.noOfSlides < this.state.activeIndex + 1) {
|
|
58
|
+
if (this.state.props.stopatlast) {
|
|
59
|
+
var _this$animationView;
|
|
60
|
+
const currentSlideIndex = this.state.activeIndex - 1;
|
|
61
|
+
const currentPosition = this.slidesLayout.filter((l, i) => i < currentSlideIndex).reduce((s, l) => s + l.width, 0);
|
|
62
|
+
(_this$animationView = this.animationView) === null || _this$animationView === void 0 || _this$animationView.setPosition(-1 * currentPosition);
|
|
63
|
+
return;
|
|
64
|
+
} else {
|
|
65
|
+
var _this$animationView2;
|
|
66
|
+
this.onSlideChange(1);
|
|
67
|
+
(_this$animationView2 = this.animationView) === null || _this$animationView2 === void 0 || _this$animationView2.setPosition(0);
|
|
68
|
+
}
|
|
69
|
+
} else {
|
|
70
|
+
this.onSlideChange(this.state.activeIndex + 1);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
_defineProperty(this, "onSlideChange", index => {
|
|
75
|
+
const prevIndex = this.state.activeIndex;
|
|
76
|
+
this.updateState({
|
|
77
|
+
activeIndex: index
|
|
78
|
+
}, () => this.invokeEventCallback('onChange', [this, index, prevIndex]));
|
|
79
|
+
this.animatePagination(index);
|
|
80
|
+
});
|
|
81
|
+
_defineProperty(this, "renderItem", (item, index) => {
|
|
82
|
+
const props = this.state.props;
|
|
83
|
+
if (props.type === 'dynamic') {
|
|
84
|
+
return props.renderSlide ? props.renderSlide(item, index, this) : null;
|
|
85
|
+
}
|
|
86
|
+
const data = this.extractChildrenData(props.children);
|
|
87
|
+
return data[index];
|
|
88
|
+
});
|
|
89
|
+
_defineProperty(this, "next", () => {
|
|
90
|
+
const props = this.state.props;
|
|
91
|
+
const data = props.type === 'dynamic' ? props.dataset : props.children;
|
|
92
|
+
if (this.state.activeIndex >= (data === null || data === void 0 ? void 0 : data.length) || 0) {
|
|
93
|
+
if (props.stopatlast) {
|
|
94
|
+
return;
|
|
95
|
+
} else {
|
|
96
|
+
var _this$animationView3;
|
|
97
|
+
this.onSlideChange(1);
|
|
98
|
+
(_this$animationView3 = this.animationView) === null || _this$animationView3 === void 0 || _this$animationView3.setPosition(0);
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
var _this$animationView4;
|
|
102
|
+
(_this$animationView4 = this.animationView) === null || _this$animationView4 === void 0 || _this$animationView4.goToUpper();
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
_defineProperty(this, "prev", () => {
|
|
106
|
+
var _this$animationView5;
|
|
107
|
+
(_this$animationView5 = this.animationView) === null || _this$animationView5 === void 0 || _this$animationView5.goToLower();
|
|
108
|
+
});
|
|
109
|
+
//Added below function to handle the case if the props.children has one object https://wavemaker.atlassian.net/browse/WMS-25986
|
|
110
|
+
_defineProperty(this, "extractChildrenData", data => {
|
|
111
|
+
if (Array.isArray(data)) {
|
|
112
|
+
return data;
|
|
113
|
+
}
|
|
114
|
+
if (data && isObject(data) && Object.keys(data).length > 0) {
|
|
115
|
+
return [data];
|
|
116
|
+
}
|
|
117
|
+
return [];
|
|
118
|
+
});
|
|
119
|
+
this.cleanup.push(() => {
|
|
120
|
+
this.stopPlay && this.stopPlay();
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
addSlideLayout(index, nativeEvent) {
|
|
124
|
+
this.slidesLayout[index] = nativeEvent.nativeEvent.layout;
|
|
125
|
+
if (index === this.state.activeIndex) {
|
|
126
|
+
this.forceUpdate();
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
generateItemKey(item, index, props) {
|
|
130
|
+
if (props.itemkey && item && !this._showSkeleton) {
|
|
131
|
+
return props.itemkey(item, index);
|
|
132
|
+
}
|
|
133
|
+
return 'list_item_' + this.keyExtractor.getKey(item, true);
|
|
134
|
+
}
|
|
135
|
+
autoPlay() {
|
|
136
|
+
if (!this.initialized) {
|
|
137
|
+
return;
|
|
138
|
+
}
|
|
139
|
+
const props = this.state.props;
|
|
140
|
+
this.stopPlay && this.stopPlay();
|
|
141
|
+
if (props.animation === 'auto' && props.animationinterval) {
|
|
142
|
+
const intervalId = setInterval(() => {
|
|
143
|
+
if (props.stopatlast && this.state.activeIndex >= this.noOfSlides) {
|
|
144
|
+
return;
|
|
145
|
+
}
|
|
146
|
+
this.next();
|
|
147
|
+
}, props.animationinterval * 1000);
|
|
148
|
+
this.stopPlay = () => clearInterval(intervalId);
|
|
149
|
+
} else {
|
|
150
|
+
setTimeout(() => {
|
|
151
|
+
var _this$animationView6;
|
|
152
|
+
this.onSlideChange(1);
|
|
153
|
+
(_this$animationView6 = this.animationView) === null || _this$animationView6 === void 0 || _this$animationView6.setPosition(0);
|
|
154
|
+
}, 1000);
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
stopAnimation() {
|
|
158
|
+
this.stopPlay();
|
|
159
|
+
}
|
|
160
|
+
startAnimation() {
|
|
161
|
+
this.autoPlay();
|
|
162
|
+
}
|
|
163
|
+
onPropertyChange(name, $new, $old) {
|
|
164
|
+
super.onPropertyChange(name, $new, $old);
|
|
165
|
+
switch (name) {
|
|
166
|
+
case 'dataset':
|
|
167
|
+
{
|
|
168
|
+
var _this$keyExtractor;
|
|
169
|
+
(_this$keyExtractor = this.keyExtractor) === null || _this$keyExtractor === void 0 || _this$keyExtractor.clear();
|
|
170
|
+
this.updateState({
|
|
171
|
+
activeIndex: Math.min(this.state.activeIndex, ($new === null || $new === void 0 ? void 0 : $new.length) || 1)
|
|
172
|
+
});
|
|
173
|
+
break;
|
|
174
|
+
}
|
|
175
|
+
case 'animation':
|
|
176
|
+
case 'animationinterval':
|
|
177
|
+
{
|
|
178
|
+
this.autoPlay();
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
animatePagination(index) {
|
|
183
|
+
var _this$styles$dotStyle, _this$styles$dotStyle2, _this$styles$dotStyle3;
|
|
184
|
+
const prevIndex = this.state.activeIndex;
|
|
185
|
+
const props = this.state.props;
|
|
186
|
+
const maxNoOfDots = this.state.props.maxnoofdots;
|
|
187
|
+
const margin = (((_this$styles$dotStyle = this.styles.dotStyle) === null || _this$styles$dotStyle === void 0 ? void 0 : _this$styles$dotStyle.marginLeft) || 0) + (((_this$styles$dotStyle2 = this.styles.dotStyle) === null || _this$styles$dotStyle2 === void 0 ? void 0 : _this$styles$dotStyle2.marginRight) || 0);
|
|
188
|
+
const width = ((_this$styles$dotStyle3 = this.styles.dotStyle) === null || _this$styles$dotStyle3 === void 0 ? void 0 : _this$styles$dotStyle3.width) || 2;
|
|
189
|
+
const size = margin + width;
|
|
190
|
+
const multiplier = this.isRTL ? -1 : 1;
|
|
191
|
+
const options = {
|
|
192
|
+
useNativeDriver: true,
|
|
193
|
+
duration: 100,
|
|
194
|
+
easing: Easing.out(Easing.linear)
|
|
195
|
+
};
|
|
196
|
+
let data = props.type === 'dynamic' ? props.dataset : props.children;
|
|
197
|
+
const shouldAnimate = !(maxNoOfDots >= (data === null || data === void 0 ? void 0 : data.length)) && index > 3 && index <= (data === null || data === void 0 ? void 0 : data.length) - 2;
|
|
198
|
+
if (shouldAnimate) {
|
|
199
|
+
const newTranslateX = multiplier * -(index - 3) * (width + margin);
|
|
200
|
+
Animated.timing(this.wrapperPosition, {
|
|
201
|
+
toValue: newTranslateX,
|
|
202
|
+
...options
|
|
203
|
+
}).start();
|
|
204
|
+
}
|
|
205
|
+
if (index == 1 && prevIndex == (data === null || data === void 0 ? void 0 : data.length)) {
|
|
206
|
+
Animated.timing(this.wrapperPosition, {
|
|
207
|
+
toValue: 0,
|
|
208
|
+
...options
|
|
209
|
+
}).start();
|
|
210
|
+
}
|
|
211
|
+
if (prevIndex < index || prevIndex > index) {
|
|
212
|
+
Animated.timing(this.dotPosition, {
|
|
213
|
+
toValue: multiplier * size * Math.max(index - 1, 0),
|
|
214
|
+
...options
|
|
215
|
+
}).start();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
renderPagination(data) {
|
|
219
|
+
var _this$styles$dotStyle4, _this$styles$dotStyle5;
|
|
220
|
+
const maxNoOfDots = data.length > 5 ? this.state.props.maxnoofdots : data.length;
|
|
221
|
+
const activeIndex = this.state.activeIndex - 1;
|
|
222
|
+
const dotMargin = (((_this$styles$dotStyle4 = this.styles.dotStyle) === null || _this$styles$dotStyle4 === void 0 ? void 0 : _this$styles$dotStyle4.marginLeft) || 0) + (((_this$styles$dotStyle5 = this.styles.dotStyle) === null || _this$styles$dotStyle5 === void 0 ? void 0 : _this$styles$dotStyle5.marginRight) || 0);
|
|
223
|
+
const wrapperWidth = this.styles.dotStyle.width * maxNoOfDots + dotMargin * maxNoOfDots;
|
|
224
|
+
let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);
|
|
225
|
+
let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);
|
|
226
|
+
if (maxIndex === data.length) {
|
|
227
|
+
minIndex = maxIndex - maxNoOfDots;
|
|
228
|
+
}
|
|
229
|
+
const dotStyle = this._showSkeleton ? {
|
|
230
|
+
...this.styles.dotStyle,
|
|
231
|
+
...this.styles.dotSkeleton.root
|
|
232
|
+
} : this.styles.dotStyle;
|
|
233
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
234
|
+
style: {
|
|
235
|
+
width: '100%',
|
|
236
|
+
justifyContent: 'center',
|
|
237
|
+
alignItems: 'center'
|
|
238
|
+
}
|
|
239
|
+
}, /*#__PURE__*/React.createElement(View, {
|
|
240
|
+
style: [this.styles.dotsWrapperStyle, {
|
|
241
|
+
width: wrapperWidth
|
|
242
|
+
}]
|
|
243
|
+
}, /*#__PURE__*/React.createElement(Animated.View, {
|
|
244
|
+
style: [{
|
|
245
|
+
flexDirection: this.isRTL ? 'row-reverse' : 'row',
|
|
246
|
+
transform: [{
|
|
247
|
+
translateX: this.wrapperPosition
|
|
248
|
+
}]
|
|
249
|
+
}, this.styles.dotsContainerStyle]
|
|
250
|
+
}, data.map((item, index) => {
|
|
251
|
+
const isActive = index === activeIndex;
|
|
252
|
+
let scale = 1;
|
|
253
|
+
if (activeIndex <= 2) {
|
|
254
|
+
scale = index <= 2 ? 1 : 1 - 0.1 * (index - 2);
|
|
255
|
+
} else if (activeIndex >= data.length - 3) {
|
|
256
|
+
scale = index >= data.length - 3 ? 1 : 1 - 0.1 * (data.length - 3 - index);
|
|
257
|
+
} else {
|
|
258
|
+
scale = index === activeIndex ? 1 : Math.abs(index - activeIndex) === 1 ? 0.9 : 0.8;
|
|
259
|
+
}
|
|
260
|
+
const animatedScale = new Animated.Value(scale);
|
|
261
|
+
Animated.timing(animatedScale, {
|
|
262
|
+
toValue: scale,
|
|
263
|
+
duration: 100,
|
|
264
|
+
easing: Easing.out(Easing.ease),
|
|
265
|
+
useNativeDriver: true
|
|
266
|
+
}).start();
|
|
267
|
+
return /*#__PURE__*/React.createElement(Animated.View, _extends({
|
|
268
|
+
key: 'dots_' + this.generateItemKey(item, index, this.state.props)
|
|
269
|
+
}, this.getTestPropsForAction('indicator' + index), {
|
|
270
|
+
style: [dotStyle, isActive && this.styles.activeDotStyle, {
|
|
271
|
+
transform: [{
|
|
272
|
+
scale: animatedScale
|
|
273
|
+
}]
|
|
274
|
+
}]
|
|
275
|
+
}));
|
|
276
|
+
}))));
|
|
277
|
+
}
|
|
278
|
+
renderSkeleton(props) {
|
|
279
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
280
|
+
style: [this.styles.root, {
|
|
281
|
+
...this.styles.skeleton.root
|
|
282
|
+
}]
|
|
283
|
+
}, this.renderItem({}, 0), this.renderPagination([{}, {}, {}]));
|
|
284
|
+
}
|
|
285
|
+
componentDidMount() {
|
|
286
|
+
super.componentDidMount();
|
|
287
|
+
this.autoPlay();
|
|
288
|
+
}
|
|
289
|
+
renderWidget(props) {
|
|
290
|
+
var _data, _this$styles$slide;
|
|
291
|
+
const hasNavs = props.controls === 'both' || props.controls === 'navs';
|
|
292
|
+
const hasDots = props.controls === 'both' || props.controls === 'indicators';
|
|
293
|
+
let styles = this.styles;
|
|
294
|
+
let data = props.type === 'dynamic' ? props.dataset : props.children;
|
|
295
|
+
data = this.extractChildrenData(data);
|
|
296
|
+
this.noOfSlides = ((_data = data) === null || _data === void 0 ? void 0 : _data.length) || 0;
|
|
297
|
+
let slideScale = undefined;
|
|
298
|
+
let slideTranslateX = undefined;
|
|
299
|
+
if (isArray((_this$styles$slide = this.styles.slide) === null || _this$styles$slide === void 0 ? void 0 : _this$styles$slide.transform)) {
|
|
300
|
+
var _this$styles$slide2, _this$styles$slide3;
|
|
301
|
+
slideScale = (_this$styles$slide2 = this.styles.slide) === null || _this$styles$slide2 === void 0 || (_this$styles$slide2 = _this$styles$slide2.transform) === null || _this$styles$slide2 === void 0 || (_this$styles$slide2 = _this$styles$slide2.find(o => !isUndefined(o.scale))) === null || _this$styles$slide2 === void 0 ? void 0 : _this$styles$slide2.scale;
|
|
302
|
+
slideTranslateX = (_this$styles$slide3 = this.styles.slide) === null || _this$styles$slide3 === void 0 || (_this$styles$slide3 = _this$styles$slide3.transform) === null || _this$styles$slide3 === void 0 || (_this$styles$slide3 = _this$styles$slide3.find(o => !isUndefined(o.translateX))) === null || _this$styles$slide3 === void 0 ? void 0 : _this$styles$slide3.translateX;
|
|
303
|
+
}
|
|
304
|
+
// TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608
|
|
305
|
+
return /*#__PURE__*/React.createElement(View, {
|
|
306
|
+
style: styles.root,
|
|
307
|
+
onLayout: event => this.handleLayout(event)
|
|
308
|
+
}, this._background, /*#__PURE__*/React.createElement(SwipeAnimation.View, {
|
|
309
|
+
enableGestures: props.enablegestures && this.noOfSlides > 1,
|
|
310
|
+
style: {
|
|
311
|
+
flex: 1
|
|
312
|
+
},
|
|
313
|
+
direction: "horizontal",
|
|
314
|
+
threshold: this.state.props.threshold,
|
|
315
|
+
ref: r => {
|
|
316
|
+
this.animationView = r;
|
|
317
|
+
},
|
|
318
|
+
handlers: this.animationHandlers,
|
|
319
|
+
slideMinWidth: this.styles.slide.width,
|
|
320
|
+
slidesLayout: this.slidesLayout,
|
|
321
|
+
activeIndex: this.state.activeIndex
|
|
322
|
+
}, data.map((item, index) => {
|
|
323
|
+
var _this$animationView7, _this$animationView8;
|
|
324
|
+
const isActive = index === this.state.activeIndex - 1;
|
|
325
|
+
let scale = (_this$animationView7 = this.animationView) === null || _this$animationView7 === void 0 ? void 0 : _this$animationView7.animationPhase.interpolate({
|
|
326
|
+
inputRange: [-2000, index - 1, index, index + 1, 2000],
|
|
327
|
+
outputRange: [slideScale, slideScale, 1, slideScale, slideScale]
|
|
328
|
+
});
|
|
329
|
+
let translateX = (_this$animationView8 = this.animationView) === null || _this$animationView8 === void 0 ? void 0 : _this$animationView8.animationPhase.interpolate({
|
|
330
|
+
inputRange: [-2000, index - 1, index, index + 1, 2000],
|
|
331
|
+
outputRange: [-56, -56, 0, 56, 56]
|
|
332
|
+
});
|
|
333
|
+
return /*#__PURE__*/React.createElement(Animated.View, {
|
|
334
|
+
key: this.generateItemKey(item, index, props),
|
|
335
|
+
onLayout: this.addSlideLayout.bind(this, index),
|
|
336
|
+
testID: `carousel_item_${index}`,
|
|
337
|
+
style: [{
|
|
338
|
+
height: props.type === 'dynamic' ? undefined : '100%'
|
|
339
|
+
}, this.styles.slide, index === 0 ? this.styles.firstSlide : null, index === data.length - 1 ? this.styles.lastSlide : null, isActive ? this.styles.activeSlide : null, translateX && scale ? {
|
|
340
|
+
transform: [{
|
|
341
|
+
translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX
|
|
342
|
+
}, {
|
|
343
|
+
scale: scale
|
|
344
|
+
}]
|
|
345
|
+
} : null]
|
|
346
|
+
}, /*#__PURE__*/React.createElement(Tappable, {
|
|
347
|
+
onTap: () => {
|
|
348
|
+
var _this$animationView9;
|
|
349
|
+
this.onSlideChange(index + 1);
|
|
350
|
+
const position = this.slidesLayout.filter((l, i) => i < index).reduce((s, l) => s + l.width, 0);
|
|
351
|
+
(_this$animationView9 = this.animationView) === null || _this$animationView9 === void 0 || _this$animationView9.setPosition(-1 * position);
|
|
352
|
+
},
|
|
353
|
+
rippleColor: this.styles.root.rippleColor,
|
|
354
|
+
styles: {
|
|
355
|
+
height: "100%"
|
|
356
|
+
},
|
|
357
|
+
disableTouchEffect: this.state.props.disabletoucheffect
|
|
358
|
+
}, this.renderItem(item, index)));
|
|
359
|
+
})), hasNavs ? /*#__PURE__*/React.createElement(View, {
|
|
360
|
+
style: styles.btnPanel
|
|
361
|
+
}, /*#__PURE__*/React.createElement(WmIcon, {
|
|
362
|
+
id: this.getTestId('prev_icon'),
|
|
363
|
+
iconclass: "wi wi-chevron-left fa-2x",
|
|
364
|
+
styles: styles.prevBtn,
|
|
365
|
+
onTap: this.prev,
|
|
366
|
+
accessibilitylabel: "back",
|
|
367
|
+
accessibilityrole: "button"
|
|
368
|
+
}), /*#__PURE__*/React.createElement(WmIcon, {
|
|
369
|
+
id: this.getTestId('next_icon'),
|
|
370
|
+
iconclass: "wi wi-chevron-right fa-2x",
|
|
371
|
+
styles: styles.nextBtn,
|
|
372
|
+
onTap: this.next,
|
|
373
|
+
accessibilitylabel: "next",
|
|
374
|
+
accessibilityrole: "button"
|
|
375
|
+
})) : null, hasDots && data ? this.renderPagination(data) : null);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
//# sourceMappingURL=carousel.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["React","isArray","isUndefined","isObject","Animated","Easing","View","DefaultKeyExtractor","WmIcon","BaseComponent","BaseComponentState","SwipeAnimation","Tappable","WmCarouselProps","DEFAULT_CLASS","WmCarouselState","constructor","args","_defineProperty","WmCarousel","props","Value","bounds","e","_this$slidesLayout","_this$slidesLayout$ac","activeTabIndex","state","activeIndex","lower","slidesLayout","filter","l","i","reduce","s","width","center","upper","computePhase","value","_this$slidesLayout$ac2","w","Math","abs","onLower","onSlideChange","onUpper","noOfSlides","stopatlast","_this$animationView","currentSlideIndex","currentPosition","animationView","setPosition","_this$animationView2","index","prevIndex","updateState","invokeEventCallback","animatePagination","item","type","renderSlide","data","extractChildrenData","children","dataset","length","_this$animationView3","_this$animationView4","goToUpper","_this$animationView5","goToLower","Array","Object","keys","cleanup","push","stopPlay","addSlideLayout","nativeEvent","layout","forceUpdate","generateItemKey","itemkey","_showSkeleton","keyExtractor","getKey","autoPlay","initialized","animation","animationinterval","intervalId","setInterval","next","clearInterval","setTimeout","_this$animationView6","stopAnimation","startAnimation","onPropertyChange","name","$new","$old","_this$keyExtractor","clear","min","_this$styles$dotStyle","_this$styles$dotStyle2","_this$styles$dotStyle3","maxNoOfDots","maxnoofdots","margin","styles","dotStyle","marginLeft","marginRight","size","multiplier","isRTL","options","useNativeDriver","duration","easing","out","linear","shouldAnimate","newTranslateX","timing","wrapperPosition","toValue","start","dotPosition","max","renderPagination","_this$styles$dotStyle4","_this$styles$dotStyle5","dotMargin","wrapperWidth","minIndex","maxIndex","dotSkeleton","root","createElement","style","justifyContent","alignItems","dotsWrapperStyle","flexDirection","transform","translateX","dotsContainerStyle","map","isActive","scale","animatedScale","ease","_extends","key","getTestPropsForAction","activeDotStyle","renderSkeleton","skeleton","renderItem","componentDidMount","renderWidget","_data","_this$styles$slide","hasNavs","controls","hasDots","slideScale","undefined","slideTranslateX","slide","_this$styles$slide2","_this$styles$slide3","find","o","onLayout","event","handleLayout","_background","enableGestures","enablegestures","flex","direction","threshold","ref","r","handlers","animationHandlers","slideMinWidth","_this$animationView7","_this$animationView8","animationPhase","interpolate","inputRange","outputRange","bind","testID","height","firstSlide","lastSlide","activeSlide","onTap","_this$animationView9","position","rippleColor","disableTouchEffect","disabletoucheffect","btnPanel","id","getTestId","iconclass","prevBtn","prev","accessibilitylabel","accessibilityrole","nextBtn"],"sources":["carousel.component.tsx"],"sourcesContent":["import React from 'react';\nimport { isArray, isUndefined, isObject } from 'lodash-es';\nimport { Animated, Easing, View, LayoutChangeEvent, LayoutRectangle } from 'react-native';\nimport { DefaultKeyExtractor } from '@wavemaker-ai/app-rn-runtime/core/key.extractor';\nimport WmIcon from '@wavemaker-ai/app-rn-runtime/components/basic/icon/icon.component';\nimport { BaseComponent, BaseComponentState } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport * as SwipeAnimation from '@wavemaker-ai/app-rn-runtime/gestures/carousel-swipe.animation';\nimport { Tappable } from '@wavemaker-ai/app-rn-runtime/core/tappable.component';\n\nimport WmCarouselProps from './carousel.props';\nimport { DEFAULT_CLASS, WmCarouselStyles } from './carousel.styles';\nimport { createSkeleton } from '@wavemaker-ai/app-rn-runtime/components/basic/skeleton/skeleton.component';\n\nexport class WmCarouselState extends BaseComponentState<WmCarouselProps> {\n activeIndex = 1;\n}\n\nexport default class WmCarousel extends BaseComponent<WmCarouselProps, WmCarouselState, WmCarouselStyles> {\n\n noOfSlides: number = 0;\n private slidesLayout: LayoutRectangle[] = [];\n private keyExtractor = new DefaultKeyExtractor();\n stopPlay: Function = null as any;\n private dotPosition = new Animated.Value(0);\n private wrapperPosition = new Animated.Value(0);\n private animationView: SwipeAnimation.View | null = null as any;\n private animationHandlers = {\n bounds: (e) => {\n const activeTabIndex = this.state.activeIndex - 1;\n let lower = 0;\n if (activeTabIndex > 0) {\n lower = this.slidesLayout\n .filter((l , i) => i < activeTabIndex - 1)\n .reduce((s, l) => s + l.width, 0);\n }\n let center = lower + (this.slidesLayout[activeTabIndex - 1]?.width || 0);\n let upper = center + (this.slidesLayout[activeTabIndex]?.width || 0);\n return {\n lower: -1 * lower,\n center: -1 * center,\n upper: -1 * upper\n };\n },\n computePhase: (value) => {\n const activeTabIndex = this.state.activeIndex - 1;\n const w = this.slidesLayout[activeTabIndex]?.width || 0;\n return w && Math.abs(value / w);\n },\n onLower: (e) => {\n this.onSlideChange(this.state.activeIndex - 1);\n },\n onUpper: (e) => {\n if(this.noOfSlides < this.state.activeIndex + 1){\n if (this.state.props.stopatlast) {\n const currentSlideIndex = this.state.activeIndex - 1;\n const currentPosition = this.slidesLayout\n .filter((l, i) => i < currentSlideIndex)\n .reduce((s, l) => s + l.width, 0);\n this.animationView?.setPosition(-1 * currentPosition);\n return;\n } else {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }\n } else {\n this.onSlideChange(this.state.activeIndex + 1);\n }\n }\n } as SwipeAnimation.Handlers;\n\n constructor(props: WmCarouselProps) {\n super(props, DEFAULT_CLASS, new WmCarouselProps(), new WmCarouselState());\n this.cleanup.push(() => {\n this.stopPlay && this.stopPlay();\n })\n }\n\n addSlideLayout(index: number, nativeEvent: LayoutChangeEvent) {\n this.slidesLayout[index] = nativeEvent.nativeEvent.layout;\n if (index === this.state.activeIndex) {\n this.forceUpdate();\n }\n }\n\n private generateItemKey(item: any, index: number, props: WmCarouselProps) {\n if (props.itemkey && item && !this._showSkeleton) {\n return props.itemkey(item, index);\n }\n return 'list_item_' + this.keyExtractor.getKey(item, true);\n }\n\n autoPlay() {\n if(!this.initialized){\n return;\n }\n const props = this.state.props;\n this.stopPlay && this.stopPlay();\n if (props.animation === 'auto' && props.animationinterval) {\n const intervalId = setInterval(() => {\n if (props.stopatlast && this.state.activeIndex >= this.noOfSlides) {\n return;\n }\n this.next();\n }, props.animationinterval * 1000);\n this.stopPlay = () => clearInterval(intervalId);\n } else {\n setTimeout(() => {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }, 1000);\n }\n }\n\n stopAnimation(){\n this.stopPlay();\n }\n startAnimation() {\n this.autoPlay();\n }\n\n\n onPropertyChange(name: string, $new: any, $old: any): void {\n super.onPropertyChange(name, $new, $old);\n switch (name) {\n case 'dataset': {\n this.keyExtractor?.clear();\n this.updateState({\n activeIndex: Math.min(this.state.activeIndex, $new?.length || 1)\n } as WmCarouselState);\n break;\n }\n case 'animation':\n case 'animationinterval' : {\n this.autoPlay();\n }\n }\n }\n\n animatePagination(index: number) {\n const prevIndex = this.state.activeIndex;\n const props = this.state.props;\n const maxNoOfDots = this.state.props.maxnoofdots;\n const margin = ((this.styles.dotStyle?.marginLeft as number)|| 0) +\n ((this.styles.dotStyle?.marginRight as number)|| 0)\n const width = (this.styles.dotStyle?.width as number)|| 2;\n const size = margin + width;\n const multiplier = this.isRTL ? -1 : 1;\n const options = {\n useNativeDriver: true,\n duration: 100,\n easing: Easing.out(Easing.linear),\n };\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n const shouldAnimate = !(maxNoOfDots >= data?.length) && index > 3 && index <= data?.length - 2;\n if (shouldAnimate) {\n const newTranslateX = multiplier * -(index - 3) * (width + margin);\n Animated.timing(this.wrapperPosition, {\n toValue: newTranslateX,\n ...options,\n }).start();\n }\n if (index == 1 && prevIndex == data?.length) {\n Animated.timing(this.wrapperPosition, {\n toValue: 0,\n ...options,\n }).start();\n }\n if (prevIndex < index || prevIndex > index) {\n Animated.timing(this.dotPosition, {\n toValue: multiplier * size * Math.max(index - 1, 0),\n ...options,\n }).start();\n }\n }\n\n onSlideChange = (index: number) => {\n const prevIndex = this.state.activeIndex;\n this.updateState({\n activeIndex: index\n } as WmCarouselState,\n () => this.invokeEventCallback('onChange', [this, index, prevIndex]));\n this.animatePagination(index);\n }\n\n renderItem = (item: any, index: number) => {\n const props = this.state.props;\n if (props.type === 'dynamic') {\n return props.renderSlide ? props.renderSlide(item, index, this) : null;\n }\n const data= this.extractChildrenData(props.children)\n return data[index];\n\n }\n\n next = () => {\n const props = this.state.props;\n const data = props.type === 'dynamic' ? props.dataset : props.children;\n if (this.state.activeIndex >= data?.length || 0) {\n if (props.stopatlast) {\n return;\n } else {\n this.onSlideChange(1);\n this.animationView?.setPosition(0);\n }\n } else {\n this.animationView?.goToUpper();\n }\n }\n\n prev = () => {\n this.animationView?.goToLower();\n }\n\n renderPagination(data: any) {\n const maxNoOfDots = data.length > 5 ? this.state.props.maxnoofdots : data.length;\n const activeIndex = this.state.activeIndex - 1;\n const dotMargin = ((this.styles.dotStyle?.marginLeft as number)|| 0) +\n ((this.styles.dotStyle?.marginRight as number)|| 0);\n const wrapperWidth = (this.styles.dotStyle.width as any * maxNoOfDots) + (dotMargin * maxNoOfDots);\n let minIndex = Math.max(this.state.activeIndex - maxNoOfDots + 1, 0);\n let maxIndex = Math.min(minIndex + maxNoOfDots - 1, data.length);\n if (maxIndex === data.length) {\n minIndex = maxIndex - maxNoOfDots;\n }\n const dotStyle = this._showSkeleton ? {\n ...this.styles.dotStyle,\n ...this.styles.dotSkeleton.root\n } : this.styles.dotStyle\n return (<View style={{ width: '100%', justifyContent: 'center', alignItems: 'center' }}>\n <View style={[this.styles.dotsWrapperStyle, { width: wrapperWidth }]}>\n <Animated.View\n style={[{\n flexDirection: this.isRTL ? 'row-reverse' : 'row',\n transform: [{ translateX: this.wrapperPosition }],\n }, this.styles.dotsContainerStyle]}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === activeIndex;\n let scale = 1;\n if (activeIndex <= 2) {\n scale = index <= 2 ? 1 : 1 - 0.1 * (index - 2);\n } else if (activeIndex >= data.length - 3) {\n scale = index >= data.length - 3 ? 1 : 1 - 0.1 * ((data.length - 3) - index);\n } else {\n scale = index === activeIndex ? 1 : (Math.abs(index - activeIndex) === 1 ? 0.9 : 0.8);\n }\n const animatedScale = new Animated.Value(scale);\n Animated.timing(animatedScale, {\n toValue: scale,\n duration: 100,\n easing: Easing.out(Easing.ease),\n useNativeDriver: true,\n }).start();\n return (\n <Animated.View\n key={'dots_' + this.generateItemKey(item, index, this.state.props)}\n {...this.getTestPropsForAction('indicator' + index)}\n style={[dotStyle,\n isActive && this.styles.activeDotStyle,\n {\n transform: [{scale: animatedScale}]\n },\n ]}\n />\n );\n })}\n </Animated.View>\n </View>\n </View>);\n }\n\n public renderSkeleton(props: WmCarouselProps): React.ReactNode | null {\n return <View style={[this.styles.root, {...this.styles.skeleton.root}]}>\n {this.renderItem({}, 0)}\n {this.renderPagination([{}, {}, {}])}\n </View>\n }\n\n componentDidMount(): void {\n super.componentDidMount();\n this.autoPlay();\n }\n //Added below function to handle the case if the props.children has one object https://wavemaker.atlassian.net/browse/WMS-25986\n extractChildrenData = (data: any) => {\n if(Array.isArray(data)){\n return data;\n }\n if(data && isObject(data) && Object.keys(data).length > 0){\n return [data]\n }\n return [];\n }\n\n renderWidget(props: WmCarouselProps) {\n const hasNavs = props.controls === 'both' || props.controls ==='navs';\n const hasDots = props.controls === 'both' || props.controls ==='indicators';\n let styles = this.styles;\n let data = props.type === 'dynamic' ? props.dataset : props.children;\n data = this.extractChildrenData(data);\n this.noOfSlides = data?.length || 0;\n let slideScale = undefined as any;\n let slideTranslateX = undefined as any;\n if (isArray(this.styles.slide?.transform)) {\n slideScale = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).scale)) as any)?.scale;\n slideTranslateX = (this.styles.slide?.transform?.find(o => !isUndefined((o as any).translateX)) as any)?.translateX;\n }\n // TODO: loop prop on Carousel is not working Refer: https://github.com/meliorence/react-native-snap-carousel/issues/608\n return (\n <View\n style={styles.root}\n onLayout={(event) => this.handleLayout(event)}\n >\n {this._background}\n <SwipeAnimation.View\n enableGestures={props.enablegestures && this.noOfSlides > 1}\n style={{\n flex: 1\n }}\n direction='horizontal'\n threshold={this.state.props.threshold}\n ref={(r) => {this.animationView = r}}\n handlers = {this.animationHandlers}\n slideMinWidth={this.styles.slide.width}\n slidesLayout={this.slidesLayout}\n activeIndex={this.state.activeIndex}\n >\n {data.map((item: any, index: number) => {\n const isActive = index === this.state.activeIndex - 1;\n let scale = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [slideScale, slideScale, 1, slideScale, slideScale]\n });\n let translateX = this.animationView?.animationPhase.interpolate({\n inputRange: [-2000, index - 1, index, index + 1, 2000],\n outputRange: [-56, -56, 0, 56, 56]\n });\n return (\n <Animated.View key={this.generateItemKey(item, index, props)}\n onLayout={this.addSlideLayout.bind(this, index)}\n testID={`carousel_item_${index}`}\n style={[\n {height: props.type === 'dynamic' ? undefined : '100%'},\n this.styles.slide,\n index === 0 ? this.styles.firstSlide : null,\n index === data.length - 1 ? this.styles.lastSlide: null,\n isActive ? this.styles.activeSlide: null,\n translateX && scale ? {\n transform: [\n {\n translateX: !isUndefined(slideTranslateX) ? slideTranslateX : translateX\n }, {\n scale: scale\n }\n ]\n } : null]}>\n <Tappable onTap={() => {\n this.onSlideChange(index + 1);\n const position = this.slidesLayout\n .filter((l , i) => i < index)\n .reduce((s, l) => s + l.width, 0);\n this.animationView?.setPosition(-1 * position);\n }} rippleColor={this.styles.root.rippleColor} styles={{height: \"100%\"}}\n disableTouchEffect={this.state.props.disabletoucheffect}>\n {this.renderItem(item, index)}\n </Tappable>\n </Animated.View>\n );\n })}\n </SwipeAnimation.View>\n {hasNavs ? (\n <View style={styles.btnPanel}>\n <WmIcon\n id={this.getTestId('prev_icon')}\n iconclass=\"wi wi-chevron-left fa-2x\"\n styles={styles.prevBtn}\n onTap={this.prev}\n accessibilitylabel='back'\n accessibilityrole='button'/>\n <WmIcon\n id={this.getTestId('next_icon')}\n iconclass=\"wi wi-chevron-right fa-2x\"\n styles={styles.nextBtn}\n onTap={this.next}\n accessibilitylabel='next'\n accessibilityrole='button'/>\n </View>): null}\n {hasDots && data ? this.renderPagination(data) : null}\n </View>);\n }\n}\n"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,SAASC,OAAO,EAAEC,WAAW,EAAEC,QAAQ,QAAQ,WAAW;AAC1D,SAASC,QAAQ,EAAEC,MAAM,EAAEC,IAAI,QAA4C,cAAc;AACzF,SAASC,mBAAmB,QAAQ,iDAAiD;AACrF,OAAOC,MAAM,MAAM,mEAAmE;AACtF,SAASC,aAAa,EAAEC,kBAAkB,QAAQ,kDAAkD;AACpG,OAAO,KAAKC,cAAc,MAAM,gEAAgE;AAChG,SAASC,QAAQ,QAAQ,sDAAsD;AAE/E,OAAOC,eAAe,MAAM,kBAAkB;AAC9C,SAASC,aAAa,QAA0B,mBAAmB;AAGnE,OAAO,MAAMC,eAAe,SAASL,kBAAkB,CAAkB;EAAAM,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,sBACzD,CAAC;EAAA;AACjB;AAEA,eAAe,MAAMC,UAAU,SAASV,aAAa,CAAqD;EAqDxGO,WAAWA,CAACI,MAAsB,EAAE;IAClC,KAAK,CAACA,MAAK,EAAEN,aAAa,EAAE,IAAID,eAAe,CAAC,CAAC,EAAE,IAAIE,eAAe,CAAC,CAAC,CAAC;IAACG,eAAA,qBApDvD,CAAC;IAAAA,eAAA,uBACoB,EAAE;IAAAA,eAAA,uBACrB,IAAIX,mBAAmB,CAAC,CAAC;IAAAW,eAAA,mBAC3B,IAAI;IAAAA,eAAA,sBACH,IAAId,QAAQ,CAACiB,KAAK,CAAC,CAAC,CAAC;IAAAH,eAAA,0BACjB,IAAId,QAAQ,CAACiB,KAAK,CAAC,CAAC,CAAC;IAAAH,eAAA,wBACK,IAAI;IAAAA,eAAA,4BAC5B;MAC1BI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AK,CAAC+L;MAAmB,GACrD,IAAI,CAAC/C,UAAU,CAACvG,IAAI,EAAEL,KAAK,CACpB,CACG,CAAC;IAEpB,CAAC,CACkB,CAAC,EACrBiH,OAAO,gBACNzK,KAAA,CAAAgJ,aAAA,CAAC1I,IAAI;MAAC2I,KAAK,EAAE/B,MAAM,CAACkG;IAAS,gBAC3BpN,KAAA,CAAAgJ,aAAA,CAACxI,MAAM;MACL6M,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,WAAW,CAAE;MAChCC,SAAS,EAAC,0BAA0B;MACpCrG,MAAM,EAAEA,MAAM,CAACsG,OAAQ;MACvBV,KAAK,EAAE,IAAI,CAACW,IAAK;MACjBC,kBAAkB,EAAC,MAAM;MACzBC,iBAAiB,EAAC;IAAQ,CAAC,CAAC,eAC9B3N,KAAA,CAAAgJ,aAAA,CAACxI,MAAM;MACL6M,EAAE,EAAE,IAAI,CAACC,SAAS,CAAC,WAAW,CAAE;MAChCC,SAAS,EAAC,2BAA2B;MACrCrG,MAAM,EAAEA,MAAM,CAAC0G,OAAQ;MACvBd,KAAK,EAAE,IAAI,CAAC/G,IAAK;MACjB2H,kBAAkB,EAAC,MAAM;MACzBC,iBAAiB,EAAC;IAAQ,CAAC,CACzB,CAAC,GAAG,IAAI,EACbhD,OAAO,IAAI3G,IAAI,GAAG,IAAI,CAACuE,gBAAgB,CAACvE,IAAI,CAAC,GAAG,IAC/C,CAAC;EACX;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,23 @@
|
|
|
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); }
|
|
4
|
+
import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';
|
|
5
|
+
export default class WmCarouselProps extends BaseProps {
|
|
6
|
+
constructor(...args) {
|
|
7
|
+
super(...args);
|
|
8
|
+
_defineProperty(this, "dataset", null);
|
|
9
|
+
_defineProperty(this, "type", 'static');
|
|
10
|
+
_defineProperty(this, "animation", 'auto');
|
|
11
|
+
_defineProperty(this, "animationinterval", 3);
|
|
12
|
+
_defineProperty(this, "controls", 'both');
|
|
13
|
+
_defineProperty(this, "children", null);
|
|
14
|
+
_defineProperty(this, "itemkey", null);
|
|
15
|
+
_defineProperty(this, "renderSlide", void 0);
|
|
16
|
+
_defineProperty(this, "enablegestures", true);
|
|
17
|
+
_defineProperty(this, "maxnoofdots", 5);
|
|
18
|
+
_defineProperty(this, "showskeletonchildren", false);
|
|
19
|
+
_defineProperty(this, "threshold", 5);
|
|
20
|
+
_defineProperty(this, "stopatlast", false);
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=carousel.props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["BaseProps","WmCarouselProps","constructor","args","_defineProperty"],"sources":["carousel.props.ts"],"sourcesContent":["import { BaseProps } from '@wavemaker-ai/app-rn-runtime/core/base.component';\nimport React from 'react';\n\nexport default class WmCarouselProps extends BaseProps {\n dataset: any = null;\n type?: 'static' | 'dynamic' = 'static';\n animation?: 'auto' | 'none' = 'auto';\n animationinterval?: number = 3;\n controls?: 'both' | 'none' | 'navs' | 'indicators' = 'both';\n children? = null as any;\n itemkey?: ($item: any, $index: any) => any = null as any;\n renderSlide?: ($item: any, $index: number, carousel: any) => React.ReactNode;\n enablegestures = true;\n maxnoofdots = 5;\n showskeletonchildren?: boolean = false;\n threshold: number = 5;\n stopatlast: boolean = false;\n}\n"],"mappings":";;;AAAA,SAASA,SAAS,QAAQ,kDAAkD;AAG5E,eAAe,MAAMC,eAAe,SAASD,SAAS,CAAC;EAAAE,YAAA,GAAAC,IAAA;IAAA,SAAAA,IAAA;IAAAC,eAAA,kBACtC,IAAI;IAAAA,eAAA,eACW,QAAQ;IAAAA,eAAA,oBACR,MAAM;IAAAA,eAAA,4BACP,CAAC;IAAAA,eAAA,mBACuB,MAAM;IAAAA,eAAA,mBAC/C,IAAI;IAAAA,eAAA,kBAC6B,IAAI;IAAAA,eAAA;IAAAA,eAAA,yBAE/B,IAAI;IAAAA,eAAA,sBACR,CAAC;IAAAA,eAAA,+BACkB,KAAK;IAAAA,eAAA,oBAClB,CAAC;IAAAA,eAAA,qBACC,KAAK;EAAA;AAC7B","ignoreList":[]}
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import BASE_THEME from '@wavemaker-ai/app-rn-runtime/styles/theme';
|
|
2
|
+
import { defineStyles } from '@wavemaker-ai/app-rn-runtime/core/base.component';
|
|
3
|
+
export const DEFAULT_CLASS = 'app-carousel';
|
|
4
|
+
BASE_THEME.registerStyle((themeVariables, addStyle) => {
|
|
5
|
+
const btn = {
|
|
6
|
+
height: 48,
|
|
7
|
+
width: 48,
|
|
8
|
+
borderRadius: 48,
|
|
9
|
+
borderColor: themeVariables.transparent,
|
|
10
|
+
borderWidth: 1,
|
|
11
|
+
justifyContent: 'center'
|
|
12
|
+
};
|
|
13
|
+
const defaultStyles = defineStyles({
|
|
14
|
+
root: {
|
|
15
|
+
position: 'relative',
|
|
16
|
+
rippleColor: themeVariables.transparent
|
|
17
|
+
},
|
|
18
|
+
text: {},
|
|
19
|
+
slide: {
|
|
20
|
+
width: '100%',
|
|
21
|
+
overflow: 'hidden',
|
|
22
|
+
paddingHorizontal: 16,
|
|
23
|
+
transform: [{
|
|
24
|
+
scale: 0.8
|
|
25
|
+
}]
|
|
26
|
+
},
|
|
27
|
+
firstSlide: {},
|
|
28
|
+
lastSlide: {},
|
|
29
|
+
activeSlide: {},
|
|
30
|
+
btnPanel: {
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
top: '50%',
|
|
33
|
+
marginTop: -64,
|
|
34
|
+
height: 64,
|
|
35
|
+
flexDirection: 'row',
|
|
36
|
+
alignItems: 'center',
|
|
37
|
+
justifyContent: 'space-between',
|
|
38
|
+
width: '100%'
|
|
39
|
+
},
|
|
40
|
+
prevBtn: {
|
|
41
|
+
root: {
|
|
42
|
+
marginLeft: 12,
|
|
43
|
+
...btn,
|
|
44
|
+
backgroundColor: themeVariables.carouselPrevBgColor,
|
|
45
|
+
rippleColor: themeVariables.transparent
|
|
46
|
+
},
|
|
47
|
+
text: {
|
|
48
|
+
fontSize: 32
|
|
49
|
+
},
|
|
50
|
+
icon: {
|
|
51
|
+
color: themeVariables.carouselPrevBtnColor
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
nextBtn: {
|
|
55
|
+
root: {
|
|
56
|
+
marginRight: 12,
|
|
57
|
+
...btn,
|
|
58
|
+
backgroundColor: themeVariables.carouselPrevBgColor,
|
|
59
|
+
rippleColor: themeVariables.transparent
|
|
60
|
+
},
|
|
61
|
+
text: {
|
|
62
|
+
fontSize: 32
|
|
63
|
+
},
|
|
64
|
+
icon: {
|
|
65
|
+
color: themeVariables.carouselNextBtnColor
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
dotsWrapperStyle: {
|
|
69
|
+
opacity: 1,
|
|
70
|
+
backgroundColor: themeVariables.carouselDotWrapperBgColor,
|
|
71
|
+
paddingTop: 4,
|
|
72
|
+
paddingBottom: 4,
|
|
73
|
+
overflow: 'hidden'
|
|
74
|
+
},
|
|
75
|
+
dotsContainerStyle: {
|
|
76
|
+
alignItems: 'center'
|
|
77
|
+
},
|
|
78
|
+
activeDotStyle: {
|
|
79
|
+
backgroundColor: themeVariables.carouselActiveDotColor,
|
|
80
|
+
opacity: 1
|
|
81
|
+
},
|
|
82
|
+
dotStyle: {
|
|
83
|
+
width: 10,
|
|
84
|
+
height: 10,
|
|
85
|
+
opacity: 0.6,
|
|
86
|
+
borderRadius: 5,
|
|
87
|
+
marginLeft: 4,
|
|
88
|
+
marginRight: 4,
|
|
89
|
+
backgroundColor: themeVariables.carouselDotColor
|
|
90
|
+
},
|
|
91
|
+
skeleton: {
|
|
92
|
+
root: {
|
|
93
|
+
width: '100%'
|
|
94
|
+
},
|
|
95
|
+
text: {}
|
|
96
|
+
},
|
|
97
|
+
dotSkeleton: {
|
|
98
|
+
root: {
|
|
99
|
+
width: 10,
|
|
100
|
+
height: 10,
|
|
101
|
+
borderRadius: 5,
|
|
102
|
+
opacity: 1,
|
|
103
|
+
backgroundColor: themeVariables.skeletonAnimatedBgColor
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
addStyle(DEFAULT_CLASS, '', defaultStyles);
|
|
108
|
+
addStyle(DEFAULT_CLASS + '-rtl', '', {
|
|
109
|
+
prevBtn: {
|
|
110
|
+
root: {
|
|
111
|
+
transform: [{
|
|
112
|
+
rotateY: '180deg'
|
|
113
|
+
}]
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
nextBtn: {
|
|
117
|
+
root: {
|
|
118
|
+
transform: [{
|
|
119
|
+
rotateY: '180deg'
|
|
120
|
+
}]
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
addStyle('app-carousel-1', '', {
|
|
125
|
+
btnPanel: {
|
|
126
|
+
top: '100%'
|
|
127
|
+
},
|
|
128
|
+
prevBtn: {
|
|
129
|
+
root: {
|
|
130
|
+
borderRadius: 6
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
nextBtn: {
|
|
134
|
+
root: {
|
|
135
|
+
borderRadius: 6
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
});
|
|
139
|
+
addStyle('app-carousel-2', '', {
|
|
140
|
+
btnPanel: {
|
|
141
|
+
backgroundColor: themeVariables.defaultColorF,
|
|
142
|
+
width: '100%',
|
|
143
|
+
top: '100%',
|
|
144
|
+
right: 0,
|
|
145
|
+
padding: 8,
|
|
146
|
+
justifyContent: 'flex-end'
|
|
147
|
+
},
|
|
148
|
+
dotsWrapperStyle: {
|
|
149
|
+
alignSelf: 'flex-start',
|
|
150
|
+
justifyContent: 'flex-start'
|
|
151
|
+
},
|
|
152
|
+
activeDotStyle: {
|
|
153
|
+
backgroundColor: themeVariables.primaryColor
|
|
154
|
+
},
|
|
155
|
+
dotStyle: {
|
|
156
|
+
backgroundColor: themeVariables.primaryColor
|
|
157
|
+
},
|
|
158
|
+
prevBtn: {
|
|
159
|
+
root: {
|
|
160
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
161
|
+
borderColor: themeVariables.primaryColor
|
|
162
|
+
},
|
|
163
|
+
icon: {
|
|
164
|
+
color: themeVariables.primaryColor
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
nextBtn: {
|
|
168
|
+
root: {
|
|
169
|
+
marginLeft: 8,
|
|
170
|
+
backgroundColor: 'rgba(255, 255, 255, 0.1)',
|
|
171
|
+
borderColor: themeVariables.primaryColor
|
|
172
|
+
},
|
|
173
|
+
icon: {
|
|
174
|
+
color: themeVariables.primaryColor
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
//# sourceMappingURL=carousel.styles.js.map
|