@wavemaker/app-rn-runtime 12.0.0-next.45752 → 12.0.0-next.47809
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/notification-action.js +75 -0
- package/actions/notification-action.js.map +1 -0
- package/actions/timer-action.js +57 -0
- package/components/advanced/carousel/carousel-content/carousel-content.props.js +11 -0
- package/components/advanced/carousel/carousel-template/carousel-template.props.js +11 -0
- package/components/advanced/carousel/carousel.component.js +376 -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/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/webview/webview.component.js +158 -0
- package/components/advanced/webview/webview.component.js.map +1 -0
- package/components/advanced/webview/webview.props.js +16 -0
- package/components/basic/anchor/anchor.component.js +101 -0
- package/components/basic/anchor/anchor.component.js.map +1 -0
- package/components/basic/anchor/anchor.props.js +32 -0
- package/components/basic/anchor/anchor.styles.js +83 -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 +252 -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.styles.js +68 -0
- package/components/basic/audio/audio.styles.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.component.js +363 -0
- package/components/basic/bottomsheet/bottomsheet.component.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.props.js +18 -0
- package/components/basic/bottomsheet/bottomsheet.props.js.map +1 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js +79 -0
- package/components/basic/bottomsheet/bottomsheet.styles.js.map +1 -0
- package/components/basic/button/button.component.js +110 -0
- package/components/basic/button/button.component.js.map +1 -0
- package/components/basic/button/button.props.js +27 -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/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/icon/icon.component.js +268 -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/label/label.component.js +291 -0
- package/components/basic/label/label.component.js.map +1 -0
- package/components/basic/label/label.props.js +25 -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/message/message.component.js +79 -0
- package/components/basic/message/message.component.js.map +1 -0
- package/components/basic/message/message.props.js +22 -0
- package/components/basic/message/message.props.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/picture/picture.component.js +294 -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.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/search/local-data-provider.js +113 -0
- package/components/basic/search/search.component.js +455 -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.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/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/video/video.component.js +175 -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.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 +133 -0
- package/components/chart/bar-chart/bar-chart.component.js.map +1 -0
- package/components/chart/bar-chart/bar-chart.props.js +14 -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 +693 -0
- package/components/chart/basechart.component.js.map +1 -0
- package/components/chart/basechart.props.js +63 -0
- package/components/chart/basechart.props.js.map +1 -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.styles.js +13 -0
- package/components/chart/bubble-chart/bubble-chart.styles.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.props.js +11 -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/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 +238 -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.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/theme/chart.theme.js +360 -0
- package/components/chart/theme/chart.theme.js.map +1 -0
- package/components/container/accordion/accordion.component.js +191 -0
- package/components/container/accordion/accordion.component.js.map +1 -0
- package/components/container/accordion/accordion.props.js +14 -0
- package/components/container/accordion/accordion.props.js.map +1 -0
- package/components/container/accordion/accordion.styles.js +141 -0
- package/components/container/accordion/accordion.styles.js.map +1 -0
- package/components/container/accordion/accordionpane/accordionpane.component.js +85 -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/container.component.js +108 -0
- package/components/container/container.component.js.map +1 -0
- package/components/container/container.props.js +15 -0
- package/components/container/container.props.js.map +1 -0
- package/components/container/container.styles.js +53 -0
- package/components/container/container.styles.js.map +1 -0
- package/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +24 -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/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.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 +69 -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/panel/panel-content/panel-content.props.js +11 -0
- package/components/container/panel/panel-footer/panel-footer.props.js +11 -0
- package/components/container/panel/panel.component.js +156 -0
- package/components/container/panel/panel.component.js.map +1 -0
- package/components/container/panel/panel.props.js +24 -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 +222 -0
- package/components/container/tabs/tabheader/tabheader.component.js.map +1 -0
- package/components/container/tabs/tabheader/tabheader.props.js +15 -0
- package/components/container/tabs/tabheader/tabheader.props.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 +16 -0
- package/components/container/tabs/tabpane/tabpane.props.js.map +1 -0
- package/components/container/tabs/tabs.component.js +285 -0
- package/components/container/tabs/tabs.component.js.map +1 -0
- package/components/container/tabs/tabs.props.js +14 -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 +51 -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 +423 -0
- package/components/container/wizard/wizard.component.js.map +1 -0
- package/components/container/wizard/wizard.props.js +28 -0
- package/components/container/wizard/wizard.props.js.map +1 -0
- package/components/container/wizard/wizard.styles.js +328 -0
- package/components/container/wizard/wizard.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/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.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.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.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.props.js +18 -0
- package/components/data/form/form-body/form-body.component.js +18 -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-field/form-field.component.js +249 -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 +18 -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.component.js +429 -0
- package/components/data/form/form.component.js.map +1 -0
- package/components/data/form/form.props.js +32 -0
- package/components/data/form/form.props.js.map +1 -0
- package/components/data/list/list-action-template/list-action-template.props.js +12 -0
- package/components/data/list/list-template/list-template.component.js +46 -0
- package/components/data/list/list-template/list-template.component.js.map +1 -0
- package/components/data/list/list-template/list-template.props.js +12 -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 +626 -0
- package/components/data/list/list.component.js.map +1 -0
- package/components/data/list/list.props.js +56 -0
- package/components/data/list/list.props.js.map +1 -0
- package/components/data/list/list.styles.js +153 -0
- package/components/data/list/list.styles.js.map +1 -0
- package/components/data/liveform/liveform.component.js +98 -0
- package/components/device/barcodescanner/barcodescanner.component.js +51 -0
- package/components/device/barcodescanner/barcodescanner.component.js.map +1 -0
- package/components/device/barcodescanner/barcodescanner.props.js +18 -0
- package/components/device/camera/camera.component.js +71 -0
- package/components/device/camera/camera.component.js.map +1 -0
- package/components/device/camera/camera.props.js +24 -0
- package/components/device/camera/camera.props.js.map +1 -0
- package/components/dialogs/alertdialog/alertdialog.component.js +72 -0
- package/components/dialogs/alertdialog/alertdialog.props.js +24 -0
- package/components/dialogs/confirmdialog/confirmdialog.component.js +78 -0
- package/components/dialogs/confirmdialog/confirmdialog.props.js +24 -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.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/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/input/basedataset/basedataset.component.js +232 -0
- package/components/input/basedataset/basedataset.component.js.map +1 -0
- package/components/input/basedataset/basedataset.props.js +32 -0
- package/components/input/basedataset/basedataset.props.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/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/calendar/calendar.component.js +165 -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.styles.js +162 -0
- package/components/input/calendar/calendar.styles.js.map +1 -0
- package/components/input/calendar/views/month-view.js +204 -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.styles.js +94 -0
- package/components/input/checkbox/checkbox.styles.js.map +1 -0
- package/components/input/checkboxset/checkboxset.component.js +155 -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 +363 -0
- package/components/input/chips/chips.component.js.map +1 -0
- package/components/input/chips/chips.props.js +19 -0
- package/components/input/chips/chips.styles.js +155 -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/currency/currency.component.js +114 -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.styles.js +143 -0
- package/components/input/currency/currency.styles.js.map +1 -0
- package/components/input/epoch/base-datetime.component.js +492 -0
- package/components/input/epoch/base-datetime.component.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.props.js +35 -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.props.js +15 -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/wheelpicker/wheelpicker.component.js +92 -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/wheelpickermodal/date/date-picker-modal.component.js +80 -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/time/time-picker-modal.component.js +78 -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 +61 -0
- package/components/input/fileupload/fileupload.component.js.map +1 -0
- package/components/input/fileupload/fileupload.props.js +17 -0
- package/components/input/number/number.component.js +84 -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.styles.js +93 -0
- package/components/input/number/number.styles.js.map +1 -0
- package/components/input/radioset/radioset.component.js +134 -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 +147 -0
- package/components/input/rating/rating.component.js.map +1 -0
- package/components/input/rating/rating.props.js +21 -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 +254 -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.styles.js +179 -0
- package/components/input/select/select.styles.js.map +1 -0
- package/components/input/slider/slider.component.js +540 -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 +97 -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.styles.js +192 -0
- package/components/input/switch/switch.styles.js.map +1 -0
- package/components/input/text/text.component.js +86 -0
- package/components/input/text/text.component.js.map +1 -0
- package/components/input/text/text.props.js +17 -0
- package/components/input/text/text.props.js.map +1 -0
- package/components/input/text/text.styles.js +88 -0
- package/components/input/text/text.styles.js.map +1 -0
- package/components/input/textarea/textarea.component.js +86 -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 +179 -0
- package/components/input/toggle/toggle.component.js.map +1 -0
- package/components/input/toggle/toggle.props.js +24 -0
- package/components/input/toggle/toggle.props.js.map +1 -0
- package/components/input/toggle/toggle.styles.js +89 -0
- package/components/input/toggle/toggle.styles.js.map +1 -0
- package/components/navigation/appnavbar/appnavbar.component.js +159 -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.map +1 -0
- package/components/navigation/basenav/basenav.component.js +72 -0
- package/components/navigation/basenav/basenav.props.js +18 -0
- package/components/navigation/menu/menu.component.js +65 -0
- package/components/navigation/menu/menu.component.js.map +1 -0
- package/components/navigation/menu/menu.props.js +14 -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/navitem/navitem.component.js +68 -0
- package/components/navigation/navitem/navitem.component.js.map +1 -0
- package/components/navigation/navitem/navitem.props.js +19 -0
- package/components/navigation/popover/popover.component.js +198 -0
- package/components/navigation/popover/popover.component.js.map +1 -0
- package/components/navigation/popover/popover.props.js +32 -0
- package/components/navigation/popover/popover.props.js.map +1 -0
- package/components/navigation/popover/popover.styles.js +99 -0
- package/components/navigation/popover/popover.styles.js.map +1 -0
- package/components/page/content/content.component.js.map +1 -0
- package/components/page/left-panel/left-panel.component.js +65 -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/page-content/page-content.component.js +142 -0
- package/components/page/page-content/page-content.component.js.map +1 -0
- package/components/page/page-content/page-content.props.js +17 -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 +82 -0
- package/components/page/page.component.js.map +1 -0
- package/components/page/page.props.js +14 -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.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/tabbar/tabbar.component.js +249 -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/prefab/prefab-container.component.js +42 -0
- package/components/prefab/prefab-container.component.js.map +1 -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/core/AppConfig.js.map +1 -0
- package/core/accessibility.js +176 -0
- package/core/accessibility.js.map +1 -0
- package/core/base.component.js +630 -0
- package/core/base.component.js.map +1 -0
- package/core/components/error-fallback.component.js +264 -0
- package/core/components/error-fallback.component.js.map +1 -0
- package/core/components/floatinglabel.component.js.map +1 -0
- package/core/components/textinput.component.js +214 -0
- package/core/components/textinput.component.js.map +1 -0
- package/core/constant.service.js +22 -0
- package/core/error-boundary.component.js +48 -0
- package/core/error-boundary.component.js.map +1 -0
- package/core/event-notifier.js +68 -0
- package/core/fixed-view.component.js +69 -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/imageSizeEstimator.js +51 -0
- package/core/key.extractor.js +21 -0
- package/core/logger.js +123 -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/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 +48 -0
- package/core/responsive.utils.js.map +1 -0
- package/core/scroll-view.component.js +52 -0
- package/core/sticky-container.component.js +175 -0
- package/core/sticky-container.component.js.map +1 -0
- package/core/storage.service.js +38 -0
- package/core/storage.service.js.map +1 -0
- package/core/tappable.component.js +160 -0
- package/core/tappable.component.js.map +1 -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 +873 -0
- package/core/utils.js.map +1 -0
- package/core/viewport.js +45 -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/npm-shrinkwrap.json +25362 -0
- package/package-lock.json +25362 -0
- package/package.json +279 -0
- package/runtime/App.js +631 -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 +412 -0
- package/runtime/base-fragment.component.js.map +1 -0
- package/runtime/base-page.component.js +208 -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/memo.component.js +35 -0
- package/runtime/navigator/drawer.navigator.js +39 -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/services/app-display-manager.service.js +50 -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 +71 -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-toast.service.js +60 -0
- package/runtime/services/app-toast.service.js.map +1 -0
- package/runtime/services/device/camera-service.js +349 -0
- package/runtime/services/device/camera-service.js.map +1 -0
- package/runtime/services/device/permissions.js +50 -0
- package/runtime/services/device/permissions.js.map +1 -0
- package/runtime/services/device/scan-service.js +162 -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/watcher.js +147 -0
- package/styles/background.component.js +311 -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-props.js +102 -0
- package/styles/style-props.js.map +1 -0
- package/styles/theme.js +548 -0
- package/styles/theme.js.map +1 -0
- package/styles/theme.variables.js +442 -0
- package/styles/theme.variables.js.map +1 -0
- package/variables/base-variable.js +125 -0
- package/variables/device/device/network-info.operation.js +33 -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 +63 -0
- package/variables/device/file/upload-file.operation.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/service-variable.js +143 -0
- package/variables/utils/inflight-queue.js +114 -0
- app-rn-runtime/actions/notification-action.js +0 -73
- app-rn-runtime/actions/notification-action.js.map +0 -1
- app-rn-runtime/actions/timer-action.js +0 -57
- app-rn-runtime/components/advanced/carousel/carousel-content/carousel-content.props.js +0 -11
- app-rn-runtime/components/advanced/carousel/carousel-template/carousel-template.props.js +0 -11
- app-rn-runtime/components/advanced/carousel/carousel.component.js +0 -319
- app-rn-runtime/components/advanced/carousel/carousel.component.js.map +0 -1
- app-rn-runtime/components/advanced/carousel/carousel.props.js +0 -20
- app-rn-runtime/components/advanced/carousel/carousel.props.js.map +0 -1
- app-rn-runtime/components/advanced/carousel/carousel.styles.js +0 -165
- app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +0 -1
- app-rn-runtime/components/advanced/login/login.component.js +0 -39
- app-rn-runtime/components/advanced/login/login.component.js.map +0 -1
- app-rn-runtime/components/advanced/login/login.props.js +0 -12
- app-rn-runtime/components/advanced/login/login.props.js.map +0 -1
- app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js +0 -114
- app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.component.js.map +0 -1
- app-rn-runtime/components/advanced/network-info-toaster/network-info-toaster.props.js +0 -11
- app-rn-runtime/components/advanced/webview/webview.component.js +0 -153
- app-rn-runtime/components/advanced/webview/webview.component.js.map +0 -1
- app-rn-runtime/components/advanced/webview/webview.props.js +0 -16
- app-rn-runtime/components/basic/anchor/anchor.component.js +0 -89
- app-rn-runtime/components/basic/anchor/anchor.component.js.map +0 -1
- app-rn-runtime/components/basic/anchor/anchor.props.js +0 -32
- app-rn-runtime/components/basic/anchor/anchor.styles.js +0 -80
- app-rn-runtime/components/basic/anchor/anchor.styles.js.map +0 -1
- app-rn-runtime/components/basic/animatedview.component.js +0 -222
- app-rn-runtime/components/basic/animatedview.component.js.map +0 -1
- app-rn-runtime/components/basic/audio/audio.component.js +0 -244
- app-rn-runtime/components/basic/audio/audio.component.js.map +0 -1
- app-rn-runtime/components/basic/audio/audio.props.js +0 -15
- app-rn-runtime/components/basic/audio/audio.styles.js +0 -61
- app-rn-runtime/components/basic/audio/audio.styles.js.map +0 -1
- app-rn-runtime/components/basic/button/button.component.js +0 -100
- app-rn-runtime/components/basic/button/button.component.js.map +0 -1
- app-rn-runtime/components/basic/button/button.props.js +0 -27
- app-rn-runtime/components/basic/button/button.styles.js +0 -132
- app-rn-runtime/components/basic/button/button.styles.js.map +0 -1
- app-rn-runtime/components/basic/buttongroup/buttongroup.component.js +0 -27
- app-rn-runtime/components/basic/buttongroup/buttongroup.component.js.map +0 -1
- app-rn-runtime/components/basic/buttongroup/buttongroup.props.js +0 -14
- app-rn-runtime/components/basic/custom/custom.component.js +0 -25
- app-rn-runtime/components/basic/custom/custom.component.js.map +0 -1
- app-rn-runtime/components/basic/custom/custom.props.js +0 -16
- app-rn-runtime/components/basic/icon/icon.component.js +0 -258
- app-rn-runtime/components/basic/icon/icon.component.js.map +0 -1
- app-rn-runtime/components/basic/icon/icon.props.js +0 -27
- app-rn-runtime/components/basic/icon/icon.props.js.map +0 -1
- app-rn-runtime/components/basic/label/label.component.js +0 -146
- app-rn-runtime/components/basic/label/label.component.js.map +0 -1
- app-rn-runtime/components/basic/label/label.props.js +0 -24
- app-rn-runtime/components/basic/label/label.props.js.map +0 -1
- app-rn-runtime/components/basic/label/label.styles.js +0 -129
- app-rn-runtime/components/basic/label/label.styles.js.map +0 -1
- app-rn-runtime/components/basic/lottie/lottie.component.js +0 -136
- app-rn-runtime/components/basic/lottie/lottie.component.js.map +0 -1
- app-rn-runtime/components/basic/lottie/lottie.props.js +0 -14
- app-rn-runtime/components/basic/message/message.component.js +0 -78
- app-rn-runtime/components/basic/message/message.component.js.map +0 -1
- app-rn-runtime/components/basic/message/message.props.js +0 -21
- app-rn-runtime/components/basic/message/message.props.js.map +0 -1
- app-rn-runtime/components/basic/modal/modal.component.js +0 -22
- app-rn-runtime/components/basic/modal/modal.component.js.map +0 -1
- app-rn-runtime/components/basic/modal/modal.props.js +0 -12
- app-rn-runtime/components/basic/picture/picture.component.js +0 -191
- app-rn-runtime/components/basic/picture/picture.component.js.map +0 -1
- app-rn-runtime/components/basic/picture/picture.props.js +0 -22
- app-rn-runtime/components/basic/picture/picture.props.js.map +0 -1
- app-rn-runtime/components/basic/picture/picture.styles.js.map +0 -1
- app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +0 -59
- app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +0 -1
- app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +0 -16
- app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +0 -1
- app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js +0 -29
- app-rn-runtime/components/basic/progress-bar/progress-bar.styles.js.map +0 -1
- app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +0 -77
- app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +0 -1
- app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +0 -19
- app-rn-runtime/components/basic/search/local-data-provider.js +0 -113
- app-rn-runtime/components/basic/search/search.component.js +0 -418
- app-rn-runtime/components/basic/search/search.component.js.map +0 -1
- app-rn-runtime/components/basic/search/search.props.js +0 -33
- app-rn-runtime/components/basic/search/search.props.js.map +0 -1
- app-rn-runtime/components/basic/search/search.styles.js +0 -173
- app-rn-runtime/components/basic/search/search.styles.js.map +0 -1
- app-rn-runtime/components/basic/skeleton/skeleton.component.js +0 -148
- app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +0 -1
- app-rn-runtime/components/basic/skeleton/skeleton.props.js +0 -3
- app-rn-runtime/components/basic/skeleton/skeleton.props.js.map +0 -1
- app-rn-runtime/components/basic/skeleton/skeleton.styles.js.map +0 -1
- app-rn-runtime/components/basic/spinner/spinner.component.js +0 -90
- app-rn-runtime/components/basic/spinner/spinner.component.js.map +0 -1
- app-rn-runtime/components/basic/spinner/spinner.props.js +0 -17
- app-rn-runtime/components/basic/tooltip/tooltip.component.js +0 -79
- app-rn-runtime/components/basic/tooltip/tooltip.component.js.map +0 -1
- app-rn-runtime/components/basic/tooltip/tooltip.props.js +0 -18
- app-rn-runtime/components/basic/video/video.component.js +0 -62
- app-rn-runtime/components/basic/video/video.component.js.map +0 -1
- app-rn-runtime/components/basic/video/video.props.js +0 -25
- app-rn-runtime/components/basic/video/video.props.js.map +0 -1
- app-rn-runtime/components/basic/video/video.styles.js +0 -14
- app-rn-runtime/components/basic/video/video.styles.js.map +0 -1
- app-rn-runtime/components/chart/area-chart/area-chart.component.js +0 -147
- app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/area-chart/area-chart.props.js +0 -12
- app-rn-runtime/components/chart/area-chart/area-chart.styles.js +0 -7
- app-rn-runtime/components/chart/area-chart/area-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +0 -120
- app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +0 -13
- app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +0 -1
- app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js +0 -7
- app-rn-runtime/components/chart/bar-chart/bar-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/basechart.component.js +0 -670
- app-rn-runtime/components/chart/basechart.component.js.map +0 -1
- app-rn-runtime/components/chart/basechart.props.js +0 -61
- app-rn-runtime/components/chart/basechart.props.js.map +0 -1
- app-rn-runtime/components/chart/basechart.styles.js.map +0 -1
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +0 -104
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.props.js +0 -11
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js +0 -7
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/column-chart/column-chart.styles.js +0 -7
- app-rn-runtime/components/chart/column-chart/column-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/donut-chart/donut-chart.props.js +0 -11
- app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js +0 -7
- app-rn-runtime/components/chart/donut-chart/donut-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/line-chart/line-chart.component.js +0 -110
- app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/line-chart/line-chart.props.js +0 -12
- app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +0 -1
- app-rn-runtime/components/chart/line-chart/line-chart.styles.js +0 -7
- app-rn-runtime/components/chart/line-chart/line-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +0 -227
- app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/pie-chart/pie-chart.props.js +0 -14
- app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js +0 -7
- app-rn-runtime/components/chart/pie-chart/pie-chart.styles.js.map +0 -1
- app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +0 -348
- app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +0 -1
- app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +0 -17
- app-rn-runtime/components/chart/theme/chart.theme.js +0 -360
- app-rn-runtime/components/chart/theme/chart.theme.js.map +0 -1
- app-rn-runtime/components/container/accordion/accordion.component.js +0 -143
- app-rn-runtime/components/container/accordion/accordion.component.js.map +0 -1
- app-rn-runtime/components/container/accordion/accordion.props.js +0 -14
- app-rn-runtime/components/container/accordion/accordion.props.js.map +0 -1
- app-rn-runtime/components/container/accordion/accordion.styles.js +0 -137
- app-rn-runtime/components/container/accordion/accordion.styles.js.map +0 -1
- app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js +0 -75
- app-rn-runtime/components/container/accordion/accordionpane/accordionpane.component.js.map +0 -1
- app-rn-runtime/components/container/accordion/accordionpane/accordionpane.props.js +0 -17
- app-rn-runtime/components/container/container.component.js +0 -39
- app-rn-runtime/components/container/container.component.js.map +0 -1
- app-rn-runtime/components/container/container.props.js +0 -13
- app-rn-runtime/components/container/container.props.js.map +0 -1
- app-rn-runtime/components/container/container.styles.js +0 -45
- app-rn-runtime/components/container/container.styles.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js +0 -23
- app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.component.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/gridcolumn/gridcolumn.props.js +0 -13
- app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js +0 -17
- app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.component.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.props.js +0 -11
- app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js +0 -37
- app-rn-runtime/components/container/layoutgrid/gridrow/gridrow.styles.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js +0 -17
- app-rn-runtime/components/container/layoutgrid/layoutgrid.component.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js +0 -11
- app-rn-runtime/components/container/layoutgrid/layoutgrid.props.js.map +0 -1
- app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js +0 -31
- app-rn-runtime/components/container/layoutgrid/layoutgrid.styles.js.map +0 -1
- app-rn-runtime/components/container/linearlayout/linearlayout.component.js +0 -43
- app-rn-runtime/components/container/linearlayout/linearlayout.component.js.map +0 -1
- app-rn-runtime/components/container/linearlayout/linearlayout.props.js +0 -15
- app-rn-runtime/components/container/linearlayout/linearlayout.props.js.map +0 -1
- app-rn-runtime/components/container/linearlayout/linearlayout.styles.js +0 -11
- app-rn-runtime/components/container/linearlayout/linearlayout.styles.js.map +0 -1
- app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js +0 -24
- app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.component.js.map +0 -1
- app-rn-runtime/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js +0 -13
- app-rn-runtime/components/container/panel/panel-content/panel-content.props.js +0 -11
- app-rn-runtime/components/container/panel/panel-footer/panel-footer.props.js +0 -11
- app-rn-runtime/components/container/panel/panel.component.js +0 -116
- app-rn-runtime/components/container/panel/panel.component.js.map +0 -1
- app-rn-runtime/components/container/panel/panel.props.js +0 -24
- app-rn-runtime/components/container/panel/panel.props.js.map +0 -1
- app-rn-runtime/components/container/panel/panel.styles.js +0 -105
- app-rn-runtime/components/container/panel/panel.styles.js.map +0 -1
- app-rn-runtime/components/container/partial-host.component.js +0 -42
- app-rn-runtime/components/container/partial-host.component.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js +0 -198
- app-rn-runtime/components/container/tabs/tabheader/tabheader.component.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js +0 -13
- app-rn-runtime/components/container/tabs/tabheader/tabheader.props.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js +0 -71
- app-rn-runtime/components/container/tabs/tabpane/tabpane.component.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js +0 -15
- app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabs.component.js +0 -246
- app-rn-runtime/components/container/tabs/tabs.component.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabs.props.js +0 -13
- app-rn-runtime/components/container/tabs/tabs.props.js.map +0 -1
- app-rn-runtime/components/container/tabs/tabs.styles.js +0 -58
- app-rn-runtime/components/container/tabs/tabs.styles.js.map +0 -1
- app-rn-runtime/components/container/tile/tile.component.js +0 -23
- app-rn-runtime/components/container/tile/tile.component.js.map +0 -1
- app-rn-runtime/components/container/tile/tile.props.js +0 -13
- app-rn-runtime/components/container/tile/tile.props.js.map +0 -1
- app-rn-runtime/components/container/tile/tile.styles.js +0 -33
- app-rn-runtime/components/container/tile/tile.styles.js.map +0 -1
- app-rn-runtime/components/container/wizard/wizard.component.js +0 -310
- app-rn-runtime/components/container/wizard/wizard.component.js.map +0 -1
- app-rn-runtime/components/container/wizard/wizard.props.js +0 -23
- app-rn-runtime/components/container/wizard/wizard.props.js.map +0 -1
- app-rn-runtime/components/container/wizard/wizard.styles.js +0 -310
- app-rn-runtime/components/container/wizard/wizard.styles.js.map +0 -1
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +0 -77
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +0 -1
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +0 -22
- app-rn-runtime/components/data/card/card-content/card-content.component.js +0 -41
- app-rn-runtime/components/data/card/card-content/card-content.component.js.map +0 -1
- app-rn-runtime/components/data/card/card-content/card-content.props.js +0 -12
- app-rn-runtime/components/data/card/card-content/card-content.styles.js +0 -14
- app-rn-runtime/components/data/card/card-content/card-content.styles.js.map +0 -1
- app-rn-runtime/components/data/card/card-footer/card-footer.component.js +0 -17
- app-rn-runtime/components/data/card/card-footer/card-footer.component.js.map +0 -1
- app-rn-runtime/components/data/card/card-footer/card-footer.props.js +0 -11
- app-rn-runtime/components/data/card/card.component.js +0 -72
- app-rn-runtime/components/data/card/card.component.js.map +0 -1
- app-rn-runtime/components/data/card/card.props.js +0 -27
- app-rn-runtime/components/data/card/card.styles.js +0 -48
- app-rn-runtime/components/data/card/card.styles.js.map +0 -1
- app-rn-runtime/components/data/form/form-action/form-action.component.js +0 -35
- app-rn-runtime/components/data/form/form-action/form-action.props.js +0 -18
- app-rn-runtime/components/data/form/form-body/form-body.component.js +0 -17
- app-rn-runtime/components/data/form/form-body/form-body.component.js.map +0 -1
- app-rn-runtime/components/data/form/form-body/form-body.props.js +0 -11
- app-rn-runtime/components/data/form/form-field/form-field.component.js +0 -245
- app-rn-runtime/components/data/form/form-field/form-field.component.js.map +0 -1
- app-rn-runtime/components/data/form/form-field/form-field.props.js +0 -34
- app-rn-runtime/components/data/form/form-field/form-field.props.js.map +0 -1
- app-rn-runtime/components/data/form/form-field/form-field.styles.js +0 -28
- app-rn-runtime/components/data/form/form-field/form-field.styles.js.map +0 -1
- app-rn-runtime/components/data/form/form-footer/form-footer.component.js +0 -17
- app-rn-runtime/components/data/form/form-footer/form-footer.component.js.map +0 -1
- app-rn-runtime/components/data/form/form-footer/form-footer.props.js +0 -11
- app-rn-runtime/components/data/form/form.component.js +0 -425
- app-rn-runtime/components/data/form/form.component.js.map +0 -1
- app-rn-runtime/components/data/form/form.props.js +0 -30
- app-rn-runtime/components/data/form/form.props.js.map +0 -1
- app-rn-runtime/components/data/list/list-action-template/list-action-template.props.js +0 -12
- app-rn-runtime/components/data/list/list-template/list-template.component.js +0 -31
- app-rn-runtime/components/data/list/list-template/list-template.component.js.map +0 -1
- app-rn-runtime/components/data/list/list-template/list-template.props.js +0 -11
- app-rn-runtime/components/data/list/list-template/list-template.props.js.map +0 -1
- app-rn-runtime/components/data/list/list-template/list-template.styles.js +0 -25
- app-rn-runtime/components/data/list/list-template/list-template.styles.js.map +0 -1
- app-rn-runtime/components/data/list/list.component.js +0 -467
- app-rn-runtime/components/data/list/list.component.js.map +0 -1
- app-rn-runtime/components/data/list/list.props.js +0 -47
- app-rn-runtime/components/data/list/list.props.js.map +0 -1
- app-rn-runtime/components/data/list/list.styles.js +0 -142
- app-rn-runtime/components/data/list/list.styles.js.map +0 -1
- app-rn-runtime/components/data/liveform/liveform.component.js +0 -98
- app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +0 -50
- app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +0 -1
- app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +0 -18
- app-rn-runtime/components/device/camera/camera.component.js +0 -68
- app-rn-runtime/components/device/camera/camera.component.js.map +0 -1
- app-rn-runtime/components/device/camera/camera.props.js +0 -23
- app-rn-runtime/components/device/camera/camera.props.js.map +0 -1
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +0 -72
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +0 -24
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +0 -78
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +0 -24
- app-rn-runtime/components/dialogs/dialog/dialog.component.js +0 -102
- app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +0 -1
- app-rn-runtime/components/dialogs/dialog/dialog.props.js +0 -25
- app-rn-runtime/components/dialogs/dialog/dialog.styles.js +0 -79
- app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +0 -1
- app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js +0 -21
- app-rn-runtime/components/dialogs/dialogactions/dialogactions.component.js.map +0 -1
- app-rn-runtime/components/dialogs/dialogactions/dialogactions.props.js +0 -11
- app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js +0 -26
- app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.component.js.map +0 -1
- app-rn-runtime/components/dialogs/dialogcontent/dialogcontent.props.js +0 -11
- app-rn-runtime/components/input/basedataset/basedataset.component.js +0 -230
- app-rn-runtime/components/input/basedataset/basedataset.component.js.map +0 -1
- app-rn-runtime/components/input/basedataset/basedataset.props.js +0 -31
- app-rn-runtime/components/input/basedataset/basedataset.props.js.map +0 -1
- app-rn-runtime/components/input/baseinput/baseinput.component.js +0 -157
- app-rn-runtime/components/input/baseinput/baseinput.component.js.map +0 -1
- app-rn-runtime/components/input/baseinput/baseinput.props.js +0 -30
- app-rn-runtime/components/input/baseinput/baseinput.props.js.map +0 -1
- app-rn-runtime/components/input/basenumber/basenumber.component.js +0 -327
- app-rn-runtime/components/input/basenumber/basenumber.component.js.map +0 -1
- app-rn-runtime/components/input/basenumber/basenumber.props.js +0 -27
- app-rn-runtime/components/input/basenumber/basenumber.props.js.map +0 -1
- app-rn-runtime/components/input/calendar/calendar.component.js +0 -139
- app-rn-runtime/components/input/calendar/calendar.component.js.map +0 -1
- app-rn-runtime/components/input/calendar/calendar.props.js +0 -14
- app-rn-runtime/components/input/calendar/calendar.styles.js +0 -143
- app-rn-runtime/components/input/calendar/calendar.styles.js.map +0 -1
- app-rn-runtime/components/input/calendar/views/month-view.js +0 -191
- app-rn-runtime/components/input/calendar/views/month-view.js.map +0 -1
- app-rn-runtime/components/input/calendar/views/month-view.styles.js +0 -39
- app-rn-runtime/components/input/calendar/views/month-view.styles.js.map +0 -1
- app-rn-runtime/components/input/checkbox/checkbox.component.js +0 -101
- app-rn-runtime/components/input/checkbox/checkbox.component.js.map +0 -1
- app-rn-runtime/components/input/checkbox/checkbox.props.js +0 -18
- app-rn-runtime/components/input/checkbox/checkbox.styles.js +0 -66
- app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +0 -1
- app-rn-runtime/components/input/checkboxset/checkboxset.component.js +0 -124
- app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +0 -1
- app-rn-runtime/components/input/checkboxset/checkboxset.props.js +0 -20
- app-rn-runtime/components/input/checkboxset/checkboxset.props.js.map +0 -1
- app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +0 -77
- app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +0 -1
- app-rn-runtime/components/input/chips/chips.component.js +0 -282
- app-rn-runtime/components/input/chips/chips.component.js.map +0 -1
- app-rn-runtime/components/input/chips/chips.props.js +0 -19
- app-rn-runtime/components/input/chips/chips.styles.js +0 -93
- app-rn-runtime/components/input/chips/chips.styles.js.map +0 -1
- app-rn-runtime/components/input/composite/composite.component.js +0 -24
- app-rn-runtime/components/input/composite/composite.component.js.map +0 -1
- app-rn-runtime/components/input/composite/composite.props.js +0 -12
- app-rn-runtime/components/input/currency/currency.component.js +0 -103
- app-rn-runtime/components/input/currency/currency.component.js.map +0 -1
- app-rn-runtime/components/input/currency/currency.props.js +0 -13
- app-rn-runtime/components/input/currency/currency.styles.js +0 -90
- app-rn-runtime/components/input/currency/currency.styles.js.map +0 -1
- app-rn-runtime/components/input/epoch/base-datetime.component.js +0 -452
- app-rn-runtime/components/input/epoch/base-datetime.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/date/date.styles.js +0 -37
- app-rn-runtime/components/input/epoch/date/date.styles.js.map +0 -1
- app-rn-runtime/components/input/epoch/date-picker.component.js +0 -136
- app-rn-runtime/components/input/epoch/date-picker.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.props.js +0 -29
- app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +0 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +0 -119
- app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +0 -1
- app-rn-runtime/components/input/epoch/time/time.props.js +0 -15
- app-rn-runtime/components/input/epoch/time/time.styles.js +0 -37
- app-rn-runtime/components/input/epoch/time/time.styles.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheel-date-picker.component.js +0 -198
- app-rn-runtime/components/input/epoch/wheel-date-picker.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheel-time-picker.component.js +0 -107
- app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js +0 -91
- app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheelpicker/wheelpicker.props.js +0 -17
- app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js +0 -76
- app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js +0 -17
- app-rn-runtime/components/input/epoch/wheelpickermodal/date/date-picker-modal.props.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js +0 -74
- app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.component.js.map +0 -1
- app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js +0 -16
- app-rn-runtime/components/input/epoch/wheelpickermodal/time/time-picker-modal.props.js.map +0 -1
- app-rn-runtime/components/input/fileupload/fileupload.component.js +0 -60
- app-rn-runtime/components/input/fileupload/fileupload.component.js.map +0 -1
- app-rn-runtime/components/input/fileupload/fileupload.props.js +0 -17
- app-rn-runtime/components/input/number/number.component.js +0 -69
- app-rn-runtime/components/input/number/number.component.js.map +0 -1
- app-rn-runtime/components/input/number/number.props.js +0 -13
- app-rn-runtime/components/input/number/number.styles.js +0 -59
- app-rn-runtime/components/input/number/number.styles.js.map +0 -1
- app-rn-runtime/components/input/radioset/radioset.component.js +0 -97
- app-rn-runtime/components/input/radioset/radioset.component.js.map +0 -1
- app-rn-runtime/components/input/radioset/radioset.props.js +0 -18
- app-rn-runtime/components/input/radioset/radioset.props.js.map +0 -1
- app-rn-runtime/components/input/radioset/radioset.styles.js +0 -83
- app-rn-runtime/components/input/radioset/radioset.styles.js.map +0 -1
- app-rn-runtime/components/input/rating/rating.component.js +0 -144
- app-rn-runtime/components/input/rating/rating.component.js.map +0 -1
- app-rn-runtime/components/input/rating/rating.props.js +0 -21
- app-rn-runtime/components/input/rating/rating.styles.js +0 -36
- app-rn-runtime/components/input/rating/rating.styles.js.map +0 -1
- app-rn-runtime/components/input/select/select.component.js +0 -207
- app-rn-runtime/components/input/select/select.component.js.map +0 -1
- app-rn-runtime/components/input/select/select.props.js +0 -12
- app-rn-runtime/components/input/select/select.styles.js +0 -105
- app-rn-runtime/components/input/select/select.styles.js.map +0 -1
- app-rn-runtime/components/input/slider/slider.component.js +0 -444
- app-rn-runtime/components/input/slider/slider.component.js.map +0 -1
- app-rn-runtime/components/input/slider/slider.props.js +0 -20
- app-rn-runtime/components/input/slider/slider.props.js.map +0 -1
- app-rn-runtime/components/input/slider/slider.styles.js +0 -83
- app-rn-runtime/components/input/slider/slider.styles.js.map +0 -1
- app-rn-runtime/components/input/switch/switch.component.js +0 -84
- app-rn-runtime/components/input/switch/switch.component.js.map +0 -1
- app-rn-runtime/components/input/switch/switch.props.js +0 -13
- app-rn-runtime/components/input/switch/switch.styles.js +0 -128
- app-rn-runtime/components/input/switch/switch.styles.js.map +0 -1
- app-rn-runtime/components/input/text/text.component.js +0 -61
- app-rn-runtime/components/input/text/text.component.js.map +0 -1
- app-rn-runtime/components/input/text/text.props.js +0 -12
- app-rn-runtime/components/input/text/text.props.js.map +0 -1
- app-rn-runtime/components/input/text/text.styles.js +0 -65
- app-rn-runtime/components/input/text/text.styles.js.map +0 -1
- app-rn-runtime/components/input/textarea/textarea.component.js +0 -60
- app-rn-runtime/components/input/textarea/textarea.component.js.map +0 -1
- app-rn-runtime/components/input/textarea/textarea.props.js +0 -12
- app-rn-runtime/components/input/textarea/textarea.props.js.map +0 -1
- app-rn-runtime/components/input/textarea/textarea.styles.js +0 -63
- app-rn-runtime/components/input/textarea/textarea.styles.js.map +0 -1
- app-rn-runtime/components/input/toggle/toggle.component.js +0 -144
- app-rn-runtime/components/input/toggle/toggle.component.js.map +0 -1
- app-rn-runtime/components/input/toggle/toggle.props.js +0 -20
- app-rn-runtime/components/input/toggle/toggle.props.js.map +0 -1
- app-rn-runtime/components/input/toggle/toggle.styles.js +0 -48
- app-rn-runtime/components/input/toggle/toggle.styles.js.map +0 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +0 -74
- app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +0 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +0 -21
- app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +0 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +0 -1
- app-rn-runtime/components/navigation/basenav/basenav.component.js +0 -72
- app-rn-runtime/components/navigation/basenav/basenav.props.js +0 -18
- app-rn-runtime/components/navigation/menu/menu.component.js +0 -63
- app-rn-runtime/components/navigation/menu/menu.component.js.map +0 -1
- app-rn-runtime/components/navigation/menu/menu.props.js +0 -14
- app-rn-runtime/components/navigation/menu/menu.styles.js +0 -74
- app-rn-runtime/components/navigation/menu/menu.styles.js.map +0 -1
- app-rn-runtime/components/navigation/navbar/navbar.component.js +0 -77
- app-rn-runtime/components/navigation/navbar/navbar.component.js.map +0 -1
- app-rn-runtime/components/navigation/navbar/navbar.props.js +0 -16
- app-rn-runtime/components/navigation/navitem/navitem.component.js +0 -67
- app-rn-runtime/components/navigation/navitem/navitem.component.js.map +0 -1
- app-rn-runtime/components/navigation/navitem/navitem.props.js +0 -19
- app-rn-runtime/components/navigation/popover/popover.component.js +0 -193
- app-rn-runtime/components/navigation/popover/popover.component.js.map +0 -1
- app-rn-runtime/components/navigation/popover/popover.props.js +0 -31
- app-rn-runtime/components/navigation/popover/popover.props.js.map +0 -1
- app-rn-runtime/components/navigation/popover/popover.styles.js +0 -86
- app-rn-runtime/components/navigation/popover/popover.styles.js.map +0 -1
- app-rn-runtime/components/page/content/content.component.js.map +0 -1
- app-rn-runtime/components/page/left-panel/left-panel.component.js +0 -45
- app-rn-runtime/components/page/left-panel/left-panel.component.js.map +0 -1
- app-rn-runtime/components/page/left-panel/left-panel.props.js +0 -12
- app-rn-runtime/components/page/page-content/page-content.component.js +0 -37
- app-rn-runtime/components/page/page-content/page-content.component.js.map +0 -1
- app-rn-runtime/components/page/page-content/page-content.props.js +0 -12
- app-rn-runtime/components/page/page-content/page-content.props.js.map +0 -1
- app-rn-runtime/components/page/page-content/page-content.styles.js +0 -15
- app-rn-runtime/components/page/page-content/page-content.styles.js.map +0 -1
- app-rn-runtime/components/page/page.component.js +0 -26
- app-rn-runtime/components/page/page.component.js.map +0 -1
- app-rn-runtime/components/page/page.props.js +0 -2
- app-rn-runtime/components/page/page.props.js.map +0 -1
- app-rn-runtime/components/page/page.styles.js +0 -18
- app-rn-runtime/components/page/page.styles.js.map +0 -1
- app-rn-runtime/components/page/partial/partial.component.js +0 -16
- app-rn-runtime/components/page/partial/partial.component.js.map +0 -1
- app-rn-runtime/components/page/partial/partial.props.js.map +0 -1
- app-rn-runtime/components/page/partial/partial.styles.js +0 -13
- app-rn-runtime/components/page/partial/partial.styles.js.map +0 -1
- app-rn-runtime/components/page/partial-container/partial-container.component.js +0 -31
- app-rn-runtime/components/page/partial-container/partial-container.component.js.map +0 -1
- app-rn-runtime/components/page/partial-container/partial-container.props.js +0 -12
- app-rn-runtime/components/page/partial-container/partial-container.props.js.map +0 -1
- app-rn-runtime/components/page/tabbar/tabbar.component.js +0 -149
- app-rn-runtime/components/page/tabbar/tabbar.component.js.map +0 -1
- app-rn-runtime/components/page/tabbar/tabbar.props.js +0 -28
- app-rn-runtime/components/page/tabbar/tabbar.props.js.map +0 -1
- app-rn-runtime/components/prefab/prefab-container.component.js +0 -16
- app-rn-runtime/components/prefab/prefab-container.component.js.map +0 -1
- app-rn-runtime/components/prefab/prefab-container.props.js.map +0 -1
- app-rn-runtime/components/prefab/prefab-container.styles.js +0 -11
- app-rn-runtime/components/prefab/prefab-container.styles.js.map +0 -1
- app-rn-runtime/core/AppConfig.js.map +0 -1
- app-rn-runtime/core/accessibility.js +0 -155
- app-rn-runtime/core/accessibility.js.map +0 -1
- app-rn-runtime/core/base.component.js +0 -458
- app-rn-runtime/core/base.component.js.map +0 -1
- app-rn-runtime/core/components/floatinglabel.component.js.map +0 -1
- app-rn-runtime/core/components/textinput.component.js +0 -195
- app-rn-runtime/core/components/textinput.component.js.map +0 -1
- app-rn-runtime/core/constant.service.js +0 -22
- app-rn-runtime/core/event-notifier.js +0 -68
- app-rn-runtime/core/fixed-view.component.js +0 -67
- app-rn-runtime/core/fixed-view.component.js.map +0 -1
- app-rn-runtime/core/formatters.js +0 -68
- app-rn-runtime/core/formatters.js.map +0 -1
- app-rn-runtime/core/imageSizeEstimator.js +0 -51
- app-rn-runtime/core/key.extractor.js +0 -21
- app-rn-runtime/core/logger.js +0 -123
- app-rn-runtime/core/navigation.service.js +0 -5
- app-rn-runtime/core/navigation.service.js.map +0 -1
- app-rn-runtime/core/network.service.js +0 -327
- app-rn-runtime/core/partial.service.js.map +0 -1
- app-rn-runtime/core/props.provider.js +0 -89
- app-rn-runtime/core/props.provider.js.map +0 -1
- app-rn-runtime/core/scroll-view.component.js +0 -52
- app-rn-runtime/core/storage.service.js +0 -23
- app-rn-runtime/core/storage.service.js.map +0 -1
- app-rn-runtime/core/tappable.component.js +0 -145
- app-rn-runtime/core/tappable.component.js.map +0 -1
- app-rn-runtime/core/toast.service.js.map +0 -1
- app-rn-runtime/core/ui-preferences.context.js +0 -7
- app-rn-runtime/core/ui-preferences.context.js.map +0 -1
- app-rn-runtime/core/utils.js +0 -524
- app-rn-runtime/core/utils.js.map +0 -1
- app-rn-runtime/core/viewport.js +0 -45
- app-rn-runtime/gestures/swipe.animation.js +0 -217
- app-rn-runtime/gestures/swipe.animation.js.map +0 -1
- app-rn-runtime/package.json +0 -270
- app-rn-runtime/runtime/App.js +0 -511
- app-rn-runtime/runtime/App.js.map +0 -1
- app-rn-runtime/runtime/App.navigator.js +0 -109
- app-rn-runtime/runtime/App.navigator.js.map +0 -1
- app-rn-runtime/runtime/base-fragment.component.js +0 -368
- app-rn-runtime/runtime/base-fragment.component.js.map +0 -1
- app-rn-runtime/runtime/base-page.component.js +0 -170
- app-rn-runtime/runtime/base-page.component.js.map +0 -1
- app-rn-runtime/runtime/base-partial.component.js +0 -60
- app-rn-runtime/runtime/base-partial.component.js.map +0 -1
- app-rn-runtime/runtime/base-prefab.component.js +0 -83
- app-rn-runtime/runtime/base-prefab.component.js.map +0 -1
- app-rn-runtime/runtime/memo.component.js +0 -35
- app-rn-runtime/runtime/navigator/drawer.navigator.js +0 -30
- app-rn-runtime/runtime/navigator/drawer.navigator.js.map +0 -1
- app-rn-runtime/runtime/navigator/stack.navigator.js +0 -77
- app-rn-runtime/runtime/navigator/stack.navigator.js.map +0 -1
- app-rn-runtime/runtime/services/app-display-manager.service.js +0 -50
- app-rn-runtime/runtime/services/app-i18n.service.js +0 -81
- app-rn-runtime/runtime/services/app-i18n.service.js.map +0 -1
- app-rn-runtime/runtime/services/app-modal.service.js +0 -71
- app-rn-runtime/runtime/services/app-modal.service.js.map +0 -1
- app-rn-runtime/runtime/services/app-security.service.js +0 -240
- app-rn-runtime/runtime/services/app-security.service.js.map +0 -1
- app-rn-runtime/runtime/services/app-spinner.service.js +0 -74
- app-rn-runtime/runtime/services/app-toast.service.js +0 -56
- app-rn-runtime/runtime/services/app-toast.service.js.map +0 -1
- app-rn-runtime/runtime/services/device/camera-service.js +0 -349
- app-rn-runtime/runtime/services/device/camera-service.js.map +0 -1
- app-rn-runtime/runtime/services/device/permissions.js +0 -50
- app-rn-runtime/runtime/services/device/permissions.js.map +0 -1
- app-rn-runtime/runtime/services/device/scan-service.js +0 -136
- app-rn-runtime/runtime/services/device/scan-service.js.map +0 -1
- app-rn-runtime/runtime/services/partial.service.js +0 -15
- app-rn-runtime/runtime/services/partial.service.js.map +0 -1
- app-rn-runtime/runtime/services/webprocess.service.js +0 -107
- app-rn-runtime/runtime/watcher.js +0 -147
- app-rn-runtime/styles/background.component.js +0 -311
- app-rn-runtime/styles/background.component.js.map +0 -1
- app-rn-runtime/styles/style-props.js +0 -93
- app-rn-runtime/styles/style-props.js.map +0 -1
- app-rn-runtime/styles/theme.js +0 -404
- app-rn-runtime/styles/theme.js.map +0 -1
- app-rn-runtime/styles/theme.variables.js +0 -436
- app-rn-runtime/styles/theme.variables.js.map +0 -1
- app-rn-runtime/variables/base-variable.js +0 -125
- app-rn-runtime/variables/device/device/network-info.operation.js +0 -33
- app-rn-runtime/variables/device/file/upload-file.operation.js +0 -56
- app-rn-runtime/variables/device/file/upload-file.operation.js.map +0 -1
- app-rn-runtime/variables/http.service.js +0 -80
- app-rn-runtime/variables/http.service.js.map +0 -1
- app-rn-runtime/variables/live-variable.js +0 -116
- app-rn-runtime/variables/live-variable.js.map +0 -1
- app-rn-runtime/variables/model-variable.js +0 -47
- app-rn-runtime/variables/service-variable.js +0 -143
- app-rn-runtime/variables/utils/inflight-queue.js +0 -114
- {app-rn-runtime → package}/actions/base-action.js +0 -0
- {app-rn-runtime → package}/actions/base-action.js.map +0 -0
- {app-rn-runtime → package}/actions/index.js +0 -0
- {app-rn-runtime → package}/actions/index.js.map +0 -0
- {app-rn-runtime → package}/actions/login-action.js +0 -0
- {app-rn-runtime → package}/actions/login-action.js.map +0 -0
- {app-rn-runtime → package}/actions/logout-action.js +0 -0
- {app-rn-runtime → package}/actions/logout-action.js.map +0 -0
- {app-rn-runtime → package}/actions/navigation-action.js +0 -0
- {app-rn-runtime → package}/actions/navigation-action.js.map +0 -0
- {app-rn-runtime → package}/actions/timer-action.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-content/carousel-content.component.js +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-content/carousel-content.component.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-content/carousel-content.props.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-content/carousel-content.styles.js +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-content/carousel-content.styles.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-template/carousel-template.component.js +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-template/carousel-template.component.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-template/carousel-template.props.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-template/carousel-template.styles.js +0 -0
- {app-rn-runtime → package}/components/advanced/carousel/carousel-template/carousel-template.styles.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/login/login.styles.js +0 -0
- {app-rn-runtime → package}/components/advanced/login/login.styles.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/network-info-toaster/network-info-toaster.props.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/network-info-toaster/network-info-toaster.styles.js +0 -0
- {app-rn-runtime → package}/components/advanced/network-info-toaster/network-info-toaster.styles.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/webview/webview.props.js.map +0 -0
- {app-rn-runtime → package}/components/advanced/webview/webview.styles.js +0 -0
- {app-rn-runtime → package}/components/advanced/webview/webview.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/anchor/anchor.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/audio/audio.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/button/button.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/buttongroup/buttongroup.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/buttongroup/buttongroup.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/buttongroup/buttongroup.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/custom/custom.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/custom/custom.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/custom/custom.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/icon/icon.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/icon/icon.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-light-icon/streamline-light-icon.component.js.map +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-light-icon/streamline-light-icon.ttf +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-regular-icon/streamline-regular-icon.component.js.map +0 -0
- {app-rn-runtime → package}/components/basic/icon/streamline-regular-icon/streamline-regular-icon.ttf +0 -0
- {app-rn-runtime → package}/components/basic/icon/wavicon/wavicon.component.js +0 -0
- {app-rn-runtime → package}/components/basic/icon/wavicon/wavicon.component.js.map +0 -0
- {app-rn-runtime → package}/components/basic/icon/wavicon/wavicon.ttf +0 -0
- {app-rn-runtime → package}/components/basic/lottie/lottie.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/lottie/lottie.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/lottie/lottie.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/message/message.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/message/message.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/modal/modal.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/modal/modal.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/modal/modal.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/picture/picture.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/progress-circle/progress-circle.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/progress-circle/progress-circle.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/progress-circle/progress-circle.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/search/local-data-provider.js.map +0 -0
- {app-rn-runtime → package}/components/basic/skeleton/skeleton.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/spinner/spinner.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/spinner/spinner.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/spinner/spinner.styles.js.map +0 -0
- {app-rn-runtime → package}/components/basic/tooltip/tooltip.props.js.map +0 -0
- {app-rn-runtime → package}/components/basic/tooltip/tooltip.styles.js +0 -0
- {app-rn-runtime → package}/components/basic/tooltip/tooltip.styles.js.map +0 -0
- {app-rn-runtime → package}/components/chart/area-chart/area-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/basechart.styles.js +0 -0
- {app-rn-runtime → package}/components/chart/bubble-chart/bubble-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/column-chart/column-chart.component.js +0 -0
- {app-rn-runtime → package}/components/chart/column-chart/column-chart.component.js.map +0 -0
- {app-rn-runtime → package}/components/chart/column-chart/column-chart.props.js +0 -0
- {app-rn-runtime → package}/components/chart/column-chart/column-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/donut-chart/donut-chart.component.js +0 -0
- {app-rn-runtime → package}/components/chart/donut-chart/donut-chart.component.js.map +0 -0
- {app-rn-runtime → package}/components/chart/donut-chart/donut-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/legend/legend.component.js +0 -0
- {app-rn-runtime → package}/components/chart/legend/legend.component.js.map +0 -0
- {app-rn-runtime → package}/components/chart/pie-chart/pie-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/stack-chart/stack-chart.props.js.map +0 -0
- {app-rn-runtime → package}/components/chart/stack-chart/stack-chart.styles.js +0 -0
- {app-rn-runtime → package}/components/chart/stack-chart/stack-chart.styles.js.map +0 -0
- {app-rn-runtime → package}/components/chart/staticdata.js +0 -0
- {app-rn-runtime → package}/components/chart/staticdata.js.map +0 -0
- {app-rn-runtime → package}/components/container/accordion/accordionpane/accordionpane.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/accordion/accordionpane/accordionpane.styles.js +0 -0
- {app-rn-runtime → package}/components/container/accordion/accordionpane/accordionpane.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/layoutgrid/gridcolumn/gridcolumn.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js +0 -0
- {app-rn-runtime → package}/components/container/layoutgrid/gridcolumn/gridcolumn.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/layoutgrid/gridrow/gridrow.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/linearlayout/linearlayoutitem/linearlayoutitem.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js +0 -0
- {app-rn-runtime → package}/components/container/linearlayout/linearlayoutitem/linearlayoutitem.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/collapsible-pane.component.js +0 -0
- {app-rn-runtime → package}/components/container/panel/collapsible-pane.component.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-content/panel-content.component.js +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-content/panel-content.component.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-content/panel-content.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-content/panel-content.styles.js +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-content/panel-content.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-footer/panel-footer.component.js +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-footer/panel-footer.component.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-footer/panel-footer.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-footer/panel-footer.styles.js +0 -0
- {app-rn-runtime → package}/components/container/panel/panel-footer/panel-footer.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/tabs/tabheader/tabheader.styles.js +0 -0
- {app-rn-runtime → package}/components/container/tabs/tabheader/tabheader.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/tabs/tabpane/tabpane.styles.js +0 -0
- {app-rn-runtime → package}/components/container/tabs/tabpane/tabpane.styles.js.map +0 -0
- {app-rn-runtime → package}/components/container/wizard/wizardstep/wizardstep.props.js.map +0 -0
- {app-rn-runtime → package}/components/container/wizard/wizardstep/wizardstep.styles.js +0 -0
- {app-rn-runtime → package}/components/container/wizard/wizardstep/wizardstep.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/card/card-content/card-content.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/card/card-footer/card-footer.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/card/card-footer/card-footer.styles.js +0 -0
- {app-rn-runtime → package}/components/data/card/card-footer/card-footer.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/card/card.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-action/form-action.component.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-action/form-action.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-action/form-action.styles.js +0 -0
- {app-rn-runtime → package}/components/data/form/form-action/form-action.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-body/form-body.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-body/form-body.styles.js +0 -0
- {app-rn-runtime → package}/components/data/form/form-body/form-body.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-footer/form-footer.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form-footer/form-footer.styles.js +0 -0
- {app-rn-runtime → package}/components/data/form/form-footer/form-footer.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/form/form.styles.js +0 -0
- {app-rn-runtime → package}/components/data/form/form.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/list/list-action-template/list-action-template.component.js +0 -0
- {app-rn-runtime → package}/components/data/list/list-action-template/list-action-template.component.js.map +0 -0
- {app-rn-runtime → package}/components/data/list/list-action-template/list-action-template.props.js.map +0 -0
- {app-rn-runtime → package}/components/data/list/list-action-template/list-action-template.styles.js +0 -0
- {app-rn-runtime → package}/components/data/list/list-action-template/list-action-template.styles.js.map +0 -0
- {app-rn-runtime → package}/components/data/liveform/liveform.component.js.map +0 -0
- {app-rn-runtime → package}/components/device/barcodescanner/barcodescanner.props.js.map +0 -0
- {app-rn-runtime → package}/components/device/barcodescanner/barcodescanner.styles.js +0 -0
- {app-rn-runtime → package}/components/device/barcodescanner/barcodescanner.styles.js.map +0 -0
- {app-rn-runtime → package}/components/device/camera/camera.styles.js +0 -0
- {app-rn-runtime → package}/components/device/camera/camera.styles.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/alertdialog/alertdialog.component.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/alertdialog/alertdialog.props.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/alertdialog/alertdialog.styles.js +0 -0
- {app-rn-runtime → package}/components/dialogs/alertdialog/alertdialog.styles.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/confirmdialog/confirmdialog.component.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/confirmdialog/confirmdialog.props.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/confirmdialog/confirmdialog.styles.js +0 -0
- {app-rn-runtime → package}/components/dialogs/confirmdialog/confirmdialog.styles.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/dialog/dialog.props.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogactions/dialogactions.props.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogactions/dialogactions.styles.js +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogactions/dialogactions.styles.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogcontent/dialogcontent.props.js.map +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogcontent/dialogcontent.styles.js +0 -0
- {app-rn-runtime → package}/components/dialogs/dialogcontent/dialogcontent.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/basedataset/basedataset.styles.js +0 -0
- {app-rn-runtime → package}/components/input/basedataset/basedataset.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/baseinput/baseinput.styles.js +0 -0
- {app-rn-runtime → package}/components/input/baseinput/baseinput.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/basenumber/basenumber.styles.js +0 -0
- {app-rn-runtime → package}/components/input/basenumber/basenumber.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/calendar/calendar.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/checkbox/checkbox.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/chips/chips.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/composite/composite.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/composite/composite.styles.js +0 -0
- {app-rn-runtime → package}/components/input/composite/composite.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/currency/currency.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/date/date.component.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/date/date.component.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/date/date.props.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/date/date.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/datetime/datetime.component.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/datetime/datetime.component.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/time/time.component.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/time/time.component.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/time/time.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheel-time-picker.component.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheelpicker/wheelpicker.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheelpicker/wheelpicker.styles.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheelpicker/wheelpicker.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js +0 -0
- {app-rn-runtime → package}/components/input/epoch/wheelpickermodal/styles/datetime-picker-modal.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/fileupload/fileupload.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/fileupload/fileupload.styles.js +0 -0
- {app-rn-runtime → package}/components/input/fileupload/fileupload.styles.js.map +0 -0
- {app-rn-runtime → package}/components/input/number/number.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/rating/rating.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/select/select.props.js.map +0 -0
- {app-rn-runtime → package}/components/input/switch/switch.props.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/appnavbar/appnavbar.styles.js +0 -0
- {app-rn-runtime → package}/components/navigation/basenav/basenav.component.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/basenav/basenav.props.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/basenav/basenav.styles.js +0 -0
- {app-rn-runtime → package}/components/navigation/basenav/basenav.styles.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/menu/menu.props.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/navbar/navbar.props.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/navbar/navbar.styles.js +0 -0
- {app-rn-runtime → package}/components/navigation/navbar/navbar.styles.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/navitem/navitem.props.js.map +0 -0
- {app-rn-runtime → package}/components/navigation/navitem/navitem.styles.js +0 -0
- {app-rn-runtime → package}/components/navigation/navitem/navitem.styles.js.map +0 -0
- {app-rn-runtime → package}/components/page/content/content.component.js +0 -0
- {app-rn-runtime → package}/components/page/content/content.props.js +0 -0
- {app-rn-runtime → package}/components/page/content/content.props.js.map +0 -0
- {app-rn-runtime → package}/components/page/content/content.styles.js +0 -0
- {app-rn-runtime → package}/components/page/content/content.styles.js.map +0 -0
- {app-rn-runtime → package}/components/page/left-panel/left-panel.props.js.map +0 -0
- {app-rn-runtime → package}/components/page/left-panel/left-panel.styles.js +0 -0
- {app-rn-runtime → package}/components/page/left-panel/left-panel.styles.js.map +0 -0
- {app-rn-runtime → package}/components/page/partial/partial.props.js +0 -0
- {app-rn-runtime → package}/components/page/partial-container/partial-container.styles.js +0 -0
- {app-rn-runtime → package}/components/page/partial-container/partial-container.styles.js.map +0 -0
- {app-rn-runtime → package}/components/page/tabbar/curve.js +0 -0
- {app-rn-runtime → package}/components/page/tabbar/curve.js.map +0 -0
- {app-rn-runtime → package}/components/page/tabbar/tabbar.styles.js +0 -0
- {app-rn-runtime → package}/components/page/tabbar/tabbar.styles.js.map +0 -0
- {app-rn-runtime → package}/components/prefab/prefab-container.props.js +0 -0
- {app-rn-runtime → package}/core/AppConfig.js +0 -0
- {app-rn-runtime → package}/core/asset.provider.js +0 -0
- {app-rn-runtime → package}/core/asset.provider.js.map +0 -0
- {app-rn-runtime → package}/core/components/floatinglabel.component.js +0 -0
- {app-rn-runtime → package}/core/constant.service.js.map +0 -0
- {app-rn-runtime → package}/core/constants/currency-constants.js +0 -0
- {app-rn-runtime → package}/core/constants/currency-constants.js.map +0 -0
- {app-rn-runtime → package}/core/currency-constants.js +0 -0
- {app-rn-runtime → package}/core/currency-constants.js.map +0 -0
- {app-rn-runtime → package}/core/device/calendar-service.js +0 -0
- {app-rn-runtime → package}/core/device/calendar-service.js.map +0 -0
- {app-rn-runtime → package}/core/device/camera-service.js +0 -0
- {app-rn-runtime → package}/core/device/camera-service.js.map +0 -0
- {app-rn-runtime → package}/core/device/contacts-service.js +0 -0
- {app-rn-runtime → package}/core/device/contacts-service.js.map +0 -0
- {app-rn-runtime → package}/core/device/location-service.js +0 -0
- {app-rn-runtime → package}/core/device/location-service.js.map +0 -0
- {app-rn-runtime → package}/core/device/scan-service.js +0 -0
- {app-rn-runtime → package}/core/device/scan-service.js.map +0 -0
- {app-rn-runtime → package}/core/display.manager.js +0 -0
- {app-rn-runtime → package}/core/display.manager.js.map +0 -0
- {app-rn-runtime → package}/core/event-notifier.js.map +0 -0
- {app-rn-runtime → package}/core/file-extension-types.js +0 -0
- {app-rn-runtime → package}/core/file-extension-types.js.map +0 -0
- {app-rn-runtime → package}/core/i18n.service.js +0 -0
- {app-rn-runtime → package}/core/i18n.service.js.map +0 -0
- {app-rn-runtime → package}/core/if.component.js +0 -0
- {app-rn-runtime → package}/core/if.component.js.map +0 -0
- {app-rn-runtime → package}/core/imageSizeEstimator.js.map +0 -0
- {app-rn-runtime → package}/core/injector.js +0 -0
- {app-rn-runtime → package}/core/injector.js.map +0 -0
- {app-rn-runtime → package}/core/key.extractor.js.map +0 -0
- {app-rn-runtime → package}/core/logger.js.map +0 -0
- {app-rn-runtime → package}/core/modal.service.js +0 -0
- {app-rn-runtime → package}/core/modal.service.js.map +0 -0
- {app-rn-runtime → package}/core/network.service.js.map +0 -0
- {app-rn-runtime → package}/core/partial.service.js +0 -0
- {app-rn-runtime → package}/core/scroll-view.component.js.map +0 -0
- {app-rn-runtime → package}/core/security.service.js +0 -0
- {app-rn-runtime → package}/core/security.service.js.map +0 -0
- {app-rn-runtime → package}/core/spinner.service.js +0 -0
- {app-rn-runtime → package}/core/spinner.service.js.map +0 -0
- {app-rn-runtime → package}/core/testid.provider.js +0 -0
- {app-rn-runtime → package}/core/testid.provider.js.map +0 -0
- {app-rn-runtime → package}/core/toast.service.js +0 -0
- {app-rn-runtime → package}/core/viewport.js.map +0 -0
- {app-rn-runtime → package}/index.js +0 -0
- {app-rn-runtime → package}/index.js.map +0 -0
- {app-rn-runtime → package}/runtime/lib-patch.js +0 -0
- {app-rn-runtime → package}/runtime/lib-patch.js.map +0 -0
- {app-rn-runtime → package}/runtime/memo.component.js.map +0 -0
- {app-rn-runtime → package}/runtime/platform.api.js +0 -0
- {app-rn-runtime → package}/runtime/platform.api.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/app-display-manager.service.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/app-spinner.service.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/device/calendar-service.js +0 -0
- {app-rn-runtime → package}/runtime/services/device/calendar-service.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/device/contacts-service.js +0 -0
- {app-rn-runtime → package}/runtime/services/device/contacts-service.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/device/location-service.js +0 -0
- {app-rn-runtime → package}/runtime/services/device/location-service.js.map +0 -0
- {app-rn-runtime → package}/runtime/services/webprocess.service.js.map +0 -0
- {app-rn-runtime → package}/runtime/watcher.js.map +0 -0
- {app-rn-runtime → package}/styles/MediaQueryList.js +0 -0
- {app-rn-runtime → package}/styles/MediaQueryList.js.map +0 -0
- {app-rn-runtime → package}/styles/style-prop.validator.js +0 -0
- {app-rn-runtime → package}/styles/style-prop.validator.js.map +0 -0
- {app-rn-runtime → package}/variables/base-variable.js.map +0 -0
- {app-rn-runtime → package}/variables/device/calendar/create-event.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/calendar/create-event.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/calendar/delete-event.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/calendar/delete-event.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/calendar/get-events.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/calendar/get-events.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/camera/capture-image.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/camera/capture-image.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/camera/capture-video.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/camera/capture-video.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/contacts/get-contacts.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/contacts/get-contacts.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/device/app-info.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/device/app-info.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/device/current-geo-position.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/device/current-geo-position.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/device/device-info.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/device/device-info.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/device/network-info.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/device/vibrate.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/device/vibrate.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device/operation.provider.js +0 -0
- {app-rn-runtime → package}/variables/device/operation.provider.js.map +0 -0
- {app-rn-runtime → package}/variables/device/scan/scan.operation.js +0 -0
- {app-rn-runtime → package}/variables/device/scan/scan.operation.js.map +0 -0
- {app-rn-runtime → package}/variables/device-variable.js +0 -0
- {app-rn-runtime → package}/variables/device-variable.js.map +0 -0
- {app-rn-runtime → package}/variables/model-variable.js.map +0 -0
- {app-rn-runtime → package}/variables/service-variable.js.map +0 -0
- {app-rn-runtime → package}/variables/utils/dataset-util.js +0 -0
- {app-rn-runtime → package}/variables/utils/dataset-util.js.map +0 -0
- {app-rn-runtime → package}/variables/utils/inflight-queue.js.map +0 -0
- {app-rn-runtime → package}/variables/utils/variable.constants.js +0 -0
- {app-rn-runtime → package}/variables/utils/variable.constants.js.map +0 -0
- {app-rn-runtime → package}/variables/utils/variable.utils.js +0 -0
- {app-rn-runtime → package}/variables/utils/variable.utils.js.map +0 -0
@@ -0,0 +1,311 @@
|
|
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 * as React from 'react';
|
5
|
+
import { LinearGradient as ExpoLinearGradient } from 'expo-linear-gradient';
|
6
|
+
import { Image, StyleSheet, View } from 'react-native';
|
7
|
+
import { isEmpty, isNil, isNumber } from 'lodash-es';
|
8
|
+
import imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';
|
9
|
+
import { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';
|
10
|
+
import { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';
|
11
|
+
const IMAGE_URL_REGEX = /url\(['|"]?(.+)['|"]?\)$/gi;
|
12
|
+
const LINEAT_GRADIENT_REGEX = /linear-gradient\((.+)\)$/gi;
|
13
|
+
const DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;
|
14
|
+
const BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
|
15
|
+
const BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\s*([0-9%]+)[a-z]*/g;
|
16
|
+
const ASSET_CACHE = {};
|
17
|
+
export class LinearGradient extends React.Component {
|
18
|
+
constructor(props) {
|
19
|
+
super(props);
|
20
|
+
this.state = this.parse();
|
21
|
+
}
|
22
|
+
parse(val = this.props.value) {
|
23
|
+
let state = {};
|
24
|
+
const splits = val.split(',').map(v => v.trim());
|
25
|
+
let angle = 0;
|
26
|
+
const locations = [];
|
27
|
+
if (splits[0].endsWith('deg')) {
|
28
|
+
angle = parseInt(splits[0].split('deg')[0]) % 360;
|
29
|
+
angle = angle < 0 ? 360 + angle : angle;
|
30
|
+
splits.shift();
|
31
|
+
}
|
32
|
+
angle += 90;
|
33
|
+
const delta = Math.round(Math.tan(angle * Math.PI / 180) * 100) / 100;
|
34
|
+
if (Math.abs(delta) > 1) {
|
35
|
+
state = {
|
36
|
+
end: {
|
37
|
+
x: -0.5 / delta + 0.5,
|
38
|
+
y: 0
|
39
|
+
},
|
40
|
+
start: {
|
41
|
+
x: 0.5 / delta + 0.5,
|
42
|
+
y: 1
|
43
|
+
}
|
44
|
+
};
|
45
|
+
} else {
|
46
|
+
state = {
|
47
|
+
start: {
|
48
|
+
x: 0,
|
49
|
+
y: -0.5 * delta + 0.5
|
50
|
+
},
|
51
|
+
end: {
|
52
|
+
x: 1,
|
53
|
+
y: 0.5 * delta + 0.5
|
54
|
+
}
|
55
|
+
};
|
56
|
+
}
|
57
|
+
if (angle >= 270 && angle <= 450) {
|
58
|
+
state = {
|
59
|
+
start: state.end,
|
60
|
+
end: state.start
|
61
|
+
};
|
62
|
+
}
|
63
|
+
state.colors = [];
|
64
|
+
state.locations = [];
|
65
|
+
splits.map(s => {
|
66
|
+
var _s$matchAll$next;
|
67
|
+
const p = (_s$matchAll$next = s.matchAll(/\s*([0-9.]+)%/g).next()) === null || _s$matchAll$next === void 0 ? void 0 : _s$matchAll$next.value;
|
68
|
+
if (p) {
|
69
|
+
state.locations.push(parseFloat(p[1]) / 100);
|
70
|
+
state.colors.push(s.replace(p[0], ''));
|
71
|
+
} else {
|
72
|
+
state.locations.push(null);
|
73
|
+
state.colors.push(s);
|
74
|
+
}
|
75
|
+
});
|
76
|
+
return state;
|
77
|
+
}
|
78
|
+
componentDidUpdate(prevProps, prevState, snapshot) {
|
79
|
+
if (prevProps.value !== this.props.value) {
|
80
|
+
this.setState(this.parse());
|
81
|
+
}
|
82
|
+
}
|
83
|
+
render() {
|
84
|
+
var _this$props$size, _this$props$style;
|
85
|
+
return /*#__PURE__*/React.createElement(View, {
|
86
|
+
style: [{
|
87
|
+
borderWidth: 0,
|
88
|
+
overflow: 'hidden'
|
89
|
+
}, StyleSheet.absoluteFill, this.props.style]
|
90
|
+
}, /*#__PURE__*/React.createElement(View, {
|
91
|
+
style: [StyleSheet.absoluteFill, this.props.middle ? {
|
92
|
+
flexDirection: 'row',
|
93
|
+
justifyContent: 'center',
|
94
|
+
alignItems: 'center'
|
95
|
+
} : null]
|
96
|
+
}, /*#__PURE__*/React.createElement(ExpoLinearGradient, {
|
97
|
+
testID: "wm-expo-linear-gradient",
|
98
|
+
colors: this.state.colors,
|
99
|
+
locations: this.state.locations,
|
100
|
+
start: this.state.start,
|
101
|
+
end: this.state.end,
|
102
|
+
style: [(_this$props$size = this.props.size) !== null && _this$props$size !== void 0 && _this$props$size.width ? this.props.size : StyleSheet.absoluteFill, this.props.position, {
|
103
|
+
position: 'absolute',
|
104
|
+
borderRadius: (_this$props$style = this.props.style) === null || _this$props$style === void 0 ? void 0 : _this$props$style.borderRadius
|
105
|
+
}]
|
106
|
+
})), this.props.children);
|
107
|
+
}
|
108
|
+
}
|
109
|
+
export class BackgroundComponent extends React.Component {
|
110
|
+
constructor(props) {
|
111
|
+
super(props);
|
112
|
+
_defineProperty(this, "loadAsset", null);
|
113
|
+
this.state = {
|
114
|
+
imageSrc: this.props.image ? ASSET_CACHE[this.props.image] : undefined
|
115
|
+
};
|
116
|
+
}
|
117
|
+
caluculateSize(imageSrc) {
|
118
|
+
if (isNumber(imageSrc)) {
|
119
|
+
const {
|
120
|
+
width,
|
121
|
+
height
|
122
|
+
} = Image.resolveAssetSource(imageSrc);
|
123
|
+
this.setState({
|
124
|
+
naturalImageWidth: width,
|
125
|
+
naturalImageHeight: height
|
126
|
+
});
|
127
|
+
} else if (!isNil(imageSrc)) {
|
128
|
+
imageSizeEstimator.getSize(imageSrc.uri, (width, height) => {
|
129
|
+
this.setState({
|
130
|
+
naturalImageWidth: width,
|
131
|
+
naturalImageHeight: height
|
132
|
+
});
|
133
|
+
});
|
134
|
+
}
|
135
|
+
}
|
136
|
+
getDimension(dim) {
|
137
|
+
if (dim) {
|
138
|
+
const value = dim.matchAll(DIMENSION_REGEX).next().value;
|
139
|
+
if (value[1]) {
|
140
|
+
return value[1].endsWith('%') ? value[1] : parseInt(value[1]);
|
141
|
+
}
|
142
|
+
}
|
143
|
+
return null;
|
144
|
+
}
|
145
|
+
getPosition() {
|
146
|
+
const result = {};
|
147
|
+
if (!this.props.position) {
|
148
|
+
return result;
|
149
|
+
}
|
150
|
+
const position = this.props.position.split(' ').map(s => s.trim());
|
151
|
+
if (position[0] === 'center') {
|
152
|
+
result.alignItems = 'center';
|
153
|
+
} else if (position[0] === 'top') {
|
154
|
+
result.top = 0;
|
155
|
+
} else if (position[0] === 'bottom') {
|
156
|
+
result.bottom = 0;
|
157
|
+
} else {
|
158
|
+
result.top = this.getDimension(position[0]);
|
159
|
+
}
|
160
|
+
if (position[1] === 'center') {
|
161
|
+
result.justifyContent = 'center';
|
162
|
+
} else if (position[1] === 'left') {
|
163
|
+
result.left = 0;
|
164
|
+
} else if (position[1] === 'bottom') {
|
165
|
+
result.right = 0;
|
166
|
+
} else {
|
167
|
+
result.left = this.getDimension(position[1]);
|
168
|
+
}
|
169
|
+
return result;
|
170
|
+
}
|
171
|
+
getPositionAndSize() {
|
172
|
+
var _this$props$size2, _this$getGradient;
|
173
|
+
const result = {};
|
174
|
+
if (this.props.resizeMode) {
|
175
|
+
result.resizeMode = this.props.resizeMode;
|
176
|
+
return result;
|
177
|
+
} else if (this.props.position === 'center') {
|
178
|
+
result.resizeMode = 'center';
|
179
|
+
result.position = {
|
180
|
+
justifyContent: 'center',
|
181
|
+
alignItems: 'center'
|
182
|
+
};
|
183
|
+
} else if (this.props.size === 'contain' || this.props.size === 'cover') {
|
184
|
+
result.resizeMode = this.props.size;
|
185
|
+
return result;
|
186
|
+
}
|
187
|
+
const size = (_this$props$size2 = this.props.size) === null || _this$props$size2 === void 0 ? void 0 : _this$props$size2.matchAll(BACKGROUND_SIZE_REGEX).next().value;
|
188
|
+
result.size = {};
|
189
|
+
if (size) {
|
190
|
+
result.size.width = size[1].endsWith('%') ? size[1] : parseInt(size[1]);
|
191
|
+
result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);
|
192
|
+
}
|
193
|
+
if (!result.resizeMode && this.props.position) {
|
194
|
+
result.position = this.getPosition();
|
195
|
+
}
|
196
|
+
if (!((_this$getGradient = this.getGradient()) !== null && _this$getGradient !== void 0 && (_this$getGradient = _this$getGradient.value) !== null && _this$getGradient !== void 0 && _this$getGradient.length)) {
|
197
|
+
if (this.props.repeat === 'no-repeat') {
|
198
|
+
result.size.width = result.size.width || this.state.naturalImageWidth;
|
199
|
+
result.size.height = result.size.height || this.state.naturalImageHeight;
|
200
|
+
} else if (this.props.repeat === 'repeat-x') {
|
201
|
+
result.resizeMode = 'repeat';
|
202
|
+
result.size.width = result.size.width || '100%';
|
203
|
+
result.size.height = result.size.height || this.state.naturalImageHeight;
|
204
|
+
} else if (this.props.repeat === 'repeat-y') {
|
205
|
+
result.resizeMode = 'repeat';
|
206
|
+
result.size.width = result.size.width || this.state.naturalImageWidth;
|
207
|
+
result.size.height = result.size.height || '100%';
|
208
|
+
} else {
|
209
|
+
result.resizeMode = 'repeat';
|
210
|
+
}
|
211
|
+
}
|
212
|
+
return result;
|
213
|
+
}
|
214
|
+
renderLinearGradient(data) {
|
215
|
+
const psresult = this.getPositionAndSize();
|
216
|
+
return /*#__PURE__*/React.createElement(LinearGradient, {
|
217
|
+
value: data || '',
|
218
|
+
style: this.props.style,
|
219
|
+
size: psresult.size,
|
220
|
+
position: psresult.position,
|
221
|
+
middle: psresult.resizeMode === 'center'
|
222
|
+
}, /*#__PURE__*/React.createElement(React.Fragment, null));
|
223
|
+
}
|
224
|
+
componentDidUpdate(prevProps, prevState, snapshot) {
|
225
|
+
if (this.props.image && prevProps.image !== this.props.image) {
|
226
|
+
this.setImage();
|
227
|
+
}
|
228
|
+
}
|
229
|
+
componentDidMount() {
|
230
|
+
setTimeout(() => this.setImage(), 100);
|
231
|
+
}
|
232
|
+
setImage() {
|
233
|
+
var _this$props$image, _source;
|
234
|
+
let source = (_this$props$image = this.props.image) === null || _this$props$image === void 0 ? void 0 : _this$props$image.trim();
|
235
|
+
if (!source) {
|
236
|
+
return;
|
237
|
+
}
|
238
|
+
if ((_source = source) !== null && _source !== void 0 && _source.startsWith('url')) {
|
239
|
+
var _this$props$image2;
|
240
|
+
source = (_this$props$image2 = this.props.image) === null || _this$props$image2 === void 0 || (_this$props$image2 = _this$props$image2.matchAll(IMAGE_URL_REGEX)) === null || _this$props$image2 === void 0 || (_this$props$image2 = _this$props$image2.next()) === null || _this$props$image2 === void 0 || (_this$props$image2 = _this$props$image2.value) === null || _this$props$image2 === void 0 ? void 0 : _this$props$image2[1];
|
241
|
+
}
|
242
|
+
if (this.loadAsset) {
|
243
|
+
source = this.loadAsset(source);
|
244
|
+
}
|
245
|
+
if (isFullPathUrl(source)) {
|
246
|
+
source = {
|
247
|
+
uri: source
|
248
|
+
};
|
249
|
+
}
|
250
|
+
this.caluculateSize(source);
|
251
|
+
this.setState({
|
252
|
+
imageSrc: source
|
253
|
+
});
|
254
|
+
if (this.props.image) {
|
255
|
+
ASSET_CACHE[this.props.image] = source;
|
256
|
+
}
|
257
|
+
}
|
258
|
+
getGradient() {
|
259
|
+
var _this$props$image3;
|
260
|
+
return (_this$props$image3 = this.props.image) === null || _this$props$image3 === void 0 ? void 0 : _this$props$image3.trim().matchAll(LINEAT_GRADIENT_REGEX).next();
|
261
|
+
}
|
262
|
+
renderImage() {
|
263
|
+
const psresult = this.getPositionAndSize();
|
264
|
+
return /*#__PURE__*/React.createElement(AssetConsumer, null, loadAsset => {
|
265
|
+
var _psresult$position, _psresult$position2;
|
266
|
+
const loadImage = this.loadAsset !== loadAsset;
|
267
|
+
this.loadAsset = loadAsset;
|
268
|
+
if (loadImage) {
|
269
|
+
setTimeout(() => this.setImage(), 10);
|
270
|
+
}
|
271
|
+
return /*#__PURE__*/React.createElement(View, {
|
272
|
+
style: [{
|
273
|
+
borderWidth: 0,
|
274
|
+
overflow: 'hidden'
|
275
|
+
}, StyleSheet.absoluteFill, this.props.style]
|
276
|
+
}, /*#__PURE__*/React.createElement(View, {
|
277
|
+
style: [StyleSheet.absoluteFill, {
|
278
|
+
flexDirection: 'row',
|
279
|
+
justifyContent: (_psresult$position = psresult.position) === null || _psresult$position === void 0 ? void 0 : _psresult$position.justifyContent,
|
280
|
+
alignItems: (_psresult$position2 = psresult.position) === null || _psresult$position2 === void 0 ? void 0 : _psresult$position2.alignItems
|
281
|
+
}]
|
282
|
+
}, /*#__PURE__*/React.createElement(View, {
|
283
|
+
style: [{
|
284
|
+
position: 'absolute',
|
285
|
+
overflow: 'hidden'
|
286
|
+
}, psresult.position, isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size]
|
287
|
+
}, /*#__PURE__*/React.createElement(Image, {
|
288
|
+
source: this.state.imageSrc,
|
289
|
+
resizeMode: psresult.resizeMode || 'cover',
|
290
|
+
style: [{
|
291
|
+
width: '100%',
|
292
|
+
height: '100%'
|
293
|
+
}, !isEmpty(psresult.size) || psresult.resizeMode === 'cover' || psresult.resizeMode === 'contain' ? null : {
|
294
|
+
minWidth: this.state.naturalImageWidth,
|
295
|
+
minHeight: this.state.naturalImageHeight
|
296
|
+
}]
|
297
|
+
}))));
|
298
|
+
});
|
299
|
+
}
|
300
|
+
render() {
|
301
|
+
var _gradientData$value;
|
302
|
+
const gradientData = this.getGradient();
|
303
|
+
if (gradientData !== null && gradientData !== void 0 && (_gradientData$value = gradientData.value) !== null && _gradientData$value !== void 0 && _gradientData$value.length) {
|
304
|
+
return this.renderLinearGradient(gradientData.value[1]);
|
305
|
+
} else if (this.props.image && this.state.imageSrc) {
|
306
|
+
return this.renderImage();
|
307
|
+
}
|
308
|
+
return null;
|
309
|
+
}
|
310
|
+
}
|
311
|
+
//# sourceMappingURL=background.component.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["React","LinearGradient","ExpoLinearGradient","Image","StyleSheet","View","isEmpty","isNil","isNumber","imageSizeEstimator","AssetConsumer","isFullPathUrl","IMAGE_URL_REGEX","LINEAT_GRADIENT_REGEX","DIMENSION_REGEX","BACKGROUND_POSITION_REGEX","BACKGROUND_SIZE_REGEX","ASSET_CACHE","Component","constructor","props","state","parse","val","value","splits","split","map","v","trim","angle","locations","endsWith","parseInt","shift","delta","Math","round","tan","PI","abs","end","x","y","start","colors","s","_s$matchAll$next","p","matchAll","next","push","parseFloat","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","testID","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","imageSrc","image","undefined","caluculateSize","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","length","repeat","renderLinearGradient","data","psresult","Fragment","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","loadImage","minWidth","minHeight","_gradientData$value","gradientData"],"sources":["background.component.tsx"],"sourcesContent":["import * as React from 'react';\nimport { LinearGradient as ExpoLinearGradient, LinearGradientPoint } from 'expo-linear-gradient';\nimport { DimensionValue, Image, StyleSheet, View, ViewStyle } from 'react-native';\nimport { isEmpty, isNil, isNumber, isString } from 'lodash-es';\nimport imageSizeEstimator from '@wavemaker/app-rn-runtime/core/imageSizeEstimator';\nimport { AssetConsumer } from '@wavemaker/app-rn-runtime/core/asset.provider';\nimport { isFullPathUrl } from '@wavemaker/app-rn-runtime/core/utils';\n\nexport interface LinearGradientProps {\n value: string;\n children: any;\n style?: ViewStyle;\n size?: ViewStyle;\n position?: ViewStyle;\n middle?: boolean;\n}\n\nexport interface LinearGradientState {\n colors: string[];\n locations: number[];\n start: LinearGradientPoint;\n end: LinearGradientPoint;\n}\n\nconst IMAGE_URL_REGEX = /url\\(['|\"]?(.+)['|\"]?\\)$/gi;\nconst LINEAT_GRADIENT_REGEX = /linear-gradient\\((.+)\\)$/gi;\nconst DIMENSION_REGEX = /([0-9%]+)[a-z]*/g;\nconst BACKGROUND_POSITION_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\nconst BACKGROUND_SIZE_REGEX = /([0-9%]+)[a-z]*\\s*([0-9%]+)[a-z]*/g;\n\nconst ASSET_CACHE = {} as any;\n\nexport class LinearGradient extends React.Component<LinearGradientProps, LinearGradientState> {\n\n constructor(props: LinearGradientProps) {\n super(props);\n this.state = this.parse();\n }\n\n parse(val = this.props.value) {\n let state = {} as LinearGradientState;\n const splits = val.split(',').map(v => v.trim());\n let angle = 0;\n const locations: LinearGradientPoint[] = [];\n if (splits[0].endsWith('deg')) {\n angle = (parseInt(splits[0].split('deg')[0]))%360;\n angle = angle < 0 ? (360 + angle) : angle;\n splits.shift();\n }\n angle += 90;\n const delta = Math.round(Math.tan((angle * Math.PI) / 180) * 100)/100;\n if (Math.abs(delta) > 1) {\n state = {\n end: {\n x: -0.5 / delta + 0.5,\n y: 0\n },\n start: {\n x: 0.5 / delta + 0.5,\n y: 1\n }\n } as LinearGradientState;\n } else {\n state = {\n start: {\n x: 0,\n y: -0.5 * delta + 0.5\n },\n end: {\n x: 1,\n y: 0.5 * delta + 0.5\n }\n } as LinearGradientState;\n }\n if (angle >= 270 && angle <= 450) {\n state = {\n start : state.end,\n end: state.start\n } as LinearGradientState;\n }\n state.colors = [];\n state.locations = [];\n splits.map(s => {\n const p = s.matchAll(/\\s*([0-9.]+)%/g).next()?.value;\n if (p) {\n state.locations.push(parseFloat(p[1]) / 100);\n state.colors.push(s.replace(p[0], ''));\n } else {\n state.locations.push(null as any);\n state.colors.push(s);\n }\n });\n return state;\n }\n\n componentDidUpdate(prevProps: Readonly<LinearGradientProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (prevProps.value !== this.props.value) {\n this.setState(this.parse());\n }\n }\n \n\n public render() {\n return (\n <View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, this.props.middle ? {\n flexDirection: 'row',\n justifyContent: 'center',\n alignItems: 'center'\n } : null]}>\n <ExpoLinearGradient testID=\"wm-expo-linear-gradient\"\n colors={this.state.colors as any}\n locations={this.state.locations as any}\n start={this.state.start}\n end={this.state.end}\n style={[\n this.props.size?.width ? this.props.size : StyleSheet.absoluteFill,\n this.props.position,\n {position: 'absolute', borderRadius: this.props.style?.borderRadius}\n ]}\n />\n </View>\n {this.props.children}\n </View>\n );\n }\n}\n\nexport interface BackgroundProps {\n image?: string;\n position?: string;\n children?: any;\n resizeMode?: string;\n repeat?: string;\n style?: ViewStyle;\n size: string;\n}\n\nexport interface BackgroundState {\n imageSrc: any;\n naturalImageWidth: number,\n naturalImageHeight: number\n}\n\nexport class BackgroundComponent extends React.Component<BackgroundProps, BackgroundState> {\n\n private loadAsset: (path: string) => number | string = null as any;\n\n constructor(props: BackgroundProps) {\n super(props);\n this.state = {\n imageSrc : this.props.image ? ASSET_CACHE[this.props.image] : undefined\n } as BackgroundState;\n }\n\n public caluculateSize(imageSrc: any) {\n if (isNumber(imageSrc)) {\n const {width, height} = Image.resolveAssetSource(imageSrc);\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n } else if (!isNil(imageSrc)) {\n imageSizeEstimator.getSize(imageSrc.uri, (width: number, height: number) => {\n this.setState({\n naturalImageWidth: width,\n naturalImageHeight: height\n } as BackgroundState);\n });\n }\n }\n\n getDimension(dim: string) {\n if (dim) {\n const value = dim.matchAll(DIMENSION_REGEX).next().value!;\n if (value[1]) {\n return value[1].endsWith('%') ? value[1] : parseInt(value[1]);\n }\n }\n return null;\n }\n\n public getPosition() {\n const result = {} as ViewStyle;\n if (!this.props.position) {\n return result;\n }\n const position = this.props.position.split(' ').map(s => s.trim());\n if (position[0] === 'center') {\n result.alignItems = 'center';\n } else if (position[0] === 'top') {\n result.top = 0;\n } else if (position[0] === 'bottom') {\n result.bottom = 0;\n } else {\n result.top = this.getDimension(position[0]) as DimensionValue;\n }\n if (position[1] === 'center') {\n result.justifyContent = 'center';\n } else if (position[1] === 'left') {\n result.left = 0;\n } else if (position[1] === 'bottom') {\n result.right = 0;\n } else {\n result.left = this.getDimension(position[1]) as DimensionValue;\n }\n return result;\n }\n\n public getPositionAndSize() {\n const result: {\n resizeMode? : string,\n position?: ViewStyle,\n size?: ViewStyle\n } = {} as any;\n if (this.props.resizeMode) {\n result.resizeMode = this.props.resizeMode;\n return result;\n } else if (this.props.position === 'center') {\n result.resizeMode = 'center';\n result.position = {\n justifyContent: 'center',\n alignItems: 'center'\n };\n } else if (this.props.size === 'contain' || this.props.size === 'cover') {\n result.resizeMode = this.props.size;\n return result;\n }\n const size = this.props.size?.matchAll(BACKGROUND_SIZE_REGEX).next().value;\n result.size = {};\n if (size) {\n result.size.width = (size[1].endsWith('%') ? size[1] : parseInt(size[1])) as DimensionValue;\n result.size.height = (size[2].endsWith('%') ? size[2] : parseInt(size[2])) as DimensionValue\n }\n if (!result.resizeMode && this.props.position) {\n result.position = this.getPosition();\n }\n if (!this.getGradient()?.value?.length) {\n if (this.props.repeat === 'no-repeat') {\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-x') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || '100%'; \n result.size.height = result.size.height || this.state.naturalImageHeight; \n } else if (this.props.repeat === 'repeat-y') {\n result.resizeMode = 'repeat';\n result.size.width = result.size.width || this.state.naturalImageWidth; \n result.size.height = result.size.height || '100%'; \n } else {\n result.resizeMode = 'repeat';\n }\n }\n return result;\n }\n\n public renderLinearGradient(data: string) {\n const psresult = this.getPositionAndSize();\n return (\n <LinearGradient\n value={data || ''}\n style={this.props.style}\n size={psresult.size}\n position={psresult.position}\n middle={psresult.resizeMode === 'center'}> \n <></> \n </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (this.props.image && prevProps.image !== this.props.image) {\n this.setImage();\n }\n }\n\n componentDidMount(): void {\n setTimeout(() => this.setImage(), 100);\n }\n\n setImage() {\n let source = this.props.image?.trim() as any;\n if (!source) {\n return;\n }\n if (source?.startsWith('url')) {\n source = this.props.image?.matchAll(IMAGE_URL_REGEX)?.next()?.value?.[1];\n }\n if (this.loadAsset) {\n source = this.loadAsset(source);\n }\n if (isFullPathUrl(source)) {\n source = {\n uri: source\n };\n }\n this.caluculateSize(source);\n this.setState({\n imageSrc: source\n } as BackgroundState);\n if (this.props.image) {\n ASSET_CACHE[this.props.image] = source;\n }\n }\n\n public getGradient() {\n return this.props.image?.trim().matchAll(LINEAT_GRADIENT_REGEX).next();\n }\n\n public renderImage() {\n const psresult = this.getPositionAndSize();\n return (\n <AssetConsumer>\n {(loadAsset) => {\n const loadImage = this.loadAsset !== loadAsset;\n this.loadAsset = loadAsset;\n if (loadImage) {\n setTimeout(() => this.setImage(), 10);\n }\n return (<View style={[{borderWidth: 0, overflow: 'hidden'}, StyleSheet.absoluteFill, this.props.style]}>\n <View style={[\n StyleSheet.absoluteFill, {\n flexDirection: 'row',\n justifyContent: psresult.position?.justifyContent,\n alignItems: psresult.position?.alignItems\n }]}>\n <View style={[\n { position: 'absolute', overflow: 'hidden' },\n psresult.position,\n isEmpty(psresult.size) ? StyleSheet.absoluteFill : psresult.size\n ]}>\n <Image\n source={this.state.imageSrc}\n resizeMode={psresult.resizeMode as any || 'cover'}\n style={[\n { \n width: '100%',\n height: '100%'\n }, \n !isEmpty(psresult.size)\n || (psresult.resizeMode === 'cover'\n || psresult.resizeMode === 'contain') ? null : {\n minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n }\n ]}/> \n </View>\n </View>\n </View>);\n }}\n </AssetConsumer>\n );\n }\n\n public render() {\n const gradientData = this.getGradient();\n if (gradientData?.value?.length) {\n return this.renderLinearGradient(gradientData.value[1]);\n } else if (this.props.image && this.state.imageSrc) {\n return this.renderImage();\n }\n return null;\n }\n}\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAAyBC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjF,SAASC,OAAO,EAAEC,KAAK,EAAEC,QAAQ,QAAkB,WAAW;AAC9D,OAAOC,kBAAkB,MAAM,mDAAmD;AAClF,SAASC,aAAa,QAAQ,+CAA+C;AAC7E,SAASC,aAAa,QAAQ,sCAAsC;AAkBpE,MAAMC,eAAe,GAAG,4BAA4B;AACpD,MAAMC,qBAAqB,GAAG,4BAA4B;AAC1D,MAAMC,eAAe,GAAG,kBAAkB;AAC1C,MAAMC,yBAAyB,GAAG,oCAAoC;AACtE,MAAMC,qBAAqB,GAAG,oCAAoC;AAElE,MAAMC,WAAW,GAAG,CAAC,CAAQ;AAE7B,OAAO,MAAMhB,cAAc,SAASD,KAAK,CAACkB,SAAS,CAA2C;EAE1FC,WAAWA,CAACC,KAA0B,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,KAAK,CAAC,CAAC;EAC7B;EAEAA,KAAKA,CAACC,GAAG,GAAG,IAAI,CAACH,KAAK,CAACI,KAAK,EAAE;IAC1B,IAAIH,KAAK,GAAG,CAAC,CAAwB;IACrC,MAAMI,MAAM,GAAGF,GAAG,CAACG,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,IA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M,EAAE;QACZ,CAAC,EACD,CAAC7E,OAAO,CAACoG,QAAQ,CAAClC,IAAI,CAAC,IACfkC,QAAQ,CAACN,UAAU,KAAK,OAAO,IAC5BM,QAAQ,CAACN,UAAU,KAAM,SAAU,GAAG,IAAI,GAAG;UACpDsB,QAAQ,EAAE,IAAI,CAACrG,KAAK,CAACgE,iBAAiB;UACtCsC,SAAS,EAAE,IAAI,CAACtG,KAAK,CAACiE;QAC1B,CAAC;MACH,CAAC,CACL,CACJ,CACJ,CAAC;IACP,CACW,CAAC;EAEpB;EAEO3B,MAAMA,CAAA,EAAG;IAAA,IAAAiE,mBAAA;IACZ,MAAMC,YAAY,GAAG,IAAI,CAACxB,WAAW,CAAC,CAAC;IACvC,IAAIwB,YAAY,aAAZA,YAAY,gBAAAD,mBAAA,GAAZC,YAAY,CAAErG,KAAK,cAAAoG,mBAAA,eAAnBA,mBAAA,CAAqBtB,MAAM,EAAE;MAC7B,OAAO,IAAI,CAACE,oBAAoB,CAACqB,YAAY,CAACrG,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,MAAM,IAAI,IAAI,CAACJ,KAAK,CAAC4D,KAAK,IAAI,IAAI,CAAC3D,KAAK,CAAC0D,QAAQ,EAAE;MAChD,OAAO,IAAI,CAACuC,WAAW,CAAC,CAAC;IAC7B;IACA,OAAO,IAAI;EACf;AACJ","ignoreList":[]}
|
package/styles/calc.js
ADDED
@@ -0,0 +1,165 @@
|
|
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
|
+
export class CalcExpression {
|
5
|
+
constructor(expression, initialVariables = {}) {
|
6
|
+
_defineProperty(this, "expression", '');
|
7
|
+
_defineProperty(this, "currentIndex", 0);
|
8
|
+
_defineProperty(this, "variables", {});
|
9
|
+
this.expression = expression.trim();
|
10
|
+
this.expression = this.expression.replace(/%/g, " * (p / 100)");
|
11
|
+
this.expression = this.expression.replace(/vw/g, " * (vw / 100)");
|
12
|
+
this.expression = this.expression.replace(/vh/g, " * (vh / 100)");
|
13
|
+
if (this.expression.startsWith('calc(')) {
|
14
|
+
this.expression = this.expression.substring(5, this.expression.length - 1);
|
15
|
+
}
|
16
|
+
this.variables = {
|
17
|
+
...initialVariables
|
18
|
+
};
|
19
|
+
this.resolveInnerCalc();
|
20
|
+
}
|
21
|
+
resolveInnerCalc() {
|
22
|
+
if (this.expression.indexOf('calc') >= 0) {
|
23
|
+
var _this$expression$matc;
|
24
|
+
(_this$expression$matc = this.expression.match(/calc\([^\c)]*\)/g)) === null || _this$expression$matc === void 0 || _this$expression$matc.map(m => {
|
25
|
+
this.expression = this.expression.replace(m, new CalcExpression(m, this.variables).evaluate() + "");
|
26
|
+
});
|
27
|
+
}
|
28
|
+
}
|
29
|
+
peek() {
|
30
|
+
if (this.currentIndex < this.expression.length) {
|
31
|
+
return this.expression[this.currentIndex];
|
32
|
+
}
|
33
|
+
return null;
|
34
|
+
}
|
35
|
+
consume() {
|
36
|
+
const char = this.peek();
|
37
|
+
if (char !== null) {
|
38
|
+
this.currentIndex++;
|
39
|
+
}
|
40
|
+
return char;
|
41
|
+
}
|
42
|
+
skipWhitespace() {
|
43
|
+
while (this.peek() !== null && /\s/.test(this.peek())) {
|
44
|
+
this.consume();
|
45
|
+
}
|
46
|
+
}
|
47
|
+
parseNumber() {
|
48
|
+
let numberStr = "";
|
49
|
+
let decimalSeen = false;
|
50
|
+
while (this.peek() !== null && (/\d/.test(this.peek()) || this.peek() === "." && !decimalSeen)) {
|
51
|
+
if (this.peek() === ".") {
|
52
|
+
decimalSeen = true;
|
53
|
+
}
|
54
|
+
numberStr += this.consume();
|
55
|
+
}
|
56
|
+
if (this.peek() === 'p') {
|
57
|
+
this.consume();
|
58
|
+
this.consume();
|
59
|
+
}
|
60
|
+
if (numberStr.length === 0) {
|
61
|
+
throw new Error(`Expected a number but found: ${this.peek()}`);
|
62
|
+
}
|
63
|
+
return parseFloat(numberStr);
|
64
|
+
}
|
65
|
+
parseVariable() {
|
66
|
+
let variableName = "";
|
67
|
+
while (this.peek() !== null && /[a-zA-Z0-9_]/.test(this.peek()) && (variableName.length > 0 || /[a-zA-Z_]/.test(this.peek()))) {
|
68
|
+
variableName += this.consume();
|
69
|
+
}
|
70
|
+
if (variableName.length === 0) {
|
71
|
+
throw new Error(`Expected a variable but found: ${this.peek()}`);
|
72
|
+
}
|
73
|
+
if (!(variableName in this.variables)) {
|
74
|
+
throw new Error(`Undefined variable: ${variableName}`);
|
75
|
+
}
|
76
|
+
return this.variables[variableName];
|
77
|
+
}
|
78
|
+
parseFactor() {
|
79
|
+
this.skipWhitespace();
|
80
|
+
const char = this.peek();
|
81
|
+
if (char === "(") {
|
82
|
+
this.consume();
|
83
|
+
const result = this.parseExpression();
|
84
|
+
this.skipWhitespace();
|
85
|
+
if (this.consume() !== ")") {
|
86
|
+
throw new Error("Expected ')'");
|
87
|
+
}
|
88
|
+
return result;
|
89
|
+
} else if (char === "-") {
|
90
|
+
this.consume();
|
91
|
+
return -this.parseFactor();
|
92
|
+
} else if (/\d/.test(char)) {
|
93
|
+
return this.parseNumber();
|
94
|
+
} else if (/[a-zA-Z_]/.test(char)) {
|
95
|
+
return this.parseVariable();
|
96
|
+
}
|
97
|
+
throw new Error(`Unexpected token: ${char}`);
|
98
|
+
}
|
99
|
+
parseTerm() {
|
100
|
+
let left = this.parseFactor();
|
101
|
+
this.skipWhitespace();
|
102
|
+
while (this.peek() === "*" || this.peek() === "/") {
|
103
|
+
const operator = this.consume();
|
104
|
+
const right = this.parseFactor();
|
105
|
+
if (operator === "*") {
|
106
|
+
left *= right;
|
107
|
+
} else if (operator === "/") {
|
108
|
+
if (right === 0) {
|
109
|
+
throw new Error("Division by zero");
|
110
|
+
}
|
111
|
+
left /= right;
|
112
|
+
}
|
113
|
+
this.skipWhitespace();
|
114
|
+
}
|
115
|
+
return left;
|
116
|
+
}
|
117
|
+
parseExponent() {
|
118
|
+
let base = this.parseTerm();
|
119
|
+
this.skipWhitespace();
|
120
|
+
while (this.peek() === "^") {
|
121
|
+
this.consume();
|
122
|
+
const exponent = this.parseFactor();
|
123
|
+
base = Math.pow(base, exponent);
|
124
|
+
this.skipWhitespace();
|
125
|
+
}
|
126
|
+
return base;
|
127
|
+
}
|
128
|
+
parseExpression() {
|
129
|
+
let left = this.parseExponent();
|
130
|
+
this.skipWhitespace();
|
131
|
+
while (this.peek() === "+" || this.peek() === "-") {
|
132
|
+
const operator = this.consume();
|
133
|
+
const right = this.parseExponent();
|
134
|
+
if (operator === "+") {
|
135
|
+
left += right;
|
136
|
+
} else if (operator === "-") {
|
137
|
+
left -= right;
|
138
|
+
}
|
139
|
+
this.skipWhitespace();
|
140
|
+
}
|
141
|
+
return left;
|
142
|
+
}
|
143
|
+
evaluate(variables) {
|
144
|
+
this.variables = {
|
145
|
+
...this.variables,
|
146
|
+
...(variables || {})
|
147
|
+
};
|
148
|
+
this.currentIndex = 0;
|
149
|
+
const result = this.parseExpression();
|
150
|
+
this.skipWhitespace();
|
151
|
+
if (this.peek() !== null) {
|
152
|
+
throw new Error(`Unexpected end of expression: ${this.peek()}`);
|
153
|
+
}
|
154
|
+
return result;
|
155
|
+
}
|
156
|
+
setVariable(variableName, value) {
|
157
|
+
this.variables[variableName] = value;
|
158
|
+
}
|
159
|
+
getVariables() {
|
160
|
+
return {
|
161
|
+
...this.variables
|
162
|
+
};
|
163
|
+
}
|
164
|
+
}
|
165
|
+
//# sourceMappingURL=calc.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["CalcExpression","constructor","expression","initialVariables","_defineProperty","trim","replace","startsWith","substring","length","variables","resolveInnerCalc","indexOf","_this$expression$matc","match","map","m","evaluate","peek","currentIndex","consume","char","skipWhitespace","test","parseNumber","numberStr","decimalSeen","Error","parseFloat","parseVariable","variableName","parseFactor","result","parseExpression","parseTerm","left","operator","right","parseExponent","base","exponent","Math","pow","setVariable","value","getVariables"],"sources":["calc.ts"],"sourcesContent":["interface VariableMap {\n [key: string]: number;\n}\n\nexport class CalcExpression {\n \n private expression = '';\n private currentIndex: number = 0;\n private variables: VariableMap = {};\n\n constructor(expression: string, initialVariables: VariableMap = {}) {\n this.expression = expression.trim();\n this.expression = this.expression.replace(/%/g, \" * (p / 100)\");\n this.expression = this.expression.replace(/vw/g, \" * (vw / 100)\");\n this.expression = this.expression.replace(/vh/g, \" * (vh / 100)\");\n if (this.expression.startsWith('calc(')) {\n this.expression = this.expression.substring(5, this.expression.length - 1);\n }\n this.variables = { ...initialVariables };\n this.resolveInnerCalc();\n }\n\n private resolveInnerCalc() {\n if (this.expression.indexOf('calc') >= 0) {\n this.expression.match(/calc\\([^\\c)]*\\)/g)?.map(m => {\n this.expression = this.expression.replace(m, new CalcExpression(m, this.variables).evaluate() + \"\");\n })\n }\n }\n \n private peek(): string | null {\n if (this.currentIndex < this.expression.length) {\n return this.expression[this.currentIndex];\n }\n return null;\n }\n\n private consume(): string | null {\n const char = this.peek();\n if (char !== null) {\n this.currentIndex++;\n }\n return char;\n }\n\n private skipWhitespace(): void {\n while (this.peek() !== null && /\\s/.test(this.peek()!)) {\n this.consume();\n }\n }\n\n private parseNumber(): number {\n let numberStr = \"\";\n let decimalSeen = false;\n while (this.peek() !== null && (/\\d/.test(this.peek()!) || (this.peek() === \".\" && !decimalSeen))) {\n if (this.peek() === \".\") {\n decimalSeen = true;\n }\n numberStr += this.consume();\n }\n if (this.peek() === 'p') {\n this.consume();\n this.consume();\n }\n if (numberStr.length === 0) {\n throw new Error(`Expected a number but found: ${this.peek()}`);\n }\n return parseFloat(numberStr);\n }\n\n private parseVariable(): number {\n let variableName = \"\";\n while (this.peek() !== null && /[a-zA-Z0-9_]/.test(this.peek()!) && (variableName.length > 0 || /[a-zA-Z_]/.test(this.peek()!))) {\n variableName += this.consume();\n }\n if (variableName.length === 0) {\n throw new Error(`Expected a variable but found: ${this.peek()}`);\n }\n if (!(variableName in this.variables)) {\n throw new Error(`Undefined variable: ${variableName}`);\n }\n return this.variables[variableName];\n }\n\n private parseFactor(): number {\n this.skipWhitespace();\n const char = this.peek();\n\n if (char === \"(\") {\n this.consume();\n const result = this.parseExpression();\n this.skipWhitespace();\n if (this.consume() !== \")\") {\n throw new Error(\"Expected ')'\");\n }\n return result;\n } else if (char === \"-\") {\n this.consume();\n return -this.parseFactor();\n } else if (/\\d/.test(char!)) {\n return this.parseNumber();\n } else if (/[a-zA-Z_]/.test(char!)) {\n return this.parseVariable();\n }\n\n throw new Error(`Unexpected token: ${char}`);\n }\n\n private parseTerm(): number {\n let left = this.parseFactor();\n this.skipWhitespace();\n while (this.peek() === \"*\" || this.peek() === \"/\") {\n const operator = this.consume();\n const right = this.parseFactor();\n if (operator === \"*\") {\n left *= right;\n } else if (operator === \"/\") {\n if (right === 0) {\n throw new Error(\"Division by zero\");\n }\n left /= right;\n }\n this.skipWhitespace();\n }\n return left;\n }\n\n private parseExponent(): number {\n let base = this.parseTerm();\n this.skipWhitespace();\n while (this.peek() === \"^\") {\n this.consume();\n const exponent = this.parseFactor();\n base = Math.pow(base, exponent);\n this.skipWhitespace();\n }\n return base;\n }\n\n private parseExpression(): number {\n let left = this.parseExponent();\n this.skipWhitespace();\n while (this.peek() === \"+\" || this.peek() === \"-\") {\n const operator = this.consume();\n const right = this.parseExponent();\n if (operator === \"+\") {\n left += right;\n } else if (operator === \"-\") {\n left -= right;\n }\n this.skipWhitespace();\n }\n return left;\n }\n\n evaluate(variables?: any): number {\n this.variables = {\n ...this.variables,\n ...(variables || {})\n };\n this.currentIndex = 0;\n const result = this.parseExpression();\n this.skipWhitespace();\n if (this.peek() !== null) {\n throw new Error(`Unexpected end of expression: ${this.peek()}`);\n }\n return result;\n }\n\n setVariable(variableName: string, value: number): void {\n this.variables[variableName] = value;\n }\n\n getVariables(): VariableMap {\n return { ...this.variables };\n }\n}"],"mappings":";;;AAIA,OAAO,MAAMA,cAAc,CAAC;EAM1BC,WAAWA,CAACC,UAAkB,EAAEC,gBAA6B,GAAG,CAAC,CAAC,EAAE;IAAAC,eAAA,qBAJ/C,EAAE;IAAAA,eAAA,uBACQ,CAAC;IAAAA,eAAA,oBACC,CAAC,CAAC;IAGjC,IAAI,CAACF,UAAU,GAAGA,UAAU,CAACG,IAAI,CAAC,CAAC;IACnC,IAAI,CAACH,UAAU,GAAG,IAAI,CAACA,UAAU,CAACI,OAAO,CAAC,IAAI,EAAE,cAAc,CAAC;IAC/D,IAAI,CAACJ,UAAU,GAAG,IAAI,CAACA,UAAU,CAACI,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC;IACjE,IAAI,CAACJ,UAAU,GAAG,IAAI,CAACA,UAAU,CAACI,OAAO,CAAC,KAAK,EAAE,eAAe,CAAC;IACjE,IAAI,IAAI,CAACJ,UAAU,CAACK,UAAU,CAAC,OAAO,CAAC,EAAE;MACvC,IAAI,CAACL,UAAU,GAAG,IAAI,CAACA,UAAU,CAACM,SAAS,CAAC,CAAC,EAAE,IAAI,CAACN,UAAU,CAACO,MAAM,GAAG,CAAC,CAAC;IAC5E;IACA,IAAI,CAACC,SAAS,GAAG;MAAE,GAAGP;IAAiB,CAAC;IACxC,IAAI,CAACQ,gBAAgB,CAAC,CAAC;EACzB;EAEQA,gBAAgBA,CAAA,EAAG;IACzB,IAAI,IAAI,CAACT,UAAU,CAACU,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;MAAA,IAAAC,qBAAA;MACxC,CAAAA,qBAAA,OAAI,CAACX,UAAU,CAACY,KAAK,CAAC,kBAAkB,CAAC,cAAAD,qBAAA,eAAzCA,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Ae,CAAC,CAAC;IACrC,IAAI,CAACX,cAAc,CAAC,CAAC;IACrB,IAAI,IAAI,CAACJ,IAAI,CAAC,CAAC,KAAK,IAAI,EAAE;MACxB,MAAM,IAAIS,KAAK,CAAC,iCAAiC,IAAI,CAACT,IAAI,CAAC,CAAC,EAAE,CAAC;IACjE;IACA,OAAOc,MAAM;EACf;EAEAW,WAAWA,CAACb,YAAoB,EAAEc,KAAa,EAAQ;IACrD,IAAI,CAAClC,SAAS,CAACoB,YAAY,CAAC,GAAGc,KAAK;EACtC;EAEAC,YAAYA,CAAA,EAAgB;IAC1B,OAAO;MAAE,GAAG,IAAI,CAACnC;IAAU,CAAC;EAC9B;AACF","ignoreList":[]}
|
@@ -0,0 +1,82 @@
|
|
1
|
+
var _ColorMix;
|
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 Color from "colorjs.io";
|
6
|
+
const ColorMixSpace = [
|
7
|
+
//rectangular
|
8
|
+
"srgb", "srgb-linear", "display-p3", "a98-rgb", "prophoto-rgb", "rec2020", "lab", "oklab", "xyz", "xyz-d50", "xyz-d65",
|
9
|
+
//triangle
|
10
|
+
"hsl", "hwb", "lch", "oklch"];
|
11
|
+
const HueInterpolationMethod = ["shorter", "longer", "increasing", "decreasing"];
|
12
|
+
class ColorMix {
|
13
|
+
valueOf(expression) {
|
14
|
+
const {
|
15
|
+
colorInterpolationMethod,
|
16
|
+
colorPercent1,
|
17
|
+
colorPercent2
|
18
|
+
} = this.parse(expression);
|
19
|
+
let p1 = colorPercent1.percent;
|
20
|
+
let p2 = colorPercent2.percent;
|
21
|
+
if (p1 && !p2) {
|
22
|
+
p2 = 100 - p1;
|
23
|
+
} else if (!p1 && p2) {
|
24
|
+
p1 = 100 - p2;
|
25
|
+
} else if (p1 + p2 > 100) {
|
26
|
+
const sum = p1 + p2;
|
27
|
+
p1 = p1 / sum * 100;
|
28
|
+
p2 = p2 / sum * 100;
|
29
|
+
}
|
30
|
+
p1 = p1 / 100;
|
31
|
+
p2 = p2 / 100;
|
32
|
+
return new Color(colorPercent1.color).mix(colorPercent2.color, p2, {
|
33
|
+
space: colorInterpolationMethod.space,
|
34
|
+
hue: colorInterpolationMethod.hueInterpolationMethod
|
35
|
+
}).to("srgb").toString({
|
36
|
+
format: "hex"
|
37
|
+
});
|
38
|
+
}
|
39
|
+
parseColorInterpolationMethod(expression) {
|
40
|
+
const splits = expression.split(' ');
|
41
|
+
return {
|
42
|
+
space: splits[1],
|
43
|
+
hueInterpolationMethod: splits[2] || 'shorter'
|
44
|
+
};
|
45
|
+
}
|
46
|
+
parseColorPercent(expression) {
|
47
|
+
let colorCode = '';
|
48
|
+
let percent = 0;
|
49
|
+
if (expression.indexOf(')') > 0) {
|
50
|
+
const splits = expression.split(')').map(s => s.trim());
|
51
|
+
colorCode = splits[0] + ')';
|
52
|
+
percent = splits[1] ? parseFloat(splits[1].replace('%', '')) : 0;
|
53
|
+
} else {
|
54
|
+
const splits = expression.split(' ');
|
55
|
+
colorCode = splits[0];
|
56
|
+
percent = splits[1] ? parseFloat(splits[1].replace('%', '')) : 0;
|
57
|
+
}
|
58
|
+
return {
|
59
|
+
color: colorCode,
|
60
|
+
percent: percent
|
61
|
+
};
|
62
|
+
}
|
63
|
+
parse(expression) {
|
64
|
+
const splits = expression.split(',').map(s => s.trim());
|
65
|
+
return {
|
66
|
+
colorInterpolationMethod: this.parseColorInterpolationMethod(splits[0]),
|
67
|
+
colorPercent1: this.parseColorPercent(splits[1]),
|
68
|
+
colorPercent2: this.parseColorPercent(splits[2])
|
69
|
+
};
|
70
|
+
}
|
71
|
+
}
|
72
|
+
_ColorMix = ColorMix;
|
73
|
+
_defineProperty(ColorMix, "INSTANCE", new _ColorMix());
|
74
|
+
export default {
|
75
|
+
"valueOf": expression => {
|
76
|
+
if (expression.startsWith("color-mix")) {
|
77
|
+
expression = expression.substring("color-mix(".length, expression.length - 1);
|
78
|
+
}
|
79
|
+
return ColorMix.INSTANCE.valueOf(expression);
|
80
|
+
}
|
81
|
+
};
|
82
|
+
//# sourceMappingURL=color-mix.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"names":["Color","ColorMixSpace","HueInterpolationMethod","ColorMix","valueOf","expression","colorInterpolationMethod","colorPercent1","colorPercent2","parse","p1","percent","p2","sum","color","mix","space","hue","hueInterpolationMethod","to","toString","format","parseColorInterpolationMethod","splits","split","parseColorPercent","colorCode","indexOf","map","s","trim","parseFloat","replace","_ColorMix","_defineProperty","startsWith","substring","length","INSTANCE"],"sources":["color-mix.ts"],"sourcesContent":["import Color from \"colorjs.io\";\n\nconst ColorMixSpace = [\n //rectangular\n \"srgb\", \"srgb-linear\", \"display-p3\" , \"a98-rgb\" , \"prophoto-rgb\" , \"rec2020\" ,\n \"lab\" , \"oklab\" , \"xyz\" , \"xyz-d50\" , \"xyz-d65\" ,\n //triangle\n \"hsl\" , \"hwb\" , \"lch\" , \"oklch\"\n];\n\nconst HueInterpolationMethod = [\n \"shorter\", \"longer\", \"increasing\", \"decreasing\"\n];\n\ninterface ColorInterpolationMethod {\n space: string,\n hueInterpolationMethod: string \n}\n\ninterface ColorPercent {\n color: string;\n percent: number;\n}\n\nclass ColorMix {\n static INSTANCE = new ColorMix();\n \n valueOf(expression: string) {\n const {\n colorInterpolationMethod, \n colorPercent1,\n colorPercent2\n } = this.parse(expression);\n let p1 = colorPercent1.percent;\n let p2 = colorPercent2.percent;\n if (p1 && !p2) {\n p2 = 100 - p1;\n } else if (!p1 && p2) {\n p1 = 100 - p2;\n } else if (p1 + p2 > 100) {\n const sum = p1 + p2;\n p1 = p1 / sum * 100;\n p2 = p2 / sum * 100;\n }\n p1 = p1/ 100;\n p2 = p2/ 100;\n \n return new Color(colorPercent1.color).mix(colorPercent2.color, p2, {\n space: colorInterpolationMethod.space,\n hue: colorInterpolationMethod.hueInterpolationMethod as any\n }).to(\"srgb\").toString({format: \"hex\"});\n }\n\n parseColorInterpolationMethod(expression: string): ColorInterpolationMethod {\n const splits = (expression.split(' ')) as string[];\n return {\n space: splits[1],\n hueInterpolationMethod: splits[2] || 'shorter'\n }\n }\n\n parseColorPercent(expression: string): ColorPercent {\n let colorCode = '';\n let percent = 0;\n if (expression.indexOf(')') > 0) {\n const splits = expression.split(')').map(s => s.trim());\n colorCode = splits[0] + ')';\n percent = splits[1] ? parseFloat((splits[1].replace('%', ''))) : 0;\n } else {\n const splits = (expression.split(' ')) as string[];\n colorCode = splits[0];\n percent = splits[1] ? parseFloat((splits[1].replace('%', ''))) : 0;\n }\n return {\n color: colorCode,\n percent: percent\n }\n }\n\n parse(expression: string): {\n colorInterpolationMethod : ColorInterpolationMethod,\n colorPercent1: ColorPercent,\n colorPercent2: ColorPercent\n } {\n const splits = expression.split(',').map(s => s.trim());\n return {\n colorInterpolationMethod: this.parseColorInterpolationMethod(splits[0]),\n colorPercent1: this.parseColorPercent(splits[1]),\n colorPercent2: this.parseColorPercent(splits[2])\n } as any;\n }\n\n}\n\nexport default {\n \"valueOf\" : (expression: string) => {\n if (expression.startsWith(\"color-mix\")) {\n expression = expression.substring(\"color-mix(\".length, expression.length - 1);\n }\n return ColorMix.INSTANCE.valueOf(expression);\n }\n};"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAM,YAAY;AAE9B,MAAMC,aAAa,GAAG;AAClB;AACA,MAAM,EAAE,aAAa,EAAE,YAAY,EAAG,SAAS,EAAG,cAAc,EAAG,SAAS,EAC5E,KAAK,EAAG,OAAO,EAAG,KAAK,EAAG,SAAS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