@fto-consult/expo-ui 5.6.12 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/babel.config.alias.js +2 -10
- package/package.json +2 -2
- package/src/App.js +3 -3
- package/src/auth/Login.js +1 -1
- package/src/auth/ProviderSelector.js +1 -1
- package/src/auth/ThemeSelector/index.js +1 -1
- package/src/components/Animations/Animation/utils.js +1 -1
- package/src/components/AppBar/Content.js +1 -1
- package/src/components/AppBar/index.js +1 -1
- package/src/components/AppBar/utils.js +1 -1
- package/src/components/AutoLink/index.js +1 -1
- package/src/components/AutoSizer/AutoResizer.js +1 -1
- package/src/components/AutoSizer/Vertical.js +1 -1
- package/src/components/Avatar/AutoHeightImage/index.js +1 -1
- package/src/components/Avatar/Image.js +1 -1
- package/src/components/Avatar/Text.js +1 -1
- package/src/components/Avatar/index.js +1 -1
- package/src/components/BackToTop/index.js +1 -1
- package/src/components/Badge/index.js +1 -1
- package/src/components/BottomSheet/Menu.js +1 -1
- package/src/components/BottomSheet/Provider.js +1 -1
- package/src/components/BottomSheet/Sheet.js +2 -2
- package/src/components/BottomSheet/utils.js +1 -1
- package/src/components/Button/index.js +1 -1
- package/src/components/CardView/index.android.js +1 -1
- package/src/components/Chart/appexChart/index.native.js +1 -1
- package/src/components/Chart/appexChart/utils.js +1 -1
- package/src/components/Chart/index.js +1 -1
- package/src/components/Chart/utils.js +1 -1
- package/src/components/Checkbox/index.js +1 -1
- package/src/components/Chip/index.js +1 -1
- package/src/components/Color/ColorPicker.js +1 -1
- package/src/components/Color/index.js +1 -1
- package/src/components/ContentLoader/index copy.js +1 -1
- package/src/components/ContentLoader/index.js +1 -1
- package/src/components/CountUp/index.js +1 -1
- package/src/components/Countries/Flag.js +1 -1
- package/src/components/Countries/SelectCountry.js +2 -2
- package/src/components/Datagrid/Accordion/Filters.js +1 -1
- package/src/components/Datagrid/Accordion/Row.js +1 -1
- package/src/components/Datagrid/Accordion/index.js +1 -1
- package/src/components/Datagrid/Accordion/utils.js +1 -1
- package/src/components/Datagrid/Actions/Header.js +1 -1
- package/src/components/Datagrid/Actions/index.js +1 -1
- package/src/components/Datagrid/Checkbox.js +1 -1
- package/src/components/Datagrid/Common/Common.js +1 -1
- package/src/components/Datagrid/Common/TableData.js +1 -1
- package/src/components/Datagrid/Common/session.js +1 -1
- package/src/components/Datagrid/Common/setQueryLimit.js +1 -1
- package/src/components/Datagrid/Common/utils.js +1 -1
- package/src/components/Datagrid/Dashboard/index.js +1 -1
- package/src/components/Datagrid/Footer/Footer.js +1 -1
- package/src/components/Datagrid/Footer/index.js +1 -1
- package/src/components/Datagrid/IndexComponent.js +1 -1
- package/src/components/Datagrid/RenderType.js +1 -1
- package/src/components/Datagrid/SWRDatagrid.js +2 -2
- package/src/components/Datagrid/Table/index.js +1 -1
- package/src/components/Datagrid/factory.js +1 -1
- package/src/components/Datagrid/getComponent.js +1 -1
- package/src/components/Date/DatePickerInput/index.js +1 -1
- package/src/components/Date/DateTime.js +1 -1
- package/src/components/Date/FormatSelector.js +1 -1
- package/src/components/Date/PeriodAction.js +1 -1
- package/src/components/Date/Time.js +1 -1
- package/src/components/Dialog/Dialog.js +2 -2
- package/src/components/Dialog/DialogFooter.js +1 -1
- package/src/components/Dialog/DialogTitle.js +1 -1
- package/src/components/Dialog/DropdownAlert/index.js +1 -1
- package/src/components/Dialog/Provider.js +1 -1
- package/src/components/Dialog/RNPDialogActions.js +1 -1
- package/src/components/Dialog/confirm/showConfirmOrAlertOrPrompt.js +1 -1
- package/src/components/Dialog/dialogs.js +1 -1
- package/src/components/Dialog/showConfirmOrAlertOrPrompt.js +1 -1
- package/src/components/Dialog/utils.js +1 -1
- package/src/components/DragResize/DragResizeBlock.js +1 -1
- package/src/components/DragResize/index.js +1 -1
- package/src/components/Drawer/DrawerHeader.js +1 -1
- package/src/components/Drawer/DrawerItems/DrawerItem.js +1 -1
- package/src/components/Drawer/DrawerItems/DrawerSection.js +1 -1
- package/src/components/Drawer/DrawerItems/ExpandableItem.js +1 -1
- package/src/components/Drawer/DrawerItems/_DrawerItem.js +1 -1
- package/src/components/Drawer/DrawerItems/index.js +1 -1
- package/src/components/Drawer/DrawerItems/utils.js +1 -1
- package/src/components/Drawer/DrawerLayout/index.js +1 -1
- package/src/components/Drawer/NavigationView.js +1 -1
- package/src/components/Drawer/index.js +1 -1
- package/src/components/Drawer/session.js +1 -1
- package/src/components/Dropdown/index.js +1 -1
- package/src/components/Expandable/Item.js +1 -1
- package/src/components/Expandable/index.js +1 -1
- package/src/components/Fab/Fab.js +1 -1
- package/src/components/Fab/Group.js +1 -1
- package/src/components/Fab/GroupComponent.js +1 -1
- package/src/components/FieldSet/index.js +1 -1
- package/src/components/Filter/BetweenComponent.js +1 -1
- package/src/components/Filter/index.js +2 -2
- package/src/components/Form/Action.js +1 -1
- package/src/components/Form/Fields/Checkbox.js +1 -1
- package/src/components/Form/Fields/Date.js +1 -1
- package/src/components/Form/Fields/DateTime.js +1 -1
- package/src/components/Form/Fields/Field.js +1 -1
- package/src/components/Form/Fields/Html.js +1 -1
- package/src/components/Form/Fields/IdField.js +1 -1
- package/src/components/Form/Fields/Image.js +1 -1
- package/src/components/Form/Fields/PieceField.js +17 -24
- package/src/components/Form/Fields/Radio.js +1 -1
- package/src/components/Form/Fields/SelectField.js +1 -1
- package/src/components/Form/Fields/SelectTableData/Component.js +1 -1
- package/src/components/Form/Fields/Slider.js +1 -1
- package/src/components/Form/Fields/Switch.js +1 -1
- package/src/components/Form/Fields/TextField.js +1 -1
- package/src/components/Form/Fields/Time.js +1 -1
- package/src/components/Form/Fields/index.js +1 -1
- package/src/components/Form/Fields/sprintf.js +1 -1
- package/src/components/Form/Fields/sprintfSelectors.js +1 -1
- package/src/components/Form/Fields/utils.js +1 -1
- package/src/components/Form/Form.js +1 -1
- package/src/components/Form/FormData/Dialog.js +1 -1
- package/src/components/Form/FormData/DialogProvider.js +1 -1
- package/src/components/Form/FormData/FormData.js +1 -1
- package/src/components/Form/FormData/FormDataActions.js +1 -1
- package/src/components/Form/FormData/componentsTypes.js +1 -1
- package/src/components/Form/FormData/utils.js +1 -1
- package/src/components/Form/List/List.js +1 -1
- package/src/components/Form/utils/FormsManager.js +1 -1
- package/src/components/Grid/Cell.js +1 -1
- package/src/components/Grid/Col.js +1 -1
- package/src/components/Grid/Grid.js +1 -1
- package/src/components/Grid/Row.js +1 -1
- package/src/components/Hashtag/index.js +1 -1
- package/src/components/HeavyScreen/index.js +1 -1
- package/src/components/HelperText/index.js +1 -1
- package/src/components/Icon/Checkbox.js +1 -1
- package/src/components/Icon/Font.js +1 -1
- package/src/components/Icon/Icon.js +1 -1
- package/src/components/Icon/IconButton.js +1 -1
- package/src/components/Image/Editor/index copy.js +1 -1
- package/src/components/Image/Editor/index.js +1 -1
- package/src/components/Image/index.js +1 -1
- package/src/components/InlineIndicator/Select.js +1 -1
- package/src/components/InlineIndicator/index.js +1 -1
- package/src/components/Label/index.js +1 -1
- package/src/components/Link/Browser.js +1 -1
- package/src/components/Link/getUrlCallback.js +1 -1
- package/src/components/Link/index.js +1 -1
- package/src/components/List/BigList.js +1 -1
- package/src/components/List/Common.js +1 -1
- package/src/components/List/RecyclerView.js +1 -1
- package/src/components/List/utils.js +1 -1
- package/src/components/Logo/Logo.js +1 -1
- package/src/components/Menu/Item.js +1 -1
- package/src/components/Menu/Menu.js +1 -1
- package/src/components/Menu/index.js +1 -1
- package/src/components/Menu/utils.js +1 -1
- package/src/components/Modal/index.js +1 -1
- package/src/components/Paragraph/index.js +1 -1
- package/src/components/PasswordText/index.js +2 -2
- package/src/components/PhoneInput/index.js +1 -1
- package/src/components/Preloader/index.js +1 -1
- package/src/components/Radio/index.js +1 -1
- package/src/components/Resizable/index.web.js +1 -1
- package/src/components/ScrollView/index copy.js +1 -1
- package/src/components/ScrollView/index.back.js +1 -1
- package/src/components/ScrollView/index.js +1 -1
- package/src/components/ScrollView/index.withWeb.js +1 -1
- package/src/components/SelectCurrency/index.js +1 -1
- package/src/components/Signature/index.js +2 -2
- package/src/components/SimpleSelect/index.js +1 -1
- package/src/components/Slider/index.js +1 -1
- package/src/components/Snackbar/index.js +1 -1
- package/src/components/SplashScreen/index.js +1 -1
- package/src/components/StatusBar/Component/index.web.js +1 -1
- package/src/components/Swipeable/Swipe.js +1 -1
- package/src/components/Swipeable/SwipeableGesture.js +1 -1
- package/src/components/Swiper/index.js +1 -1
- package/src/components/Switch/index.js +1 -1
- package/src/components/Tab/TabContent.js +1 -1
- package/src/components/Tab/TabItem.js +1 -1
- package/src/components/Tab/TabItems.js +1 -1
- package/src/components/Tab/index.js +1 -1
- package/src/components/Table/AbsoluteScrollView.js +1 -1
- package/src/components/Table/Cell.js +1 -1
- package/src/components/Table/List/List.js +1 -1
- package/src/components/Table/List/index.js +1 -1
- package/src/components/Table/ProgressBar.js +1 -1
- package/src/components/Table/index.js +1 -1
- package/src/components/TableLink/index.js +1 -1
- package/src/components/TextField/index.js +1 -1
- package/src/components/Tooltip/Popover/index.js +1 -1
- package/src/components/Tooltip/Popover/index.web.js +1 -1
- package/src/components/Tooltip/index.js +1 -1
- package/src/components/View/index.js +1 -1
- package/src/components/WebView/index.js +1 -1
- package/src/layouts/AppBar/index.js +1 -1
- package/src/layouts/DatabaseStatistics/DatabaseStatistic.js +1 -1
- package/src/layouts/DatabaseStatistics/index.js +1 -1
- package/src/layouts/Fab/index.js +1 -1
- package/src/layouts/ProfilAvatar/index.js +2 -2
- package/src/layouts/Screen/FormData/FormData.js +1 -1
- package/src/layouts/Screen/FormData/List.js +1 -1
- package/src/layouts/Screen/ScreenWithOrWithoutAuthContainer.js +1 -1
- package/src/layouts/Screen/TableData.js +1 -1
- package/src/layouts/Screen/utils.js +1 -1
- package/src/media/Assets/utils.js +1 -1
- package/src/media/file-system/utils/index.js +1 -1
- package/src/media/file-system/utils/write.js +1 -1
- package/src/media/index.js +1 -1
- package/src/navigation/utils.js +1 -1
- package/src/screens/Auth/PermLines.js +1 -1
- package/src/screens/Auth/PermProfile.js +1 -1
- package/src/screens/Auth/PermProfiles.js +1 -1
- package/src/screens/Auth/Profile.js +1 -1
- package/src/screens/Help/About.js +1 -1
- package/src/screens/Help/PrivacyPolicy/Link.js +1 -1
- package/src/screens/Help/TermsOfUses/index.js +1 -1
- package/src/screens/Help/deviceProps.js +1 -1
- package/src/screens/index.js +1 -1
package/babel.config.alias.js
CHANGED
|
@@ -12,16 +12,8 @@ module.exports = (opts)=>{
|
|
|
12
12
|
opts.withPouchDB = opts.withPouchDB !== false && opts.withPouchdb !== false ? true : false;
|
|
13
13
|
delete opts.withPouchdb;
|
|
14
14
|
const expoUI = require("./expo-ui-path")();
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
const envPath = path.resolve(base,".env");
|
|
18
|
-
const envObj = fs.existsSync(envPath)? require("./parse-env")(fs.readFileSync(envPath,'utf8')) : {};
|
|
19
|
-
const commonPathm = typeof envObj.COMMON_ROOT_PATH =="string" && envObj.COMMON_ROOT_PATH && path.resolve(envObj.COMMON_ROOT_PATH)||'';
|
|
20
|
-
const cm = commonPathm && fs.existsSync(commonPathm)? commonPathm : null;
|
|
21
|
-
if(cm && fs.existsSync(path.resolve(cm,"src")) && fs.existsSync(path.resolve(cm,"babel.config.alias.js"))){
|
|
22
|
-
cpath = path.resolve(cm,"babel.config.alias.js");
|
|
23
|
-
}
|
|
24
|
-
} catch{}
|
|
15
|
+
const euCommon = path.resolve(expoUI,"node_modules","@fto-consult","common");
|
|
16
|
+
const cpath = fs.existsSync(euCommon)? path.resolve(euCommon,"babel.config.alias") : "@fto-consult/common/babel.config.alias";
|
|
25
17
|
const r = require(`${cpath}`)(opts);
|
|
26
18
|
const expo = path.resolve(expoUI,"src");
|
|
27
19
|
r["$eauth"] = path.resolve(expo,"auth");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fto-consult/expo-ui",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.7.0",
|
|
4
4
|
"description": "Bibliothèque de composants UI Expo,react-native",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"@emotion/native": "^11.10.0",
|
|
62
62
|
"@expo/html-elements": "^0.2.0",
|
|
63
63
|
"@expo/vector-icons": "^13.0.0",
|
|
64
|
-
"@fto-consult/common": "^3.
|
|
64
|
+
"@fto-consult/common": "^3.10.0",
|
|
65
65
|
"@gorhom/portal": "^1.0.14",
|
|
66
66
|
"@react-native-async-storage/async-storage": "^1.17.11",
|
|
67
67
|
"@react-native-community/datetimepicker": "^6.7.3",
|
package/src/App.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import '$session';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import {SWRConfig} from "$swr";
|
|
4
|
-
import {defaultObj} from "$
|
|
4
|
+
import {defaultObj} from "$cutils";
|
|
5
5
|
import {updateTheme,defaultTheme} from "$theme";
|
|
6
6
|
import {Provider as PaperProvider } from 'react-native-paper';
|
|
7
7
|
import Index from './index';
|
|
@@ -30,11 +30,11 @@ import appConfig from "$capp/config";
|
|
|
30
30
|
import {showPrompt} from "$components/Dialog/confirm";
|
|
31
31
|
import { AppState } from 'react-native'
|
|
32
32
|
import {canFetchOffline} from "$capi/utils";
|
|
33
|
-
import {defaultNumber} from "$
|
|
33
|
+
import {defaultNumber} from "$cutils";
|
|
34
34
|
import { timeout as SWR_REFRESH_TIMEOUT} from '$ecomponents/Datagrid/SWRDatagrid';
|
|
35
35
|
import { Dimensions,Keyboard } from 'react-native';
|
|
36
36
|
import {isTouchDevice} from "$platform";
|
|
37
|
-
import * as Utils from "$
|
|
37
|
+
import * as Utils from "$cutils";
|
|
38
38
|
Object.map(Utils,(v,i)=>{
|
|
39
39
|
if(typeof v =='function' && typeof window !='undefined' && window && !window[i]){
|
|
40
40
|
window[i] = v;
|
package/src/auth/Login.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
|
-
import {isNonNullString,isObj,defaultNumber,defaultStr,uniqid,extendObj,isFunction} from "$
|
|
2
|
+
import {isNonNullString,isObj,defaultNumber,defaultStr,uniqid,extendObj,isFunction} from "$cutils";
|
|
3
3
|
import {navigate} from "$cnavigation";
|
|
4
4
|
import FormData from "$ecomponents/Form/FormData/FormData";
|
|
5
5
|
import {getForm} from "$ecomponents/Form/utils";
|
|
@@ -5,7 +5,7 @@ import Button from "$components/Button";
|
|
|
5
5
|
import Menu from "$components/Menu";
|
|
6
6
|
import theme from "$theme";
|
|
7
7
|
import React from "$react";
|
|
8
|
-
import {isObj,defaultStr,defaultObj} from "$
|
|
8
|
+
import {isObj,defaultStr,defaultObj} from "$cutils";
|
|
9
9
|
import PropTypes from "prop-types";
|
|
10
10
|
import View from "$components/View";
|
|
11
11
|
|
|
@@ -11,7 +11,7 @@ import defaultTheme,{getColors} from "$theme/defaultTheme";
|
|
|
11
11
|
import theme,{defaultDarkTheme,Colors,defaultLightTheme} from "$theme";
|
|
12
12
|
import Provider from "$ecomponents/Form/FormData/DialogProvider";
|
|
13
13
|
import Dropdown from "$ecomponents/Dropdown";
|
|
14
|
-
import {defaultObj} from "$
|
|
14
|
+
import {defaultObj} from "$cutils";
|
|
15
15
|
import Icon from "$ecomponents/Icon";
|
|
16
16
|
import {open,close} from "$preloader";
|
|
17
17
|
import {fields,getThemeData} from "$theme/utils";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {defaultStr,isObj} from "$
|
|
1
|
+
import {defaultStr,isObj} from "$cutils";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import {FadeIn,FadeInRight,FadeInLeft,FadeInUp,FadeInDown,SlideInRight,SlideInLeft,SlideInUp,SlideInDown} from "react-native-reanimated";
|
|
4
4
|
import {FadeOut,FadeOutRight,FadeOutLeft,FadeOutUp,FadeOutDown,SlideOutRight,SlideOutLeft,SlideOutUp,SlideOutDown} from "react-native-reanimated";
|
|
@@ -3,7 +3,7 @@ import {Platform,StyleSheet,TouchableWithoutFeedback,View} from 'react-native';
|
|
|
3
3
|
import Label from "$ecomponents/Label";
|
|
4
4
|
import theme,{Colors,StyleProp} from "$theme";
|
|
5
5
|
import PropTypes from "prop-types";
|
|
6
|
-
import {defaultObj,defaultStr} from "$
|
|
6
|
+
import {defaultObj,defaultStr} from "$cutils";
|
|
7
7
|
import {isIos,isAndroid,isWeb} from "$cplatform";
|
|
8
8
|
|
|
9
9
|
const AppbarContent = React.forwardRef(({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from "$react"
|
|
2
2
|
import { Appbar} from 'react-native-paper';
|
|
3
|
-
import {defaultObj,defaultVal,defaultStr} from "$
|
|
3
|
+
import {defaultObj,defaultVal,defaultStr} from "$cutils";
|
|
4
4
|
import APP from "$capp/instance"
|
|
5
5
|
import {isSplitedActions,renderSplitedActions,splitActions,TITLE_FONT_SIZE} from "./utils";
|
|
6
6
|
import theme,{Colors,flattenStyle} from "$theme";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {isPlainObj,defaultFunc,defaultStr,isObjOrArray,isObj,defaultObj} from "$
|
|
1
|
+
import {isPlainObj,defaultFunc,defaultStr,isObjOrArray,isObj,defaultObj} from "$cutils";
|
|
2
2
|
import {getWindowSizes,isMobileOrTabletMedia,isMobileMedia} from "$cdimensions";
|
|
3
3
|
import { StyleSheet } from "react-native";
|
|
4
4
|
import Button from "$ecomponents/Button";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Linking from 'expo-linking';
|
|
6
6
|
import { Pressable } from 'react-native';
|
|
7
|
-
import {isValidUrl,isValidEmail,defaultStr,isSms} from "$
|
|
7
|
+
import {isValidUrl,isValidEmail,defaultStr,isSms} from "$cutils";
|
|
8
8
|
import PropTypes from "prop-types";
|
|
9
9
|
import Browser from "$ecomponents/Browser";
|
|
10
10
|
|
|
@@ -7,7 +7,7 @@ import { Platform, StyleSheet, View} from "react-native";
|
|
|
7
7
|
import { findDOMNode } from "react-dom";
|
|
8
8
|
import PropTypes from "prop-types";
|
|
9
9
|
import stableHash from "stable-hash";
|
|
10
|
-
import {defaultNumber,isNumber} from "$
|
|
10
|
+
import {defaultNumber,isNumber} from "$cutils";
|
|
11
11
|
|
|
12
12
|
const styles = StyleSheet.create({container: { flex: 1 }});
|
|
13
13
|
|
|
@@ -3,7 +3,7 @@ import { Dimensions} from 'react-native';
|
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import View from "$ecomponents/View";
|
|
5
5
|
import theme from "$theme";
|
|
6
|
-
import {defaultStr,defaultObj,defaultNumber} from "$
|
|
6
|
+
import {defaultStr,defaultObj,defaultNumber} from "$cutils";
|
|
7
7
|
import APP from "$capp/instance";
|
|
8
8
|
import ActivityIndicator from "$ecomponents/ActivityIndicator";
|
|
9
9
|
import {isWeb} from "$cplatform";
|
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import { ActivityIndicator } from 'react-native-paper';
|
|
7
7
|
import theme from "$theme";
|
|
8
8
|
import View from "$ecomponents/View";
|
|
9
|
-
import {defaultStr} from "$
|
|
9
|
+
import {defaultStr} from "$cutils";
|
|
10
10
|
|
|
11
11
|
import { getImageSizeFitWidth, getImageSizeFitWidthFromCache } from './cache';
|
|
12
12
|
import { NOOP, DEFAULT_HEIGHT } from './helpers';
|
|
@@ -2,7 +2,7 @@ import React from '$react';
|
|
|
2
2
|
import {Image,StyleSheet,TouchableOpacity} from 'react-native';
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import { StyleProp } from '$theme';
|
|
5
|
-
import {defaultStr,isNumber,defaultNumber} from "$
|
|
5
|
+
import {defaultStr,isNumber,defaultNumber} from "$cutils";
|
|
6
6
|
import AutoHeightImage from "./AutoHeightImage";
|
|
7
7
|
|
|
8
8
|
export const SIZE = 64;
|
|
@@ -3,7 +3,7 @@ import {Text,StyleSheet,Pressable} from 'react-native';
|
|
|
3
3
|
import View from "$ecomponents/View";
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import {Colors,StylePropTypes} from "$theme";
|
|
6
|
-
import {defaultStr,defaultNumber} from "$
|
|
6
|
+
import {defaultStr,defaultNumber} from "$cutils";
|
|
7
7
|
|
|
8
8
|
const defaultSize = 64;
|
|
9
9
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Avatar } from "react-native-paper";
|
|
2
2
|
import {Colors} from "$theme";
|
|
3
|
-
import {defaultDecimal,isNumber,defaultVal,isValid,defaultStr,defaultObj} from "$
|
|
3
|
+
import {defaultDecimal,isNumber,defaultVal,isValid,defaultStr,defaultObj} from "$cutils";
|
|
4
4
|
import {StyleSheet} from "react-native";
|
|
5
5
|
import React from "react";
|
|
6
6
|
import Text from "./Text";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import View from "$ecomponents/View";
|
|
7
7
|
import theme,{ StyleProps,Colors} from '$theme';
|
|
8
8
|
import PropTypes from "prop-types";
|
|
9
|
-
import {defaultVal,defaultNumber,defaultObj} from "$
|
|
9
|
+
import {defaultVal,defaultNumber,defaultObj} from "$cutils";
|
|
10
10
|
import Label from "$ecomponents/Label";
|
|
11
11
|
|
|
12
12
|
const defaultSize = 18;
|
|
@@ -2,7 +2,7 @@ import BottomSheet from "./Sheet";
|
|
|
2
2
|
import {isMobileMedia} from "$cplatform/dimensions";
|
|
3
3
|
import Menu,{renderItems} from "$ecomponents/Menu";
|
|
4
4
|
import React from "$react";
|
|
5
|
-
import {defaultObj,defaultDecimal,defaultStr,isDecimal,defaultBool} from "$
|
|
5
|
+
import {defaultObj,defaultDecimal,defaultStr,isDecimal,defaultBool} from "$cutils";
|
|
6
6
|
import View from "$ecomponents/View";
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
8
|
import {getContentHeight} from "./utils";
|
|
@@ -4,7 +4,7 @@ import PropTypes from "prop-types";
|
|
|
4
4
|
import theme,{Colors} from "$theme";
|
|
5
5
|
import Label from "$ecomponents/Label";
|
|
6
6
|
import { renderActions } from "$ecomponents/Dialog";
|
|
7
|
-
import {isObjOrArray,defaultVal,defaultObj} from "$
|
|
7
|
+
import {isObjOrArray,defaultVal,defaultObj} from "$cutils";
|
|
8
8
|
import {renderSplitedActions} from "$ecomponents/AppBar/utils";
|
|
9
9
|
import {isWeb,isNativeMobile} from "$cplatform";
|
|
10
10
|
import Divider from "$ecomponents/Divider";
|
|
@@ -12,7 +12,7 @@ import {isMobileOrTabletMedia} from "$cplatform/dimensions";
|
|
|
12
12
|
import APP from "$capp/instance";
|
|
13
13
|
import KeyboardAvoidingView from "$ecomponents/KeyboardAvoidingView";
|
|
14
14
|
import {Elevations} from "$ecomponents/Surface";
|
|
15
|
-
import {defaultStr} from "$
|
|
15
|
+
import {defaultStr} from "$cutils";
|
|
16
16
|
import View from "$ecomponents/View";
|
|
17
17
|
import {Easing} from "react-native";
|
|
18
18
|
import Portal from "$ecomponents/Portal";
|
|
@@ -11,7 +11,7 @@ import {TouchableRipple} from "react-native-paper";
|
|
|
11
11
|
import ActivityIndicator from "$ecomponents/ActivityIndicator";
|
|
12
12
|
import Surface from "$ecomponents/Surface";
|
|
13
13
|
import Label from "$ecomponents/Label";
|
|
14
|
-
import {defaultObj,defaultVal,defaultDecimal,defaultStr} from "$
|
|
14
|
+
import {defaultObj,defaultVal,defaultDecimal,defaultStr} from "$cutils";
|
|
15
15
|
|
|
16
16
|
import PropTypes from "prop-types";
|
|
17
17
|
const white = "white";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
const htmlTemplate = require("./index.html");
|
|
2
2
|
import React from "$react";
|
|
3
3
|
import WebView from "$ecomponents/WebView";
|
|
4
|
-
import {defaultStr,defaultObj,uniqid} from "$
|
|
4
|
+
import {defaultStr,defaultObj,uniqid} from "$cutils";
|
|
5
5
|
import View from "$ecomponents/View";
|
|
6
6
|
import { methodsNames } from "./utils";
|
|
7
7
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2022 @fto-consult/Boris Fouomene. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
|
-
import {defaultNumber} from "$
|
|
4
|
+
import {defaultNumber} from "$cutils";
|
|
5
5
|
export const methodsNames = ["updateOptions","updateSeries","destroy","render","exec","appendSeries","toggleSeries","showSeries","hideSeries","zoomX","resetSeries","appendData","toggleDataPointSelection","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","removeAnnotation","clearAnnotations","dataURI","clearAnnotations",""];
|
|
6
6
|
|
|
7
7
|
export const destroyChart = (chartContext,timeout)=>{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from '$react'
|
|
2
2
|
import PropTypes from 'prop-types'
|
|
3
|
-
import {defaultStr,defaultVal,defaultObj,uniqid} from "$
|
|
3
|
+
import {defaultStr,defaultVal,defaultObj,uniqid} from "$cutils";
|
|
4
4
|
import Chart from "./appexChart";
|
|
5
5
|
import theme from "$theme";
|
|
6
6
|
import { destroyChart } from './appexChart/utils';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2022 @fto-consult/Boris Fouomene. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
|
-
import {isObj,defaultNumber} from "$
|
|
4
|
+
import {isObj,defaultNumber} from "$cutils";
|
|
5
5
|
import appConfig from "$app/config";
|
|
6
6
|
|
|
7
7
|
/*** retourne le nombre maximal de courbes pouvant s'afficher sur un même graphe
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Checkbox } from 'react-native-paper';
|
|
2
2
|
import View from "$ecomponents/View";
|
|
3
3
|
import React from "$react";
|
|
4
|
-
import {isUndefined,defaultObj,defaultVal,defaultStr} from "$
|
|
4
|
+
import {isUndefined,defaultObj,defaultVal,defaultStr} from "$cutils";
|
|
5
5
|
import {isIos,isAndroid} from "$cplatform";
|
|
6
6
|
import theme,{Colors,DISABLED_OPACITY,ALPHA_OPACITY} from "$theme";
|
|
7
7
|
import { StyleSheet } from 'react-native';
|
|
@@ -11,7 +11,7 @@ import {Text,TouchableRipple } from 'react-native-paper';
|
|
|
11
11
|
import theme,{ black,Colors, white,StyleProps} from '$theme';
|
|
12
12
|
import PropTypes from "prop-types";
|
|
13
13
|
import {flatMode } from '$ecomponents/TextField/utils';
|
|
14
|
-
import {defaultStr} from "$
|
|
14
|
+
import {defaultStr} from "$cutils";
|
|
15
15
|
import Surface from "$ecomponents/Surface";
|
|
16
16
|
|
|
17
17
|
const ChipComponent = React.forwardRef(({
|
|
@@ -7,7 +7,7 @@ import PropTypes from "prop-types";
|
|
|
7
7
|
import React from "$react";
|
|
8
8
|
import Dialog from "$ecomponents/Dialog";
|
|
9
9
|
import {isMobileOrTabletMedia} from "$cplatform/dimensions";
|
|
10
|
-
import {defaultStr,defaultObj} from "$
|
|
10
|
+
import {defaultStr,defaultObj} from "$cutils";
|
|
11
11
|
|
|
12
12
|
const ColorPickerComponent = React.forwardRef ((props,ref)=>{
|
|
13
13
|
let {defaultValue,label,rippleColor,onChange,text,containerProp,editable,disabled,readOnly,...rest} = props;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**** see : https://github.com/danilowoz/react-content-loader */
|
|
2
|
-
import {defaultObj} from "$
|
|
2
|
+
import {defaultObj} from "$cutils";
|
|
3
3
|
import View from "$ecomponents/View";
|
|
4
4
|
import {StyleSheet,Dimensions,useWindowDimensions} from "react-native";
|
|
5
5
|
import React from "react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
2
|
import PropTypes from "prop-types";
|
|
3
3
|
import Label from "$ecomponents/Label";
|
|
4
|
-
import {defaultNumber,defaultStr} from "$
|
|
4
|
+
import {defaultNumber,defaultStr} from "$cutils";
|
|
5
5
|
|
|
6
6
|
export const getDefaultStep = (count)=>{
|
|
7
7
|
count = Math.abs(parseInt(count)||0);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "$react";
|
|
2
2
|
import Image from "$components/Image";
|
|
3
3
|
import { getCountry,styles} from "./utils";
|
|
4
|
-
import {isNonNullString,defaultStr,isNumber} from "$
|
|
4
|
+
import {isNonNullString,defaultStr,isNumber} from "$cutils";
|
|
5
5
|
import View from "$ecomponents/View"
|
|
6
6
|
import theme from "$theme";
|
|
7
7
|
import Label from "$components/Label";
|
|
@@ -3,9 +3,9 @@ import SimpleSelect from "$ecomponents/SimpleSelect";
|
|
|
3
3
|
import { countries,styles} from "./utils";
|
|
4
4
|
import View from "$ecomponents/View";
|
|
5
5
|
import {StyleSheet,Image} from "react-native";
|
|
6
|
-
import {defaultObj} from "$
|
|
6
|
+
import {defaultObj} from "$cutils";
|
|
7
7
|
import PropTypes from "prop-types";
|
|
8
|
-
import {isNonNullString,isNumber,defaultStr} from "$
|
|
8
|
+
import {isNonNullString,isNumber,defaultStr} from "$cutils";
|
|
9
9
|
import Label from "$ecomponents/Label";
|
|
10
10
|
import appConfig from "$capp/config";
|
|
11
11
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {Content} from "$ecomponents/BottomSheet";
|
|
2
2
|
import Icon from "$ecomponents/Icon";
|
|
3
3
|
import React from "$react";
|
|
4
|
-
import {defaultStr,defaultBool,defaultObj} from "$
|
|
4
|
+
import {defaultStr,defaultBool,defaultObj} from "$cutils";
|
|
5
5
|
import Filter, {canHandleFilter,getFilterStateValues} from "$ecomponents/Filter";
|
|
6
6
|
import PropTypes from "prop-types";
|
|
7
7
|
import { StyleSheet,View } from "react-native";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import Avatar from "$ecomponents/Avatar";
|
|
2
2
|
import { StyleSheet,Pressable,Animated,View} from "react-native";
|
|
3
|
-
import {defaultObj,isObj,defaultStr,isFunction,defaultBool} from "$
|
|
3
|
+
import {defaultObj,isObj,defaultStr,isFunction,defaultBool} from "$cutils";
|
|
4
4
|
import {getContentHeight} from "$ecomponents/BottomSheet";
|
|
5
5
|
import Label from "$ecomponents/Label";
|
|
6
6
|
import PropTypes from "prop-types";
|
|
@@ -25,7 +25,7 @@ import List from "$ecomponents/Table/List";
|
|
|
25
25
|
import theme,{Colors} from "$theme";
|
|
26
26
|
import {getRowStyle,styles as rStyles} from "../utils";
|
|
27
27
|
import Avatar from "$ecomponents/Avatar";
|
|
28
|
-
import {defaultObj,isOb,isNonNullString} from "$
|
|
28
|
+
import {defaultObj,isOb,isNonNullString} from "$cutils";
|
|
29
29
|
import PropTypes from "prop-types";
|
|
30
30
|
|
|
31
31
|
const DatagridFactory = (Factory)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
|
|
2
2
|
import Header from "./Header";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
|
-
import {isFunction,defaultObj} from "$
|
|
4
|
+
import {isFunction,defaultObj} from "$cutils";
|
|
5
5
|
import React from "$react";
|
|
6
6
|
import {splitActions,renderSplitedActions} from "$ecomponents/AppBar/utils";
|
|
7
7
|
import {MORE_ICON} from "$ecomponents/Icon/utils";
|
|
@@ -11,7 +11,7 @@ import {showConfirm} from "$ecomponents/Dialog";
|
|
|
11
11
|
import Label from "$ecomponents/Label";
|
|
12
12
|
import Icon,{COPY_ICON,CHECKED_ICON,UNCHECKED_ICON} from "$ecomponents/Icon";
|
|
13
13
|
import filterUtils from "$cfilters";
|
|
14
|
-
import {sortBy,isDecimal,defaultVal,sanitizeSheetName,extendObj,isObjOrArray,isObj,defaultNumber,defaultStr,isFunction,defaultBool,defaultArray,defaultObj,isNonNullString,defaultDecimal} from "$
|
|
14
|
+
import {sortBy,isDecimal,defaultVal,sanitizeSheetName,extendObj,isObjOrArray,isObj,defaultNumber,defaultStr,isFunction,defaultBool,defaultArray,defaultObj,isNonNullString,defaultDecimal} from "$cutils";
|
|
15
15
|
import {Datagrid as DatagridContentLoader} from "$ecomponents/ContentLoader";
|
|
16
16
|
import React from "$react";
|
|
17
17
|
import DateLib from "$lib/date";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CommonDatagrid from "./Common";
|
|
2
|
-
import {defaultObj,extendObj,defaultStr,isNonNullString,isFunction,isPromise} from "$
|
|
2
|
+
import {defaultObj,extendObj,defaultStr,isNonNullString,isFunction,isPromise} from "$cutils";
|
|
3
3
|
import PropTypes from "prop-types";
|
|
4
4
|
import actions from "$actions";
|
|
5
5
|
/****
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {showPrompt,notify} from "$ecomponents/Dialog";
|
|
2
|
-
import {defaultFunc,isNonNullString,defaultDecimal} from "$
|
|
2
|
+
import {defaultFunc,isNonNullString,defaultDecimal} from "$cutils";
|
|
3
3
|
import APP from "$capp/instance";
|
|
4
4
|
|
|
5
5
|
const setDatagridQueryLimit = (limit,successCB,errorCB)=>{
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Copyright 2023 @fto-consult/Boris Fouomene. All rights reserved.
|
|
2
2
|
// Use of this source code is governed by a BSD-style
|
|
3
3
|
// license that can be found in the LICENSE file.
|
|
4
|
-
import {isNonNullString,isArray,isObjOrArray,defaultStr,defaultArray,defaultObj,isObj} from "$
|
|
4
|
+
import {isNonNullString,isArray,isObjOrArray,defaultStr,defaultArray,defaultObj,isObj} from "$cutils";
|
|
5
5
|
import Hashtag from "$ecomponents/Hashtag";
|
|
6
6
|
import DateLib from "$date";
|
|
7
7
|
import Image from "$ecomponents/Image";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import {TableData} from "../Common";
|
|
2
|
-
import {defaultObj,defaultArray,defaultStr,defaultDecimal,isNonNullString} from "$
|
|
2
|
+
import {defaultObj,defaultArray,defaultStr,defaultDecimal,isNonNullString} from "$cutils";
|
|
3
3
|
import View from "$ecomponents/View";
|
|
4
4
|
import { StyleSheet,Dimensions,Pressable } from "react-native";
|
|
5
5
|
import Icon,{MENU_ICON} from "$ecomponents/Icon";
|
|
@@ -2,7 +2,7 @@ import Menu from "$ecomponents/BottomSheet/Menu";
|
|
|
2
2
|
import View from "$ecomponents/View";
|
|
3
3
|
import {Pressable,StyleSheet} from "react-native";
|
|
4
4
|
import Label from "$ecomponents/Label";
|
|
5
|
-
import {defaultVal,defaultObj,isNonNullString,isObj} from "$
|
|
5
|
+
import {defaultVal,defaultObj,isNonNullString,isObj} from "$cutils";
|
|
6
6
|
import React from "$react";
|
|
7
7
|
import theme from "$theme"
|
|
8
8
|
import appConfig from "$capp/config";
|
|
@@ -3,7 +3,7 @@ import View from "$ecomponents/View";
|
|
|
3
3
|
import React from "$react";
|
|
4
4
|
import memoize from "$react/memoize";
|
|
5
5
|
export {default as FooterItem} from "./Footer";
|
|
6
|
-
import {parseDecimal,defaultObj,defaultStr,isNonNullString} from "$
|
|
6
|
+
import {parseDecimal,defaultObj,defaultStr,isNonNullString} from "$cutils";
|
|
7
7
|
import { aggregatorFunctions as mAggregatorFunctions } from "./Footer";
|
|
8
8
|
export * from "./Footer";
|
|
9
9
|
|
|
@@ -6,7 +6,7 @@ import Accordion,{ TableData as TableDataAccordion} from "./Accordion";
|
|
|
6
6
|
import Dashboard from "./Dashboard";
|
|
7
7
|
import Table,{TableData as DatagridTableData} from "./Table";
|
|
8
8
|
import {isDesktopMedia,isMobileMedia} from "$cplatform/dimensions";
|
|
9
|
-
import {isFunction,defaultVal} from "$
|
|
9
|
+
import {isFunction,defaultVal} from "$cutils";
|
|
10
10
|
import React from "$react";
|
|
11
11
|
import {getRenderType} from "./utils";
|
|
12
12
|
|
|
@@ -2,7 +2,7 @@ import {get,set} from "./Common/session";
|
|
|
2
2
|
import Icon from "$ecomponents/Icon";
|
|
3
3
|
import {notify} from "$ecomponents/Dialog";
|
|
4
4
|
import {isDesktopMedia} from "$cplatform/dimensions";
|
|
5
|
-
import {defaultStr} from "$
|
|
5
|
+
import {defaultStr} from "$cutils";
|
|
6
6
|
import {Menu} from "$ecomponents/BottomSheet";
|
|
7
7
|
import {accordionIcon,tableIcon,typeKey} from "./RenderTypes/utils";
|
|
8
8
|
import rendersTypes from "./RenderTypes";;
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
* @see :
|
|
7
7
|
*/
|
|
8
8
|
import Datagrid from "./IndexComponent";
|
|
9
|
-
import {defaultStr,defaultObj,defaultVal,isNonNullString,defaultNumber,isObjOrArray,isObj,extendObj} from "$
|
|
9
|
+
import {defaultStr,defaultObj,defaultVal,isNonNullString,defaultNumber,isObjOrArray,isObj,extendObj} from "$cutils";
|
|
10
10
|
import {Pressable} from "react-native";
|
|
11
11
|
import React from "$react";
|
|
12
12
|
import Auth from "$cauth";
|
|
13
13
|
import DateLib from "$lib/date";
|
|
14
14
|
import {getFetchOptions} from "$cutils/filters";
|
|
15
15
|
import {setQueryParams} from "$cutils/uri";
|
|
16
|
-
import {uniqid} from "$
|
|
16
|
+
import {uniqid} from "$cutils";
|
|
17
17
|
import { getFetcherOptions } from "$capi/fetch";
|
|
18
18
|
import Icon from "$ecomponents/Icon";
|
|
19
19
|
import Label from "$ecomponents/Label";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import CommonDatagrid,{TableData as CommonDatagridTableData} from "../Common";
|
|
2
|
-
import {defaultObj,defaultArray,defaultStr,defaultDecimal,isNonNullString} from "$
|
|
2
|
+
import {defaultObj,defaultArray,defaultStr,defaultDecimal,isNonNullString} from "$cutils";
|
|
3
3
|
import View from "$ecomponents/View";
|
|
4
4
|
import { StyleSheet,Dimensions,Pressable ,ScrollView} from "react-native";
|
|
5
5
|
import {isMobileOrTabletMedia} from "$cplatform/dimensions";
|