@evlop/commons 1.0.236 → 1.0.238
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/src/actions/restApi.js +8 -1
- package/dist/src/actions/restApi.js.map +1 -1
- package/dist/src/adapters/getUserToken/index.js +7 -18
- package/dist/src/adapters/getUserToken/index.js.map +1 -1
- package/dist/src/adapters/getUserToken/index.native.js +9 -20
- package/dist/src/adapters/getUserToken/index.native.js.map +1 -1
- package/dist/src/classes/Model.js +5 -14
- package/dist/src/classes/Model.js.map +1 -1
- package/dist/src/components/hoc/withSettings.js +1 -12
- package/dist/src/components/hoc/withSettings.js.map +1 -1
- package/dist/src/components/hoc/withSettings.native.js +2 -13
- package/dist/src/components/hoc/withSettings.native.js.map +1 -1
- package/dist/src/constants/iconInfo/index.js +4 -5
- package/dist/src/constants/iconInfo/index.js.map +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js +1 -1
- package/dist/src/constants/iconInfo/reactNativeVectorIcons.js.map +1 -1
- package/dist/src/contexts/EDLContext.d.ts +7 -0
- package/dist/src/contexts/EDLContext.d.ts.map +1 -0
- package/dist/src/contexts/EDLContext.js +10 -0
- package/dist/src/contexts/EDLContext.js.map +1 -0
- package/dist/src/data-sources/collection.js +3 -12
- package/dist/src/data-sources/collection.js.map +1 -1
- package/dist/src/data-sources/collectionRecord.js +3 -12
- package/dist/src/data-sources/collectionRecord.js.map +1 -1
- package/dist/src/data-sources/listUrl.js +3 -12
- package/dist/src/data-sources/listUrl.js.map +1 -1
- package/dist/src/data-sources/url.js +3 -12
- package/dist/src/data-sources/url.js.map +1 -1
- package/dist/src/edl/BlockRenderer.d.ts +9 -0
- package/dist/src/edl/BlockRenderer.d.ts.map +1 -0
- package/dist/src/edl/BlockRenderer.js +102 -0
- package/dist/src/edl/BlockRenderer.js.map +1 -0
- package/dist/src/edl/DataSourceLoader.d.ts +7 -0
- package/dist/src/edl/DataSourceLoader.d.ts.map +1 -0
- package/dist/src/edl/DataSourceLoader.js +13 -0
- package/dist/src/edl/DataSourceLoader.js.map +1 -0
- package/dist/src/edl/elements/DataSource.d.ts +8 -0
- package/dist/src/edl/elements/DataSource.d.ts.map +1 -0
- package/dist/src/edl/elements/DataSource.js +19 -0
- package/dist/src/edl/elements/DataSource.js.map +1 -0
- package/dist/src/edl/elements/Fragment.d.ts +9 -0
- package/dist/src/edl/elements/Fragment.d.ts.map +1 -0
- package/dist/src/edl/elements/Fragment.js +14 -0
- package/dist/src/edl/elements/Fragment.js.map +1 -0
- package/dist/src/edl/elements/UseEffect.d.ts +10 -0
- package/dist/src/edl/elements/UseEffect.d.ts.map +1 -0
- package/dist/src/edl/elements/UseEffect.js +28 -0
- package/dist/src/edl/elements/UseEffect.js.map +1 -0
- package/dist/src/edl/elements/index.d.ts +17 -0
- package/dist/src/edl/elements/index.d.ts.map +1 -0
- package/dist/src/edl/elements/index.js +16 -0
- package/dist/src/edl/elements/index.js.map +1 -0
- package/dist/src/edl/index.d.ts +28 -0
- package/dist/src/edl/index.d.ts.map +1 -0
- package/dist/src/edl/index.js +107 -0
- package/dist/src/edl/index.js.map +1 -0
- package/dist/src/edl/localStorage.app.d.ts +6 -0
- package/dist/src/edl/localStorage.app.d.ts.map +1 -0
- package/dist/src/edl/localStorage.app.js +14 -0
- package/dist/src/edl/localStorage.app.js.map +1 -0
- package/dist/src/edl/localStorage.d.ts +6 -0
- package/dist/src/edl/localStorage.d.ts.map +1 -0
- package/dist/src/edl/localStorage.js +10 -0
- package/dist/src/edl/localStorage.js.map +1 -0
- package/dist/src/edl/parser.d.ts +3 -0
- package/dist/src/edl/parser.d.ts.map +1 -0
- package/dist/src/edl/parser.js +166 -0
- package/dist/src/edl/parser.js.map +1 -0
- package/dist/src/helpers/functions.js +1 -1
- package/dist/src/helpers/functions.js.map +1 -1
- package/dist/src/helpers/handlebarHelpers.js +1 -1
- package/dist/src/helpers/handlebarHelpers.js.map +1 -1
- package/dist/src/helpers/handlebarHelpers.test.d.ts.map +1 -1
- package/dist/src/helpers/handlebarHelpers.test.js +1 -1
- package/dist/src/helpers/handlebarHelpers.test.js.map +1 -1
- package/dist/src/helpers/iconHelper.js +7 -13
- package/dist/src/helpers/iconHelper.js.map +1 -1
- package/dist/src/helpers/pathHelper.js +1 -1
- package/dist/src/helpers/pathHelper.js.map +1 -1
- package/dist/src/helpers/themeHelpers.js +23 -3
- package/dist/src/helpers/themeHelpers.js.map +1 -1
- package/dist/src/hooks/useAction.js +3 -12
- package/dist/src/hooks/useAction.js.map +1 -1
- package/dist/src/hooks/useActionable.d.ts +1 -0
- package/dist/src/hooks/useActionable.d.ts.map +1 -1
- package/dist/src/hooks/useActionable.js +3 -1
- package/dist/src/hooks/useActionable.js.map +1 -1
- package/dist/src/hooks/useComponentConfigProps.js +1 -1
- package/dist/src/hooks/useComponentConfigProps.js.map +1 -1
- package/dist/src/hooks/useDataSource.js +1 -1
- package/dist/src/hooks/useDataSource.js.map +1 -1
- package/dist/src/hooks/useNavigator.js +1 -1
- package/dist/src/hooks/useNavigator.js.map +1 -1
- package/dist/src/hooks/useParams.js +1 -1
- package/dist/src/hooks/useParams.js.map +1 -1
- package/dist/src/hooks/useTranslation.js +2 -5
- package/dist/src/hooks/useTranslation.js.map +1 -1
- package/dist/src/middlewares/dataSourceMiddleware.js +11 -22
- package/dist/src/middlewares/dataSourceMiddleware.js.map +1 -1
- package/dist/src/middlewares/restApiMiddleware.js +5 -5
- package/dist/src/middlewares/restApiMiddleware.js.map +1 -1
- package/dist/src/providers/I18nProvider.js +11 -14
- package/dist/src/providers/I18nProvider.js.map +1 -1
- package/dist/src/providers/Scope.js +4 -1
- package/dist/src/providers/Scope.js.map +1 -1
- package/dist/src/reducers/adminMenus.js +1 -1
- package/dist/src/reducers/adminMenus.js.map +1 -1
- package/dist/src/reducers/collection.js +66 -15
- package/dist/src/reducers/collection.js.map +1 -1
- package/dist/src/reducers/components.js +28 -7
- package/dist/src/reducers/components.js.map +1 -1
- package/dist/src/reducers/config/index.js +16 -4
- package/dist/src/reducers/config/index.js.map +1 -1
- package/dist/src/reducers/context.js +5 -16
- package/dist/src/reducers/context.js.map +1 -1
- package/dist/src/reducers/dataSource.js +14 -2
- package/dist/src/reducers/dataSource.js.map +1 -1
- package/dist/src/reducers/files.js +18 -4
- package/dist/src/reducers/files.js.map +1 -1
- package/dist/src/reducers/fonts.js +15 -6
- package/dist/src/reducers/fonts.js.map +1 -1
- package/dist/src/reducers/icons.js +3 -12
- package/dist/src/reducers/icons.js.map +1 -1
- package/dist/src/reducers/modals.js +1 -1
- package/dist/src/reducers/modals.js.map +1 -1
- package/dist/src/reducers/pages/index.js +69 -27
- package/dist/src/reducers/pages/index.js.map +1 -1
- package/dist/src/reducers/routes.js +19 -21
- package/dist/src/reducers/routes.js.map +1 -1
- package/dist/src/reducers/search.js +4 -1
- package/dist/src/reducers/search.js.map +1 -1
- package/dist/src/reducers/session.js +21 -4
- package/dist/src/reducers/session.js.map +1 -1
- package/dist/src/reducers/user.js +12 -2
- package/dist/src/reducers/user.js.map +1 -1
- package/dist/src/services/SessionManager.js +4 -1
- package/dist/src/services/SessionManager.js.map +1 -1
- package/package.json +1 -1
@@ -10,7 +10,14 @@ exports.HTTP_REQUEST_START = 'HTTP_REQUEST_START';
|
|
10
10
|
exports.HTTP_REQUEST_SUCCESS = 'HTTP_REQUEST_SUCCESS';
|
11
11
|
exports.HTTP_REQUEST_FAILED = 'HTTP_REQUEST_FAILED';
|
12
12
|
exports.SET_API_BASE_URL = 'SET_API_BASE_URL';
|
13
|
-
const request = (path, data = {}, options) => (
|
13
|
+
const request = (path, data = {}, options) => ({
|
14
|
+
isRestRequest: true,
|
15
|
+
types: [exports.HTTP_REQUEST_START, exports.HTTP_REQUEST_SUCCESS, exports.HTTP_REQUEST_FAILED],
|
16
|
+
endpoint: path,
|
17
|
+
method: exports.GET,
|
18
|
+
data,
|
19
|
+
...(options || {})
|
20
|
+
});
|
14
21
|
exports.request = request;
|
15
22
|
const setApiBaseUrl = (url) => ({ type: exports.SET_API_BASE_URL, url });
|
16
23
|
exports.setApiBaseUrl = setApiBaseUrl;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"restApi.js","sourceRoot":"","sources":["../../../src/actions/restApi.tsx"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,MAAM,GAAG,QAAQ,CAAC;AAElB,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AAS5C,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,OAAY,EAAE,EAAE,OAAwB,EAAC,EAAE,CAAA,
|
1
|
+
{"version":3,"file":"restApi.js","sourceRoot":"","sources":["../../../src/actions/restApi.tsx"],"names":[],"mappings":";;;AAAa,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,IAAI,GAAG,MAAM,CAAC;AACd,QAAA,GAAG,GAAG,KAAK,CAAC;AACZ,QAAA,KAAK,GAAG,OAAO,CAAC;AAChB,QAAA,MAAM,GAAG,QAAQ,CAAC;AAElB,QAAA,kBAAkB,GAAG,oBAAoB,CAAC;AAC1C,QAAA,oBAAoB,GAAG,sBAAsB,CAAC;AAC9C,QAAA,mBAAmB,GAAG,qBAAqB,CAAC;AAE5C,QAAA,gBAAgB,GAAG,kBAAkB,CAAC;AAS5C,MAAM,OAAO,GAAG,CAAC,IAAY,EAAE,OAAY,EAAE,EAAE,OAAwB,EAAC,EAAE,CAAA,CAAC;IAC9E,aAAa,EAAE,IAAI;IACnB,KAAK,EAAC,CAAC,0BAAkB,EAAE,4BAAoB,EAAE,2BAAmB,CAAC;IACrE,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,WAAG;IACX,IAAI;IACJ,GAAG,CAAC,OAAO,IAAI,EAAE,CAAC;CACrB,CAAC,CAAC;AAPU,QAAA,OAAO,WAOjB;AAEI,MAAM,aAAa,GAAG,CAAC,GAAW,EAAC,EAAE,CAAA,CAAC,EAAC,IAAI,EAAE,wBAAgB,EAAE,GAAG,EAAC,CAAC,CAAA;AAA9D,QAAA,aAAa,iBAAiD"}
|
@@ -1,23 +1,12 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
|
-
function getUserToken() {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
}
|
20
|
-
});
|
3
|
+
async function getUserToken() {
|
4
|
+
try {
|
5
|
+
return localStorage.getItem('token');
|
6
|
+
}
|
7
|
+
catch (e) {
|
8
|
+
return null;
|
9
|
+
}
|
21
10
|
}
|
22
11
|
exports.default = getUserToken;
|
23
12
|
//# sourceMappingURL=index.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.ts"],"names":[],"mappings":";;AAAe,KAAK,UAAU,YAAY;IACtC,IAAG;QACC,OAAO,YAAY,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;KACxC;IAAC,OAAM,CAAC,EAAC;QACN,OAAO,IAAI,CAAC;KACf;AACL,CAAC;AAND,+BAMC"}
|
@@ -1,29 +1,18 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
12
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
13
4
|
};
|
14
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
15
6
|
const async_storage_1 = __importDefault(require("@react-native-async-storage/async-storage"));
|
16
|
-
function getUserToken() {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
return null;
|
26
|
-
});
|
7
|
+
async function getUserToken() {
|
8
|
+
try {
|
9
|
+
const token = await async_storage_1.default.getItem('@User:token');
|
10
|
+
return token;
|
11
|
+
}
|
12
|
+
catch (e) {
|
13
|
+
console.log('Error getting token');
|
14
|
+
}
|
15
|
+
return null;
|
27
16
|
}
|
28
17
|
exports.default = getUserToken;
|
29
18
|
//# sourceMappingURL=index.native.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.native.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.native.js","sourceRoot":"","sources":["../../../../src/adapters/getUserToken/index.native.ts"],"names":[],"mappings":";;;;;AAAA,8FAAqE;AAEtD,KAAK,UAAU,YAAY;IACtC,IAAG;QACC,MAAM,KAAK,GAAG,MAAM,uBAAY,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QACxD,OAAO,KAAK,CAAC;KAChB;IAAC,OAAM,CAAC,EAAC;QACN,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;KACtC;IACD,OAAO,IAAI,CAAC;AAChB,CAAC;AARD,+BAQC"}
|
@@ -1,15 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
3
|
-
var t = {};
|
4
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
5
|
-
t[p] = s[p];
|
6
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
7
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
8
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
9
|
-
t[p[i]] = s[p[i]];
|
10
|
-
}
|
11
|
-
return t;
|
12
|
-
};
|
13
2
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
14
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
15
4
|
};
|
@@ -21,8 +10,7 @@ class Model {
|
|
21
10
|
constructor(record = {}) {
|
22
11
|
Object.assign(this, record);
|
23
12
|
}
|
24
|
-
static config(schema,
|
25
|
-
var { modelName = '', collectionName = change_case_1.paramCase(pluralize_1.default(modelName)), singularName = change_case_1.sentenceCase(pluralize_1.default.singular(modelName)), pluralName = change_case_1.sentenceCase(pluralize_1.default(modelName)) } = _a, otherOptions = __rest(_a, ["modelName", "collectionName", "singularName", "pluralName"]);
|
13
|
+
static config(schema, { modelName = '', collectionName = change_case_1.paramCase(pluralize_1.default(modelName)), singularName = change_case_1.sentenceCase(pluralize_1.default.singular(modelName)), pluralName = change_case_1.sentenceCase(pluralize_1.default(modelName)), ...otherOptions } = {}) {
|
26
14
|
if (!modelName)
|
27
15
|
throw Error('Model name must be defined on configuration option');
|
28
16
|
this.collectionName = collectionName,
|
@@ -38,7 +26,10 @@ class Model {
|
|
38
26
|
return this.form;
|
39
27
|
if (!this.schema)
|
40
28
|
return [];
|
41
|
-
return Object.keys(this.schema).map(name => (
|
29
|
+
return Object.keys(this.schema).map(name => ({
|
30
|
+
name,
|
31
|
+
...this.schema[name]
|
32
|
+
}));
|
42
33
|
}
|
43
34
|
get viewDetails() {
|
44
35
|
return {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"Model.js","sourceRoot":"","sources":["../../../src/classes/Model.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"Model.js","sourceRoot":"","sources":["../../../src/classes/Model.tsx"],"names":[],"mappings":";;;;;;AAAA,0DAAkC;AAClC,6CAAkF;AAGlF,MAAa,KAAK;IAoBd,YAAY,MAAM,GAAG,EAAE;QACnB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IAC/B,CAAC;IAED,MAAM,CAAC,MAAM,CAAC,MAAM,EAAE,EAAC,SAAS,GAAG,EAAE,EAAE,cAAc,GAAG,uBAAU,CAAC,mBAAS,CAAC,SAAS,CAAC,CAAC,EAAE,YAAY,GAAG,0BAAY,CAAC,mBAAS,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC,EAAG,UAAU,GAAC,0BAAY,CAAC,mBAAS,CAAC,SAAS,CAAC,CAAC,EAAE,GAAG,YAAY,EAAC,GAAG,EAAE;QACvN,IAAG,CAAC,SAAS;YAAE,MAAM,KAAK,CAAC,oDAAoD,CAAC,CAAC;QAEjF,IAAI,CAAC,cAAc,GAAG,cAAc;YACpC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,iBAAiB,GAAG,0BAAY,CA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AK,CAAC"}
|
@@ -18,17 +18,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
18
|
__setModuleDefault(result, mod);
|
19
19
|
return result;
|
20
20
|
};
|
21
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
22
|
-
var t = {};
|
23
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
24
|
-
t[p] = s[p];
|
25
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
26
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
27
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
28
|
-
t[p[i]] = s[p[i]];
|
29
|
-
}
|
30
|
-
return t;
|
31
|
-
};
|
32
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
33
22
|
exports.withToolbar = exports.withSettings = void 0;
|
34
23
|
const lodash_1 = require("lodash");
|
@@ -47,7 +36,7 @@ const withSettings = ({ name: elementName, valueOptions = [], configurationOptio
|
|
47
36
|
return {};
|
48
37
|
// if this is a link component forward link, route, navigate so it can be used as href tag
|
49
38
|
if (elementName === 'link') {
|
50
|
-
const { link, route, navigate
|
39
|
+
const { link, route, navigate, ...remainingActions } = action;
|
51
40
|
return {
|
52
41
|
forwardActions: { link, route, navigate },
|
53
42
|
handleActions: remainingActions,
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"withSettings.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAqC;AACrC,+CAAsG;AACtG,uCAAkE;AAM3D,MAAM,YAAY,GAAC,CAAC,EAAC,IAAI,EAAE,WAAW,EAAE,YAAY,GAAG,EAAE,EAAE,oBAAoB,GAAG,EAAE,EAAC,EA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,CAAC;IACjD,MAAM,cAAc,GAAG,MAAM,CAAC,CAAC,CAAC,gBAAgB,CAAC,CAAC,CAAC,WAAW,CAAC;IAE/D,OAAO,CACH,8BAAC,aAAa,kBACV,OAAO,UACH,KAAK,EACL,cAAc,IAClB,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,cAAc,EACvB,OAAO,EAAE,cAAc,EACvB,GAAG,EAAE,YAAY,IACnB,CACL,CAAC;AACN,CAAC,CAAC,CAAC;AAtCU,QAAA,YAAY,gBAsCtB;AAGU,QAAA,WAAW,GAAG,oBAAY,CAAC;AACxC,kBAAe,oBAAY,CAAC"}
|
@@ -18,17 +18,6 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
18
|
__setModuleDefault(result, mod);
|
19
19
|
return result;
|
20
20
|
};
|
21
|
-
var __rest = (this && this.__rest) || function (s, e) {
|
22
|
-
var t = {};
|
23
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
24
|
-
t[p] = s[p];
|
25
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
26
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
27
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
28
|
-
t[p[i]] = s[p[i]];
|
29
|
-
}
|
30
|
-
return t;
|
31
|
-
};
|
32
21
|
Object.defineProperty(exports, "__esModule", { value: true });
|
33
22
|
exports.withToolbar = exports.withModelPropsLoader = exports.withSettings = void 0;
|
34
23
|
const lodash_1 = require("lodash");
|
@@ -37,7 +26,7 @@ const hooks_1 = require("../../hooks");
|
|
37
26
|
const withSettings = (settingOptions) => (BaseComponent) => {
|
38
27
|
const ComponentWithModalPropsLoader = exports.withModelPropsLoader(settingOptions)(BaseComponent);
|
39
28
|
return react_1.forwardRef((props, forwardedRef) => {
|
40
|
-
const { model, dataModel = model, configModel = dataModel && `${dataModel}_config
|
29
|
+
const { model, dataModel = model, configModel = dataModel && `${dataModel}_config`, ...remainingProps } = props;
|
41
30
|
if (dataModel || configModel) {
|
42
31
|
return react_1.default.createElement(ComponentWithModalPropsLoader, Object.assign({ _innerRef: forwardedRef, dataModel: dataModel, configModel: configModel }, remainingProps));
|
43
32
|
}
|
@@ -48,7 +37,7 @@ const withSettings = (settingOptions) => (BaseComponent) => {
|
|
48
37
|
};
|
49
38
|
exports.withSettings = withSettings;
|
50
39
|
const withModelPropsLoader = (settingOptions) => (BaseComponent) => (props) => {
|
51
|
-
const { model, _innerRef, dataModel = model, configModel = dataModel && `${dataModel}_config
|
40
|
+
const { model, _innerRef, dataModel = model, configModel = dataModel && `${dataModel}_config`, ...remainingProps } = props;
|
52
41
|
const { data } = hooks_1.useComponentData();
|
53
42
|
// Extract values from component data,
|
54
43
|
const propsFromModel = react_1.useMemo(() => {
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"withSettings.native.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.native.tsx"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"withSettings.native.js","sourceRoot":"","sources":["../../../../src/components/hoc/withSettings.native.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,mCAAgD;AAChD,+CAAsG;AACtG,uCAA+C;AAQxC,MAAM,YAAY,GAAG,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAmB,aAAqC,EAAE,EAAE;IAExH,MAAM,6BAA6B,GAAG,4BAAoB,CAAC,cAAc,CAAC,CAAC,aAAa,CAAC,CAAC;IAE1F,OAAO,kBAAU,CAAyC,CAAC,KAAU,EAAE,YAAY,EAAE,EAAE;QACnF,MAAM,EAAE,KAAK,EAAE,SAAS,GAAG,KAAK,EAAG,WAAW,GAAG,SAAS,IAAI,GAAG,SAAS,SAAS,EAAE,GAAG,cAAc,EAAC,GAAG,KAAK,CAAC;QAEhH,IAAG,SAAS,IAAI,WAAW,EAAE;YACzB,OAAO,8BAAC,6BAA6B,kBACzB,SAAS,EAAE,YAAY,EACvB,SAAS,EAAE,SAAS,EACpB,WAAW,EAAE,WAAW,IACpB,cAAc,EACpB,CAAA;SACb;aAAM;YACH,OAAO,8BAAC,aAAa,kBAAC,GAAG,EAAE,YAAY,IAAM,KAAK,EAAI,CAAA;SACzD;IACL,CAAC,CAAC,CAAC;AACP,CAAC,CAAA;AAlBY,QAAA,YAAY,gBAkBxB;AAGM,MAAM,oBAAoB,GAAC,CAAC,cAA8B,EAAE,EAAE,CAAC,CAAmB,aAAqC,EAAE,EAAE,CAAC,CAAC,KAA0C,EAAE,EAAE;IAE9K,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,GAAG,KAAK,EAAG,WAAW,GAAG,SAAS,IAAI,GAAG,SAAS,SAAS,EAAE,GAAG,cAAc,EAAC,GAAG,KAAK,CAAC;IAC3H,MAAM,EAAC,IAAI,EAAC,GAAG,wBAAgB,EAAE,CAAC;IAElC,sCAAsC;IACtC,MAAM,cAAc,GAAQ,eAAO,CAAC,GAAE,EAAE;QACpC,OAAQ,eAAM,CAAC,EAAE,EAAE,YAAG,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE,YAAG,CAAC,IAAI,EAAE,SAAS,CAAC,CAAC,CAAC;IACrE,CAAC,EAAE,CAAC,SAAS,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;IAE7B,OAAO,CACH,8BAAC,aAAa,kBACV,GAAG,EAAE,SAAS,IACV,cAAc,EACd,cAAc,EACpB,CACL,CAAC;AACN,CAAC,CAAC;AAjBW,QAAA,oBAAoB,wBAiB/B;AAGW,QAAA,WAAW,GAAG,oBAAY,CAAC;AACxC,kBAAe,oBAAY,CAAC"}
|
@@ -8,29 +8,28 @@ const lodash_1 = require("lodash");
|
|
8
8
|
const directed_icons_1 = __importDefault(require("./directed-icons"));
|
9
9
|
const reactNativeVectorIcons_lookup_min_json_1 = __importDefault(require("./reactNativeVectorIcons.lookup.min.json"));
|
10
10
|
function _getIconInfo(iconIdentifier) {
|
11
|
-
var _a, _b, _c, _d, _e;
|
12
11
|
const parts = iconIdentifier.split(':');
|
13
12
|
if (parts.length === 2) {
|
14
13
|
const [library, iconName] = parts;
|
15
|
-
const character =
|
14
|
+
const character = reactNativeVectorIcons_lookup_min_json_1.default[library]?.[iconName];
|
16
15
|
return {
|
17
16
|
id: iconIdentifier,
|
18
17
|
type: library,
|
19
18
|
name: iconName,
|
20
19
|
character,
|
21
|
-
isDirected:
|
20
|
+
isDirected: directed_icons_1.default[library]?.[iconName],
|
22
21
|
};
|
23
22
|
}
|
24
23
|
else if (parts.length === 3) {
|
25
24
|
const [library, variant, iconName] = parts;
|
26
|
-
const character =
|
25
|
+
const character = reactNativeVectorIcons_lookup_min_json_1.default[library]?.[variant]?.[iconName];
|
27
26
|
return {
|
28
27
|
id: iconIdentifier,
|
29
28
|
type: library,
|
30
29
|
variant,
|
31
30
|
name: iconName,
|
32
31
|
character,
|
33
|
-
isDirected:
|
32
|
+
isDirected: directed_icons_1.default[library]?.[iconName],
|
34
33
|
};
|
35
34
|
}
|
36
35
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAiC;AACjC,sEAA6C;AAC7C,sHAAoF;AAGpF,SAAS,YAAY,CAAC,cAAoC
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/index.ts"],"names":[],"mappings":";;;;;;AAAA,mCAAiC;AACjC,sEAA6C;AAC7C,sHAAoF;AAGpF,SAAS,YAAY,CAAC,cAAoC;IACxD,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IACxC,IAAG,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QACpB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAClC,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QACpE,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,wBAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;KACF;SAAM,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAC;QAC5B,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,GAAG,KAAK,CAAC;QAC3C,MAAM,SAAS,GAAG,gDAA4B,CAAC,OAAO,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;QAC/E,OAAO;YACH,EAAE,EAAE,cAAc;YAClB,IAAI,EAAE,OAAO;YACb,OAAO;YACP,IAAI,EAAE,QAAQ;YACd,SAAS;YACT,UAAU,EAAE,wBAAa,CAAC,OAAO,CAAC,EAAE,CAAC,QAAQ,CAAC;SACjD,CAAA;KACF;AACH,CAAC;AAEY,QAAA,WAAW,GAAG,gBAAO,CAAC,YAAY,CAAC,CAAC;AAEjD,MAAM,sBAAsB,GAAG,EAAE,CAAC;AAIlC,kBAAe,sBAAsB,CAAC"}
|
@@ -57,6 +57,6 @@ const vectorIcons = lodash_1.chain(iconLibraries)
|
|
57
57
|
})))
|
58
58
|
.keyBy('id')
|
59
59
|
.value();
|
60
|
-
const reactNativeVectorIcons =
|
60
|
+
const reactNativeVectorIcons = { ...fa5Icons, ...fa6Icons, ...vectorIcons };
|
61
61
|
exports.default = reactNativeVectorIcons;
|
62
62
|
//# sourceMappingURL=reactNativeVectorIcons.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"reactNativeVectorIcons.js","sourceRoot":"","sources":["../../../../src/constants/iconInfo/reactNativeVectorIcons.ts"],"names":[],"mappings":";;;;;AAAA,wGAA2E;AAC3E,kGAAqE;AACrE,wGAA2E;AAC3E,oGAAuE;A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declare type EDLContextType = {
|
2
|
+
setRuntimeData: (data: any) => void;
|
3
|
+
};
|
4
|
+
declare const EDLContext: import("react").Context<EDLContextType>;
|
5
|
+
export declare const EDLProvider: import("react").Provider<EDLContextType>;
|
6
|
+
export default EDLContext;
|
7
|
+
//# sourceMappingURL=EDLContext.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EDLContext.d.ts","sourceRoot":"","sources":["../../../src/contexts/EDLContext.tsx"],"names":[],"mappings":"AAEA,oBAAY,cAAc,GAAG;IACzB,cAAc,EAAE,CAAC,IAAI,EAAE,GAAG,KAAK,IAAI,CAAC;CACvC,CAAA;AAED,QAAA,MAAM,UAAU,yCAEd,CAAC;AAEH,eAAO,MAAM,WAAW,0CAAsB,CAAC;AAE/C,eAAe,UAAU,CAAC"}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.EDLProvider = void 0;
|
4
|
+
const react_1 = require("react");
|
5
|
+
const EDLContext = react_1.createContext({
|
6
|
+
setRuntimeData: () => { },
|
7
|
+
});
|
8
|
+
exports.EDLProvider = EDLContext.Provider;
|
9
|
+
exports.default = EDLContext;
|
10
|
+
//# sourceMappingURL=EDLContext.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"EDLContext.js","sourceRoot":"","sources":["../../../src/contexts/EDLContext.tsx"],"names":[],"mappings":";;;AAAA,iCAAoC;AAMpC,MAAM,UAAU,GAAG,qBAAa,CAAiB;IAC7C,cAAc,EAAE,GAAG,EAAE,GAAE,CAAC;CAC3B,CAAC,CAAC;AAEU,QAAA,WAAW,GAAG,UAAU,CAAC,QAAQ,CAAC;AAE/C,kBAAe,UAAU,CAAC"}
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
const lodash_1 = require("lodash");
|
13
4
|
const classes_1 = require("../classes");
|
@@ -23,7 +14,7 @@ function _getModel(collectionName, dispatch) {
|
|
23
14
|
return classes_1.Model.forCollection(collectionName);
|
24
15
|
}
|
25
16
|
const getModel = lodash_1.memoize(_getModel);
|
26
|
-
const collectionDataSource = (options, { dispatch }) =>
|
17
|
+
const collectionDataSource = async (options, { dispatch }) => {
|
27
18
|
const { key, sourceId, collectionName = sourceId, params: requestOptions } = options;
|
28
19
|
let reqOptions = {};
|
29
20
|
if (requestOptions) {
|
@@ -44,7 +35,7 @@ const collectionDataSource = (options, { dispatch }) => __awaiter(void 0, void 0
|
|
44
35
|
const filter = lodash_1.get(reqOptions, 'filter', options.filter) || {};
|
45
36
|
const search = lodash_1.get(reqOptions, 'search', options.search) || '';
|
46
37
|
const sort = lodash_1.get(reqOptions, 'sort', options.sort) || {};
|
47
|
-
const { response } =
|
38
|
+
const { response } = await dispatch(reducers_1.getCollection(collectionName, { page, key, pageSize, sort, search }, filter));
|
48
39
|
const _Model = getModel(collectionName, dispatch);
|
49
40
|
return {
|
50
41
|
items: lodash_1.map(lodash_1.get(response, 'data'), item => new _Model(item)),
|
@@ -53,7 +44,7 @@ const collectionDataSource = (options, { dispatch }) => __awaiter(void 0, void 0
|
|
53
44
|
totalRecords: lodash_1.get(response, 'totalRecords'),
|
54
45
|
totalPages: lodash_1.get(response, 'totalPages'),
|
55
46
|
};
|
56
|
-
}
|
47
|
+
};
|
57
48
|
collectionDataSource.displayName = 'Collection';
|
58
49
|
collectionDataSource.identifier = 'collection';
|
59
50
|
collectionDataSource.type = 'Array';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":";;AAAA,mCAAiE;AACjE,wCAAmC;AACnC,0CAAgF;AAChF,+BAAkC;AAClC,4CAAyD;AAGzD,SAAS,SAAS,CAAE,cAAc,EAAE,QAAQ;IACxC,IAAG,CAAC,cAAc;QAAE,OAAO,eAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,QAAQ,CAAC,gCAAqB,CAAC,cAAc,CAAC,CAAC,CAAA;IAC7D,IAAG,KAAK;QAAE,OAAO,KAAK,CAAC;IACvB,OAAO,eAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,QAAQ,GAAG,gBAAO,CAAC,SAAS,CAAC,CAAC;AAEpC,MAAM,oBAAoB,GAAgB,KAAK,EAAE,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,EAAE;IACnE,MAAM,EAAC,GAAG,EAAE,QAAQ,EAAE,cAAc,GAAG,QAAQ,EAAE,MAAM,EAAE,cAAc,EAAC,GAAG,OAAO,CAAC;IAEnF,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAG,cAAc,EAAC;QACd,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAC;YACnC,IAAG;gBACC,eAAM,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;aAClD;YAAC,OAAM,CAAC,EAAC;gBACN,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;aAChC;SACJ;aAAM,IAAI,OAAO,cAA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E,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAClE,MAAM,MAAM,GAAG,YAAG,CAAC,cAAc,EAAE,QAAQ,EAAE,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAClE,MAAM,IAAI,GAAG,YAAG,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,IAAI,EAAE,CAAA;IAE5D,OAAO,SAAM,CAAC;QACV,YAAG,CAAC,cAAc,EAAE,KAAK,EAAE,EAAE,CAAC;QAC9B,cAAc;QACd,MAAM;QACN,IAAI;QACJ,QAAQ;QACR,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;QACpB,GAAG,YAAG,CAAC,MAAM,EAAE,CAAC,CAAC,EAAE,CAAC,EAAC,EAAE,CAAA,GAAG,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC;KACtD,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,oBAAoB,CAAC"}
|
@@ -1,13 +1,4 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
const lodash_1 = require("lodash");
|
13
4
|
const uuid_1 = require("uuid");
|
@@ -23,12 +14,12 @@ function _getModel(collectionName, dispatch) {
|
|
23
14
|
return classes_1.Model.forCollection(collectionName);
|
24
15
|
}
|
25
16
|
const getModel = lodash_1.memoize(_getModel);
|
26
|
-
const collectionRecordDataSource = (options, { dispatch }) =>
|
17
|
+
const collectionRecordDataSource = async (options, { dispatch }) => {
|
27
18
|
const { collectionName, id } = options;
|
28
|
-
const { response } =
|
19
|
+
const { response } = await dispatch(reducers_1.collectionGetRecord(collectionName, id));
|
29
20
|
const _Model = getModel(collectionName, dispatch);
|
30
21
|
return response ? new _Model(response) : null;
|
31
|
-
}
|
22
|
+
};
|
32
23
|
collectionRecordDataSource.displayName = 'Collection Record';
|
33
24
|
collectionRecordDataSource.identifier = 'collectionRecord';
|
34
25
|
collectionRecordDataSource.type = 'Object';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"collectionRecord.js","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"collectionRecord.js","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":";;AAAA,mCAAiC;AACjC,+BAAoC;AACpC,wCAAmC;AACnC,4CAAyD;AACzD,0CAAsF;AAGtF,SAAS,SAAS,CAAE,cAAsB,EAAE,QAAkB;IAC1D,IAAG,CAAC,cAAc;QAAE,OAAO,eAAK,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC;IAC5D,MAAM,KAAK,GAAG,QAAQ,CAAC,gCAAqB,CAAC,cAAc,CAAC,CAAC,CAAA;IAC7D,IAAG,KAAK;QAAE,OAAO,KAAK,CAAC;IACvB,OAAO,eAAK,CAAC,aAAa,CAAC,cAAc,CAAC,CAAC;AACnD,CAAC;AAED,MAAM,QAAQ,GAAG,gBAAO,CAAC,SAAS,CAAC,CAAC;AAEpC,MAAM,0BAA0B,GAAgB,KAAK,EAAE,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,EAAE;IACzE,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC;IAEvC,MAAM,EAAC,QAAQ,EAAC,GAAG,MAAM,QAAQ,CAAC,8BAAmB,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,QAAQ,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;IAElD,OAAO,QAAQ,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAClD,CAAC,CAAA;AAGD,0BAA0B,CAAC,WAAW,GAAG,mBAAmB,CAAC;AAC7D,0BAA0B,CAAC,UAAU,GAAG,kBAAkB,CAAC;AAC3D,0BAA0B,CAAC,IAAI,GAAG,QAAQ,CAAC;AAC3C,0BAA0B,CAAC,oBAAoB,GAAG;IAC9C,EAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,iBAAiB,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,EAAE,gBAAgB,EAAC;IACxF,EAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,sBAAsB,EAAE,KAAK,EAAE,kBAAkB,EAAE,IAAI,EAAE,IAAI,EAAC;CACrF,CAAC;AACF,0BAA0B,CAAC,aAAa,GAAG;IACvC,cAAc,EAAE,EAAE;CACrB,CAAC;AACF,0BAA0B,CAAC,YAAY,GAAG,CAAC,OAAO,EAAC,EAAE;IACjD,MAAM,EAAE,cAAc,EAAE,EAAE,EAAE,GAAG,OAAO,CAAC;IAEvC,OAAO,SAAM,CAAC;QACV,cAAc;QACd,EAAE;KACL,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,0BAA0B,CAAC"}
|
@@ -1,19 +1,10 @@
|
|
1
1
|
"use strict";
|
2
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
const lodash_1 = require("lodash");
|
13
4
|
const actions_1 = require("../actions");
|
14
5
|
const uuid_1 = require("uuid");
|
15
6
|
const constants_1 = require("../constants");
|
16
|
-
const listUrlDataSource = (options, { dispatch }) =>
|
7
|
+
const listUrlDataSource = async (options, { dispatch }) => {
|
17
8
|
const { sourceId, url = sourceId, data, requestOptions, page } = options;
|
18
9
|
let reqOptions = {};
|
19
10
|
if (requestOptions) {
|
@@ -33,7 +24,7 @@ const listUrlDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, v
|
|
33
24
|
const pageSize = lodash_1.get(reqOptions, 'pageSize') || options.pageSize;
|
34
25
|
const pageSizeParamName = lodash_1.get(reqOptions, 'paramsMap.pageSize', 'pageSize');
|
35
26
|
const pageParamName = lodash_1.get(reqOptions, 'paramsMap.page', 'page');
|
36
|
-
const { response } =
|
27
|
+
const { response } = await dispatch(actions_1.request(url, data, lodash_1.defaultsDeep({ params: { [pageParamName]: page, [pageSizeParamName]: pageSize } }, lodash_1.pick(reqOptions, ['params', 'headers', 'method']))));
|
37
28
|
if (Array.isArray(response)) {
|
38
29
|
return {
|
39
30
|
items: response,
|
@@ -49,7 +40,7 @@ const listUrlDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, v
|
|
49
40
|
totalRecords: lodash_1.get(response, 'totalRecords'),
|
50
41
|
totalPages: lodash_1.get(response, 'totalPages'),
|
51
42
|
};
|
52
|
-
}
|
43
|
+
};
|
53
44
|
listUrlDataSource.displayName = 'Rest API (Array)';
|
54
45
|
listUrlDataSource.identifier = 'array-url';
|
55
46
|
listUrlDataSource.type = 'Array';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"listUrl.js","sourceRoot":"","sources":["../../../src/data-sources/listUrl.ts"],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"listUrl.js","sourceRoot":"","sources":["../../../src/data-sources/listUrl.ts"],"names":[],"mappings":";;AAAA,mCAAyD;AACzD,wCAAqC;AAErC,+BAAkC;AAClC,4CAAyD;AAEzD,MAAM,iBAAiB,GAAgB,KAAK,EAAE,OAAO,EAAE,EAAC,QAAQ,EAAC,EAAC,EAAE;IAChE,MAAM,EAAE,QAAQ,EAAE,GAAG,GAAG,QAAQ,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,EAAE,GAAG,OAAO,CAAC;IACzE,IAAI,UAAU,GAAG,EAAE,CAAC;IACpB,IAAG,cAAc,EAAC;QACd,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAC;YACnC,IAAG;gBACC,eAAM,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,CAAC,CAAC;aAClD;YAAC,OAAM,CAAC,EAAC;gBACN,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;aAChC;SACJ;aAAM,IAAI,OAAO,cAAc,KAAK,QAAQ,EAAC;YAC1C,eAAM,CAAC,UAAU,EAAE,cAAc,CAAC,CAAC;SACtC;KACJ;IACD,OAAO,CAAC,GAAG,CAAC,YAAY,EAAE,UAAU,EAAE,cAAc,CAAC,CAAC;IACtD,MAAM,QAAQ,GAAG,YAAG,CAAC,UAAU,EAAE,UAAU,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC;IACjE,MAAM,iBAAiB,GAAG,YAAG,CAAC,UAAU,EAAE,oBAAoB,EAAE,UAAU,CAAC,CAAC;IAC5E,MAAM,aAAa,GAAG,YAAG,CAAC,UAAU,EAAE,gBAAgB,EAAE,MAAM,CAAC,CAAC;IAEhE,MA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function (thisArg, _arguments, P, generator) {
|
3
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
4
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
5
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
6
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
7
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
8
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
9
|
-
});
|
10
|
-
};
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
12
3
|
const lodash_1 = require("lodash");
|
13
4
|
const actions_1 = require("../actions");
|
14
5
|
const uuid_1 = require("uuid");
|
15
6
|
const constants_1 = require("../constants");
|
16
|
-
const urlDataSource = (options, { dispatch }) =>
|
7
|
+
const urlDataSource = async (options, { dispatch }) => {
|
17
8
|
const { sourceId, url = sourceId, data, requestOptions, page } = options;
|
18
9
|
let reqOptions = {};
|
19
10
|
if (requestOptions) {
|
@@ -33,9 +24,9 @@ const urlDataSource = (options, { dispatch }) => __awaiter(void 0, void 0, void
|
|
33
24
|
const pageSize = lodash_1.get(reqOptions, 'pageSize') || options.pageSize;
|
34
25
|
const pageSizeParamName = lodash_1.get(reqOptions, 'paramsMap.pageSize', 'pageSize');
|
35
26
|
const pageParamName = lodash_1.get(reqOptions, 'paramsMap.page', 'page');
|
36
|
-
const { response } =
|
27
|
+
const { response } = await dispatch(actions_1.request(url, data, lodash_1.defaultsDeep({ params: { [pageParamName]: page, [pageSizeParamName]: pageSize } }, lodash_1.pick(reqOptions, ['params', 'headers', 'method']))));
|
37
28
|
return response;
|
38
|
-
}
|
29
|
+
};
|
39
30
|
urlDataSource.displayName = 'Rest API';
|
40
31
|
urlDataSource.identifier = 'url';
|
41
32
|
urlDataSource.type = 'Object';
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"url.js","sourceRoot":"","sources":["../../../src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AAM,CAAC,EAAC,GAAE;IAEX,OAAO,SAAM,CAAC;QACV,YAAG,CAAC,cAAc,EAAE,KAAK,EAAE,EAAE,CAAC;QAC9B,GAAG;QACH,YAAG,CAAC,cAAc,EAAE,QAAQ,EAAE,EAAE,CAAC;QACjC,IAAI,CAAC,SAAS,CAAC,YAAG,CAAC,cAAc,EAAE,MAAM,EAAE,EAAE,CAAC,CAAC;QAC/C,IAAI,CAAC,SAAS,CAAC,YAAG,CAAC,cAAc,EAAE,QAAQ,CAAC,CAAC;KAChD,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAEF,kBAAe,aAAa,CAAC"}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
export default class EDLBlockRenderer {
|
2
|
+
private elements;
|
3
|
+
private options;
|
4
|
+
constructor(elements: any, options: any);
|
5
|
+
prepareNewContext(context: any, dataToAdd: any): any;
|
6
|
+
renderBlock: (block: any, context: any, parentBlockId: string) => any;
|
7
|
+
renderBlocks: (blocks: any, contextData: any, parentBlockId: string) => any[];
|
8
|
+
}
|
9
|
+
//# sourceMappingURL=BlockRenderer.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"BlockRenderer.d.ts","sourceRoot":"","sources":["../../../src/edl/BlockRenderer.tsx"],"names":[],"mappings":"AAiBA,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACnC,OAAO,CAAC,QAAQ,CAAM;IACtB,OAAO,CAAC,OAAO,CAAM;gBAET,QAAQ,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG;IAKvC,iBAAiB,CAAC,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG;IAK9C,WAAW,UAAW,GAAG,WAAW,GAAG,iBAAiB,MAAM,SAqE7D;IAED,YAAY,WAAY,GAAG,eAAe,GAAG,iBAAiB,MAAM,WAEnE;CACF"}
|