@wavemaker/app-rn-runtime 11.6.0-rc.5488 → 11.7.0-next.42251
Sign up to get free protection for your applications and to get access to all the features.
- app-rn-runtime/components/advanced/carousel/carousel.component.js +14 -9
- app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
- app-rn-runtime/components/advanced/carousel/carousel.styles.js +6 -3
- app-rn-runtime/components/advanced/carousel/carousel.styles.js.map +1 -1
- app-rn-runtime/components/advanced/webview/webview.component.js +33 -14
- app-rn-runtime/components/advanced/webview/webview.component.js.map +1 -1
- app-rn-runtime/components/advanced/webview/webview.props.js +3 -1
- app-rn-runtime/components/advanced/webview/webview.props.js.map +1 -1
- app-rn-runtime/components/basic/anchor/anchor.component.js +22 -8
- app-rn-runtime/components/basic/anchor/anchor.component.js.map +1 -1
- app-rn-runtime/components/basic/anchor/anchor.props.js +7 -0
- app-rn-runtime/components/basic/anchor/anchor.props.js.map +1 -1
- app-rn-runtime/components/basic/anchor/anchor.styles.js +3 -1
- app-rn-runtime/components/basic/anchor/anchor.styles.js.map +1 -1
- app-rn-runtime/components/basic/animatedview.component.js +5 -3
- app-rn-runtime/components/basic/animatedview.component.js.map +1 -1
- app-rn-runtime/components/basic/button/button.component.js +41 -8
- app-rn-runtime/components/basic/button/button.component.js.map +1 -1
- app-rn-runtime/components/basic/button/button.props.js +7 -0
- app-rn-runtime/components/basic/button/button.props.js.map +1 -1
- app-rn-runtime/components/basic/button/button.styles.js +9 -10
- app-rn-runtime/components/basic/button/button.styles.js.map +1 -1
- app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js +13 -5
- app-rn-runtime/components/basic/buttongroup/buttongroup.styles.js.map +1 -1
- app-rn-runtime/components/basic/icon/icon.component.js +64 -12
- app-rn-runtime/components/basic/icon/icon.component.js.map +1 -1
- app-rn-runtime/components/basic/icon/icon.props.js +7 -0
- app-rn-runtime/components/basic/icon/icon.props.js.map +1 -1
- app-rn-runtime/components/basic/icon/icon.styles.js +2 -1
- app-rn-runtime/components/basic/icon/icon.styles.js.map +1 -1
- app-rn-runtime/components/basic/label/label.component.js +34 -25
- app-rn-runtime/components/basic/label/label.component.js.map +1 -1
- app-rn-runtime/components/basic/label/label.props.js +4 -0
- app-rn-runtime/components/basic/label/label.props.js.map +1 -1
- app-rn-runtime/components/basic/label/label.styles.js +4 -5
- app-rn-runtime/components/basic/label/label.styles.js.map +1 -1
- app-rn-runtime/components/basic/message/message.component.js +3 -2
- app-rn-runtime/components/basic/message/message.component.js.map +1 -1
- app-rn-runtime/components/basic/message/message.props.js +3 -0
- app-rn-runtime/components/basic/message/message.props.js.map +1 -1
- app-rn-runtime/components/basic/message/message.styles.js +3 -1
- app-rn-runtime/components/basic/message/message.styles.js.map +1 -1
- app-rn-runtime/components/basic/picture/picture.component.js +4 -2
- app-rn-runtime/components/basic/picture/picture.component.js.map +1 -1
- app-rn-runtime/components/basic/picture/picture.props.js +3 -0
- app-rn-runtime/components/basic/picture/picture.props.js.map +1 -1
- app-rn-runtime/components/basic/picture/picture.styles.js +3 -1
- app-rn-runtime/components/basic/picture/picture.styles.js.map +1 -1
- app-rn-runtime/components/basic/progress-bar/progress-bar.component.js +3 -3
- app-rn-runtime/components/basic/progress-bar/progress-bar.component.js.map +1 -1
- app-rn-runtime/components/basic/progress-bar/progress-bar.props.js +2 -0
- app-rn-runtime/components/basic/progress-bar/progress-bar.props.js.map +1 -1
- app-rn-runtime/components/basic/progress-circle/progress-circle.component.js +3 -2
- app-rn-runtime/components/basic/progress-circle/progress-circle.component.js.map +1 -1
- app-rn-runtime/components/basic/progress-circle/progress-circle.props.js +2 -0
- app-rn-runtime/components/basic/progress-circle/progress-circle.props.js.map +1 -1
- app-rn-runtime/components/basic/search/search.component.js +2 -1
- app-rn-runtime/components/basic/search/search.component.js.map +1 -1
- app-rn-runtime/components/basic/search/search.props.js +3 -0
- app-rn-runtime/components/basic/search/search.props.js.map +1 -1
- app-rn-runtime/components/basic/search/search.styles.js +6 -5
- app-rn-runtime/components/basic/search/search.styles.js.map +1 -1
- app-rn-runtime/components/basic/skeleton/skeleton.component.js +0 -1
- app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
- app-rn-runtime/components/basic/video/video.component.js +4 -2
- app-rn-runtime/components/basic/video/video.component.js.map +1 -1
- app-rn-runtime/components/basic/video/video.props.js +3 -0
- app-rn-runtime/components/basic/video/video.props.js.map +1 -1
- app-rn-runtime/components/chart/area-chart/area-chart.component.js +34 -24
- app-rn-runtime/components/chart/area-chart/area-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/bar-chart/bar-chart.component.js +29 -16
- app-rn-runtime/components/chart/bar-chart/bar-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/bar-chart/bar-chart.props.js +0 -2
- app-rn-runtime/components/chart/bar-chart/bar-chart.props.js.map +1 -1
- app-rn-runtime/components/chart/basechart.component.js +33 -7
- app-rn-runtime/components/chart/basechart.component.js.map +1 -1
- app-rn-runtime/components/chart/basechart.props.js +7 -2
- app-rn-runtime/components/chart/basechart.props.js.map +1 -1
- app-rn-runtime/components/chart/basechart.styles.js +9 -2
- app-rn-runtime/components/chart/basechart.styles.js.map +1 -1
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js +4 -2
- app-rn-runtime/components/chart/bubble-chart/bubble-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/line-chart/line-chart.component.js +27 -20
- app-rn-runtime/components/chart/line-chart/line-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/line-chart/line-chart.props.js.map +1 -1
- app-rn-runtime/components/chart/pie-chart/pie-chart.component.js +7 -4
- app-rn-runtime/components/chart/pie-chart/pie-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/stack-chart/stack-chart.component.js +33 -10
- app-rn-runtime/components/chart/stack-chart/stack-chart.component.js.map +1 -1
- app-rn-runtime/components/chart/stack-chart/stack-chart.props.js +1 -0
- app-rn-runtime/components/chart/stack-chart/stack-chart.props.js.map +1 -1
- app-rn-runtime/components/chart/staticdata.js +215 -0
- app-rn-runtime/components/chart/staticdata.js.map +1 -0
- app-rn-runtime/components/container/container.component.js +11 -2
- app-rn-runtime/components/container/container.component.js.map +1 -1
- app-rn-runtime/components/container/container.props.js +1 -0
- app-rn-runtime/components/container/container.props.js.map +1 -1
- app-rn-runtime/components/container/panel/panel.component.js +6 -2
- app-rn-runtime/components/container/panel/panel.component.js.map +1 -1
- app-rn-runtime/components/container/panel/panel.props.js +4 -0
- app-rn-runtime/components/container/panel/panel.props.js.map +1 -1
- app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js +1 -1
- app-rn-runtime/components/container/tabs/tabheader/tabheader.styles.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizard.component.js +17 -14
- app-rn-runtime/components/container/wizard/wizard.component.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizard.styles.js +19 -3
- app-rn-runtime/components/container/wizard/wizard.styles.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js +27 -2
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.component.js.map +1 -1
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js +6 -0
- app-rn-runtime/components/container/wizard/wizardstep/wizardstep.props.js.map +1 -1
- app-rn-runtime/components/data/card/card.component.js +7 -3
- app-rn-runtime/components/data/card/card.component.js.map +1 -1
- app-rn-runtime/components/data/card/card.props.js +4 -0
- app-rn-runtime/components/data/card/card.props.js.map +1 -1
- app-rn-runtime/components/data/form/form-action/form-action.styles.js +2 -1
- app-rn-runtime/components/data/form/form-action/form-action.styles.js.map +1 -1
- app-rn-runtime/components/data/form/form-field/form-field.component.js +5 -1
- app-rn-runtime/components/data/form/form-field/form-field.component.js.map +1 -1
- app-rn-runtime/components/data/list/list.component.js +136 -25
- app-rn-runtime/components/data/list/list.component.js.map +1 -1
- app-rn-runtime/components/data/list/list.props.js +4 -1
- app-rn-runtime/components/data/list/list.props.js.map +1 -1
- app-rn-runtime/components/data/list/list.styles.js +9 -0
- app-rn-runtime/components/data/list/list.styles.js.map +1 -1
- app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js +4 -1
- app-rn-runtime/components/device/barcodescanner/barcodescanner.component.js.map +1 -1
- app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js +3 -0
- app-rn-runtime/components/device/barcodescanner/barcodescanner.props.js.map +1 -1
- app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js +13 -6
- app-rn-runtime/components/device/barcodescanner/barcodescanner.styles.js.map +1 -1
- app-rn-runtime/components/device/camera/camera.component.js +4 -1
- app-rn-runtime/components/device/camera/camera.component.js.map +1 -1
- app-rn-runtime/components/device/camera/camera.props.js +3 -0
- app-rn-runtime/components/device/camera/camera.props.js.map +1 -1
- app-rn-runtime/components/device/camera/camera.styles.js +12 -4
- app-rn-runtime/components/device/camera/camera.styles.js.map +1 -1
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js +4 -0
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.component.js.map +1 -1
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js +4 -0
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.props.js.map +1 -1
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js +2 -1
- app-rn-runtime/components/dialogs/alertdialog/alertdialog.styles.js.map +1 -1
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js +4 -0
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.component.js.map +1 -1
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js +4 -0
- app-rn-runtime/components/dialogs/confirmdialog/confirmdialog.props.js.map +1 -1
- app-rn-runtime/components/dialogs/dialog/dialog.component.js +7 -3
- app-rn-runtime/components/dialogs/dialog/dialog.component.js.map +1 -1
- app-rn-runtime/components/dialogs/dialog/dialog.props.js +4 -0
- app-rn-runtime/components/dialogs/dialog/dialog.props.js.map +1 -1
- app-rn-runtime/components/dialogs/dialog/dialog.styles.js +11 -2
- app-rn-runtime/components/dialogs/dialog/dialog.styles.js.map +1 -1
- app-rn-runtime/components/input/basedataset/basedataset.props.js +4 -0
- app-rn-runtime/components/input/basedataset/basedataset.props.js.map +1 -1
- app-rn-runtime/components/input/baseinput/baseinput.component.js +2 -2
- app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
- app-rn-runtime/components/input/baseinput/baseinput.props.js +4 -0
- app-rn-runtime/components/input/baseinput/baseinput.props.js.map +1 -1
- app-rn-runtime/components/input/basenumber/basenumber.component.js +16 -10
- app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
- app-rn-runtime/components/input/basenumber/basenumber.props.js +4 -0
- app-rn-runtime/components/input/basenumber/basenumber.props.js.map +1 -1
- app-rn-runtime/components/input/checkbox/checkbox.component.js +12 -5
- app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
- app-rn-runtime/components/input/checkbox/checkbox.styles.js +35 -5
- app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
- app-rn-runtime/components/input/checkboxset/checkboxset.component.js +13 -6
- app-rn-runtime/components/input/checkboxset/checkboxset.component.js.map +1 -1
- app-rn-runtime/components/input/checkboxset/checkboxset.styles.js +39 -10
- app-rn-runtime/components/input/checkboxset/checkboxset.styles.js.map +1 -1
- app-rn-runtime/components/input/chips/chips.component.js +5 -1
- app-rn-runtime/components/input/chips/chips.component.js.map +1 -1
- app-rn-runtime/components/input/composite/composite.component.js +1 -1
- app-rn-runtime/components/input/composite/composite.component.js.map +1 -1
- app-rn-runtime/components/input/composite/composite.props.js +1 -1
- app-rn-runtime/components/input/composite/composite.props.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.component.js +18 -3
- app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.props.js +1 -0
- app-rn-runtime/components/input/currency/currency.props.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.styles.js +19 -1
- app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
- app-rn-runtime/components/input/epoch/base-datetime.component.js +76 -10
- app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
- app-rn-runtime/components/input/epoch/date/date.component.js +8 -0
- app-rn-runtime/components/input/epoch/date/date.component.js.map +1 -1
- app-rn-runtime/components/input/epoch/date/date.styles.js +16 -0
- app-rn-runtime/components/input/epoch/date/date.styles.js.map +1 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.component.js +8 -0
- app-rn-runtime/components/input/epoch/datetime/datetime.component.js.map +1 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.props.js +5 -0
- app-rn-runtime/components/input/epoch/datetime/datetime.props.js.map +1 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.styles.js +49 -1
- app-rn-runtime/components/input/epoch/datetime/datetime.styles.js.map +1 -1
- app-rn-runtime/components/input/epoch/time/time.component.js +8 -0
- app-rn-runtime/components/input/epoch/time/time.component.js.map +1 -1
- app-rn-runtime/components/input/epoch/time/time.styles.js +16 -0
- app-rn-runtime/components/input/epoch/time/time.styles.js.map +1 -1
- app-rn-runtime/components/input/fileupload/fileupload.component.js +2 -0
- app-rn-runtime/components/input/fileupload/fileupload.component.js.map +1 -1
- app-rn-runtime/components/input/fileupload/fileupload.props.js +2 -0
- app-rn-runtime/components/input/fileupload/fileupload.props.js.map +1 -1
- app-rn-runtime/components/input/fileupload/fileupload.styles.js +1 -1
- app-rn-runtime/components/input/fileupload/fileupload.styles.js.map +1 -1
- app-rn-runtime/components/input/number/number.component.js +13 -2
- app-rn-runtime/components/input/number/number.component.js.map +1 -1
- app-rn-runtime/components/input/number/number.props.js +1 -0
- app-rn-runtime/components/input/number/number.props.js.map +1 -1
- app-rn-runtime/components/input/number/number.styles.js +17 -0
- app-rn-runtime/components/input/number/number.styles.js.map +1 -1
- app-rn-runtime/components/input/radioset/radioset.component.js +7 -2
- app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
- app-rn-runtime/components/input/select/select.component.js +7 -3
- app-rn-runtime/components/input/select/select.component.js.map +1 -1
- app-rn-runtime/components/input/select/select.styles.js +5 -1
- app-rn-runtime/components/input/select/select.styles.js.map +1 -1
- app-rn-runtime/components/input/slider/slider.styles.js +3 -3
- app-rn-runtime/components/input/slider/slider.styles.js.map +1 -1
- app-rn-runtime/components/input/switch/switch.component.js +8 -1
- app-rn-runtime/components/input/switch/switch.component.js.map +1 -1
- app-rn-runtime/components/input/switch/switch.styles.js +10 -5
- app-rn-runtime/components/input/switch/switch.styles.js.map +1 -1
- app-rn-runtime/components/input/text/text.component.js +13 -1
- app-rn-runtime/components/input/text/text.component.js.map +1 -1
- app-rn-runtime/components/input/text/text.props.js +1 -0
- app-rn-runtime/components/input/text/text.props.js.map +1 -1
- app-rn-runtime/components/input/text/text.styles.js +17 -0
- app-rn-runtime/components/input/text/text.styles.js.map +1 -1
- app-rn-runtime/components/input/textarea/textarea.component.js +13 -1
- app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
- app-rn-runtime/components/input/textarea/textarea.props.js +1 -0
- app-rn-runtime/components/input/textarea/textarea.props.js.map +1 -1
- app-rn-runtime/components/input/textarea/textarea.styles.js +17 -0
- app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
- app-rn-runtime/components/input/toggle/toggle.component.js +48 -5
- app-rn-runtime/components/input/toggle/toggle.component.js.map +1 -1
- app-rn-runtime/components/input/toggle/toggle.props.js +4 -0
- app-rn-runtime/components/input/toggle/toggle.props.js.map +1 -1
- app-rn-runtime/components/input/toggle/toggle.styles.js +5 -12
- app-rn-runtime/components/input/toggle/toggle.styles.js.map +1 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js +6 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.component.js.map +1 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js +1 -0
- app-rn-runtime/components/navigation/appnavbar/appnavbar.props.js.map +1 -1
- app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js +11 -2
- app-rn-runtime/components/navigation/appnavbar/appnavbar.styles.js.map +1 -1
- app-rn-runtime/components/navigation/basenav/basenav.component.js +1 -2
- app-rn-runtime/components/navigation/basenav/basenav.component.js.map +1 -1
- app-rn-runtime/components/navigation/menu/menu.styles.js +8 -5
- app-rn-runtime/components/navigation/menu/menu.styles.js.map +1 -1
- app-rn-runtime/components/navigation/navitem/navitem.component.js +8 -5
- app-rn-runtime/components/navigation/navitem/navitem.component.js.map +1 -1
- app-rn-runtime/components/navigation/navitem/navitem.props.js +3 -0
- app-rn-runtime/components/navigation/navitem/navitem.props.js.map +1 -1
- app-rn-runtime/components/navigation/popover/popover.component.js +10 -3
- app-rn-runtime/components/navigation/popover/popover.component.js.map +1 -1
- app-rn-runtime/components/navigation/popover/popover.props.js +7 -0
- app-rn-runtime/components/navigation/popover/popover.props.js.map +1 -1
- app-rn-runtime/components/navigation/popover/popover.styles.js +8 -2
- app-rn-runtime/components/navigation/popover/popover.styles.js.map +1 -1
- app-rn-runtime/components/page/page-content/page-content.component.js +7 -1
- app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
- app-rn-runtime/components/page/tabbar/curve.js +84 -0
- app-rn-runtime/components/page/tabbar/curve.js.map +1 -0
- app-rn-runtime/components/page/tabbar/tabbar.component.js +44 -10
- app-rn-runtime/components/page/tabbar/tabbar.component.js.map +1 -1
- app-rn-runtime/components/page/tabbar/tabbar.styles.js +82 -15
- app-rn-runtime/components/page/tabbar/tabbar.styles.js.map +1 -1
- app-rn-runtime/core/accessibility.js +149 -0
- app-rn-runtime/core/accessibility.js.map +1 -0
- app-rn-runtime/core/base.component.js +21 -3
- app-rn-runtime/core/base.component.js.map +1 -1
- app-rn-runtime/core/components/floatinglabel.component.js +45 -0
- app-rn-runtime/core/components/floatinglabel.component.js.map +1 -0
- app-rn-runtime/core/components/textinput.component.js +25 -2
- app-rn-runtime/core/components/textinput.component.js.map +1 -1
- app-rn-runtime/core/event-notifier.js +22 -1
- app-rn-runtime/core/event-notifier.js.map +1 -1
- app-rn-runtime/core/tappable.component.js +37 -10
- app-rn-runtime/core/tappable.component.js.map +1 -1
- app-rn-runtime/core/utils.js +11 -0
- app-rn-runtime/core/utils.js.map +1 -1
- app-rn-runtime/gestures/swipe.animation.js +34 -1
- app-rn-runtime/gestures/swipe.animation.js.map +1 -1
- app-rn-runtime/package.json +8 -3
- app-rn-runtime/runtime/App.js +12 -7
- app-rn-runtime/runtime/App.js.map +1 -1
- app-rn-runtime/runtime/base-page.component.js +1 -1
- app-rn-runtime/runtime/base-page.component.js.map +1 -1
- app-rn-runtime/runtime/services/app-security.service.js +2 -1
- app-rn-runtime/runtime/services/app-security.service.js.map +1 -1
- app-rn-runtime/runtime/services/webprocess.service.js +0 -1
- app-rn-runtime/runtime/services/webprocess.service.js.map +1 -1
- app-rn-runtime/styles/background.component.js +1 -1
- app-rn-runtime/styles/background.component.js.map +1 -1
- app-rn-runtime/styles/theme.js +43 -0
- app-rn-runtime/styles/theme.js.map +1 -1
- app-rn-runtime/styles/theme.variables.js +30 -6
- app-rn-runtime/styles/theme.variables.js.map +1 -1
- app-rn-runtime/variables/model-variable.js +2 -1
- app-rn-runtime/variables/model-variable.js.map +1 -1
- app-rn-runtime/variables/service-variable.js +14 -6
- app-rn-runtime/variables/service-variable.js.map +1 -1
@@ -1 +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","Component","constructor","props","state","parse","val","arguments","length","undefined","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","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","caluculateSize","imageSrc","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","repeat","renderLinearGradient","data","psresult","image","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","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 { 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\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(parseInt(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\n colors={this.state.colors}\n locations={this.state.locations}\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 = {} 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]);\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]);\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]);\n result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);\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 </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (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?.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 }\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 this.loadAsset = loadAsset;\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 minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n } : null\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) {\n return this.renderImage();\n }\n return null;\n }\n}\n\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjE,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,OAAO,MAAMf,cAAc,SAASD,KAAK,CAACiB,SAAS,CAA2C;EAE1FC,WAAWA,CAACC,KAA0B,EAAE;IACpC,KAAK,CAACA,KAAK,CAAC;IACZ,IAAI,CAACC,KAAK,GAAG,IAAI,CAACC,KAAK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YAAY,gBAAAD,mBAAA,GAAZC,YAAY,CAAE/F,KAAK,cAAA8F,mBAAA,eAAnBA,mBAAA,CAAqBhG,MAAM,EAAE;MAC7B,OAAO,IAAI,CAAC6E,oBAAoB,CAACoB,YAAY,CAAC/F,KAAK,CAAC,CAAC,CAAC,CAAC;IAC3D,CAAC,MAAM,IAAI,IAAI,CAACP,KAAK,CAACqF,KAAK,EAAE;MACzB,OAAO,IAAI,CAACW,WAAW,CAAC,CAAC;IAC7B;IACA,OAAO,IAAI;EACf;AACJ"}
|
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","Component","constructor","props","state","parse","val","arguments","length","undefined","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","replace","componentDidUpdate","prevProps","prevState","snapshot","setState","render","_this$props$size","_this$props$style","createElement","style","borderWidth","overflow","absoluteFill","middle","flexDirection","justifyContent","alignItems","size","width","position","borderRadius","children","BackgroundComponent","_defineProperty","caluculateSize","imageSrc","height","resolveAssetSource","naturalImageWidth","naturalImageHeight","getSize","uri","getDimension","dim","getPosition","result","top","bottom","left","right","getPositionAndSize","_this$props$size2","_this$getGradient","resizeMode","getGradient","repeat","renderLinearGradient","data","psresult","image","setImage","componentDidMount","setTimeout","_this$props$image","_source","source","startsWith","_this$props$image2","loadAsset","_this$props$image3","renderImage","_psresult$position","_psresult$position2","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 { 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\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(parseInt(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\n colors={this.state.colors}\n locations={this.state.locations}\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 = {} 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]);\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]);\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]);\n result.size.height = size[2].endsWith('%') ? size[2] : parseInt(size[2]);\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 </LinearGradient>\n );\n }\n\n componentDidUpdate(prevProps: Readonly<BackgroundProps>, prevState: Readonly<{}>, snapshot?: any): void {\n if (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?.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 }\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 this.loadAsset = loadAsset;\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 minWidth: this.state.naturalImageWidth,\n minHeight: this.state.naturalImageHeight\n } : null\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\n"],"mappings":";;;AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,SAASC,cAAc,IAAIC,kBAAkB,QAA6B,sBAAsB;AAChG,SAASC,KAAK,EAAEC,UAAU,EAAEC,IAAI,QAAmB,cAAc;AACjE,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,OAAO,MAAMf,cAAc,SAASD,KAAK,CAACiB,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,CAAA,EAAyB;IAAA,IAAxBC,GAAG,GAAAC,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,IAAI,CAACJ,KAAK,CAACO,KAAK;IACxB,IAAIN,KAAK,GAAG,CAAC,CAAwB;IACrC,MAAMO,MAAM,GAAGL,GAAG,CAACM,KAAK,CAAC,GAAG,CAAC,CAACC,GAAG,CAACC,CAAC,IAAIA,CAAC,CAACC,IAAI,CAAC,CAAC,CAAC;IAChD,IAAIC,KAAK,GAAG,CAAC;IACb,MAAMC,SAAgC,GAAG,EAAE;IAC3C,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,6 +4,7 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typ
|
|
4
4
|
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
5
5
|
import { cloneDeep, isNil, forEach, flatten, isArray, isEmpty, isObject, isString, get, reverse } from 'lodash';
|
6
6
|
import React from 'react';
|
7
|
+
import { camelCase } from 'lodash-es';
|
7
8
|
import { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';
|
8
9
|
import EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';
|
9
10
|
import ViewPort, { EVENTS as ViewPortEvents } from '@wavemaker/app-rn-runtime/core/viewport';
|
@@ -53,6 +54,16 @@ export class Theme {
|
|
53
54
|
this.eventNotifer.notify(event, []);
|
54
55
|
this.children.forEach(t => t.notify(event));
|
55
56
|
}
|
57
|
+
replaceVariables(val) {
|
58
|
+
if (isString(val)) {
|
59
|
+
(val.match(/_*var\([^\)]*\)/g) || []).forEach(s => {
|
60
|
+
const variableName = s.substring(4, s.length - 1);
|
61
|
+
val = val.replace(s, ThemeVariables.INSTANCE[variableName] || ThemeVariables.INSTANCE[variableName.substring(2)] || ThemeVariables.INSTANCE[camelCase(variableName.substring(2))]);
|
62
|
+
val = this.replaceVariables(val);
|
63
|
+
});
|
64
|
+
}
|
65
|
+
return val;
|
66
|
+
}
|
56
67
|
clearCache() {
|
57
68
|
this.cache = {};
|
58
69
|
this.children.forEach(t => t.clearCache());
|
@@ -132,6 +143,11 @@ export class Theme {
|
|
132
143
|
return;
|
133
144
|
}
|
134
145
|
style = style;
|
146
|
+
if (isObject(style) && !isArray(style)) {
|
147
|
+
Object.keys(style).forEach(k => {
|
148
|
+
style[k] = this.replaceVariables(style[k]);
|
149
|
+
});
|
150
|
+
}
|
135
151
|
if (!isNil(style['shadowRadius'])) {
|
136
152
|
if (style['shadowRadius'] <= 0) {
|
137
153
|
style['shadowColor'] = 'transparent';
|
@@ -196,6 +212,33 @@ export class Theme {
|
|
196
212
|
this.parent.children.splice(i, 1);
|
197
213
|
}
|
198
214
|
}
|
215
|
+
getTextStyle(s) {
|
216
|
+
if (!s) {
|
217
|
+
return {};
|
218
|
+
}
|
219
|
+
return {
|
220
|
+
color: s.color,
|
221
|
+
fontFamily: s.fontFamily,
|
222
|
+
fontSize: s.fontSize,
|
223
|
+
fontStyle: s.fontStyle,
|
224
|
+
fontWeight: s.fontWeight,
|
225
|
+
includeFontPadding: s.includeFontPadding,
|
226
|
+
fontVariant: s.fontVariant,
|
227
|
+
letterSpacing: s.letterSpacing,
|
228
|
+
lineHeight: s.lineHeight,
|
229
|
+
textAlign: s.textAlign,
|
230
|
+
textAlignVertical: s.textAlignVertical,
|
231
|
+
textDecorationColor: s.textDecorationColor,
|
232
|
+
textDecorationStyle: s.textDecorationStyle,
|
233
|
+
textShadowColor: s.textShadowColor,
|
234
|
+
textShadowOffset: s.textShadowOffset,
|
235
|
+
textShadowRadius: s.textShadowRadius,
|
236
|
+
textTransform: s.textTransform,
|
237
|
+
verticalAlign: s.verticalAlign,
|
238
|
+
writingDirection: s.writingDirection,
|
239
|
+
userSelect: s.userSelect
|
240
|
+
};
|
241
|
+
}
|
199
242
|
reset(styles) {
|
200
243
|
this.styles = {};
|
201
244
|
this.clearCache();
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["cloneDeep","isNil","forEach","flatten","isArray","isEmpty","isObject","isString","get","reverse","React","deepCopy","isWebPreviewMode","EventNotifier","ViewPort","EVENTS","ViewPortEvents","MediaQueryList","ThemeVariables","getErrorMessage","getStyleReference","isValidStyleProp","DEFAULT_CLASS","window","matchMedia","query","DEVICE_BREAK_POINTS","ThemeEvent","Theme","constructor","parent","name","_defineProperty","traceEnabled","subscribe","event","fn","eventNotifer","notify","children","t","clearCache","cache","registerStyle","styleGenerators","push","INSTANCE","addStyle","bind","checkStyleProperties","value","Object","keys","map","k","console","log","extend","style","styles","getStyle","addTrace","styleName","mergedChildstyle","childStyle","parentStyle","v","__trace","prefix","arguments","length","undefined","result","collect","mergeStyle","_len","Array","_key","flattenStyles","s","cs","filter","cleanseStyleProperties","i","indexOf","split","c","mediaQuery","clonedStyle","matches","BASE","$new","newTheme","reset","destroy","splice","themeVariables","CHANGE","_class","SIZE_CHANGE","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","width","MIN_EXTRA_SMALL_DEVICE","MIN_SMALL_DEVICE","MIN_MEDIUM_DEVICE","MIN_LARGE_DEVICE","display","addDisplayStyles","maxWidth","MAX_LARGE_DEVICE","MAX_EXTRA_SMALL_DEVICE","MAX_SMALL_DEVICE","MAX_MEDIUM_DEVICE","addElevationClasses","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","zIndex","transform","scale","backgroundColor","dangerColor","infoColor","primaryColor","successColor","warningColor","borderColor","text","userSelect"],"sources":["theme.tsx"],"sourcesContent":["import { cloneDeep, isNil, forEach, flatten, isArray, isEmpty, isObject, isString, isFunction, get, reverse } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { TextStyle, ViewStyle, ImageStyle, ImageBackground } from 'react-native';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';\nimport ViewPort, {EVENTS as ViewPortEvents} from '@wavemaker/app-rn-runtime/core/viewport';\nimport MediaQueryList from './MediaQueryList';\nimport ThemeVariables from './theme.variables';\nimport { getErrorMessage, getStyleReference, isValidStyleProp } from './style-prop.validator';\nexport const DEFAULT_CLASS = 'DEFAULT_CLASS';\n\ndeclare const matchMedia: any, window: any;\n\nif (typeof window !== \"undefined\") {\n // @ts-ignore: does not properly extend MediaQueryList\n window.matchMedia = (query: string) => new MediaQueryList(query);\n}\n\nexport const DEVICE_BREAK_POINTS = {\n 'MIN_EXTRA_SMALL_DEVICE' : '0px',\n 'MAX_EXTRA_SMALL_DEVICE' : '767px',\n 'MIN_SMALL_DEVICE' : '768px',\n 'MAX_SMALL_DEVICE' : '991px',\n 'MIN_MEDIUM_DEVICE' : '992px',\n 'MAX_MEDIUM_DEVICE' : '1199px',\n 'MIN_LARGE_DEVICE' : '1200px',\n 'MAX_LARGE_DEVICE' : '1000000px',\n};\n\nexport type styleGeneratorFn<T extends NamedStyles<any>> = (\n themeVariables: ThemeVariables,\n addStyle: (name: string, extend: string, style: T) => void) => void\n\nexport enum ThemeEvent {\n CHANGE ='change'\n};\n\nexport class Theme {\n public static BASE = new Theme(null as any, 'default');\n\n static {\n ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {\n Theme.BASE.reset();\n });\n }\n\n\n private eventNotifer = new EventNotifier();\n\n private children: Theme[] = [];\n\n private styles: any = {};\n\n private cache: any = {};\n\n private traceEnabled = false;\n\n private styleGenerators: styleGeneratorFn<any>[] = [];\n\n private constructor(private parent:Theme, public readonly name: string) {\n if (parent) {\n this.traceEnabled = parent.traceEnabled;\n } else {\n this.traceEnabled = isWebPreviewMode();\n }\n }\n\n public subscribe(event: ThemeEvent, fn: Function) {\n return this.eventNotifer.subscribe(event, fn);\n }\n\n public notify(event: ThemeEvent): void {\n this.eventNotifer.notify(event, []);\n this.children.forEach(t => t.notify(event));\n }\n\n clearCache() {\n this.cache = {};\n this.children.forEach((t) => t.clearCache());\n }\n\n registerStyle<T extends NamedStyles<any>>(fn: styleGeneratorFn<T>) {\n this.styleGenerators.push(fn);\n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this));\n }\n\n checkStyleProperties(name: string, value : any) {\n if (isObject(value)) {\n Object.keys(value).map((k) => this.checkStyleProperties(k, (value as any)[k]));\n } else if(name && !isValidStyleProp(name, value)) {\n console.log(\n `%cInvalid Style property in ${this.name}: ${getErrorMessage(name, value)}`,\n 'background-color: #FF0000;font-weight: bold; color: #fff'\n );\n console.log(`Refer: ${getStyleReference(name)}`);\n }\n }\n\n private addStyle<T extends NamedStyles<any>>(name: string, extend: string, style: T) {\n this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);\n }\n\n private addTrace(styleName: string, mergedChildstyle: any, childStyle: any, parentStyle?: any) {\n if (!this.traceEnabled) {\n return;\n }\n let addTrace = !isEmpty(childStyle);\n forEach(mergedChildstyle, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n addTrace = false;\n this.addTrace(styleName + '.' + k, v, childStyle && childStyle[k], parentStyle && parentStyle[k])\n }\n });\n if (addTrace) {\n mergedChildstyle['__trace'] = [\n {\n name: styleName,\n value: childStyle\n },\n ...(parentStyle?.__trace|| [])\n ];\n } else {\n mergedChildstyle['__trace'] = [...(parentStyle?.__trace|| [])];\n }\n }\n\n private flatten(style: any, prefix = \"\", result = {} as any) {\n let collect = !isEmpty(style);\n forEach(style, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n collect = false;\n this.flatten(v, (prefix ? prefix + '.' : '') + k, result)\n }\n });\n if (collect) {\n result[prefix] = style;\n }\n return result;\n }\n\n mergeStyle(...styles: any) {\n const style = deepCopy(...styles);\n if (this.traceEnabled) {\n const flattenStyles = this.flatten(style);\n Object.keys(flattenStyles).forEach(k => {\n const s = flattenStyles[k];\n s['__trace'] = flatten(reverse(styles.map((v: any) => {\n const cs = get(v, k);\n if (cs && cs.__trace) {\n return [...cs.__trace];\n }\n return [];\n }).filter((t: any) => t.length > 0)));\n });\n }\n return style;\n }\n\n cleanseStyleProperties(style: any) {\n if (!(style && isObject(style)) || isString(style) || isArray(style)) {\n return;\n }\n style = style as any;\n if (!isNil(style['shadowRadius'])) {\n if (style['shadowRadius'] <= 0) {\n style['shadowColor'] = 'transparent';\n } else if (isNil(style['elevation'])) {\n style['elevation'] = 2;\n }\n }\n if (!isNil(style['margin'])) {\n style['marginLeft'] = style['marginLeft'] || style['margin'];\n style['marginRight'] = style['marginRight'] || style['margin'];\n style['marginTop'] = style['marginTop'] || style['margin'];\n style['marginBottom'] = style['marginBottom'] || style['margin'];\n delete style['margin'];\n }\n if (!isNil(style['padding'])) {\n style['paddingLeft'] = style['paddingLeft'] || style['padding'];\n style['paddingRight'] = style['paddingRight'] || style['padding'];\n style['paddingTop'] = style['paddingTop'] || style['padding'];\n style['paddingBottom'] = style['paddingBottom'] || style['padding'];\n delete style['padding'];\n }\n Object.keys(style).forEach((k, i) => this.cleanseStyleProperties(style[k]));\n }\n\n getStyle(name: string) {\n let style = this.cache[name];\n if (style) {\n return style;\n }\n if (!name) {\n return {};\n }\n if (name.indexOf(' ') > 0) {\n style = this.mergeStyle(...(name.split(' ').map(c => this.getStyle(c))));\n } else {\n const parentStyle = this.parent && this.parent.getStyle(name);\n const mediaQuery = (this.styles[name] || {})['@media'];\n let clonedStyle = {};\n if (!mediaQuery || matchMedia(mediaQuery).matches) {\n clonedStyle = cloneDeep(this.styles[name]);\n this.cleanseStyleProperties(clonedStyle);\n }\n if (this !== Theme.BASE && isWebPreviewMode()) {\n this.checkStyleProperties('', clonedStyle);\n }\n style = deepCopy(parentStyle, clonedStyle);\n this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);\n }\n this.cache[name] = style;\n return style;\n }\n\n $new(name = \"\", styles = {} as NamedStyles<any>) {\n const newTheme = new Theme(this, name);\n newTheme.reset(styles);\n this.children.push(newTheme);\n return newTheme;\n }\n\n destroy() {\n const i = this.parent.children.indexOf(this);\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n }\n\n reset(styles?: NamedStyles<any>) {\n this.styles = {};\n this.clearCache();\n if (styles) {\n this.registerStyle((themeVariables, addStyle) => {\n Object.keys(styles).forEach(k => {\n addStyle(k, '', styles[k] as any);\n });\n });\n } else {\n this.styleGenerators.forEach(fn => \n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this)));\n }\n this.notify(ThemeEvent.CHANGE);\n }\n}\nexport default Theme.BASE;\nexport type NamedStyles<T> = { [P in keyof T]: AllStyle | NamedStyles<T>};\nexport type BackgroundImageStyle = {\n backgroundImage: string,\n backgroundPosition: string,\n backgroundRepeat: string,\n backgroundSize: string | number\n};\n\nexport type AllStyle = (ViewStyle & TextStyle & ImageStyle & {userSelect?: 'none'| 'text'});\n\nconst ThemeContext = React.createContext<Theme>(null as any);\n\nexport const ThemeProvider = ThemeContext.Provider;\nexport const ThemeConsumer = ThemeContext.Consumer;\n/**\n * Common styles\n */\n Theme.BASE.registerStyle((themeVariables, addStyle) => {\n const addColStyles = (device: string, minWidth: string) => {\n for(let i = 1; i <= 12; i++) {\n addStyle(`col-${device}-${i}`, '', {\n \"@media\": `(min-width: ${minWidth})`,\n root: {\n width: (100 * i / 12) + '%'\n }\n } as any)\n }\n };\n addColStyles('xs', DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE);\n addColStyles('sm', DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE);\n addColStyles('md', DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE);\n addColStyles('lg', DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE);\n\n addStyle('d-none', '', {\n root: {\n display: 'none'\n }\n } as any);\n addStyle('d-flex', '', {\n root: {\n display: 'flex'\n }\n } as any);\n\n const addDisplayStyles = (device: string, minWidth: string, maxWidth: string) => {\n addStyle(`d-${device}-none`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'none'\n }\n } as any);\n addStyle(`d-${device}-flex`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'flex'\n }\n } as any);\n };\n addDisplayStyles('all', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n addDisplayStyles('xs', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_EXTRA_SMALL_DEVICE);\n addDisplayStyles('sm', \n DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_SMALL_DEVICE);\n addDisplayStyles('md', \n DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE,\n DEVICE_BREAK_POINTS.MAX_MEDIUM_DEVICE);\n addDisplayStyles('lg', \n DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n\n const addElevationClasses = () => {\n for(let i = 1; i <= 10; i++) {\n addStyle(`elevate${i}`, '', {\n root : {\n shadowColor: \"#000000\",\n shadowOffset: {\n width: i,\n height: i,\n },\n shadowOpacity: 0.27,\n shadowRadius: i,\n elevation: i,\n zIndex: 1\n }\n });\n }\n };\n addElevationClasses();\n addStyle('hidden', '', {\n root: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }]\n }\n });\n addStyle('bg-danger', '', { root: { backgroundColor: themeVariables.dangerColor }});\n addStyle('bg-info', '', { root: { backgroundColor: themeVariables.infoColor }});\n addStyle('bg-primary', '', { root: { backgroundColor: themeVariables.primaryColor }});\n addStyle('bg-success', '', { root: { backgroundColor: themeVariables.successColor }});\n addStyle('bg-warning', '', { root: { backgroundColor: themeVariables.warningColor }});\n\n addStyle('border-danger', '', { root: { borderColor: themeVariables.dangerColor }});\n addStyle('border-info', '', { root: { borderColor: themeVariables.infoColor }});\n addStyle('border-primary', '', { root: { borderColor: themeVariables.primaryColor }});\n addStyle('border-success', '', { root: { borderColor: themeVariables.successColor }});\n addStyle('border-warning', '', { root: { borderColor: themeVariables.warningColor }});\n\n addStyle('hide-context-menu', '', { text: { userSelect: 'none' }});\n});\n\n"],"mappings":";;;;AAAA,SAASA,SAAS,EAAEC,KAAK,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,QAAQ,EAAcC,GAAG,EAAEC,OAAO,QAAQ,QAAQ;A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AE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAEuB,eAAe,EAAEpC,cAAc,CAACyC;IAAa;EAAC,CAAC,CAAC;EAErF1F,QAAQ,CAAC,eAAe,EAAE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAE6B,WAAW,EAAE1C,cAAc,CAACqC;IAAY;EAAC,CAAC,CAAC;EACnFtF,QAAQ,CAAC,aAAa,EAAE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAE6B,WAAW,EAAE1C,cAAc,CAACsC;IAAU;EAAC,CAAC,CAAC;EAC/EvF,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAE6B,WAAW,EAAE1C,cAAc,CAACuC;IAAa;EAAC,CAAC,CAAC;EACrFxF,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAE6B,WAAW,EAAE1C,cAAc,CAACwC;IAAa;EAAC,CAAC,CAAC;EACrFzF,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAE8D,IAAI,EAAE;MAAE6B,WAAW,EAAE1C,cAAc,CAACyC;IAAa;EAAC,CAAC,CAAC;EAErF1F,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE;IAAE4F,IAAI,EAAE;MAAEC,UAAU,EAAE;IAAO;EAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["cloneDeep","isNil","forEach","flatten","isArray","isEmpty","isObject","isString","get","reverse","React","camelCase","deepCopy","isWebPreviewMode","EventNotifier","ViewPort","EVENTS","ViewPortEvents","MediaQueryList","ThemeVariables","getErrorMessage","getStyleReference","isValidStyleProp","DEFAULT_CLASS","window","matchMedia","query","DEVICE_BREAK_POINTS","ThemeEvent","Theme","constructor","parent","name","_defineProperty","traceEnabled","subscribe","event","fn","eventNotifer","notify","children","t","replaceVariables","val","match","s","variableName","substring","length","replace","INSTANCE","clearCache","cache","registerStyle","styleGenerators","push","addStyle","bind","checkStyleProperties","value","Object","keys","map","k","console","log","extend","style","styles","getStyle","addTrace","styleName","mergedChildstyle","childStyle","parentStyle","v","__trace","prefix","arguments","undefined","result","collect","mergeStyle","_len","Array","_key","flattenStyles","cs","filter","cleanseStyleProperties","i","indexOf","split","c","mediaQuery","clonedStyle","matches","BASE","$new","newTheme","reset","destroy","splice","getTextStyle","color","fontFamily","fontSize","fontStyle","fontWeight","includeFontPadding","fontVariant","letterSpacing","lineHeight","textAlign","textAlignVertical","textDecorationColor","textDecorationStyle","textShadowColor","textShadowOffset","textShadowRadius","textTransform","verticalAlign","writingDirection","userSelect","themeVariables","CHANGE","_class","SIZE_CHANGE","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","width","MIN_EXTRA_SMALL_DEVICE","MIN_SMALL_DEVICE","MIN_MEDIUM_DEVICE","MIN_LARGE_DEVICE","display","addDisplayStyles","maxWidth","MAX_LARGE_DEVICE","MAX_EXTRA_SMALL_DEVICE","MAX_SMALL_DEVICE","MAX_MEDIUM_DEVICE","addElevationClasses","shadowColor","shadowOffset","height","shadowOpacity","shadowRadius","elevation","zIndex","transform","scale","backgroundColor","dangerColor","infoColor","primaryColor","successColor","warningColor","borderColor","text"],"sources":["theme.tsx"],"sourcesContent":["import { cloneDeep, isNil, forEach, flatten, isArray, isEmpty, isObject, isString, isFunction, get, reverse } from 'lodash';\nimport React from 'react';\nimport { camelCase } from 'lodash-es';\nimport { TextStyle, ViewStyle, ImageStyle, ImageBackground } from 'react-native';\nimport { deepCopy, isWebPreviewMode } from '@wavemaker/app-rn-runtime/core/utils';\nimport EventNotifier from '@wavemaker/app-rn-runtime/core/event-notifier';\nimport ViewPort, {EVENTS as ViewPortEvents} from '@wavemaker/app-rn-runtime/core/viewport';\nimport MediaQueryList from './MediaQueryList';\nimport ThemeVariables from './theme.variables';\nimport { getErrorMessage, getStyleReference, isValidStyleProp } from './style-prop.validator';\nexport const DEFAULT_CLASS = 'DEFAULT_CLASS';\n\ndeclare const matchMedia: any, window: any;\n\nif (typeof window !== \"undefined\") {\n // @ts-ignore: does not properly extend MediaQueryList\n window.matchMedia = (query: string) => new MediaQueryList(query);\n}\n\nexport const DEVICE_BREAK_POINTS = {\n 'MIN_EXTRA_SMALL_DEVICE' : '0px',\n 'MAX_EXTRA_SMALL_DEVICE' : '767px',\n 'MIN_SMALL_DEVICE' : '768px',\n 'MAX_SMALL_DEVICE' : '991px',\n 'MIN_MEDIUM_DEVICE' : '992px',\n 'MAX_MEDIUM_DEVICE' : '1199px',\n 'MIN_LARGE_DEVICE' : '1200px',\n 'MAX_LARGE_DEVICE' : '1000000px',\n};\n\nexport type styleGeneratorFn<T extends NamedStyles<any>> = (\n themeVariables: ThemeVariables,\n addStyle: (name: string, extend: string, style: T) => void) => void\n\nexport enum ThemeEvent {\n CHANGE ='change'\n};\n\nexport class Theme {\n public static BASE = new Theme(null as any, 'default');\n\n static {\n ViewPort.subscribe(ViewPortEvents.SIZE_CHANGE, () => {\n Theme.BASE.reset();\n });\n }\n\n\n private eventNotifer = new EventNotifier();\n\n private children: Theme[] = [];\n\n private styles: any = {};\n\n private cache: any = {};\n\n private traceEnabled = false;\n\n private styleGenerators: styleGeneratorFn<any>[] = [];\n\n private constructor(private parent:Theme, public readonly name: string) {\n if (parent) {\n this.traceEnabled = parent.traceEnabled;\n } else {\n this.traceEnabled = isWebPreviewMode();\n }\n }\n\n public subscribe(event: ThemeEvent, fn: Function) {\n return this.eventNotifer.subscribe(event, fn);\n }\n\n public notify(event: ThemeEvent): void {\n this.eventNotifer.notify(event, []);\n this.children.forEach(t => t.notify(event));\n }\n\n private replaceVariables(val: string) {\n if(isString(val)) { \n (val.match(/_*var\\([^\\)]*\\)/g) || []).forEach((s) => {\n const variableName = s.substring(4, s.length - 1);\n val = val.replace(s, (ThemeVariables.INSTANCE as any)[variableName]\n || (ThemeVariables.INSTANCE as any)[variableName.substring(2)]\n || (ThemeVariables.INSTANCE as any)[camelCase(variableName.substring(2))]);\n val = this.replaceVariables(val);\n });\n }\n return val; \n }\n\n clearCache() {\n this.cache = {};\n this.children.forEach((t) => t.clearCache());\n }\n\n registerStyle<T extends NamedStyles<any>>(fn: styleGeneratorFn<T>) {\n this.styleGenerators.push(fn);\n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this));\n }\n\n checkStyleProperties(name: string, value : any) {\n if (isObject(value)) {\n Object.keys(value).map((k) => this.checkStyleProperties(k, (value as any)[k]));\n } else if(name && !isValidStyleProp(name, value)) {\n console.log(\n `%cInvalid Style property in ${this.name}: ${getErrorMessage(name, value)}`,\n 'background-color: #FF0000;font-weight: bold; color: #fff'\n );\n console.log(`Refer: ${getStyleReference(name)}`);\n }\n }\n\n private addStyle<T extends NamedStyles<any>>(name: string, extend: string, style: T) {\n this.styles[name] = deepCopy(this.getStyle(extend), this.styles[name], style);\n }\n\n private addTrace(styleName: string, mergedChildstyle: any, childStyle: any, parentStyle?: any) {\n if (!this.traceEnabled) {\n return;\n }\n let addTrace = !isEmpty(childStyle);\n forEach(mergedChildstyle, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n addTrace = false;\n this.addTrace(styleName + '.' + k, v, childStyle && childStyle[k], parentStyle && parentStyle[k])\n }\n });\n if (addTrace) {\n mergedChildstyle['__trace'] = [\n {\n name: styleName,\n value: childStyle\n },\n ...(parentStyle?.__trace|| [])\n ];\n } else {\n mergedChildstyle['__trace'] = [...(parentStyle?.__trace|| [])];\n }\n }\n\n private flatten(style: any, prefix = \"\", result = {} as any) {\n let collect = !isEmpty(style);\n forEach(style, (v: any, k: string) => {\n if (v && !isString(v) && !isArray(v) && isObject(v)) {\n collect = false;\n this.flatten(v, (prefix ? prefix + '.' : '') + k, result)\n }\n });\n if (collect) {\n result[prefix] = style;\n }\n return result;\n }\n\n mergeStyle(...styles: any) {\n const style = deepCopy(...styles);\n if (this.traceEnabled) {\n const flattenStyles = this.flatten(style);\n Object.keys(flattenStyles).forEach(k => {\n const s = flattenStyles[k];\n s['__trace'] = flatten(reverse(styles.map((v: any) => {\n const cs = get(v, k);\n if (cs && cs.__trace) {\n return [...cs.__trace];\n }\n return [];\n }).filter((t: any) => t.length > 0)));\n });\n }\n return style;\n }\n\n cleanseStyleProperties(style: any) {\n if (!(style && isObject(style)) || isString(style) || isArray(style)) {\n return;\n }\n style = style as any;\n if (isObject(style) && !isArray(style)) {\n Object.keys(style).forEach(k => {\n style[k] = this.replaceVariables(style[k]);\n });\n }\n if (!isNil(style['shadowRadius'])) {\n if (style['shadowRadius'] <= 0) {\n style['shadowColor'] = 'transparent';\n } else if (isNil(style['elevation'])) {\n style['elevation'] = 2;\n }\n }\n if (!isNil(style['margin'])) {\n style['marginLeft'] = style['marginLeft'] || style['margin'];\n style['marginRight'] = style['marginRight'] || style['margin'];\n style['marginTop'] = style['marginTop'] || style['margin'];\n style['marginBottom'] = style['marginBottom'] || style['margin'];\n delete style['margin'];\n }\n if (!isNil(style['padding'])) {\n style['paddingLeft'] = style['paddingLeft'] || style['padding'];\n style['paddingRight'] = style['paddingRight'] || style['padding'];\n style['paddingTop'] = style['paddingTop'] || style['padding'];\n style['paddingBottom'] = style['paddingBottom'] || style['padding'];\n delete style['padding'];\n }\n Object.keys(style).forEach((k, i) => this.cleanseStyleProperties(style[k]));\n }\n\n getStyle(name: string) {\n let style = this.cache[name];\n if (style) {\n return style;\n }\n if (!name) {\n return {};\n }\n if (name.indexOf(' ') > 0) {\n style = this.mergeStyle(...(name.split(' ').map(c => this.getStyle(c))));\n } else {\n const parentStyle = this.parent && this.parent.getStyle(name);\n const mediaQuery = (this.styles[name] || {})['@media'];\n let clonedStyle = {};\n if (!mediaQuery || matchMedia(mediaQuery).matches) {\n clonedStyle = cloneDeep(this.styles[name]);\n this.cleanseStyleProperties(clonedStyle);\n }\n if (this !== Theme.BASE && isWebPreviewMode()) {\n this.checkStyleProperties('', clonedStyle);\n }\n style = deepCopy(parentStyle, clonedStyle);\n this.addTrace(`@${this.name}:${name}`, style, clonedStyle, parentStyle);\n }\n this.cache[name] = style;\n return style;\n }\n\n $new(name = \"\", styles = {} as NamedStyles<any>) {\n const newTheme = new Theme(this, name);\n newTheme.reset(styles);\n this.children.push(newTheme);\n return newTheme;\n }\n\n destroy() {\n const i = this.parent.children.indexOf(this);\n if (i >= 0) {\n this.parent.children.splice(i, 1);\n }\n }\n \n getTextStyle(s: any) {\n if (!s) {\n return {};\n }\n return {\n color: s.color,\n fontFamily: s.fontFamily,\n fontSize: s.fontSize,\n fontStyle: s.fontStyle,\n fontWeight: s.fontWeight,\n includeFontPadding: s.includeFontPadding,\n fontVariant: s.fontVariant,\n letterSpacing: s.letterSpacing,\n lineHeight: s.lineHeight,\n textAlign: s.textAlign,\n textAlignVertical: s.textAlignVertical,\n textDecorationColor: s.textDecorationColor,\n textDecorationStyle: s.textDecorationStyle,\n textShadowColor: s.textShadowColor,\n textShadowOffset: s.textShadowOffset,\n textShadowRadius: s.textShadowRadius,\n textTransform: s.textTransform,\n verticalAlign: s.verticalAlign,\n writingDirection: s.writingDirection,\n userSelect: s.userSelect,\n } as TextStyle;\n }\n\n reset(styles?: NamedStyles<any>) {\n this.styles = {};\n this.clearCache();\n if (styles) {\n this.registerStyle((themeVariables, addStyle) => {\n Object.keys(styles).forEach(k => {\n addStyle(k, '', styles[k] as any);\n });\n });\n } else {\n this.styleGenerators.forEach(fn => \n fn(ThemeVariables.INSTANCE, this.addStyle.bind(this)));\n }\n this.notify(ThemeEvent.CHANGE);\n }\n}\nexport default Theme.BASE;\nexport type NamedStyles<T> = { [P in keyof T]: AllStyle | NamedStyles<T>};\nexport type BackgroundImageStyle = {\n backgroundImage: string,\n backgroundPosition: string,\n backgroundRepeat: string,\n backgroundSize: string | number\n};\n\nexport type AllStyle = (ViewStyle & TextStyle & ImageStyle & {userSelect?: 'none'| 'text'} & {rippleColor?: string});\n\nconst ThemeContext = React.createContext<Theme>(null as any);\n\nexport const ThemeProvider = ThemeContext.Provider;\nexport const ThemeConsumer = ThemeContext.Consumer;\n/**\n * Common styles\n */\n Theme.BASE.registerStyle((themeVariables, addStyle) => {\n const addColStyles = (device: string, minWidth: string) => {\n for(let i = 1; i <= 12; i++) {\n addStyle(`col-${device}-${i}`, '', {\n \"@media\": `(min-width: ${minWidth})`,\n root: {\n width: (100 * i / 12) + '%'\n }\n } as any)\n }\n };\n addColStyles('xs', DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE);\n addColStyles('sm', DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE);\n addColStyles('md', DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE);\n addColStyles('lg', DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE);\n\n addStyle('d-none', '', {\n root: {\n display: 'none'\n }\n } as any);\n addStyle('d-flex', '', {\n root: {\n display: 'flex'\n }\n } as any);\n\n const addDisplayStyles = (device: string, minWidth: string, maxWidth: string) => {\n addStyle(`d-${device}-none`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'none'\n }\n } as any);\n addStyle(`d-${device}-flex`, '', {\n \"@media\": `(min-width: ${minWidth}) and (max-width: ${maxWidth})`,\n root: {\n display: 'flex'\n }\n } as any);\n };\n addDisplayStyles('all', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n addDisplayStyles('xs', \n DEVICE_BREAK_POINTS.MIN_EXTRA_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_EXTRA_SMALL_DEVICE);\n addDisplayStyles('sm', \n DEVICE_BREAK_POINTS.MIN_SMALL_DEVICE,\n DEVICE_BREAK_POINTS.MAX_SMALL_DEVICE);\n addDisplayStyles('md', \n DEVICE_BREAK_POINTS.MIN_MEDIUM_DEVICE,\n DEVICE_BREAK_POINTS.MAX_MEDIUM_DEVICE);\n addDisplayStyles('lg', \n DEVICE_BREAK_POINTS.MIN_LARGE_DEVICE,\n DEVICE_BREAK_POINTS.MAX_LARGE_DEVICE);\n\n const addElevationClasses = () => {\n for(let i = 1; i <= 10; i++) {\n addStyle(`elevate${i}`, '', {\n root : {\n shadowColor: \"#000000\",\n shadowOffset: {\n width: i,\n height: i,\n },\n shadowOpacity: 0.27,\n shadowRadius: i,\n elevation: i,\n zIndex: 1\n }\n });\n }\n };\n addElevationClasses();\n addStyle('hidden', '', {\n root: {\n width: 0,\n height: 0,\n transform: [{ scale: 0 }]\n }\n });\n addStyle('bg-danger', '', { root: { backgroundColor: themeVariables.dangerColor }});\n addStyle('bg-info', '', { root: { backgroundColor: themeVariables.infoColor }});\n addStyle('bg-primary', '', { root: { backgroundColor: themeVariables.primaryColor }});\n addStyle('bg-success', '', { root: { backgroundColor: themeVariables.successColor }});\n addStyle('bg-warning', '', { root: { backgroundColor: themeVariables.warningColor }});\n\n addStyle('border-danger', '', { root: { borderColor: themeVariables.dangerColor }});\n addStyle('border-info', '', { root: { borderColor: themeVariables.infoColor }});\n addStyle('border-primary', '', { root: { borderColor: themeVariables.primaryColor }});\n addStyle('border-success', '', { root: { borderColor: themeVariables.successColor }});\n addStyle('border-warning', '', { root: { borderColor: themeVariables.warningColor }});\n\n addStyle('hide-context-menu', '', { text: { userSelect: 'none' }});\n});\n\n"],"mappings":";;;;AAAA,SAASA,SAAS,EAAEC,KAAK,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,OAAO,EAAEC,QAAQ,EAAEC,QAAQ,EAAcC,GAAG,EAAEC,OAAO,QAAQ,QAAQ;AAC3H,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,SAAS,QAAQ,WAAW;AAErC,SAASC,QAAQ,EAAEC,gBAAgB,QAAQ,sCAAsC;AACjF,OAAOC,aAAa,MAAM,+CAA+C;AACzE,OAAOC,QAAQ,IAAGC,MAAM,IAAIC,cAAc,QAAO,yCAAyC;AAC1F,OAAOC,cAAc,MAAM,kBAAkB;AAC7C,OAAOC,cAAc,MAAM,m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AAE,EAAE;IAAE+G,IAAI,EAAE;MAAE5C,UAAU,EAAE;IAAO;EAAC,CAAC,CAAC;AACtE,CAAC,CAAC"}
|
@@ -52,7 +52,11 @@ export default class ThemeVariables {
|
|
52
52
|
_defineProperty(this, "badgeColor", '#6c757d');
|
53
53
|
_defineProperty(this, "badgeContrastColor", '#ffffff');
|
54
54
|
_defineProperty(this, "baseFont", 'Roboto');
|
55
|
+
_defineProperty(this, "tabbarInactiveColor", '#d8d8d8');
|
55
56
|
_defineProperty(this, "maxModalHeight", Dimensions.get('window').height - 64 - (StatusBar.currentHeight || 0));
|
57
|
+
_defineProperty(this, "maxWidth", Dimensions.get("window").width);
|
58
|
+
//rippleColor
|
59
|
+
_defineProperty(this, "rippleColor", this.transparent);
|
56
60
|
// page
|
57
61
|
_defineProperty(this, "pageContentBgColor", this.defaultColorE);
|
58
62
|
// common widget color
|
@@ -62,6 +66,9 @@ export default class ThemeVariables {
|
|
62
66
|
_defineProperty(this, "widgetActiveHeaderTextColor", this.primaryContrastColor);
|
63
67
|
_defineProperty(this, "widgetBorderColor", this.defaultColorC);
|
64
68
|
_defineProperty(this, "widgetBgColor", this.defaultColorF);
|
69
|
+
//App Navbar
|
70
|
+
_defineProperty(this, "titleBadgeBackgroundColor", Color('#151420').fade(0.8).rgb().toString());
|
71
|
+
_defineProperty(this, "titleBadgeTextColor", '#151420');
|
65
72
|
// Navbar variables
|
66
73
|
_defineProperty(this, "navbarBackgroundColor", this.defaultColorF);
|
67
74
|
_defineProperty(this, "navbarBorderColor", this.widgetBorderColor);
|
@@ -99,8 +106,15 @@ export default class ThemeVariables {
|
|
99
106
|
_defineProperty(this, "spinnerIconColor", this.primaryColor);
|
100
107
|
//tabbar variables
|
101
108
|
_defineProperty(this, "tabbarBackgroundColor", this.primaryContrastColor);
|
102
|
-
_defineProperty(this, "tabbarTextColor",
|
103
|
-
_defineProperty(this, "tabbarIconColor",
|
109
|
+
_defineProperty(this, "tabbarTextColor", 'var(--tabbarInactiveColor)');
|
110
|
+
_defineProperty(this, "tabbarIconColor", 'var(--tabbarInactiveColor)');
|
111
|
+
_defineProperty(this, "tabShadowColor", this.defaultColor);
|
112
|
+
_defineProperty(this, "tabActiveBackgroundColor", this.primaryColor3);
|
113
|
+
_defineProperty(this, "tabActiveIconColor", this.primaryColor);
|
114
|
+
_defineProperty(this, "tabLabelTextColor", this.primaryColor);
|
115
|
+
_defineProperty(this, "centerHubItemColor", 'var(--primaryColor)');
|
116
|
+
_defineProperty(this, "centerHubIconColor", 'var(--defaultColorF)');
|
117
|
+
_defineProperty(this, "centerHubLabelColor", 'var(--defaultColorF)');
|
104
118
|
// tab variables
|
105
119
|
_defineProperty(this, "tabHeaderBgColor", this.widgetBgColor);
|
106
120
|
_defineProperty(this, "tabHeaderTextColor", this.defaultColorA);
|
@@ -179,6 +193,9 @@ export default class ThemeVariables {
|
|
179
193
|
_defineProperty(this, "inputFocusBorderColor", this.primaryColor);
|
180
194
|
_defineProperty(this, "inputInvalidBorderColor", this.dangerColor);
|
181
195
|
_defineProperty(this, "inputPlaceholderColor", this.defaultColorB);
|
196
|
+
//floating label
|
197
|
+
_defineProperty(this, "floatingLabelColor", 'var(--inputPlaceholderColor)');
|
198
|
+
_defineProperty(this, "activeFloatingLabelColor", 'var(--primaryColor)');
|
182
199
|
//slider variables
|
183
200
|
_defineProperty(this, "minimumTrackTintColor", this.primaryColor);
|
184
201
|
_defineProperty(this, "maximumTrackTintColor", this.widgetHeaderBgColor);
|
@@ -194,9 +211,16 @@ export default class ThemeVariables {
|
|
194
211
|
_defineProperty(this, "toggleOffBorderColor", this.defaultColorB);
|
195
212
|
_defineProperty(this, "toggleUnselectedTrackbgColor", this.defaultColorC);
|
196
213
|
// radioset, checkboxset variables
|
197
|
-
_defineProperty(this, "groupHeadingBgColor",
|
198
|
-
_defineProperty(this, "checkedColor",
|
199
|
-
_defineProperty(this, "checkedDisabledColor",
|
214
|
+
_defineProperty(this, "groupHeadingBgColor", 'var(--transparent)');
|
215
|
+
_defineProperty(this, "checkedColor", 'var(--primaryColor)');
|
216
|
+
_defineProperty(this, "checkedDisabledColor", 'var(--defaultColorA)');
|
217
|
+
_defineProperty(this, "checkedEnabledColor", 'var(--defaultColorF)');
|
218
|
+
_defineProperty(this, "checkboxBorderColor", 'var(--defaultColor9)');
|
219
|
+
_defineProperty(this, "checkedBgColor", 'var(--primaryColor)');
|
220
|
+
_defineProperty(this, "uncheckedBgColor", 'var(--transparent)');
|
221
|
+
_defineProperty(this, "checkedIconColor", 'var(--defaultColorF)');
|
222
|
+
_defineProperty(this, "checkedBorderColor", 'var(--primaryColor)');
|
223
|
+
_defineProperty(this, "uncheckedBorderColor", 'var(--defaultColor9)');
|
200
224
|
//form
|
201
225
|
_defineProperty(this, "formBorderColor", this.widgetBorderColor);
|
202
226
|
_defineProperty(this, "formTitleColor", this.defaultTextColor);
|
@@ -353,7 +377,7 @@ export default class ThemeVariables {
|
|
353
377
|
_defineProperty(this, "chipActiveTextColor", this.defaultColorF);
|
354
378
|
_defineProperty(this, "chipDefaultTextColor", this.defaultColorA);
|
355
379
|
_defineProperty(this, "chipborderColor", this.defaultColorD);
|
356
|
-
_defineProperty(this, "chipContainerColor", this.
|
380
|
+
_defineProperty(this, "chipContainerColor", this.defaultColorF);
|
357
381
|
_defineProperty(this, "chipIconColor", this.primaryColor);
|
358
382
|
_defineProperty(this, "chipSelectedOutlineColor", this.defaultColor6);
|
359
383
|
_defineProperty(this, "chipSelectedContainerColor", this.defaultColor7);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["Color","Dimensions","StatusBar","ThemeVariables","constructor","_defineProperty","primaryColor","lighten","rgb","toString","defaultColorF","defaultColor","defaultColorA","get","height","currentHeight","defaultColorE","defaultColor3","primaryContrastColor","defaultColorC","widgetBorderColor","navitemActiveTextColor","defaultTextColor","secondaryColor","successColor","infoColor","warningColor","dangerColor","lightColor","darkColor","widgetBgColor","widgetHeaderBgColor","widgetHeaderTextColor","transparent","tabContentBgColor","defaultColor8","dangerContrastColor","infoContrastColor","successContrastColor","warningContrastColor","muteColor","defaultColor6","badgeColor","badgeContrastColor","defaultColorD","defaultColorB","defaultColor4","defaultColor1","popoverBackgroundColor","listTitleColor","listSubTitleColor","widgetActiveHeaderBgColor","widgetActiveHeaderTextColor","fade","primaryColor1","primaryColor2","primaryColor3","defaultColor9","defaultColor2","defaultColor7","defaultColor5","networkToastTextColor","_class"],"sources":["theme.variables.ts"],"sourcesContent":["import Color, { rgb } from \"color\";\nimport { Dimensions, StatusBar } from \"react-native\";\n\nexport default class ThemeVariables {\n \n primaryColor = '#4263eb';\n primaryColor1 = Color(this.primaryColor).lighten(0.2).rgb().toString();\n primaryColor2 = Color(this.primaryColor).lighten(0.4).rgb().toString();\n primaryColor3 = Color(this.primaryColor).lighten(0.6).rgb().toString();\n primaryContrastColor = '#ffffff';\n secondaryColor = '#6c757d';\n secondaryContrastColor = '#ffffff';\n successColor = '#28a745';\n successContrastColor = '#ffffff';\n infoColor = '#17a2b8';\n infoContrastColor = '#ffffff';\n warningColor = '#ffc107';\n warningContrastColor = '#ffffff';\n dangerColor = '#dc3545';\n dangerContrastColor = '#ffffff';\n defaultColor = '#000000';\n defaultColor1 = '#111111';\n defaultColor2 = '#222222';\n defaultColor3 = '#333333';\n defaultColor4 = '#444444';\n defaultColor5 = '#555555';\n defaultColor6 = '#666666';\n defaultColor7 = '#777777';\n defaultColor8 = '#888888';\n defaultColor9 = '#999999';\n defaultColorA = '#aaaaaa';\n defaultColorB = '#bbbbbb';\n defaultColorC = '#cccccc';\n defaultColorD = '#dddddd';\n defaultColorE = '#eeeeee';\n defaultColorF = '#ffffff';\n defaultBgColor = this.defaultColorF;\n defaultTextColor = '#151420';\n lightColor = this.defaultColorF;\n darkColor = this.defaultColor;\n muteColor = this.defaultColorA;\n heading1FontSize = 36;\n heading2FontSize = 30;\n heading3FontSize = 24;\n heading4FontSize = 18;\n heading5FontSize = 14;\n heading6FontSize = 12;\n transparent = 'transparent';\n badgeColor = '#6c757d';\n badgeContrastColor = '#ffffff';\n baseFont = 'Roboto';\n maxModalHeight = Dimensions.get('window').height - 64 - (StatusBar.currentHeight || 0);\n\n // page\n pageContentBgColor = this.defaultColorE;\n\n // common widget color\n widgetHeaderBgColor = this.defaultColorF;\n widgetHeaderTextColor = this.defaultColor3;\n widgetActiveHeaderBgColor = this.primaryColor;\n widgetActiveHeaderTextColor = this.primaryContrastColor;\n widgetBorderColor = this.defaultColorC;\n widgetBgColor = this.defaultColorF;\n\n // Navbar variables\n navbarBackgroundColor = this.defaultColorF;\n navbarBorderColor = this.widgetBorderColor;\n navbarTextColor = '#151420';\n navbarIconSize = 32;\n navbarFontSize = 24;\n navbarImageSize = 32;\n navbarCaretColor = this.primaryColor;\n navitemChildBackgroundColor = this.primaryContrastColor;\n navitemChildTextColor = this.primaryColor;\n navitemChildIconColor = this.primaryColor;\n navitemActiveBackgroundColor = this.primaryColor;\n navitemActiveTextColor = this.primaryContrastColor;\n navitemActiveIconColor = this.navitemActiveTextColor;\n\n //Anchor variables\n linkDefaultColor = this.defaultTextColor;\n linkPrimaryColor = this.primaryColor;\n linkSecondaryColor = this.secondaryColor;\n linkSuccessColor = this.successColor;\n linkInfoColor = this.infoColor;\n linkWarningColor = this.warningColor;\n linkDangerColor = this.dangerColor;\n linkLightColor = this.lightColor;\n linkDarkColor = this.darkColor;\n anchorTextPadding = 2;\n\n //Grid Layout variables\n layoutGridBgColor = this.widgetBgColor;\n layoutGridBorderColor = this.widgetBorderColor;\n layoutGridStripColor1 = Color(this.primaryColor).lighten(0.9).rgb().toString();\n layoutGridHeaderBgColor = this.widgetHeaderBgColor;\n layoutGridHeaderTextColor = this.widgetHeaderTextColor;\n layoutGridStripColor2 = this.transparent;\n gridColumnBorderColor = this.widgetBorderColor;\n\n //Spinner Variables\n spinnerIconColor = this.primaryColor;\n\n //tabbar variables\n tabbarBackgroundColor = this.primaryContrastColor;\n tabbarTextColor = this.primaryColor;\n tabbarIconColor = this.primaryColor;\n\n // tab variables\n tabHeaderBgColor = this.widgetBgColor;\n tabHeaderTextColor = this.defaultColorA;\n tabHeaderIconColor = this.defaultColorA;\n tabActiveHeaderBgColor = this.defaultColorF;\n tabActiveHeaderTextColor = this.primaryColor;\n tabActiveIndicatorBgColor = this.primaryColor;\n tabActiveHeaderIconColor = this.primaryColor;\n tabBorderColor = this.widgetBorderColor;\n tabContentBgColor = this.widgetBgColor;\n tabArrowIndicatorBgColor = this.tabContentBgColor;\n tabArrowIndicatorDotColor = this.primaryColor;\n\n //label Variables\n labelHeaderColor = '#151420';\n labelDefaultColor = this.defaultColor8;\n labelDefaultContrastColor = this.defaultColorF;\n labelDangerColor = this.dangerColor;\n labelDangerContrastColor = this.dangerContrastColor;\n labelInfoColor = this.infoColor;\n labelInfoContrastColor = this.infoContrastColor;\n labelPrimaryColor = this.primaryColor;\n labelPrimaryContrastColor = this.primaryContrastColor;\n labelSuccessColor = this.successColor;\n labelSuccessContrastColor = this.successContrastColor;\n labelWarningColor = this.warningColor;\n labelWarningContrastColor = this.warningContrastColor;\n labelTextSuccessColor = this.successColor;\n labelTextDangerColor = this.dangerColor;\n labelTextInfoColor = this.infoColor;\n labelTextMutedColor = this.muteColor;\n labelTextPrimaryColor = this.primaryColor;\n labelTextWarningColor = this.warningColor;\n labelAsteriskColor = this.dangerColor;\n\n //List\n listHeaderBgColor = this.widgetHeaderBgColor;\n listTitleColor = this.widgetHeaderTextColor;\n listSubTitleColor = this.defaultColor6;\n listDividerColor = this.widgetBorderColor;\n itemBgColor = this.defaultColorF;\n selectedItemBorderColor = this.primaryColor;\n\n //button Variables\n buttonBorderColor = this.widgetBorderColor;\n buttonBadgeBackgroundColor = this.badgeColor;\n buttonBadgeTextColor = this.badgeContrastColor;\n buttonTextPadding = 2;\n buttonSuccessColor = this.successColor;\n buttonDefaultColor = this.defaultColorF;\n buttonPrimaryColor = this.primaryColor;\n buttonSecondaryColor = this.defaultColorF;\n buttonDangerColor = this.dangerColor;\n buttonWarningColor = this.warningColor;\n buttonInfoColor = this.infoColor;\n buttonSuccessTextColor = this.successContrastColor;\n buttonDefaultTextColor = this.defaultTextColor;\n buttonPrimaryTextColor = this.primaryContrastColor;\n buttonSecondaryTextColor = this.primaryColor;\n buttonDangerTextColor = this.dangerContrastColor;\n buttonWarningTextColor = this.warningContrastColor;\n buttonInfoTextColor = this.infoContrastColor;\n buttonLinkColor = this.transparent;\n buttonLinkTextColor = this.primaryColor;\n buttonDarkColor = this.darkColor;\n buttonDarkTextColor = this.lightColor;\n buttonLightColor = this.lightColor;\n buttonLightTextColor = this.darkColor;\n buttonGrpBorderColor = this.widgetBorderColor;\n buttonGrpBgColor = this.defaultColorF;\n\n //picture variables\n pictureThumbBgColor = this.defaultColorF;\n pictureThumbBorderColor = this.defaultColorD;\n\n //input variables\n inputTextColor = this.defaultTextColor;\n inputBorderColor = this.defaultColorD;\n inputBackgroundColor = this.defaultColorF;\n inputDisabledBgColor = '#f6f6f6';\n inputFocusBorderColor = this.primaryColor;\n inputInvalidBorderColor = this.dangerColor;\n inputPlaceholderColor = this.defaultColorB;\n\n //slider variables\n minimumTrackTintColor = this.primaryColor;\n maximumTrackTintColor = this.widgetHeaderBgColor;\n thumbTintColor = this.primaryColor;\n\n //rating color\n ratingIconColor = this.defaultColorA;\n ratingSelectedIconColor = '#eb8600';\n\n //toggle variables\n toggleOnColor = Color(this.primaryColor).lighten(0.4).rgb().toString();\n toggleOffColor = this.defaultColorB;\n toggleHandleColor = this.primaryColor;\n toggleHandleDisableColor = this.defaultColorA;\n toggleOffBorderColor = this.defaultColorB;\n toggleUnselectedTrackbgColor = this.defaultColorC;\n\n // radioset, checkboxset variables\n groupHeadingBgColor = this.transparent;\n checkedColor = this.primaryColor;\n checkedDisabledColor = this.defaultColorA;\n\n //form\n formBorderColor = this.widgetBorderColor;\n formTitleColor = this.defaultTextColor;\n formSubTitleColor = this.defaultColor6;\n\n //dialog\n dialogBackgroundColor = this.widgetBgColor;\n dialogBorderColor = this.widgetBorderColor;\n dialogCloseIconColor = this.defaultColorA;\n dialogLabelColor = this.defaultColor3;\n dialogIconColor = this.defaultColor4;\n dialogSupportingTextColor = this.defaultColor1;\n\n //alert dialog\n alertMessageColor = this.defaultColor8;\n\n badgeTextColor = this.defaultColorF;\n\n //popover\n popoverBackgroundColor = this.defaultColorF;\n popoverTitleBackgroundColor = this.defaultColorD;\n popoverTitleColor = this.defaultColor1;\n\n //menu\n menuIconColor = this.defaultColor6;\n menuTextColor = this.defaultColor6;\n menuBackgroundColor = this.popoverBackgroundColor;\n menuItemBorderColor = this.widgetBorderColor;\n menuItemIconColor = this.defaultColor6;\n menuItemTextColor = this.defaultColor6;\n\n //tile Variables\n tileDangerColor = this.dangerColor;\n tileInfoColor = this.infoColor;\n tilePrimaryColor = this.primaryColor;\n tileSuccessColor = this.successColor;\n tileWarningColor = this.warningColor;\n tileWellbgColor = this.defaultColorF;\n tileWellBorderColor = this.defaultColorE;\n tilePrimaryTextColor = this.primaryContrastColor;\n\n //switch\n switchBgColor = this.widgetBgColor;\n switchTextColor = this.defaultTextColor;\n switchActiveBgColor = this.primaryColor;\n switchActiveTextColor = this.primaryContrastColor;\n switchBorderColor = this.widgetBorderColor;\n\n //message\n messageSuccessColor = this.successColor;\n messageErrorColor = this.dangerColor;\n messageWarningColor = this.warningColor;\n messageInfoColor = this.infoColor;\n messageLoadingColor = this.infoColor;\n\n //panel\n panelBgColor = this.widgetBgColor;\n panelHeaderBgColor = this.widgetHeaderBgColor;\n panelHeaderTextColor = this.widgetHeaderTextColor;\n panelFooterColor = this.defaultColorD;\n panelBorderColor = this.widgetBorderColor;\n panelDangerColor = this.dangerColor;\n panelDefaultColor = this.defaultColor;\n panelInfoColor = this.infoColor;\n panelPrimaryColor = this.primaryColor;\n panelSuccessColor = this.successColor;\n panelWarningColor = this.warningColor;\n panelTextColor = this.defaultColorF;\n\n //card\n cardHeaderBgColor = this.defaultColorD;\n cardBgColor = this.widgetBgColor;\n cardTitleColor = this.listTitleColor;\n cardShadowColor = this.defaultColor;\n cardSubTitleColor = this.listSubTitleColor;\n cardBorderColor = this.defaultColorD;\n cardContentBgColor = this.defaultColorF;\n cardFooterBgColor = this.defaultColorF;\n cardFooterBorderColor = this.defaultColorD;\n\n //progress bar\n progressBarDefaultColor = this.primaryColor;\n progressBarTrackColor = this.defaultColorD;\n progressBarSuccessColor = this.successColor;\n progressBarDangerColor = this.dangerColor;\n progressBarInfoColor = this.infoColor;\n progressBarWarningColor = this.warningColor;\n\n //progress circle\n progressCircleDefaultColor = this.primaryColor;\n progressCircleSuccessColor = this.successColor;\n progressCircleDangerColor = this.dangerColor;\n progressCircleInfoColor = this.infoColor;\n progressCircleWarningColor = this.warningColor;\n\n //container\n containerOutlineColor = this.defaultColorC;\n\n //accordion\n accordionBgColor = this.widgetBgColor;\n accordionTitleColor = this.widgetHeaderTextColor;\n accordionHeaderBgColor = this.defaultColorF;\n accordionIconColor= this.defaultColorB;\n accordionActiveIconColor= this.defaultColorF;\n accordionActiveHeaderBgColor = this.widgetActiveHeaderBgColor;\n accordionActiveHeaderTextColor = this.widgetActiveHeaderTextColor;\n accordionBorderColor = this.defaultColorE;\n accordionPaneBgColor = this.defaultColorF;\n\n //carousel\n carouselPrevBtnColor=this.defaultColorF;\n carouselPrevBgColor=Color(this.defaultColorF).fade(0.6).rgb().toString();\n carouselNextBtnColor=this.defaultColorF;\n carouselNextBgColor=Color(this.defaultColorF).fade(0.6).rgb().toString();\n carouselDotWrapperBgColor=this.transparent;\n carouselDotColor=this.defaultColorF;\n carouselActiveDotColor=this.defaultColorF;\n\n //calendar\n calendarBgColor = this.defaultColorF;\n calendarHeaderBgColor = this.defaultColorF;\n calendarHeaderTextColor = this.defaultTextColor;\n calendarWeekDayTextColor = this.defaultColorA;\n calendarDateColor = this.defaultColor;\n calendarNotCurrentMonthDateColor = this.defaultColor6;\n calendarHeaderColor = this.defaultColorF;\n calendarPrevYearIconColor = this.defaultColorA;\n calendarNextYearIconColor = this.defaultColorA;\n calendarPrevMonthIconColor = this.defaultColorA;\n calendarNextMonthIconColor = this.defaultColorA;\n calendarDayBgColor = this.defaultColor;\n calendarSelectedDayBgColor = this.primaryColor;\n calendarSelectedDayTextColor = this.defaultColorF;\n calendarTodayBgColor = this.defaultColorE;\n calendarEventDay1Color = this.primaryColor1;\n calendarEventDay2Color = this.primaryColor2;\n calendarEventDay3Color = this.primaryColor3;\n\n //date picker\n datepickerBgColor = this.defaultColorF;\n\n //wizard\n wizardBackgroundColor = this.widgetBgColor;\n wizardStepActiveColor = this.primaryColor;\n wizardStepDoneColor = this.successColor;\n wizardStepDoneTextColor = this.defaultColorF;\n wizardStepIconColor = this.defaultColor9;\n wizardStepColor = this.defaultColor9;\n wizardActiveStepColor = this.defaultColorF;\n wizardDoneStepColor = this.defaultColorF;\n wizardStepTitleColor = this.defaultColorA;\n wizardNextBtnColor= this.primaryColor;\n wizardDoneBtnColor = this.successColor;\n wizardStepConnectorColor = this.defaultColorE;\n wizardStepCounerColor = this.defaultColor9;\n wizardBorderColor = this.widgetBorderColor;\n\n //Search\n searchBorderColor = this.defaultColorD;\n searchButtonColor = this.primaryColor;\n searchButtonTextColor = this.primaryContrastColor;\n searchItemBorderColor = this.defaultColorD;\n searchItemTextColor = this.defaultColor6;\n searchDropdownBackgroundColor = this.defaultColorF;\n searchDataCompleteItemBgColor = this.defaultColorE;\n searchBgContainerColor = this.defaultColorD;\n //Select\n selectBorderColor = this.defaultColorD;\n selecttemBorderColor = this.defaultColorD;\n selectItemTextColor = this.defaultColor6;\n selectDropdownBackgroundColor = this.defaultColorF;\n\n //Chip\n chipActiveTextColor = this.defaultColorF;\n chipDefaultTextColor = this.defaultColorA;\n chipborderColor = this.defaultColorD;\n chipContainerColor = this.defaultColor2; \n chipIconColor = this.primaryColor;\n chipSelectedOutlineColor = this.defaultColor6;\n chipSelectedContainerColor = this.defaultColor7;\n //Login\n loginErrorMsgColor = this.dangerContrastColor;\n loginErrorMsgBgColor = this.dangerColor;\n loginErrorMsgBorderColor = this.dangerColor;\n\n //camera\n cameraBgColor = this.defaultColorF;\n cameraBorderColor = this.widgetBorderColor;\n cameraTextColor = this.defaultTextColor;\n\n //barcode-scanner\n barcodeScannerBgColor = this.defaultColorF;\n barcodeScannerBorderColor = this.widgetBorderColor;\n barcodeScannerTextColor = this.defaultTextColor;\n\n //fileupload\n fileuploadBgColor = this.defaultColorF;\n fileuploadBorderColor = this.widgetBorderColor;\n fileuploadTextColor = this.defaultTextColor;\n\n //charts\n chartLabelColor = this.defaultTextColor;\n chartGraphLinesColor = this.defaultColorC;\n chartLineColor = this.defaultColor8;\n chartLegendBorder = this.defaultColor7;\n chartAxisColor = this.defaultColor5;\n chartAxisPointColor = this.defaultColor9;\n chartTitleColor = this.widgetHeaderTextColor;\n chartSubTitleColor = this.defaultColor6;\n\n // Network Toast\n networkToastBgColor = this.defaultColor3;\n networkToastTextColor = this.defaultColorF;\n networkToastActionTextColor = this.primaryColor;\n networkToastActionSeparatorColor = this.networkToastTextColor;\n\n // Skeleton\n skeletonBgColor = this.defaultColorE;\n skeletonAnimatedBgColor = this.defaultColorE;\n skeletonGradientBgColor = this.defaultColorF;\n skeletonGradientShadowColor = this.defaultColorF;\n skeletonGradientForegroundColor = this.transparent;\n\n // Audio\n audioPlayerBgColor = this.defaultColorF;\n audioPlayerFgColor = this.defaultColor3;\n\n //Tool tip\n tooltipBgColor = Color(\"#fff\").fade(0.6).rgb().toString();\n tooltipBorderColor = '#404040';\n static INSTANCE = new ThemeVariables();\n}"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAe,OAAO;AAClC,SAASC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AAEpD,eAAe,MAAMC,cAAc,CAAC;EAAAC,YAAA;IAAAC,eAAA,uBAEjB,SAAS;IAAAA,eAAA,wBACRL,KAAK,CAAC,IAAI,CAACM,YAAY,CAAC,CAACC,OAAO,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAA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C,aAAa;IAEvC;IAAApC,eAAA,8BACsB,IAAI,CAACY,aAAa;IAAAZ,eAAA,gCAChB,IAAI,CAACK,aAAa;IAAAL,eAAA,sCACZ,IAAI,CAACC,YAAY;IAAAD,eAAA,2CACZ,IAAI,CAACwD,qBAAqB;IAE7D;IAAAxD,eAAA,0BACkB,IAAI,CAACW,aAAa;IAAAX,eAAA,kCACV,IAAI,CAACW,aAAa;IAAAX,eAAA,kCAClB,IAAI,CAACK,aAAa;IAAAL,eAAA,sCACd,IAAI,CAACK,aAAa;IAAAL,eAAA,0CACd,IAAI,CAAC4B,WAAW;IAElD;IAAA5B,eAAA,6BACqB,IAAI,CAACK,aAAa;IAAAL,eAAA,6BAClB,IAAI,CAACY,aAAa;IAEvC;IAAAZ,eAAA,yBACiBL,KAAK,CAAC,MAAM,CAAC,CAACqD,IAAI,CAAC,GAAG,CAAC,CAAC7C,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAAA,6BACpC,SAAS;EAAA;AAElC;AAACyD,MAAA,GA1boB3D,cAAc;AAAAE,eAAA,CAAdF,cAAc,cAybb,IAAIA,MAAc,CAAC,CAAC"}
|
1
|
+
{"version":3,"names":["Color","Dimensions","StatusBar","ThemeVariables","constructor","_defineProperty","primaryColor","lighten","rgb","toString","defaultColorF","defaultColor","defaultColorA","get","height","currentHeight","width","transparent","defaultColorE","defaultColor3","primaryContrastColor","defaultColorC","fade","widgetBorderColor","navitemActiveTextColor","defaultTextColor","secondaryColor","successColor","infoColor","warningColor","dangerColor","lightColor","darkColor","widgetBgColor","widgetHeaderBgColor","widgetHeaderTextColor","primaryColor3","tabContentBgColor","defaultColor8","dangerContrastColor","infoContrastColor","successContrastColor","warningContrastColor","muteColor","defaultColor6","badgeColor","badgeContrastColor","defaultColorD","defaultColorB","defaultColor4","defaultColor1","popoverBackgroundColor","listTitleColor","listSubTitleColor","widgetActiveHeaderBgColor","widgetActiveHeaderTextColor","primaryColor1","primaryColor2","defaultColor9","defaultColor7","defaultColor5","networkToastTextColor","_class"],"sources":["theme.variables.ts"],"sourcesContent":["import Color, { rgb } from \"color\";\nimport { Dimensions, StatusBar } from \"react-native\";\n\nexport default class ThemeVariables {\n \n primaryColor = '#4263eb';\n primaryColor1 = Color(this.primaryColor).lighten(0.2).rgb().toString();\n primaryColor2 = Color(this.primaryColor).lighten(0.4).rgb().toString();\n primaryColor3 = Color(this.primaryColor).lighten(0.6).rgb().toString();\n primaryContrastColor = '#ffffff';\n secondaryColor = '#6c757d';\n secondaryContrastColor = '#ffffff';\n successColor = '#28a745';\n successContrastColor = '#ffffff';\n infoColor = '#17a2b8';\n infoContrastColor = '#ffffff';\n warningColor = '#ffc107';\n warningContrastColor = '#ffffff';\n dangerColor = '#dc3545';\n dangerContrastColor = '#ffffff';\n defaultColor = '#000000';\n defaultColor1 = '#111111';\n defaultColor2 = '#222222';\n defaultColor3 = '#333333';\n defaultColor4 = '#444444';\n defaultColor5 = '#555555';\n defaultColor6 = '#666666';\n defaultColor7 = '#777777';\n defaultColor8 = '#888888';\n defaultColor9 = '#999999';\n defaultColorA = '#aaaaaa';\n defaultColorB = '#bbbbbb';\n defaultColorC = '#cccccc';\n defaultColorD = '#dddddd';\n defaultColorE = '#eeeeee';\n defaultColorF = '#ffffff';\n defaultBgColor = this.defaultColorF;\n defaultTextColor = '#151420';\n lightColor = this.defaultColorF;\n darkColor = this.defaultColor;\n muteColor = this.defaultColorA;\n heading1FontSize = 36;\n heading2FontSize = 30;\n heading3FontSize = 24;\n heading4FontSize = 18;\n heading5FontSize = 14;\n heading6FontSize = 12;\n transparent = 'transparent';\n badgeColor = '#6c757d';\n badgeContrastColor = '#ffffff';\n baseFont = 'Roboto';\n tabbarInactiveColor = '#d8d8d8';\n maxModalHeight = Dimensions.get('window').height - 64 - (StatusBar.currentHeight || 0);\n maxWidth = Dimensions.get(\"window\").width; \n\n //rippleColor\n rippleColor = this.transparent\n\n // page\n pageContentBgColor = this.defaultColorE;\n\n // common widget color\n widgetHeaderBgColor = this.defaultColorF;\n widgetHeaderTextColor = this.defaultColor3;\n widgetActiveHeaderBgColor = this.primaryColor;\n widgetActiveHeaderTextColor = this.primaryContrastColor;\n widgetBorderColor = this.defaultColorC;\n widgetBgColor = this.defaultColorF;\n\n //App Navbar\n titleBadgeBackgroundColor = Color('#151420').fade(0.8).rgb().toString();\n titleBadgeTextColor = '#151420';\n\n // Navbar variables\n navbarBackgroundColor = this.defaultColorF;\n navbarBorderColor = this.widgetBorderColor;\n navbarTextColor = '#151420';\n navbarIconSize = 32;\n navbarFontSize = 24;\n navbarImageSize = 32;\n navbarCaretColor = this.primaryColor;\n navitemChildBackgroundColor = this.primaryContrastColor;\n navitemChildTextColor = this.primaryColor;\n navitemChildIconColor = this.primaryColor;\n navitemActiveBackgroundColor = this.primaryColor;\n navitemActiveTextColor = this.primaryContrastColor;\n navitemActiveIconColor = this.navitemActiveTextColor;\n\n //Anchor variables\n linkDefaultColor = this.defaultTextColor;\n linkPrimaryColor = this.primaryColor;\n linkSecondaryColor = this.secondaryColor;\n linkSuccessColor = this.successColor;\n linkInfoColor = this.infoColor;\n linkWarningColor = this.warningColor;\n linkDangerColor = this.dangerColor;\n linkLightColor = this.lightColor;\n linkDarkColor = this.darkColor;\n anchorTextPadding = 2;\n\n //Grid Layout variables\n layoutGridBgColor = this.widgetBgColor;\n layoutGridBorderColor = this.widgetBorderColor;\n layoutGridStripColor1 = Color(this.primaryColor).lighten(0.9).rgb().toString();\n layoutGridHeaderBgColor = this.widgetHeaderBgColor;\n layoutGridHeaderTextColor = this.widgetHeaderTextColor;\n layoutGridStripColor2 = this.transparent;\n gridColumnBorderColor = this.widgetBorderColor;\n\n //Spinner Variables\n spinnerIconColor = this.primaryColor;\n\n //tabbar variables\n tabbarBackgroundColor = this.primaryContrastColor;\n tabbarTextColor = 'var(--tabbarInactiveColor)';\n tabbarIconColor = 'var(--tabbarInactiveColor)';\n tabShadowColor = this.defaultColor;\n tabActiveBackgroundColor = this.primaryColor3;\n tabActiveIconColor = this.primaryColor;\n tabLabelTextColor = this.primaryColor;\n\n centerHubItemColor = 'var(--primaryColor)';\n centerHubIconColor = 'var(--defaultColorF)';\n centerHubLabelColor = 'var(--defaultColorF)';\n\n // tab variables\n tabHeaderBgColor = this.widgetBgColor;\n tabHeaderTextColor = this.defaultColorA;\n tabHeaderIconColor = this.defaultColorA;\n tabActiveHeaderBgColor = this.defaultColorF;\n tabActiveHeaderTextColor = this.primaryColor;\n tabActiveIndicatorBgColor = this.primaryColor;\n tabActiveHeaderIconColor = this.primaryColor;\n tabBorderColor = this.widgetBorderColor;\n tabContentBgColor = this.widgetBgColor;\n tabArrowIndicatorBgColor = this.tabContentBgColor;\n tabArrowIndicatorDotColor = this.primaryColor;\n\n //label Variables\n labelHeaderColor = '#151420';\n labelDefaultColor = this.defaultColor8;\n labelDefaultContrastColor = this.defaultColorF;\n labelDangerColor = this.dangerColor;\n labelDangerContrastColor = this.dangerContrastColor;\n labelInfoColor = this.infoColor;\n labelInfoContrastColor = this.infoContrastColor;\n labelPrimaryColor = this.primaryColor;\n labelPrimaryContrastColor = this.primaryContrastColor;\n labelSuccessColor = this.successColor;\n labelSuccessContrastColor = this.successContrastColor;\n labelWarningColor = this.warningColor;\n labelWarningContrastColor = this.warningContrastColor;\n labelTextSuccessColor = this.successColor;\n labelTextDangerColor = this.dangerColor;\n labelTextInfoColor = this.infoColor;\n labelTextMutedColor = this.muteColor;\n labelTextPrimaryColor = this.primaryColor;\n labelTextWarningColor = this.warningColor;\n labelAsteriskColor = this.dangerColor;\n\n //List\n listHeaderBgColor = this.widgetHeaderBgColor;\n listTitleColor = this.widgetHeaderTextColor;\n listSubTitleColor = this.defaultColor6;\n listDividerColor = this.widgetBorderColor;\n itemBgColor = this.defaultColorF;\n selectedItemBorderColor = this.primaryColor;\n\n //button Variables\n buttonBorderColor = this.widgetBorderColor;\n buttonBadgeBackgroundColor = this.badgeColor;\n buttonBadgeTextColor = this.badgeContrastColor;\n buttonTextPadding = 2;\n buttonSuccessColor = this.successColor;\n buttonDefaultColor = this.defaultColorF;\n buttonPrimaryColor = this.primaryColor;\n buttonSecondaryColor = this.defaultColorF;\n buttonDangerColor = this.dangerColor;\n buttonWarningColor = this.warningColor;\n buttonInfoColor = this.infoColor;\n buttonSuccessTextColor = this.successContrastColor;\n buttonDefaultTextColor = this.defaultTextColor;\n buttonPrimaryTextColor = this.primaryContrastColor;\n buttonSecondaryTextColor = this.primaryColor;\n buttonDangerTextColor = this.dangerContrastColor;\n buttonWarningTextColor = this.warningContrastColor;\n buttonInfoTextColor = this.infoContrastColor;\n buttonLinkColor = this.transparent;\n buttonLinkTextColor = this.primaryColor;\n buttonDarkColor = this.darkColor;\n buttonDarkTextColor = this.lightColor;\n buttonLightColor = this.lightColor;\n buttonLightTextColor = this.darkColor;\n buttonGrpBorderColor = this.widgetBorderColor;\n buttonGrpBgColor = this.defaultColorF;\n\n //picture variables\n pictureThumbBgColor = this.defaultColorF;\n pictureThumbBorderColor = this.defaultColorD;\n\n //input variables\n inputTextColor = this.defaultTextColor;\n inputBorderColor = this.defaultColorD;\n inputBackgroundColor = this.defaultColorF;\n inputDisabledBgColor = '#f6f6f6';\n inputFocusBorderColor = this.primaryColor;\n inputInvalidBorderColor = this.dangerColor;\n inputPlaceholderColor = this.defaultColorB;\n\n //floating label\n floatingLabelColor = 'var(--inputPlaceholderColor)';\n activeFloatingLabelColor = 'var(--primaryColor)';\n\n //slider variables\n minimumTrackTintColor = this.primaryColor;\n maximumTrackTintColor = this.widgetHeaderBgColor;\n thumbTintColor = this.primaryColor;\n\n //rating color\n ratingIconColor = this.defaultColorA;\n ratingSelectedIconColor = '#eb8600';\n\n //toggle variables\n toggleOnColor = Color(this.primaryColor).lighten(0.4).rgb().toString();\n toggleOffColor = this.defaultColorB;\n toggleHandleColor = this.primaryColor;\n toggleHandleDisableColor = this.defaultColorA;\n toggleOffBorderColor = this.defaultColorB;\n toggleUnselectedTrackbgColor = this.defaultColorC;\n\n // radioset, checkboxset variables\n groupHeadingBgColor = 'var(--transparent)';\n checkedColor = 'var(--primaryColor)';\n checkedDisabledColor = 'var(--defaultColorA)';\n checkedEnabledColor = 'var(--defaultColorF)';\n checkboxBorderColor = 'var(--defaultColor9)';\n checkedBgColor = 'var(--primaryColor)';\n uncheckedBgColor = 'var(--transparent)';\n checkedIconColor = 'var(--defaultColorF)';\n checkedBorderColor = 'var(--primaryColor)';\n uncheckedBorderColor = 'var(--defaultColor9)';\n \n //form\n formBorderColor = this.widgetBorderColor;\n formTitleColor = this.defaultTextColor;\n formSubTitleColor = this.defaultColor6;\n\n //dialog\n dialogBackgroundColor = this.widgetBgColor;\n dialogBorderColor = this.widgetBorderColor;\n dialogCloseIconColor = this.defaultColorA;\n dialogLabelColor = this.defaultColor3;\n dialogIconColor = this.defaultColor4;\n dialogSupportingTextColor = this.defaultColor1;\n\n //alert dialog\n alertMessageColor = this.defaultColor8;\n\n badgeTextColor = this.defaultColorF;\n\n //popover\n popoverBackgroundColor = this.defaultColorF;\n popoverTitleBackgroundColor = this.defaultColorD;\n popoverTitleColor = this.defaultColor1;\n\n //menu\n menuIconColor = this.defaultColor6;\n menuTextColor = this.defaultColor6;\n menuBackgroundColor = this.popoverBackgroundColor;\n menuItemBorderColor = this.widgetBorderColor;\n menuItemIconColor = this.defaultColor6;\n menuItemTextColor = this.defaultColor6;\n\n //tile Variables\n tileDangerColor = this.dangerColor;\n tileInfoColor = this.infoColor;\n tilePrimaryColor = this.primaryColor;\n tileSuccessColor = this.successColor;\n tileWarningColor = this.warningColor;\n tileWellbgColor = this.defaultColorF;\n tileWellBorderColor = this.defaultColorE;\n tilePrimaryTextColor = this.primaryContrastColor;\n\n //switch\n switchBgColor = this.widgetBgColor;\n switchTextColor = this.defaultTextColor;\n switchActiveBgColor = this.primaryColor;\n switchActiveTextColor = this.primaryContrastColor;\n switchBorderColor = this.widgetBorderColor;\n\n //message\n messageSuccessColor = this.successColor;\n messageErrorColor = this.dangerColor;\n messageWarningColor = this.warningColor;\n messageInfoColor = this.infoColor;\n messageLoadingColor = this.infoColor;\n\n //panel\n panelBgColor = this.widgetBgColor;\n panelHeaderBgColor = this.widgetHeaderBgColor;\n panelHeaderTextColor = this.widgetHeaderTextColor;\n panelFooterColor = this.defaultColorD;\n panelBorderColor = this.widgetBorderColor;\n panelDangerColor = this.dangerColor;\n panelDefaultColor = this.defaultColor;\n panelInfoColor = this.infoColor;\n panelPrimaryColor = this.primaryColor;\n panelSuccessColor = this.successColor;\n panelWarningColor = this.warningColor;\n panelTextColor = this.defaultColorF;\n\n //card\n cardHeaderBgColor = this.defaultColorD;\n cardBgColor = this.widgetBgColor;\n cardTitleColor = this.listTitleColor;\n cardShadowColor = this.defaultColor;\n cardSubTitleColor = this.listSubTitleColor;\n cardBorderColor = this.defaultColorD;\n cardContentBgColor = this.defaultColorF;\n cardFooterBgColor = this.defaultColorF;\n cardFooterBorderColor = this.defaultColorD;\n\n //progress bar\n progressBarDefaultColor = this.primaryColor;\n progressBarTrackColor = this.defaultColorD;\n progressBarSuccessColor = this.successColor;\n progressBarDangerColor = this.dangerColor;\n progressBarInfoColor = this.infoColor;\n progressBarWarningColor = this.warningColor;\n\n //progress circle\n progressCircleDefaultColor = this.primaryColor;\n progressCircleSuccessColor = this.successColor;\n progressCircleDangerColor = this.dangerColor;\n progressCircleInfoColor = this.infoColor;\n progressCircleWarningColor = this.warningColor;\n\n //container\n containerOutlineColor = this.defaultColorC;\n\n //accordion\n accordionBgColor = this.widgetBgColor;\n accordionTitleColor = this.widgetHeaderTextColor;\n accordionHeaderBgColor = this.defaultColorF;\n accordionIconColor= this.defaultColorB;\n accordionActiveIconColor= this.defaultColorF;\n accordionActiveHeaderBgColor = this.widgetActiveHeaderBgColor;\n accordionActiveHeaderTextColor = this.widgetActiveHeaderTextColor;\n accordionBorderColor = this.defaultColorE;\n accordionPaneBgColor = this.defaultColorF;\n\n //carousel\n carouselPrevBtnColor=this.defaultColorF;\n carouselPrevBgColor=Color(this.defaultColorF).fade(0.6).rgb().toString();\n carouselNextBtnColor=this.defaultColorF;\n carouselNextBgColor=Color(this.defaultColorF).fade(0.6).rgb().toString();\n carouselDotWrapperBgColor=this.transparent;\n carouselDotColor=this.defaultColorF;\n carouselActiveDotColor=this.defaultColorF;\n\n //calendar\n calendarBgColor = this.defaultColorF;\n calendarHeaderBgColor = this.defaultColorF;\n calendarHeaderTextColor = this.defaultTextColor;\n calendarWeekDayTextColor = this.defaultColorA;\n calendarDateColor = this.defaultColor;\n calendarNotCurrentMonthDateColor = this.defaultColor6;\n calendarHeaderColor = this.defaultColorF;\n calendarPrevYearIconColor = this.defaultColorA;\n calendarNextYearIconColor = this.defaultColorA;\n calendarPrevMonthIconColor = this.defaultColorA;\n calendarNextMonthIconColor = this.defaultColorA;\n calendarDayBgColor = this.defaultColor;\n calendarSelectedDayBgColor = this.primaryColor;\n calendarSelectedDayTextColor = this.defaultColorF;\n calendarTodayBgColor = this.defaultColorE;\n calendarEventDay1Color = this.primaryColor1;\n calendarEventDay2Color = this.primaryColor2;\n calendarEventDay3Color = this.primaryColor3;\n\n //date picker\n datepickerBgColor = this.defaultColorF;\n\n //wizard\n wizardBackgroundColor = this.widgetBgColor;\n wizardStepActiveColor = this.primaryColor;\n wizardStepDoneColor = this.successColor;\n wizardStepDoneTextColor = this.defaultColorF;\n wizardStepIconColor = this.defaultColor9;\n wizardStepColor = this.defaultColor9;\n wizardActiveStepColor = this.defaultColorF;\n wizardDoneStepColor = this.defaultColorF;\n wizardStepTitleColor = this.defaultColorA;\n wizardNextBtnColor= this.primaryColor;\n wizardDoneBtnColor = this.successColor;\n wizardStepConnectorColor = this.defaultColorE;\n wizardStepCounerColor = this.defaultColor9;\n wizardBorderColor = this.widgetBorderColor;\n\n //Search\n searchBorderColor = this.defaultColorD;\n searchButtonColor = this.primaryColor;\n searchButtonTextColor = this.primaryContrastColor;\n searchItemBorderColor = this.defaultColorD;\n searchItemTextColor = this.defaultColor6;\n searchDropdownBackgroundColor = this.defaultColorF;\n searchDataCompleteItemBgColor = this.defaultColorE;\n searchBgContainerColor = this.defaultColorD;\n //Select\n selectBorderColor = this.defaultColorD;\n selecttemBorderColor = this.defaultColorD;\n selectItemTextColor = this.defaultColor6;\n selectDropdownBackgroundColor = this.defaultColorF;\n\n //Chip\n chipActiveTextColor = this.defaultColorF;\n chipDefaultTextColor = this.defaultColorA;\n chipborderColor = this.defaultColorD;\n chipContainerColor = this.defaultColorF; \n chipIconColor = this.primaryColor;\n chipSelectedOutlineColor = this.defaultColor6;\n chipSelectedContainerColor = this.defaultColor7;\n //Login\n loginErrorMsgColor = this.dangerContrastColor;\n loginErrorMsgBgColor = this.dangerColor;\n loginErrorMsgBorderColor = this.dangerColor;\n\n //camera\n cameraBgColor = this.defaultColorF;\n cameraBorderColor = this.widgetBorderColor;\n cameraTextColor = this.defaultTextColor;\n\n //barcode-scanner\n barcodeScannerBgColor = this.defaultColorF;\n barcodeScannerBorderColor = this.widgetBorderColor;\n barcodeScannerTextColor = this.defaultTextColor;\n\n //fileupload\n fileuploadBgColor = this.defaultColorF;\n fileuploadBorderColor = this.widgetBorderColor;\n fileuploadTextColor = this.defaultTextColor;\n\n //charts\n chartLabelColor = this.defaultTextColor;\n chartGraphLinesColor = this.defaultColorC;\n chartLineColor = this.defaultColor8;\n chartLegendBorder = this.defaultColor7;\n chartAxisColor = this.defaultColor5;\n chartAxisPointColor = this.defaultColor9;\n chartTitleColor = this.widgetHeaderTextColor;\n chartSubTitleColor = this.defaultColor6;\n\n // Network Toast\n networkToastBgColor = this.defaultColor3;\n networkToastTextColor = this.defaultColorF;\n networkToastActionTextColor = this.primaryColor;\n networkToastActionSeparatorColor = this.networkToastTextColor;\n\n // Skeleton\n skeletonBgColor = this.defaultColorE;\n skeletonAnimatedBgColor = this.defaultColorE;\n skeletonGradientBgColor = this.defaultColorF;\n skeletonGradientShadowColor = this.defaultColorF;\n skeletonGradientForegroundColor = this.transparent;\n\n // Audio\n audioPlayerBgColor = this.defaultColorF;\n audioPlayerFgColor = this.defaultColor3;\n\n //Tool tip\n tooltipBgColor = Color(\"#fff\").fade(0.6).rgb().toString();\n tooltipBorderColor = '#404040';\n static INSTANCE = new ThemeVariables();\n}"],"mappings":";;;;AAAA,OAAOA,KAAK,MAAe,OAAO;AAClC,SAASC,UAAU,EAAEC,SAAS,QAAQ,cAAc;AAEpD,eAAe,MAAMC,cAAc,CAAC;EAAAC,YAAA;IAAAC,eAAA,uBAEjB,SAAS;IAAAA,eAAA,wBACRL,KAAK,CAAC,IAAI,CAACM,YAAY,CAAC,CAACC,OAAO,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAAA,wBACtDL,KAAK,CAAC,IAAI,CAACM,YAAY,CAAC,CAACC,OAAO,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAAA,wBACtDL,KAAK,CAAC,IAAI,CAACM,YAAY,CAAC,CAACC,OAAO,CAAC,GAAG,CAAC,CAACC,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAAA,+BAC/C,SAAS;IAAAA,eAAA,yBACf,SAAS;IAAAA,eAAA,iCACD,SAAS;IAAAA,eAAA,uBACnB,SAAS;IAAAA,eAAA,+BACD,SAAS;IAAAA,eAAA,oBACpB,SAAS;IAAAA,eAAA,4BACD,SAAS;IAAAA,eAAA,uBACd,SAAS;IAAAA,eAAA,+BACD,SAAS;IAAAA,eAAA,sBAClB,SAAS;IAAAA,eAAA,8BACD,SAAS;IAAAA,eAAA,uBAChB,SAAS;IAAAA,eAAA,wBACR,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,SAAS;IAAAA,eAAA,wBACT,S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C8B,qBAAqB;IAAA9B,eAAA,6BACvB,IAAI,CAACuC,aAAa;IAEvC;IAAAvC,eAAA,8BACsB,IAAI,CAACc,aAAa;IAAAd,eAAA,gCAChB,IAAI,CAACK,aAAa;IAAAL,eAAA,sCACZ,IAAI,CAACC,YAAY;IAAAD,eAAA,2CACZ,IAAI,CAACwD,qBAAqB;IAE7D;IAAAxD,eAAA,0BACkB,IAAI,CAACa,aAAa;IAAAb,eAAA,kCACV,IAAI,CAACa,aAAa;IAAAb,eAAA,kCAClB,IAAI,CAACK,aAAa;IAAAL,eAAA,sCACd,IAAI,CAACK,aAAa;IAAAL,eAAA,0CACd,IAAI,CAACY,WAAW;IAElD;IAAAZ,eAAA,6BACqB,IAAI,CAACK,aAAa;IAAAL,eAAA,6BAClB,IAAI,CAACc,aAAa;IAEvC;IAAAd,eAAA,yBACiBL,KAAK,CAAC,MAAM,CAAC,CAACsB,IAAI,CAAC,GAAG,CAAC,CAACd,GAAG,CAAC,CAAC,CAACC,QAAQ,CAAC,CAAC;IAAAJ,eAAA,6BACpC,SAAS;EAAA;AAElC;AAACyD,MAAA,GAtdoB3D,cAAc;AAAAE,eAAA,CAAdF,cAAc,cAqdb,IAAIA,MAAc,CAAC,CAAC"}
|
@@ -9,7 +9,8 @@ export class ModelVariable extends _ModelVariable {
|
|
9
9
|
const variable = {
|
10
10
|
name: config.name,
|
11
11
|
dataSet: config.paramProvider(),
|
12
|
-
isList: config.isList
|
12
|
+
isList: config.isList,
|
13
|
+
twoWayBinding: config.twoWayBinding
|
13
14
|
};
|
14
15
|
super(variable);
|
15
16
|
_defineProperty(this, "config", void 0);
|