@evlop/commons 1.0.69 → 1.0.73
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/generateIcons.d.ts +2 -0
- package/dist/generateIcons.d.ts.map +1 -0
- package/dist/generateIcons.js +13 -0
- package/dist/generateIcons.js.map +1 -0
- package/dist/main.d.ts +2 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +5 -1
- package/dist/main.js.map +1 -1
- package/dist/src/classes/Model.d.ts +3 -3
- package/dist/src/components/hoc/withCollection.d.ts +3 -3
- package/dist/src/components/hoc/withCollectionRecord.d.ts +2 -2
- package/dist/src/components/hoc/withSettings.d.ts.map +1 -1
- package/dist/src/components/hoc/withSettings.js +2 -2
- package/dist/src/components/hoc/withSettings.js.map +1 -1
- package/dist/src/constants/iconInfo.d.ts +17 -0
- package/dist/src/constants/iconInfo.d.ts.map +1 -0
- package/dist/src/constants/iconInfo.js +47 -0
- package/dist/src/constants/iconInfo.js.map +1 -0
- package/dist/src/constants/icons.d.ts +15408 -0
- package/dist/src/constants/icons.d.ts.map +1 -0
- package/dist/src/constants/icons.js +15410 -0
- package/dist/src/constants/icons.js.map +1 -0
- package/dist/src/reducers/context.d.ts +3 -3
- package/package.json +7 -3
- package/dist/src/hooks/useNavigator.native.d.ts +0 -3
- package/dist/src/hooks/useNavigator.native.d.ts.map +0 -1
- package/dist/src/hooks/useNavigator.native.js +0 -23
- package/dist/src/hooks/useNavigator.native.js.map +0 -1
- package/dist/src/hooks/useNavigator.web.d.ts +0 -3
- package/dist/src/hooks/useNavigator.web.d.ts.map +0 -1
- package/dist/src/hooks/useNavigator.web.js +0 -23
- package/dist/src/hooks/useNavigator.web.js.map +0 -1
- package/dist/src/hooks/useParams.native.d.ts +0 -2
- package/dist/src/hooks/useParams.native.d.ts.map +0 -1
- package/dist/src/hooks/useParams.native.js +0 -11
- package/dist/src/hooks/useParams.native.js.map +0 -1
- package/dist/src/hooks/useParams.web.d.ts +0 -2
- package/dist/src/hooks/useParams.web.d.ts.map +0 -1
- package/dist/src/hooks/useParams.web.js +0 -11
- package/dist/src/hooks/useParams.web.js.map +0 -1
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateIcons.d.ts","sourceRoot":"","sources":["../generateIcons.ts"],"names":[],"mappings":""}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const lodash_1 = require("lodash");
|
7
|
+
const change_case_1 = require("change-case");
|
8
|
+
const iconInfo_1 = __importDefault(require("./src/constants/iconInfo"));
|
9
|
+
require('fs').writeFileSync('./src/constants/icons.ts', [
|
10
|
+
'const icons = ' + JSON.stringify(lodash_1.chain(Object.keys(iconInfo_1.default)).mapKeys(k => change_case_1.constantCase(k)).mapValues(k => k).value(), null, 2),
|
11
|
+
'export default icons;'
|
12
|
+
].join('\n'));
|
13
|
+
//# sourceMappingURL=generateIcons.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateIcons.js","sourceRoot":"","sources":["../generateIcons.ts"],"names":[],"mappings":";;;;;AAAA,mCAA+B;AAC/B,6CAA2C;AAC3C,wEAAgD;AAEhD,OAAO,CAAC,IAAI,CAAC,CAAC,aAAa,CACzB,0BAA0B,EAC1B;IACE,gBAAgB,GAAC,IAAI,CAAC,SAAS,CAAC,cAAK,CAAC,MAAM,CAAC,IAAI,CAAC,kBAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAA,EAAE,CAAA,0BAAY,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1H,uBAAuB;CACxB,CAAC,IAAI,CAAC,IAAI,CAAC,CAEb,CAAC"}
|
package/dist/main.d.ts
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
export * from './src/components';
|
2
2
|
export * from './src/helpers';
|
3
3
|
export * from './src/constants';
|
4
|
+
export { default as icons } from './src/constants/icons';
|
5
|
+
export { default as iconInfo } from './src/constants/iconInfo';
|
4
6
|
export * from './src/providers';
|
5
7
|
export * from './src/contexts';
|
6
8
|
export * from './src/classes';
|
package/dist/main.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAE3D,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC"}
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAC;AAEjC,cAAc,eAAe,CAAC;AAE9B,cAAc,iBAAiB,CAAC;AAEhC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEzD,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAE/D,cAAc,iBAAiB,CAAC;AAEhC,cAAc,gBAAgB,CAAA;AAE9B,cAAc,eAAe,CAAA;AAE7B,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAA;AAE3D,cAAc,eAAe,CAAC;AAE9B,cAAc,mBAAmB,CAAC;AAElC,cAAc,gBAAgB,CAAC;AAE/B,cAAc,aAAa,CAAC"}
|
package/dist/main.js
CHANGED
@@ -13,10 +13,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
13
13
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
14
14
|
};
|
15
15
|
Object.defineProperty(exports, "__esModule", { value: true });
|
16
|
-
exports.dataSources = void 0;
|
16
|
+
exports.dataSources = exports.iconInfo = exports.icons = void 0;
|
17
17
|
__exportStar(require("./src/components"), exports);
|
18
18
|
__exportStar(require("./src/helpers"), exports);
|
19
19
|
__exportStar(require("./src/constants"), exports);
|
20
|
+
var icons_1 = require("./src/constants/icons");
|
21
|
+
Object.defineProperty(exports, "icons", { enumerable: true, get: function () { return __importDefault(icons_1).default; } });
|
22
|
+
var iconInfo_1 = require("./src/constants/iconInfo");
|
23
|
+
Object.defineProperty(exports, "iconInfo", { enumerable: true, get: function () { return __importDefault(iconInfo_1).default; } });
|
20
24
|
__exportStar(require("./src/providers"), exports);
|
21
25
|
__exportStar(require("./src/contexts"), exports);
|
22
26
|
__exportStar(require("./src/classes"), exports);
|
package/dist/main.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,gDAA8B;AAE9B,kDAAgC;AAEhC,kDAAgC;AAEhC,iDAA8B;AAE9B,gDAA6B;AAE7B,mDAA2D;AAAlD,4HAAA,OAAO,OAAe;AAE/B,gDAA8B;AAE9B,oDAAkC;AAElC,iDAA+B;AAE/B,8CAA4B"}
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../main.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,mDAAiC;AAEjC,gDAA8B;AAE9B,kDAAgC;AAEhC,+CAAyD;AAAhD,+GAAA,OAAO,OAAS;AAEzB,qDAA+D;AAAtD,qHAAA,OAAO,OAAY;AAE5B,kDAAgC;AAEhC,iDAA8B;AAE9B,gDAA6B;AAE7B,mDAA2D;AAAlD,4HAAA,OAAO,OAAe;AAE/B,gDAA8B;AAE9B,oDAAkC;AAElC,iDAA+B;AAE/B,8CAA4B"}
|
@@ -12,9 +12,9 @@ export declare class Model {
|
|
12
12
|
constructor(record?: {});
|
13
13
|
static config(schema: any, { modelName, collectionName, singularName, pluralName, ...otherOptions }?: {
|
14
14
|
modelName?: string;
|
15
|
-
collectionName?:
|
16
|
-
singularName?:
|
17
|
-
pluralName?:
|
15
|
+
collectionName?: string;
|
16
|
+
singularName?: string;
|
17
|
+
pluralName?: string;
|
18
18
|
}): void;
|
19
19
|
static get formFields(): any;
|
20
20
|
get viewDetails(): {
|
@@ -2,8 +2,8 @@ export declare function withCollection(collectionName: string): {
|
|
2
2
|
({ children }: {
|
3
3
|
children: any;
|
4
4
|
}): JSX.Element;
|
5
|
-
routeName:
|
6
|
-
path:
|
7
|
-
pageName:
|
5
|
+
routeName: string;
|
6
|
+
path: string;
|
7
|
+
pageName: string;
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=withCollection.d.ts.map
|
@@ -2,8 +2,8 @@ export declare function withCollectionRecord(collectionName: string): {
|
|
2
2
|
({ children }: {
|
3
3
|
children: any;
|
4
4
|
}): JSX.Element;
|
5
|
-
routeName:
|
5
|
+
routeName: string;
|
6
6
|
path: string;
|
7
|
-
pageName:
|
7
|
+
pageName: string;
|
8
8
|
};
|
9
9
|
//# sourceMappingURL=withCollectionRecord.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"withSettings.d.ts","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"AACA,OAAO,KAAoF,MAAM,OAAO,CAAC;AAIzG,eAAO,MAAM,YAAY;;;;mIA4LvB,CAAC;AAGH,eAAO,MAAM,WAAW;;;;mIAAe,CAAC;AACxC,eAAe,YAAY,CAAC"}
|
@@ -34,10 +34,10 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34
34
|
};
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
36
36
|
exports.withToolbar = exports.withSettings = void 0;
|
37
|
+
const lodash_1 = __importDefault(require("lodash"));
|
38
|
+
const react_1 = __importStar(require("react"));
|
37
39
|
const contexts_1 = require("../../contexts");
|
38
40
|
const hooks_1 = require("../../hooks");
|
39
|
-
const react_1 = __importStar(require("react"));
|
40
|
-
const lodash_1 = __importDefault(require("lodash"));
|
41
41
|
const withSettings = ({ name: elementName, valueOptions = [], configurationOptions = [] }) => RenderComponent => react_1.forwardRef((props, forwardedRef) => {
|
42
42
|
const newRef = react_1.useRef();
|
43
43
|
const ref = react_1.useMemo(() => forwardedRef || newRef, [newRef, forwardedRef]);
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
1
|
+
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oDAAuB;AACvB,+CAAyG;AACzG,6CAAiE;AACjE,uCAA2F;AAEpF,MAAM,YAAY,GAAG,CAAC,EAAC,IAAI,EAAE,WAAW,EAAE,YAAY,GAAG,EAAE,EAAE,oBAAoB,GAAG,EAAE,EAAC,EAAE,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC,kBAAU,CAAC,CAAC,KAAU,EAAE,YAAY,EAAE,EAAE;IAE1J,MAAM,MAAM,GAAG,cAAM,EAAE,CAAC;IACxB,MAAM,GAAG,GAAG,eAAO,CAAC,GAAE,EAAE,CAAC,YAAY,IAAI,MAAM,EAAE,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC,CAAA;IAExE,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAG,WAAW,GAAG,SAA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AU,EAAE,YAAY,EAAE,oBAAoB,EAAC,EAAE,GAAG,YAAY,CAAC,EAAE,gBAAgB,EAAC,CAAC;IACnJ,CAAC,EAAE,CAAC,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,gBAAgB,EAAE,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC;IAG7E,OAAO,CACH,8BAAC,0BAAe,IAAC,KAAK,EAAE,cAAc;QAClC,8BAAC,eAAe,6BACH,EAAE,EACX,OAAO,QACP,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,OAAO,EAChB,OAAO,EAAE,OAAO,EAChB,SAAS,EAAE,QAAQ,IACf,KAAK,EACL,MAAM,EACN,OAAO,EACP,UAAU,IACd,MAAM,EAAE,cAAc,EACtB,GAAG,EAAE,GAAG,IACV,CACY,CACrB,CAAC;AACN,CAAC,CAAC,CAAC;AA5LU,QAAA,YAAY,gBA4LtB;AAGU,QAAA,WAAW,GAAG,oBAAY,CAAC;AACxC,kBAAe,oBAAY,CAAC"}
|
@@ -0,0 +1,17 @@
|
|
1
|
+
declare const iconInfo: {
|
2
|
+
[x: string]: {
|
3
|
+
id: string;
|
4
|
+
label: string;
|
5
|
+
type: string;
|
6
|
+
name: string;
|
7
|
+
variant: string;
|
8
|
+
character: any;
|
9
|
+
} | {
|
10
|
+
id: string;
|
11
|
+
iconName: string;
|
12
|
+
type: string;
|
13
|
+
character: never;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
export default iconInfo;
|
17
|
+
//# sourceMappingURL=iconInfo.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"iconInfo.d.ts","sourceRoot":"","sources":["../../../src/constants/iconInfo.ts"],"names":[],"mappings":"AAoDA,QAAA,MAAO,QAAQ;;;;;;;;;;;;;;CAAgC,CAAC;AAEhD,eAAe,QAAQ,CAAA"}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
4
|
+
};
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
6
|
+
const AntDesign_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/AntDesign.json"));
|
7
|
+
const Entypo_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Entypo.json"));
|
8
|
+
const EvilIcons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/EvilIcons.json"));
|
9
|
+
const Feather_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Feather.json"));
|
10
|
+
const FontAwesome_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome.json"));
|
11
|
+
const FontAwesome5Free_meta_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome5Free_meta.json"));
|
12
|
+
const FontAwesome5Free_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/FontAwesome5Free.json"));
|
13
|
+
const Fontisto_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Fontisto.json"));
|
14
|
+
const Foundation_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Foundation.json"));
|
15
|
+
const Ionicons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Ionicons.json"));
|
16
|
+
const MaterialCommunityIcons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/MaterialCommunityIcons.json"));
|
17
|
+
const MaterialIcons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/MaterialIcons.json"));
|
18
|
+
const Octicons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Octicons.json"));
|
19
|
+
const SimpleLineIcons_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/SimpleLineIcons.json"));
|
20
|
+
const Zocial_json_1 = __importDefault(require("react-native-vector-icons/glyphmaps/Zocial.json"));
|
21
|
+
const change_case_1 = require("change-case");
|
22
|
+
const lodash_1 = require("lodash");
|
23
|
+
const iconLibraries = { Antdesign: AntDesign_json_1.default, Entypo: Entypo_json_1.default, Evilicon: EvilIcons_json_1.default, Feather: Feather_json_1.default, FontAwesome: FontAwesome_json_1.default, Fontisto: Fontisto_json_1.default, Foundation: Foundation_json_1.default, Ionicon: Ionicons_json_1.default, MaterialCommunity: MaterialCommunityIcons_json_1.default, Material: MaterialIcons_json_1.default, Octicon: Octicons_json_1.default, SimpleLineIcon: SimpleLineIcons_json_1.default, Zocial: Zocial_json_1.default };
|
24
|
+
const fa5Icons = lodash_1.chain(FontAwesome5Free_meta_json_1.default)
|
25
|
+
.flatMap((iconNames, variant) => lodash_1.map(iconNames, iconName => ({
|
26
|
+
id: `font-awesome-5:${variant}:${iconName}`,
|
27
|
+
label: iconName,
|
28
|
+
type: 'font-awesome-5',
|
29
|
+
name: iconName,
|
30
|
+
variant,
|
31
|
+
character: FontAwesome5Free_json_1.default[iconName],
|
32
|
+
})))
|
33
|
+
.keyBy('id')
|
34
|
+
.value();
|
35
|
+
const vectorIcons = lodash_1.chain(iconLibraries)
|
36
|
+
.mapValues((libraryIcons) => lodash_1.map(libraryIcons, (character, name) => ({ character, name })))
|
37
|
+
.flatMap((iconsOfCurrentType, iconLibrary) => lodash_1.map(iconsOfCurrentType, ({ name: name, character }) => ({
|
38
|
+
id: `${change_case_1.paramCase(iconLibrary)}:${name}`,
|
39
|
+
iconName: name,
|
40
|
+
type: change_case_1.paramCase(iconLibrary),
|
41
|
+
character
|
42
|
+
})))
|
43
|
+
.keyBy('id')
|
44
|
+
.value();
|
45
|
+
const iconInfo = Object.assign(Object.assign({}, fa5Icons), vectorIcons);
|
46
|
+
exports.default = iconInfo;
|
47
|
+
//# sourceMappingURL=iconInfo.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"iconInfo.js","sourceRoot":"","sources":["../../../src/constants/iconInfo.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA0E;AAC1E,oGAAuE;AACvE,4GAA+E;AAC/E,gIAA+F;AAC/F,sHAA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