@wavemaker/app-rn-runtime 12.0.0-next.141195 → 12.0.0-next.141937
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 +1 -0
- app-rn-runtime/components/advanced/carousel/carousel.component.js.map +1 -1
- app-rn-runtime/components/basic/custom/custom.component.js +1 -1
- app-rn-runtime/components/basic/custom/custom.component.js.map +1 -1
- app-rn-runtime/components/basic/lottie/lottie.component.js +3 -1
- app-rn-runtime/components/basic/lottie/lottie.component.js.map +1 -1
- app-rn-runtime/components/basic/search/search.component.js +1 -1
- app-rn-runtime/components/basic/search/search.component.js.map +1 -1
- app-rn-runtime/components/basic/search/search.props.js +1 -0
- app-rn-runtime/components/basic/search/search.props.js.map +1 -1
- app-rn-runtime/components/basic/skeleton/skeleton.component.js +2 -0
- app-rn-runtime/components/basic/skeleton/skeleton.component.js.map +1 -1
- app-rn-runtime/components/container/container.component.js +8 -1
- 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/tabs/tabpane/tabpane.props.js +1 -0
- app-rn-runtime/components/container/tabs/tabpane/tabpane.props.js.map +1 -1
- app-rn-runtime/components/container/tabs/tabs.component.js +3 -1
- app-rn-runtime/components/container/tabs/tabs.component.js.map +1 -1
- app-rn-runtime/components/input/baseinput/baseinput.component.js +46 -10
- app-rn-runtime/components/input/baseinput/baseinput.component.js.map +1 -1
- app-rn-runtime/components/input/basenumber/basenumber.component.js +16 -3
- app-rn-runtime/components/input/basenumber/basenumber.component.js.map +1 -1
- app-rn-runtime/components/input/checkbox/checkbox.component.js +2 -2
- app-rn-runtime/components/input/checkbox/checkbox.component.js.map +1 -1
- app-rn-runtime/components/input/checkbox/checkbox.styles.js +3 -1
- app-rn-runtime/components/input/checkbox/checkbox.styles.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.component.js +3 -1
- app-rn-runtime/components/input/currency/currency.component.js.map +1 -1
- app-rn-runtime/components/input/currency/currency.styles.js +6 -1
- app-rn-runtime/components/input/currency/currency.styles.js.map +1 -1
- app-rn-runtime/components/input/epoch/base-datetime.component.js +4 -3
- app-rn-runtime/components/input/epoch/base-datetime.component.js.map +1 -1
- app-rn-runtime/components/input/number/number.component.js +3 -1
- app-rn-runtime/components/input/number/number.component.js.map +1 -1
- app-rn-runtime/components/input/number/number.styles.js +3 -0
- app-rn-runtime/components/input/number/number.styles.js.map +1 -1
- app-rn-runtime/components/input/radioset/radioset.component.js +12 -7
- app-rn-runtime/components/input/radioset/radioset.component.js.map +1 -1
- app-rn-runtime/components/input/radioset/radioset.props.js +1 -0
- app-rn-runtime/components/input/radioset/radioset.props.js.map +1 -1
- app-rn-runtime/components/input/radioset/radioset.styles.js +6 -0
- app-rn-runtime/components/input/radioset/radioset.styles.js.map +1 -1
- app-rn-runtime/components/input/text/text.component.js +5 -2
- 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 +3 -0
- app-rn-runtime/components/input/text/text.styles.js.map +1 -1
- app-rn-runtime/components/input/textarea/textarea.component.js +3 -1
- app-rn-runtime/components/input/textarea/textarea.component.js.map +1 -1
- app-rn-runtime/components/input/textarea/textarea.styles.js +3 -0
- app-rn-runtime/components/input/textarea/textarea.styles.js.map +1 -1
- app-rn-runtime/components/page/content/content.component.js +4 -19
- app-rn-runtime/components/page/content/content.component.js.map +1 -1
- app-rn-runtime/components/page/left-panel/left-panel.component.js +4 -1
- app-rn-runtime/components/page/left-panel/left-panel.component.js.map +1 -1
- app-rn-runtime/components/page/page-content/page-content.component.js +43 -12
- app-rn-runtime/components/page/page-content/page-content.component.js.map +1 -1
- app-rn-runtime/core/AppConfig.js.map +1 -1
- app-rn-runtime/core/base.component.js +31 -5
- app-rn-runtime/core/base.component.js.map +1 -1
- app-rn-runtime/core/components/textinput.component.js +9 -7
- app-rn-runtime/core/components/textinput.component.js.map +1 -1
- app-rn-runtime/core/storage.service.js +15 -0
- app-rn-runtime/core/storage.service.js.map +1 -1
- app-rn-runtime/core/wm-component-tree.js +58 -0
- app-rn-runtime/core/wm-component-tree.js.map +1 -0
- app-rn-runtime/package.json +13 -6
- app-rn-runtime/runtime/App.js +17 -2
- app-rn-runtime/runtime/App.js.map +1 -1
- app-rn-runtime/runtime/App.navigator.js +1 -0
- app-rn-runtime/runtime/App.navigator.js.map +1 -1
- app-rn-runtime/runtime/base-fragment.component.js +18 -0
- app-rn-runtime/runtime/base-fragment.component.js.map +1 -1
- app-rn-runtime/runtime/base-page.component.js +10 -0
- app-rn-runtime/runtime/base-page.component.js.map +1 -1
- app-rn-runtime/runtime/base-partial.component.js +3 -0
- app-rn-runtime/runtime/base-partial.component.js.map +1 -1
- app-rn-runtime/runtime/navigator/drawer.navigator.js +19 -10
- app-rn-runtime/runtime/navigator/drawer.navigator.js.map +1 -1
- app-rn-runtime/styles/theme.js +5 -0
- app-rn-runtime/styles/theme.js.map +1 -1
- app-rn-runtime/styles/theme.variables.js +1 -1
- app-rn-runtime/styles/theme.variables.js.map +1 -1
- app-rn-runtime/variables/http.service.js +5 -1
- app-rn-runtime/variables/http.service.js.map +1 -1
- app-rn-runtime/variables/live-variable.js +14 -0
- app-rn-runtime/variables/live-variable.js.map +1 -1
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["clone","isEqual","React","CommonActions","SplashScreen","WmPage","NavigationServiceProvider","AppSecurityService","AppSpinnerService","BaseFragment","Watcher","BasePage","constructor","props","_this$appConfig$drawe","_defineProperty","setTimeout","hideAsync","pageName","route","name","pageParams","params","appConfig","currentPage","drawer","setContent","serviceDefinitions","App","watcher","ROOT","create","canUserAccessPage","then","flag","cache","redirectToLogin","toHashURL","onComponentInit","w","targetWidget","refreshdataonattach","toggleDrawer","navigation","setDrawerContent","content","drawerContent","drawerType","hasDrawer","proxy","_this$appConfig$drawe2","_this$appConfig$drawe4","_this$appConfig$drawe3","createElement","value","setAnimation","onAttach","onFragmentReady","onContentReady","triggerPageReady","hide","cleanup","push","addListener","refresh","componentWillUnmount","goToPage","clearCahe","_params","dispatch","reset","index","routes","navigate","onDetach","destroyMe","closeDrawer","Promise","resolve","navigateToLandingPage","hash","paramStr","Object","keys","map","k","join","goBack","canGoBack","window","history","back","openUrl","url","startsWith","substring","splits","split","length","p","forEach","openBrowser","isActiveTabbarItem","label","link","links","possibleLinks","find","l","includes","renderWidget","renderPage"],"sources":["base-page.component.tsx"],"sourcesContent":["import { clone, isEqual } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { CommonActions } from '@react-navigation/native';\nimport * as SplashScreen from 'expo-splash-screen';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmPage from '@wavemaker/app-rn-runtime/components/page/page.component';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport AppSecurityService from './services/app-security.service';\nimport AppSpinnerService from './services/app-spinner.service';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { Watcher } from './watcher';\n\ndeclare const window: any;\n\nexport interface PageProps extends FragmentProps {\n route: any;\n navigation: any;\n destroyMe: Function;\n}\n\nexport interface PageState extends FragmentState<PageProps> {}\n\nexport default abstract class BasePage extends BaseFragment<PageProps, PageState> implements NavigationService {\n private pageName = null as unknown as string;\n private pageParams: any = {};\n private hasDrawer = false;\n private hasTabbar = false;\n private drawerContent = null as React.ReactNode;\n private drawerType = '';\n\n constructor(props: PageProps) {\n super(props);\n setTimeout(() => {\n SplashScreen.hideAsync();\n }, 300);\n this.pageName = props.route.name;\n this.pageParams = props.route.params;\n this.appConfig.currentPage = this;\n this.appConfig.drawer?.setContent(null);\n this.serviceDefinitions = this.App.serviceDefinitions;\n this.watcher = Watcher.ROOT.create();\n AppSecurityService.canUserAccessPage(this.pageName)\n .then(flag => {\n if (!flag) {\n this.cache = false;\n AppSecurityService.redirectToLogin(this.toHashURL());\n }\n });\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPage) {\n this.targetWidget = w;\n const props = w.props as any;\n this.cache = !(props.cache === false);\n this.refreshdataonattach = !(props.refreshdataonattach === false);\n }\n }\n\n toggleDrawer() {\n (this.props as PageProps).navigation.toggleDrawer();\n }\n\n setDrawerContent(content = this.drawerContent, drawerType = this.drawerType) {\n if (!content) {\n return;\n }\n this.drawerContent = content;\n this.drawerType = drawerType;\n this.hasDrawer = true;\n setTimeout(() => {\n if (this.appConfig.currentPage === this \n || this.appConfig.currentPage.proxy === this) {\n this.appConfig.drawer?.setContent(null);\n setTimeout(() => {\n this.appConfig.drawer?.setContent((\n <NavigationServiceProvider value={this}>\n {content}\n </NavigationServiceProvider>));\n }, 500);\n this.appConfig.drawer?.setAnimation(drawerType);\n }\n }, 10);\n }\n\n onAttach() {\n super.onAttach();\n this.setDrawerContent();\n }\n\n onFragmentReady() {\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.App.triggerPageReady(this.pageName, this.proxy as BasePage);\n AppSpinnerService.hide();\n this.cleanup.push((this.props as PageProps).navigation.addListener('focus', () => {\n if (this.appConfig.currentPage !== this) {\n this.appConfig.currentPage = this;\n this.onAttach();\n this.appConfig.refresh();\n }\n }));\n });\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n }\n\n goToPage(pageName: string, params: any, clearCahe = false) {\n const navigation = (this.props as PageProps).navigation;\n const _params = clone(params);\n _params && delete _params['pageName'];\n if (pageName !== this.pageName || !isEqual(_params || null, this.pageParams || null)) {\n if (pageName === this.pageName) {\n navigation.push(pageName, _params);\n } else if (clearCahe) {\n navigation.dispatch(CommonActions.reset({\n index: 0,\n routes: [\n { name: pageName, params: params }\n ]}));\n } else {\n navigation.navigate(pageName, _params);\n }\n if (this.cache) {\n this.onDetach();\n } else {\n this.props.destroyMe();\n }\n } else {\n (this.props as PageProps).navigation.closeDrawer();\n }\n return Promise.resolve();\n }\n\n public navigateToLandingPage() {\n AppSecurityService.navigateToLandingPage();\n }\n\n public toHashURL() {\n const hash = `#/${this.pageName}`;\n const paramStr = Object.keys(this.pageParams || [])\n .map(k => k && `${k}=${this.pageParams[k]}`)\n .join('&');\n return hash + (paramStr ? `?${paramStr}` : '');\n }\n\n goBack() {\n const navigation = (this.props as PageProps).navigation;\n if (navigation.canGoBack()) {\n navigation.goBack();\n } else if (window && window.history) {\n window.history.back();\n }\n return Promise.resolve();\n }\n\n openUrl(url: string, params = {} as any) {\n if (url) {\n if (url.startsWith('#')) {\n url = url.substring(1);\n url = url.startsWith('/') ? url.substring(1) : url;\n const splits = url.split('?');\n const pageName = splits[0];\n let params = {} as any;\n if (splits.length > 1) {\n splits[1].split('&')\n .map(p => p.split('='))\n .forEach(p => params[p[0]] = p[1]);\n }\n return this.goToPage(pageName, params);\n } else {\n this.App.openBrowser(url, params);\n }\n }\n return Promise.resolve();\n }\n\n isActiveTabbarItem({label, link, links}: {label: string, link: string, links: string[]}) {\n const pageName = this.pageName;\n const possibleLinks = [pageName, '#' + pageName, '#/' + pageName];\n return links && links.find(l => possibleLinks.includes(l));\n }\n\n abstract renderPage(): ReactNode;\n\n renderWidget(props: PageProps) {\n return this.renderPage();\n }\n}\n"],"mappings":";;;AAAA,SAASA,KAAK,EAAEC,OAAO,QAAQ,QAAQ;AACvC,OAAOC,KAAK,MAAqB,OAAO;AACxC,SAASC,aAAa,QAAQ,0BAA0B;AACxD,OAAO,KAAKC,YAAY,MAAM,oBAAoB;AAGlD,OAAOC,MAAM,MAAM,0DAA0D;AAC7E,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAEhH,OAAOC,kBAAkB,MAAM,iCAAiC;AAChE,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,YAAY,MAAwC,2BAA2B;AACtF,SAASC,OAAO,QAAQ,WAAW;AAYnC,eAAe,MAAeC,QAAQ,SAASF,YAAY,CAAoD;EAQ3GG,WAAW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AC;MACnC;IACF;IACA,OAAOuD,OAAO,CAACC,OAAO,CAAC,CAAC;EAC1B;EAEAwB,kBAAkBA,CAAC;IAACC,KAAK;IAAEC,IAAI;IAAEC;EAAqD,CAAC,EAAE;IACvF,MAAMvF,QAAQ,GAAG,IAAI,CAACA,QAAQ;IAC9B,MAAMwF,aAAa,GAAG,CAACxF,QAAQ,EAAE,GAAG,GAAGA,QAAQ,EAAE,IAAI,GAAGA,QAAQ,CAAC;IACjE,OAAOuF,KAAK,IAAIA,KAAK,CAACE,IAAI,CAACC,CAAC,IAAIF,aAAa,CAACG,QAAQ,CAACD,CAAC,CAAC,CAAC;EAC5D;EAIAE,YAAYA,CAACjG,KAAgB,EAAE;IAC7B,OAAO,IAAI,CAACkG,UAAU,CAAC,CAAC;EAC1B;AACJ","ignoreList":[]}
|
1
|
+
{"version":3,"names":["clone","isEqual","React","CommonActions","SplashScreen","WmPage","NavigationServiceProvider","AppSecurityService","AppSpinnerService","BaseFragment","Watcher","BasePage","constructor","props","_this$appConfig$drawe","_defineProperty","setTimeout","hideAsync","pageName","route","name","pageParams","params","appConfig","currentPage","drawer","setContent","serviceDefinitions","App","watcher","ROOT","create","canUserAccessPage","then","flag","cache","redirectToLogin","toHashURL","diagnostics","pageStartTime","Date","now","onComponentInit","w","targetWidget","refreshdataonattach","toggleDrawer","navigation","setDrawerContent","content","drawerContent","drawerType","hasDrawer","proxy","_this$appConfig$drawe2","_this$appConfig$drawe4","_this$appConfig$drawe3","createElement","value","setAnimation","onAttach","pageReadyTime","notify","onFragmentReady","onContentReady","triggerPageReady","hide","cleanup","push","addListener","refresh","componentWillUnmount","goToPage","clearCahe","_params","dispatch","reset","index","routes","navigate","onDetach","destroyMe","closeDrawer","Promise","resolve","navigateToLandingPage","hash","paramStr","Object","keys","map","k","join","goBack","canGoBack","window","history","back","openUrl","url","startsWith","substring","splits","split","length","p","forEach","openBrowser","isActiveTabbarItem","label","link","links","possibleLinks","find","l","includes","renderWidget","renderPage"],"sources":["base-page.component.tsx"],"sourcesContent":["import { clone, isEqual } from 'lodash';\nimport React, { ReactNode } from 'react';\nimport { CommonActions } from '@react-navigation/native';\nimport * as SplashScreen from 'expo-splash-screen';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\n\nimport WmPage from '@wavemaker/app-rn-runtime/components/page/page.component';\nimport NavigationService, { NavigationServiceProvider } from '@wavemaker/app-rn-runtime/core/navigation.service';\n\nimport AppSecurityService from './services/app-security.service';\nimport AppSpinnerService from './services/app-spinner.service';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { Watcher } from './watcher';\n\ndeclare const window: any;\n\nexport interface PageProps extends FragmentProps {\n route: any;\n navigation: any;\n destroyMe: Function;\n}\n\nexport interface PageState extends FragmentState<PageProps> {}\n\nexport default abstract class BasePage extends BaseFragment<PageProps, PageState> implements NavigationService {\n private pageName = null as unknown as string;\n private pageParams: any = {};\n private hasDrawer = false;\n private hasTabbar = false;\n private drawerContent = null as React.ReactNode;\n private drawerType = '';\n\n constructor(props: PageProps) {\n super(props);\n setTimeout(() => {\n SplashScreen.hideAsync();\n }, 300);\n this.pageName = props.route.name;\n this.pageParams = props.route.params;\n this.appConfig.currentPage = this;\n this.appConfig.drawer?.setContent(null);\n this.serviceDefinitions = this.App.serviceDefinitions;\n this.watcher = Watcher.ROOT.create();\n AppSecurityService.canUserAccessPage(this.pageName)\n .then(flag => {\n if (!flag) {\n this.cache = false;\n AppSecurityService.redirectToLogin(this.toHashURL());\n }\n });\n if (this.App.appConfig.diagnostics.pageStartTime < 0) {\n this.App.appConfig.diagnostics.pageStartTime = Date.now();\n }\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPage) {\n this.targetWidget = w;\n const props = w.props as any;\n this.cache = !(props.cache === false);\n this.refreshdataonattach = !(props.refreshdataonattach === false);\n }\n }\n\n toggleDrawer() {\n (this.props as PageProps).navigation.toggleDrawer();\n }\n\n setDrawerContent(content = this.drawerContent, drawerType = this.drawerType) {\n if (!content) {\n return;\n }\n this.drawerContent = content;\n this.drawerType = drawerType;\n this.hasDrawer = true;\n setTimeout(() => {\n if (this.appConfig.currentPage === this \n || this.appConfig.currentPage.proxy === this) {\n this.appConfig.drawer?.setContent(null);\n setTimeout(() => {\n this.appConfig.drawer?.setContent((\n <NavigationServiceProvider value={this}>\n {content}\n </NavigationServiceProvider>));\n }, 500);\n this.appConfig.drawer?.setAnimation(drawerType);\n }\n }, 10);\n }\n\n onAttach() {\n super.onAttach();\n this.setDrawerContent();\n this.App.appConfig.diagnostics.pageReadyTime = Date.now();\n this.App.notify('pageAttached', this);\n }\n\n onFragmentReady() {\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.App.triggerPageReady(this.pageName, this.proxy as BasePage);\n this.App.appConfig.diagnostics.pageReadyTime = Date.now(); \n this.App.notify('pageReady', this);\n AppSpinnerService.hide();\n this.cleanup.push((this.props as PageProps).navigation.addListener('focus', () => {\n if (this.appConfig.currentPage !== this) {\n this.appConfig.currentPage = this;\n this.onAttach();\n this.appConfig.refresh();\n }\n }));\n });\n }\n\n componentWillUnmount() {\n super.componentWillUnmount();\n this.App.notify('pageDestroyed', this);\n }\n\n goToPage(pageName: string, params: any, clearCahe = false) {\n const navigation = (this.props as PageProps).navigation;\n const _params = clone(params);\n _params && delete _params['pageName'];\n this.App.appConfig.diagnostics.pageStartTime = Date.now();\n if (pageName !== this.pageName || !isEqual(_params || null, this.pageParams || null)) {\n if (pageName === this.pageName) {\n navigation.push(pageName, _params);\n } else if (clearCahe) {\n navigation.dispatch(CommonActions.reset({\n index: 0,\n routes: [\n { name: pageName, params: params }\n ]}));\n } else {\n navigation.navigate(pageName, _params);\n }\n if (this.cache) {\n this.onDetach();\n } else {\n this.props.destroyMe();\n }\n } else {\n (this.props as PageProps).navigation.closeDrawer();\n }\n return Promise.resolve();\n }\n\n public navigateToLandingPage() {\n AppSecurityService.navigateToLandingPage();\n }\n\n public toHashURL() {\n const hash = `#/${this.pageName}`;\n const paramStr = Object.keys(this.pageParams || [])\n .map(k => k && `${k}=${this.pageParams[k]}`)\n .join('&');\n return hash + (paramStr ? `?${paramStr}` : '');\n }\n\n goBack() {\n const navigation = (this.props as PageProps).navigation;\n this.App.appConfig.diagnostics.pageStartTime = Date.now();\n if (navigation.canGoBack()) {\n navigation.goBack();\n } else if (window && window.history) {\n window.history.back();\n }\n return Promise.resolve();\n }\n\n openUrl(url: string, params = {} as any) {\n if (url) {\n if (url.startsWith('#')) {\n url = url.substring(1);\n url = url.startsWith('/') ? url.substring(1) : url;\n const splits = url.split('?');\n const pageName = splits[0];\n let params = {} as any;\n if (splits.length > 1) {\n splits[1].split('&')\n .map(p => p.split('='))\n .forEach(p => params[p[0]] = p[1]);\n }\n return this.goToPage(pageName, params);\n } else {\n this.App.openBrowser(url, params);\n }\n }\n return Promise.resolve();\n }\n\n isActiveTabbarItem({label, link, links}: {label: string, link: string, links: string[]}) {\n const pageName = this.pageName;\n const possibleLinks = [pageName, '#' + pageName, '#/' + pageName];\n return links && links.find(l => possibleLinks.includes(l));\n }\n\n abstract renderPage(): ReactNode;\n\n renderWidget(props: PageProps) {\n return this.renderPage();\n }\n}\n"],"mappings":";;;AAAA,SAASA,KAAK,EAAEC,OAAO,QAAQ,QAAQ;AACvC,OAAOC,KAAK,MAAqB,OAAO;AACxC,SAASC,aAAa,QAAQ,0BAA0B;AACxD,OAAO,KAAKC,YAAY,MAAM,oBAAoB;AAGlD,OAAOC,MAAM,MAAM,0DAA0D;AAC7E,SAA4BC,yBAAyB,QAAQ,mDAAmD;AAEhH,OAAOC,kBAAkB,MAAM,iCAAiC;AAChE,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,YAAY,MAAwC,2BAA2B;AACtF,SAASC,OAAO,QAAQ,WAAW;AAYnC,eAAe,MAAeC,QAAQ,SAASF,YAAY,CAAoD;EAQ3GG,WAAWA,CAACC,KAAgB,EAAE;IAAA,IAAAC,qBAAA;I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ignoreList":[]}
|
@@ -20,6 +20,9 @@ export default class BasePartial extends BaseFragment {
|
|
20
20
|
this.watcher = props.parentWatcher.create();
|
21
21
|
}
|
22
22
|
onFragmentReady() {
|
23
|
+
if (this.props.invokeVariables === false) {
|
24
|
+
return Promise.resolve();
|
25
|
+
}
|
23
26
|
return super.onFragmentReady().then(() => {
|
24
27
|
this.onContentReady();
|
25
28
|
this.invokeEventCallback('onLoad', [this]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["WmPartial","BaseFragment","BasePartial","constructor","props","_defineProperty","isPartOfPrefab","prefab","App","appConfig","app","Actions","Object","assign","Variables","serviceDefinitions","Prefab","baseUrl","watcher","parentWatcher","create","onFragmentReady","then","onContentReady","invokeEventCallback","prefabname","_this$Prefab","onComponentInit","w","targetWidget","onComponentDestroy","parent","Widgets","componentDidUpdate","prevProps","prevState","snapshot","pageParams","partialParams","fragmentVariables","renderWidget","renderPartial"],"sources":["base-partial.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmPartial from '@wavemaker/app-rn-runtime/components/page/partial/partial.component';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { ReactNode } from 'react';\nimport BasePrefab from './base-prefab.component';\nimport { Watcher } from './watcher';\nimport { View } from 'react-native';\nimport WmLottie from '../components/basic/lottie/lottie.component';\n\nexport interface PartialProps extends FragmentProps {\n serviceDefinitions: any;\n prefab: any;\n parent: any;\n onLoad?: Function;\n parentWatcher: Watcher;\n}\n\nexport interface PartialState extends FragmentState<PartialProps> {}\n\nexport default abstract class BasePartial extends BaseFragment<PartialProps, PartialState> {\n private partialParams: any = {};\n Prefab: BasePrefab = null as any;\n\n constructor(props: PartialProps) {\n super(props);\n const isPartOfPrefab = !!this.props.prefab;\n this.App = this.appConfig.app;\n this.Actions = Object.assign({}, isPartOfPrefab ? {} : this.App.Actions);\n this.Variables = Object.assign({}, isPartOfPrefab ? {} : this.App.Variables);\n this.serviceDefinitions = this.props.serviceDefinitions;\n if (isPartOfPrefab) {\n this.Prefab = this.props.prefab;\n this.baseUrl =this.Prefab.baseUrl;\n }\n this.watcher = props.parentWatcher.create();\n }\n\n onFragmentReady() {\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.invokeEventCallback('onLoad', [this]);\n });\n }\n\n get prefabname() {\n return this.Prefab?.props.prefabname;\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPartial) {\n this.targetWidget = w;\n }\n }\n\n onComponentDestroy(w: BaseComponent<any, any, any>): void {\n super.onComponentDestroy(w);\n const parent: any = this.props.parent;\n if (parent) {\n delete (parent as any).Widgets;\n delete (parent as any).Variables;\n }\n }\n\n componentDidUpdate(prevProps: Readonly<PartialProps>, prevState: Readonly<PartialState>, snapshot?: any): void {\n super.componentDidUpdate(prevProps, prevState, snapshot);\n const parent: any = this.props.parent;\n if (parent) {\n parent.pageParams = (this as any).pageParams;\n parent.partialParams = (this as any).pageParams;\n parent.Widgets = this.Widgets;\n parent.Variables = this.fragmentVariables;\n }\n }\n \n abstract renderPartial(): ReactNode;\n\n renderWidget(props: PartialProps) {\n return this.renderPartial();\n }\n}\n"],"mappings":";;;AAEA,OAAOA,SAAS,MAAM,qEAAqE;AAC3F,OAAOC,YAAY,MAAwC,2BAA2B;
|
1
|
+
{"version":3,"names":["WmPartial","BaseFragment","BasePartial","constructor","props","_defineProperty","isPartOfPrefab","prefab","App","appConfig","app","Actions","Object","assign","Variables","serviceDefinitions","Prefab","baseUrl","watcher","parentWatcher","create","onFragmentReady","invokeVariables","Promise","resolve","then","onContentReady","invokeEventCallback","prefabname","_this$Prefab","onComponentInit","w","targetWidget","onComponentDestroy","parent","Widgets","componentDidUpdate","prevProps","prevState","snapshot","pageParams","partialParams","fragmentVariables","renderWidget","renderPartial"],"sources":["base-partial.component.tsx"],"sourcesContent":["import React from 'react';\nimport { BaseComponent } from '@wavemaker/app-rn-runtime/core/base.component';\nimport WmPartial from '@wavemaker/app-rn-runtime/components/page/partial/partial.component';\nimport BaseFragment, { FragmentProps, FragmentState } from './base-fragment.component';\nimport { ReactNode } from 'react';\nimport BasePrefab from './base-prefab.component';\nimport { Watcher } from './watcher';\nimport { View } from 'react-native';\nimport WmLottie from '../components/basic/lottie/lottie.component';\n\nexport interface PartialProps extends FragmentProps {\n serviceDefinitions: any;\n prefab: any;\n parent: any;\n onLoad?: Function;\n parentWatcher: Watcher;\n invokeVariables: boolean;\n}\n\nexport interface PartialState extends FragmentState<PartialProps> {}\n\nexport default abstract class BasePartial extends BaseFragment<PartialProps, PartialState> {\n private partialParams: any = {};\n Prefab: BasePrefab = null as any;\n\n constructor(props: PartialProps) {\n super(props);\n const isPartOfPrefab = !!this.props.prefab;\n this.App = this.appConfig.app;\n this.Actions = Object.assign({}, isPartOfPrefab ? {} : this.App.Actions);\n this.Variables = Object.assign({}, isPartOfPrefab ? {} : this.App.Variables);\n this.serviceDefinitions = this.props.serviceDefinitions;\n if (isPartOfPrefab) {\n this.Prefab = this.props.prefab;\n this.baseUrl =this.Prefab.baseUrl;\n }\n this.watcher = props.parentWatcher.create();\n }\n\n onFragmentReady() {\n if(this.props.invokeVariables === false) {\n return Promise.resolve();\n }\n return super.onFragmentReady().then(() => {\n this.onContentReady();\n this.invokeEventCallback('onLoad', [this]);\n });\n }\n\n get prefabname() {\n return this.Prefab?.props.prefabname;\n }\n\n onComponentInit(w: BaseComponent<any, any, any>) {\n super.onComponentInit(w);\n if (w instanceof WmPartial) {\n this.targetWidget = w;\n }\n }\n\n onComponentDestroy(w: BaseComponent<any, any, any>): void {\n super.onComponentDestroy(w);\n const parent: any = this.props.parent;\n if (parent) {\n delete (parent as any).Widgets;\n delete (parent as any).Variables;\n }\n }\n\n componentDidUpdate(prevProps: Readonly<PartialProps>, prevState: Readonly<PartialState>, snapshot?: any): void {\n super.componentDidUpdate(prevProps, prevState, snapshot);\n const parent: any = this.props.parent;\n if (parent) {\n parent.pageParams = (this as any).pageParams;\n parent.partialParams = (this as any).pageParams;\n parent.Widgets = this.Widgets;\n parent.Variables = this.fragmentVariables;\n }\n }\n \n abstract renderPartial(): ReactNode;\n\n renderWidget(props: PartialProps) {\n return this.renderPartial();\n }\n}\n"],"mappings":";;;AAEA,OAAOA,SAAS,MAAM,qEAAqE;AAC3F,OAAOC,YAAY,MAAwC,2BAA2B;AAkBtF,eAAe,MAAeC,WAAW,SAASD,YAAY,CAA6B;EAIvFE,WAAWA,CAACC,KAAmB,EAAE;IAC7B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,wBAJY,CAAC,CAAC;IAAAA,eAAA,iBACV,IAAI;IAIrB,MAAMC,cAAc,GAAG,CAAC,CAAC,IAAI,CAACF,KAAK,CAACG,MAAM;IAC1C,IAAI,CAACC,GAAG,GAAG,IAAI,CAACC,SAAS,CAACC,GAAG;IAC7B,IAAI,CAACC,OAAO,GAAGC,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,CAACE,GAAG,CAACG,OAAO,CAAC;IACxE,IAAI,CAACG,SAAS,GAAGF,MAAM,CAACC,MAAM,CAAC,CAAC,CAAC,EAAEP,cAAc,GAAG,CAAC,CAAC,GAAG,IAAI,CAACE,GAAG,CAACM,SAAS,CAAC;IAC5E,IAAI,CAACC,kBAAkB,GAAG,IAAI,CAACX,KAAK,CAACW,kBAAkB;IACvD,IAAIT,cAAc,EAAE;MAClB,IAAI,CAACU,MAAM,GAAG,IAAI,CAACZ,KAAK,CAACG,MAAM;MAC/B,IAAI,CAACU,OAAO,GAAE,IAAI,CAACD,MAAM,CAACC,OAAO;IACnC;IACA,IAAI,CAACC,OAAO,GAAGd,KAAK,CAACe,aAAa,CAACC,MAAM,CAAC,CAAC;EAC/C;EAEAC,eAAeA,CAAA,EAAG;IAChB,IAAG,IAAI,CAACjB,KAAK,CAACkB,eAAe,KAAK,KAAK,EAAE;MACvC,OAA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C3C;EACF;EAIAC,YAAYA,CAACvC,KAAmB,EAAE;IAChC,OAAO,IAAI,CAACwC,aAAa,CAAC,CAAC;EAC7B;AACJ","ignoreList":[]}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
import { createDrawerNavigator } from '@react-navigation/drawer';
|
2
|
+
import { createDrawerNavigator, getDrawerStatusFromState } from '@react-navigation/drawer';
|
3
3
|
import ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';
|
4
4
|
const Drawer = createDrawerNavigator();
|
5
5
|
class AppDrawerNavigator extends React.Component {
|
@@ -11,15 +11,24 @@ class AppDrawerNavigator extends React.Component {
|
|
11
11
|
initialRouteName: "pages",
|
12
12
|
drawerContent: this.props.content,
|
13
13
|
useLegacyImplementation: false,
|
14
|
-
screenOptions: {
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
14
|
+
screenOptions: ({
|
15
|
+
navigation
|
16
|
+
}) => {
|
17
|
+
const widthStyle = this.props.drawerWidth && getDrawerStatusFromState(navigation.getState()) === 'open' ? {
|
18
|
+
width: this.props.drawerWidth,
|
19
|
+
maxWidth: null
|
20
|
+
} : {};
|
21
|
+
return {
|
22
|
+
drawerType: this.props.type,
|
23
|
+
headerShown: false,
|
24
|
+
gestureHandlerProps: {
|
25
|
+
enabled: !this.props.hide
|
26
|
+
},
|
27
|
+
drawerStyle: {
|
28
|
+
backgroundColor: ThemeVariables.INSTANCE.pageContentBgColor,
|
29
|
+
...widthStyle
|
30
|
+
}
|
31
|
+
};
|
23
32
|
}
|
24
33
|
}, /*#__PURE__*/React.createElement(Drawer.Screen, {
|
25
34
|
name: "pages"
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["React","createDrawerNavigator","ThemeVariables","Drawer","AppDrawerNavigator","Component","constructor","props","render","createElement","Navigator","initialRouteName","drawerContent","content","useLegacyImplementation","screenOptions","drawerType","type","headerShown","gestureHandlerProps","enabled","hide","drawerStyle","backgroundColor","INSTANCE","pageContentBgColor","Screen","name","_props","rootComponent"],"sources":["drawer.navigator.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { createDrawerNavigator } from '@react-navigation/drawer';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nconst Drawer = createDrawerNavigator();\n\ninterface AppDrawerNavigatorProps {\n content: (props: any) => ReactNode;\n hide: boolean,\n type: any;\n rootComponent: React.ReactNode;\n}\n\nclass AppDrawerNavigator extends React.Component<AppDrawerNavigatorProps, any, any> {\n\n constructor(props: AppDrawerNavigatorProps) {\n super(props);\n }\n\n render(){\n return (<Drawer.Navigator\n initialRouteName=\"pages\"\n drawerContent={this.props.content}\n useLegacyImplementation={false}\n screenOptions={{\n drawerType: this.props.type,\n headerShown: false,\n gestureHandlerProps: { enabled: !this.props.hide },\n drawerStyle: { backgroundColor: ThemeVariables.INSTANCE.pageContentBgColor }\n }}>\n <Drawer.Screen name=\"pages\">\n {(_props) => this.props.rootComponent}\n </Drawer.Screen>\n </Drawer.Navigator>);\n }\n}\n\nexport default AppDrawerNavigator;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,qBAAqB,QAAQ,0BAA0B;
|
1
|
+
{"version":3,"names":["React","createDrawerNavigator","getDrawerStatusFromState","ThemeVariables","Drawer","AppDrawerNavigator","Component","constructor","props","render","createElement","Navigator","initialRouteName","drawerContent","content","useLegacyImplementation","screenOptions","navigation","widthStyle","drawerWidth","getState","width","maxWidth","drawerType","type","headerShown","gestureHandlerProps","enabled","hide","drawerStyle","backgroundColor","INSTANCE","pageContentBgColor","Screen","name","_props","rootComponent"],"sources":["drawer.navigator.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { createDrawerNavigator, getDrawerStatusFromState } from '@react-navigation/drawer';\nimport ThemeVariables from '@wavemaker/app-rn-runtime/styles/theme.variables';\nconst Drawer = createDrawerNavigator();\n\ninterface AppDrawerNavigatorProps {\n content: (props: any) => ReactNode;\n hide: boolean,\n drawerWidth: any;\n type: any;\n rootComponent: React.ReactNode;\n}\n\nclass AppDrawerNavigator extends React.Component<AppDrawerNavigatorProps, any, any> {\n\n constructor(props: AppDrawerNavigatorProps) {\n super(props);\n }\n\n render(){\n return (<Drawer.Navigator\n initialRouteName=\"pages\"\n drawerContent={this.props.content}\n useLegacyImplementation={false}\n screenOptions={({navigation})=> {\n const widthStyle = (this.props.drawerWidth && getDrawerStatusFromState(navigation.getState()) === 'open' ? {width: this.props.drawerWidth, maxWidth: null} : {})\n return {\n drawerType: this.props.type,\n headerShown: false,\n gestureHandlerProps: { enabled: !this.props.hide },\n drawerStyle: { backgroundColor: ThemeVariables.INSTANCE.pageContentBgColor, ...widthStyle}}\n }}>\n <Drawer.Screen name=\"pages\">\n {(_props) => this.props.rootComponent}\n </Drawer.Screen>\n </Drawer.Navigator>);\n }\n}\n\nexport default AppDrawerNavigator;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAqB,OAAO;AACxC,SAASC,qBAAqB,EAAEC,wBAAwB,QAAQ,0BAA0B;AAC1F,OAAOC,cAAc,MAAM,kDAAkD;AAC7E,MAAMC,MAAM,GAAGH,qBAAqB,CAAC,CAAC;AAUtC,MAAMI,kBAAkB,SAASL,KAAK,CAACM,SAAS,CAAoC;EAElFC,WAAWA,CAACC,KAA8B,EAAE;IAC1C,KAAK,CAACA,KAAK,CAAC;EACd;EAEAC,MAAMA,CAAA,EAAE;IACN,oBAAQT,KAAA,CAAAU,aAAA,CAACN,MAAM,CAACO,SAAS;MACvBC,gBAAgB,EAAC,OAAO;MACxBC,aAAa,EAAE,IAAI,CAACL,KAAK,CAACM,OAAQ;MAClCC,uBAAuB,EAAE,KAAM;MAC/BC,aAAa,EAAEA,CAAC;QAACC;MAAU,CAAC,KAAI;QAC9B,MAAMC,UAAU,GAAI,IAAI,CAACV,KAAK,CAACW,WAAW,IAAIjB,wBAAwB,CAACe,UAAU,CAACG,QAAQ,CAAC,CAAC,CAAC,KAAK,MAAM,GAAG;UAACC,KAAK,EAAE,IAAI,CAACb,KAAK,CAACW,WAAW;UAAEG,QAAQ,EAAE;QAAI,CAAC,GAAG,CAAC,CAAE;QAChK,OAAO;UACLC,UAAU,EAAE,IAAI,CAACf,KAAK,CAACgB,IAAI;UAC3BC,WAAW,EAAE,KAAK;UAClBC,mBAAmB,EAAE;YAAEC,OAAO,EAAE,CAAC,IAAI,CAACnB,KAAK,CAACoB;UAAK,CAAC;UAClDC,WAAW,EAAE;YAAEC,eAAe,EAAG3B,cAAc,CAAC4B,QAAQ,CAACC,kBAAkB;YAAE,GAAGd;UAAU;QAAC,CAAC;MAChG;IAAE,gBACFlB,KAAA,CAAAU,aAAA,CAACN,MAAM,CAAC6B,MAAM;MAACC,IAAI,EAAC;IAAO,GACvBC,MAAM,IAAK,IAAI,CAAC3B,KAAK,CAAC4B,aACX,CACC,CAAC;EACrB;AACF;AAEA,eAAe/B,kBAAkB","ignoreList":[]}
|
app-rn-runtime/styles/theme.js
CHANGED
@@ -48,6 +48,11 @@ export class Theme {
|
|
48
48
|
this.traceEnabled = isWebPreviewMode();
|
49
49
|
}
|
50
50
|
}
|
51
|
+
enableTrace(flag) {
|
52
|
+
this.traceEnabled = flag;
|
53
|
+
this.reset();
|
54
|
+
this.children.forEach(t => t.enableTrace(flag));
|
55
|
+
}
|
51
56
|
subscribe(event, fn) {
|
52
57
|
return this.eventNotifer.subscribe(event, fn);
|
53
58
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"names":["cloneDeep","isNil","forEach","flatten","isArray","isEmpty","isObject","isString","get","reverse","React","camelCase","Dimensions","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","result","collect","mergeStyle","flattenStyles","cs","filter","cleanseStyleProperties","screenWidth","width","screenHeight","height","i","stylePropertyValue","endsWith","Number","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","_Theme","SIZE_CHANGE","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","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","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, Dimensions } 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 style;\n }\n style = style as any;\n if (isObject(style) && !isArray(style)) {\n Object.keys(style).forEach(k => {\n (style as any)[k] = this.replaceVariables((style as any)[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 let screenWidth = Dimensions.get('window').width;\n let screenHeight = Dimensions.get('window').height;\n Object.keys(style).forEach((k, i) => {\n let stylePropertyValue = style[k]\n if(typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vw')) {\n stylePropertyValue = stylePropertyValue.replace('vw','')\n style[k] = Number(stylePropertyValue)/100 * screenWidth\n }\n if((typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vh'))) {\n stylePropertyValue = stylePropertyValue.replace('vh','')\n style[k] = Number(stylePropertyValue)/100 * screenHeight\n }\n })\n Object.keys(style).forEach((k, i) => this.cleanseStyleProperties(style[k]));\n return style;\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: '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camelCase","Dimensions","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","enableTrace","flag","reset","children","t","subscribe","event","fn","eventNotifer","notify","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","result","collect","mergeStyle","flattenStyles","cs","filter","cleanseStyleProperties","screenWidth","width","screenHeight","height","i","stylePropertyValue","endsWith","Number","indexOf","split","c","mediaQuery","clonedStyle","matches","BASE","$new","newTheme","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","_Theme","SIZE_CHANGE","ThemeContext","createContext","ThemeProvider","Provider","ThemeConsumer","Consumer","addColStyles","device","minWidth","root","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","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, Dimensions } 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 enableTrace(flag: boolean) {\n this.traceEnabled = flag;\n this.reset();\n this.children.forEach(t => t.enableTrace(flag));\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 style;\n }\n style = style as any;\n if (isObject(style) && !isArray(style)) {\n Object.keys(style).forEach(k => {\n (style as any)[k] = this.replaceVariables((style as any)[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 let screenWidth = Dimensions.get('window').width;\n let screenHeight = Dimensions.get('window').height;\n Object.keys(style).forEach((k, i) => {\n let stylePropertyValue = style[k]\n if(typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vw')) {\n stylePropertyValue = stylePropertyValue.replace('vw','')\n style[k] = Number(stylePropertyValue)/100 * screenWidth\n }\n if((typeof stylePropertyValue === 'string' && stylePropertyValue.endsWith('vh'))) {\n stylePropertyValue = stylePropertyValue.replace('vh','')\n style[k] = Number(stylePropertyValue)/100 * screenHeight\n }\n })\n Object.keys(style).forEach((k, i) => this.cleanseStyleProperties(style[k]));\n return style;\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 addStyle('hide-context-menu-input', '', { 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;AACrC,SAA4DC,UAAU,QAAQ,cAAc;AAC5F,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,mBAAmB;AAC9C,SAASC,eAAe,EAAEC,iBAAiB,EAAEC,gBAAgB,QAAQ,wBAAwB;AAC7F,OAAO,MAAMC,aAAa,GAAG,eAAe;AAI5C,IAAI,OAAOC,MAAM,KAAK,WAAW,EAAE;EAC/B;EACAA,MAAM,CAACC,UAAU,GAAIC,KAAa,IAAK,IAAIR,cAAc,CAACQ,KAAK,CAAC;AACpE;AAEA,OAAO,MAAMC,mBAAmB,GAAG;EAC/B,wBAAwB,EAAG,KAAK;EAChC,wBAAwB,EAAG,OAAO;EAClC,kBAAkB,EAAG,OAAO;EAC5B,kBAAkB,EAAG,OAAO;EAC5B,m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E;MAAE2B,WAAW,EAAExC,cAAc,CAACsC;IAAa;EAAC,CAAC,CAAC;EACrF3G,QAAQ,CAAC,gBAAgB,EAAE,EAAE,EAAE;IAAEkF,IAAI,EAAE;MAAE2B,WAAW,EAAExC,cAAc,CAACuC;IAAa;EAAC,CAAC,CAAC;EAErF5G,QAAQ,CAAC,mBAAmB,EAAE,EAAE,EAAE;IAAE8G,IAAI,EAAE;MAAE1C,UAAU,EAAE;IAAO;EAAC,CAAC,CAAC;EAClEpE,QAAQ,CAAC,yBAAyB,EAAE,EAAE,EAAE;IAAE8G,IAAI,EAAE;MAAE1C,UAAU,EAAE;IAAO;EAAC,CAAC,CAAC;AAC5E,CAAC,CAAC","ignoreList":[]}
|
@@ -191,7 +191,7 @@ export default class ThemeVariables {
|
|
191
191
|
_defineProperty(this, "inputBorderColor", this.defaultColorD);
|
192
192
|
_defineProperty(this, "inputBackgroundColor", this.defaultColorF);
|
193
193
|
_defineProperty(this, "inputDisabledBgColor", '#f6f6f6');
|
194
|
-
_defineProperty(this, "inputFocusBorderColor", this.
|
194
|
+
_defineProperty(this, "inputFocusBorderColor", this.transparent);
|
195
195
|
_defineProperty(this, "inputInvalidBorderColor", this.dangerColor);
|
196
196
|
_defineProperty(this, "inputPlaceholderColor", this.defaultColorB);
|
197
197
|
//wheel picker variables
|
@@ -1 +1 @@
|
|
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","_ThemeVariables"],"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 skeletonBackgroundColor = \"#F4F5F8\";\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 //wheel picker variables\n wheelSelectedColor = '#1d1d1b';\n wheelColor = '#737373';\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 = \"#e7f9fd\";\n\n // Wheel Picker\n wheelHighlightBorder = 'var(--primaryColor)';\n wheelSelectedTextColor = 'var(--wheelSelectedColor)';\n wheelTextColor = 'var(--wheelColor)';\n\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,SA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AAAL,eAAA,gCACd,IAAI,CAACkB,iBAAiB;IAAAlB,eAAA,8BACxB,IAAI,CAACoB,gBAAgB;IAE3C;IAAApB,eAAA,0BACkB,IAAI,CAACoB,gBAAgB;IAAApB,eAAA,+BAChB,IAAI,CAACgB,aAAa;IAAAhB,eAAA,yBACxB,IAAI,CAACiC,aAAa;IAAAjC,eAAA,4BACf,IAAI,CAACsD,aAAa;IAAAtD,eAAA,yBACrB,IAAI,CAACuD,aAAa;IAAAvD,eAAA,8BACb,IAAI,CAACqD,aAAa;IAAArD,eAAA,0BACtB,IAAI,CAAC8B,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,yBACiB,SAAS;IAE1B;IAAAA,eAAA,+BACuB,qBAAqB;IAAAA,eAAA,iCACnB,2BAA2B;IAAAA,eAAA,yBACnC,mBAAmB;EAAA;AAGxC;AAACyD,eAAA,GAheoB3D,cAAc;AAAAE,eAAA,CAAdF,cAAc,cA+db,IAAIA,eAAc,CAAC,CAAC","ignoreList":[]}
|
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","_ThemeVariables"],"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 skeletonBackgroundColor = \"#F4F5F8\";\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.transparent;\n inputInvalidBorderColor = this.dangerColor;\n inputPlaceholderColor = this.defaultColorB;\n\n //wheel picker variables\n wheelSelectedColor = '#1d1d1b';\n wheelColor = '#737373';\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 = \"#e7f9fd\";\n\n // Wheel Picker\n wheelHighlightBorder = 'var(--primaryColor)';\n wheelSelectedTextColor = 'var(--wheelSelectedColor)';\n wheelTextColor = 'var(--wheelColor)';\n\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,CA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AAAA,eAAA,yBACnC,mBAAmB;EAAA;AAGxC;AAACyD,eAAA,GAheoB3D,cAAc;AAAAE,eAAA,CAAdF,cAAc,cA+db,IAAIA,eAAc,CAAC,CAAC","ignoreList":[]}
|
@@ -34,7 +34,11 @@ export class HttpService {
|
|
34
34
|
const axiosConfig = {
|
35
35
|
headers: headers,
|
36
36
|
cancelToken: variable.cancelTokenSource.token,
|
37
|
-
withCredentials: !isWebPreviewMode() || (options === null || options === void 0 ? void 0 : options.withCredentials) !== false
|
37
|
+
withCredentials: !isWebPreviewMode() || (options === null || options === void 0 ? void 0 : options.withCredentials) !== false,
|
38
|
+
__wmVariable: {
|
39
|
+
name: variable.name,
|
40
|
+
owner: variable.config._context.name
|
41
|
+
}
|
38
42
|
};
|
39
43
|
return new Promise((resolve, reject) => {
|
40
44
|
// @ts-ignore
|