@evlop/commons 1.0.245 → 1.0.247

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAchF,QAAA,MAAM,oBAAoB,EAAE,WAgC3B,CAAA;AAuCD,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collection.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAwC,MAAM,aAAa,CAAC;AAchF,QAAA,MAAM,oBAAoB,EAAE,WAiC3B,CAAA;AAwCD,eAAe,oBAAoB,CAAC"}
@@ -35,7 +35,8 @@ const collectionDataSource = async (options, { dispatch }) => {
35
35
  const filter = lodash_1.get(reqOptions, 'filter', options.filter) || {};
36
36
  const search = lodash_1.get(reqOptions, 'search', options.search) || '';
37
37
  const sort = lodash_1.get(reqOptions, 'sort', options.sort) || {};
38
- const { response } = await dispatch(reducers_1.getCollection(collectionName, { page, key, pageSize, sort, search }, filter));
38
+ const populate = lodash_1.get(reqOptions, 'populate', options.populate);
39
+ const { response } = await dispatch(reducers_1.getCollection(collectionName, { page, key, pageSize, sort, search, populate }, filter));
39
40
  const _Model = getModel(collectionName, dispatch);
40
41
  return {
41
42
  items: lodash_1.map(lodash_1.get(response, 'data'), item => new _Model(item)),
@@ -68,14 +69,16 @@ collectionDataSource.keyExtractor = (options) => {
68
69
  const filter = lodash_1.get(requestOptions, 'filter', options.filter) || {};
69
70
  const search = lodash_1.get(requestOptions, 'search', options.search) || '';
70
71
  const sort = lodash_1.get(requestOptions, 'sort', options.sort) || {};
72
+ const populate = lodash_1.get(requestOptions, 'populate', options.populate);
71
73
  return uuid_1.v5([
72
74
  lodash_1.get(requestOptions, 'key', ''),
73
75
  collectionName,
74
76
  search,
75
77
  page,
76
78
  pageSize,
79
+ populate,
77
80
  JSON.stringify(sort),
78
- ...lodash_1.map(filter, (v, k) => `${k}=${JSON.stringify(v)}`)
81
+ ...lodash_1.map(filter, (v, k) => `${k}=${JSON.stringify(v)}`),
79
82
  ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
80
83
  };
81
84
  exports.default = collectionDataSource;
@@ -1 +1 @@
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,cAAc,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AAC;KACtD,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,oBAAoB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"collectionRecord.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAA8C,MAAM,aAAa,CAAC;AAYtF,QAAA,MAAM,0BAA0B,EAAE,WAOjC,CAAA;AAuBD,eAAe,0BAA0B,CAAC"}
1
+ {"version":3,"file":"collectionRecord.d.ts","sourceRoot":"","sources":["../../../src/data-sources/collectionRecord.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,WAAW,EAA8C,MAAM,aAAa,CAAC;AAYtF,QAAA,MAAM,0BAA0B,EAAE,WAOjC,CAAA;AAyBD,eAAe,0BAA0B,CAAC"}
@@ -15,8 +15,8 @@ function _getModel(collectionName, dispatch) {
15
15
  }
16
16
  const getModel = lodash_1.memoize(_getModel);
17
17
  const collectionRecordDataSource = async (options, { dispatch }) => {
18
- const { collectionName, id } = options;
19
- const { response } = await dispatch(reducers_1.collectionGetRecord(collectionName, id));
18
+ const { collectionName, id, recordId = id, populate } = options;
19
+ const { response } = await dispatch(reducers_1.collectionGetRecord(collectionName, recordId, populate));
20
20
  const _Model = getModel(collectionName, dispatch);
21
21
  return response ? new _Model(response) : null;
22
22
  };
@@ -26,15 +26,17 @@ collectionRecordDataSource.type = 'Object';
26
26
  collectionRecordDataSource.configurationOptions = [
27
27
  { type: 'text', key: 'collection-name', label: 'Collection Name', name: 'collectionName' },
28
28
  { type: 'text', key: 'collection-record-id', label: 'Record ID/Handle', name: 'id' },
29
+ { type: 'code', key: 'collection-populate', label: 'Populate', name: 'populate', minHeight: 100 },
29
30
  ];
30
31
  collectionRecordDataSource.defaultValues = {
31
32
  collectionName: '',
32
33
  };
33
34
  collectionRecordDataSource.keyExtractor = (options) => {
34
- const { collectionName, id } = options;
35
+ const { collectionName, id, recordId = id, populate } = options;
35
36
  return uuid_1.v5([
36
37
  collectionName,
37
- id,
38
+ recordId,
39
+ populate,
38
40
  ].join(':'), constants_1.DATA_SOURCE_KEY_NAMESPACE);
39
41
  };
40
42
  exports.default = collectionRecordDataSource;
@@ -1 +1 @@
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,kBAAk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IAEhE,OAAO,SAAM,CAAC;QACV,cAAc;QACd,QAAQ;QACR,QAAQ;KACX,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,qCAAyB,CAAC,CAAA;AAC3C,CAAC,CAAC;AAGF,kBAAe,0BAA0B,CAAC"}
@@ -27,13 +27,15 @@ export declare function unregisterModel(model: any): {
27
27
  model: any;
28
28
  };
29
29
  export declare const getModelForCollection: (collectionName: any) => (dispatch: any, getState: any) => any;
30
- export declare function getCollection(collectionName: string, { page, pageSize, search, sort, key }: {
30
+ declare type GetCollectionOptions = {
31
31
  page: number;
32
32
  pageSize?: number;
33
33
  search?: string;
34
34
  sort?: any;
35
35
  key?: string;
36
- }, filter?: {}): {
36
+ populate?: string | string[];
37
+ };
38
+ export declare function getCollection(collectionName: string, { page, pageSize, search, sort, key, populate }: GetCollectionOptions, filter?: {}): {
37
39
  method: string;
38
40
  types: string[] | ([string, string, string] & {
39
41
  length: 3;
@@ -46,12 +48,7 @@ export declare function getCollection(collectionName: string, { page, pageSize,
46
48
  endpoint: string;
47
49
  data: any;
48
50
  };
49
- export declare function collectionLoadMore(collectionName: string, { page, sort, search, key }: {
50
- page?: number;
51
- sort: any;
52
- search: any;
53
- key?: string;
54
- }, filter?: {}): {
51
+ export declare function collectionLoadMore(collectionName: string, { page, sort, search, key, populate }: GetCollectionOptions, filter?: {}): {
55
52
  method: string;
56
53
  types: string[] | ([string, string, string] & {
57
54
  length: 3;
@@ -64,7 +61,7 @@ export declare function collectionLoadMore(collectionName: string, { page, sort,
64
61
  endpoint: string;
65
62
  data: any;
66
63
  };
67
- export declare function collectionGetRecord(collectionName: string, id: string): {
64
+ export declare function collectionGetRecord(collectionName: string, id: string, populate?: GetCollectionOptions['populate']): {
68
65
  method: string;
69
66
  types: string[] | ([string, string, string] & {
70
67
  length: 3;
@@ -78,7 +75,7 @@ export declare function collectionGetRecord(collectionName: string, id: string):
78
75
  data: any;
79
76
  };
80
77
  export declare const getCollectionRecord: typeof collectionGetRecord;
81
- export declare function collectionAddRecord(collectionName: any, data: any): {
78
+ export declare function collectionAddRecord(collectionName: string, data: any): {
82
79
  method: string;
83
80
  types: string[] | ([string, string, string] & {
84
81
  length: 3;
@@ -92,7 +89,7 @@ export declare function collectionAddRecord(collectionName: any, data: any): {
92
89
  data: any;
93
90
  };
94
91
  export declare const addCollectionRecord: typeof collectionAddRecord;
95
- export declare function collectionDeleteRecord(collectionName: string, id: any): {
92
+ export declare function collectionDeleteRecord(collectionName: string, id: string): {
96
93
  method: string;
97
94
  types: string[] | ([string, string, string] & {
98
95
  length: 3;
@@ -106,7 +103,7 @@ export declare function collectionDeleteRecord(collectionName: string, id: any):
106
103
  data: any;
107
104
  };
108
105
  export declare const deleteCollectionRecord: typeof collectionDeleteRecord;
109
- export declare function collectionUpdateRecord(collectionName: any, id: any, updates: any): {
106
+ export declare function collectionUpdateRecord(collectionName: string, id: string, updates: any): {
110
107
  method: string;
111
108
  types: string[] | ([string, string, string] & {
112
109
  length: 3;
@@ -1 +1 @@
1
- {"version":3,"file":"collection.d.ts","sourceRoot":"","sources":["../../../src/reducers/collection.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,gBAAgB,gCAAgC,CAAC;AAC9D,eAAO,MAAM,cAAc,8BAA8B,CAAC;AAE1D,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAC3E,eAAO,MAAM,2BAA2B,gCAAgC,CAAC;AAEzE,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,6BAA6B,kCAAkC,CAAC;AAC7E,eAAO,MAAM,4BAA4B,iCAAiC,CAAC;AAE3E,eAAO,MAAM,gCAAgC,qCAAqC,CAAC;AACnF,eAAO,MAAM,gCAAgC,qCAA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AM,EAAE,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG;;;;;;;;;;;;EAOtF;AAED,eAAO,MAAM,sBAAsB,+BAAyB,CAAC;AAyB7D,QAAA,MAAM,UAAU,kCA2Gf,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -44,25 +44,25 @@ const getModelForCollection = (collectionName) => (dispatch, getState) => {
44
44
  return !!models && models.find(m => m && m.collectionName === collectionName);
45
45
  };
46
46
  exports.getModelForCollection = getModelForCollection;
47
- function getCollection(collectionName, { page = 1, pageSize, search, sort, key = `_${collectionName}` }, filter = {}) {
47
+ function getCollection(collectionName, { page = 1, pageSize, search, sort, key = `_${collectionName}`, populate }, filter = {}) {
48
48
  const collectionPath = change_case_1.paramCase(collectionName);
49
- return restApi_1.request(collectionPath, { page, pageSize, search, sort, filter }, {
49
+ return restApi_1.request(collectionPath, { page, pageSize, search, sort, filter, populate }, {
50
50
  key,
51
51
  types: [exports.COLLECTION_LOAD_PAGE_STARTED, exports.COLLECTION_LOAD_PAGE_SUCCESS, exports.COLLECTION_LOAD_PAGE_FAILED],
52
52
  });
53
53
  }
54
54
  exports.getCollection = getCollection;
55
- function collectionLoadMore(collectionName, { page = 1, sort, search, key = `_${collectionName}` }, filter = {}) {
55
+ function collectionLoadMore(collectionName, { page = 1, sort, search, key = `_${collectionName}`, populate }, filter = {}) {
56
56
  const collectionPath = change_case_1.paramCase(collectionName);
57
- return restApi_1.request(collectionPath, { page, sort, search, filter }, {
57
+ return restApi_1.request(collectionPath, { page, sort, search, filter, populate }, {
58
58
  key,
59
59
  types: [exports.COLLECTION_LOAD_MORE_STARTED, exports.COLLECTION_LOAD_MORE_SUCCESS, exports.COLLECTION_LOAD_MORE_FAILED],
60
60
  });
61
61
  }
62
62
  exports.collectionLoadMore = collectionLoadMore;
63
- function collectionGetRecord(collectionName, id) {
63
+ function collectionGetRecord(collectionName, id, populate) {
64
64
  const collectionPath = change_case_1.paramCase(collectionName);
65
- return restApi_1.request(`${collectionPath}/:id`, {}, {
65
+ return restApi_1.request(`${collectionPath}/:id`, { populate }, {
66
66
  pathParams: { id },
67
67
  key: `_${collectionName}`,
68
68
  types: [exports.COLLECTION_GET_RECORD_STARTED, exports.COLLECTION_GET_RECORD_SUCCESS, exports.COLLECTION_GET_RECORD_FAILED],
@@ -1 +1 @@
1
- {"version":3,"file":"collection.js","sourceRoot":"","sources":["../../../src/reducers/collection.tsx"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,mCAAsD;AACtD,gDAAgE;AAEnD,QAAA,gBAAgB,GAAG,6BAA6B,CAAC;AACjD,QAAA,cAAc,GAAG,2BAA2B,CAAC;AAE7C,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAC9D,QAAA,2BAA2B,GAAG,6BAA6B,CAAC;AAE5D,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCAAiC,CAAC;AAEpE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,6BAA6B,GAAG,+BAA+B,CAAC;AAChE,QAAA,4BAA4B,GAAG,8BAA8B,CAAC;AAE9D,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,gCAAgC,GAAG,kCAAkC,CAAC;AACtE,QAAA,+BAA+B,GAAG,iCAAiC,CAAC;AAEjF,SAAgB,aAAa,CAAC,KAAK;IAC/B,OAAO;QACH,IAAI,EAAE,sBAAc;QACpB,KAAK;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,CAAC,GAAG,CAAC,EAAE,QAAQ;aAClB,CAAC;SACL;QACD,KAAK,wCAAgC,CAAC,CAAA;YAClC,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,EAAC,EAAE,GAAG,IAAI,EAAC,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;YACrD,MAAM,EAAE,CAAC,GAAG,CAAC,EAAE,aAAa,GAAG,uBAAuB,EAAE,GAAG,KAAK,CAAC;YACjE,MAAM,QAAQ,GAAoB;gBAC9B,GAAG,aAAa;gBAChB,KAAK,EAAE,eAAM,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,IAAS,EAAC,EAAE,CAAC,IAAI,CAAC,EAAE,KAAI,EAAE,CAAC;gBAC/D,KAAK,EAAE,aAAI,CAAC,aAAa,CAAC,KAAK,EAAE,CAAC,EAAE,CAAC,CAAC;aACzC,CAAC;YACF,OAAO;gBACH,GAAG,KAAK;gBACR,CAAC,GAAG,CAAC,EAAE,QAAQ;aAClB,CAAC;SACL;QACD;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAC;AAEF,kBAAe,UAAU,CAAC"}
@@ -7,6 +7,10 @@ export interface AppModal {
7
7
  props: any;
8
8
  closeable: boolean;
9
9
  zIndex?: number;
10
+ /**
11
+ * @description: Only used for mobile apps.
12
+ */
13
+ presentationStyle?: 'pageSheet' | 'formSheet' | 'fullScreen' | 'overFullScreen' | 'bottomSheet';
10
14
  }
11
15
  export declare const showModal: (options: Partial<AppModal>) => {
12
16
  type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAkBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAoBC"}
1
+ {"version":3,"file":"modals.d.ts","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,eAAO,MAAM,YAAY,iBAAiB,CAAC;AAC3C,eAAO,MAAM,WAAW,gBAAgB,CAAC;AAEzC,MAAM,WAAW,QAAQ;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,GAAG,CAAC;IACf,KAAK,EAAE,GAAG,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,iBAAiB,CAAC,EAAE,WAAW,GAAG,WAAW,GAAG,YAAY,GAAG,gBAAgB,GAAG,aAAa,CAAC;CACnG;AAGD,eAAO,MAAM,SAAS,YAAa,QAAQ,QAAQ,CAAC;;;CAmBnD,CAAC;AAEF,eAAO,MAAM,WAAW,OAAQ,QAAQ,CAAC,IAAI,CAAC,WAAW,QAAQ,QAAQ,CAAC;;;;CAMzE,CAAA;AAED,eAAO,MAAM,UAAU;;;CAGrB,CAAC;;AAIH,wBAoBC"}
@@ -7,7 +7,7 @@ exports.UPDATE_MODAL = 'modal/update';
7
7
  exports.CLOSE_MODAL = 'modal/close';
8
8
  // export const showModal = (component, props = {})=>({
9
9
  const showModal = (options) => {
10
- const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true, zIndex = 0 } = options;
10
+ const { id = lodash_1.random(Number.MAX_SAFE_INTEGER), component, props = {}, closeable = true, zIndex = 0, presentationStyle = 'bottomSheet' } = options;
11
11
  if (!component) {
12
12
  throw new Error('Modal component is required');
13
13
  }
@@ -17,6 +17,7 @@ const showModal = (options) => {
17
17
  props,
18
18
  closeable,
19
19
  zIndex,
20
+ presentationStyle,
20
21
  };
21
22
  return {
22
23
  type: exports.SHOW_MODAL,
@@ -1 +1 @@
1
- {"version":3,"file":"modals.js","sourceRoot":"","sources":["../../../src/reducers/modals.tsx"],"names":[],"mappings":";;;AAAA,mCAAgD;AAEnC,QAAA,UAAU,GAAG,YAAY,CAAC;AAC1B,QAAA,YAAY,GAAG,cAAc,CAAC;AAC9B,QAAA,WAAW,GAAG,aAAa,CAAC;AAUzC,uDAAuD;AAChD,MAAM,SAAS,GAAG,CAAC,OAA0B,EAAC,EAAE;IACnD,MAAM,EAAC,EAAE,GAAG,eAAM,CAAC,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,IAAI,EAAE,MAAM,GAAG,CAAC,EAAC,GAAG,OAAO,CAAC;IAE5G,IAAI,CAAC,SAAS,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAClD;IAED,MAAM,KAAK,GAAa;QACpB,EAAE;QACF,SAAS;QACT,KAAK;QACL,SAAS;QACT,MAAM;KACT,CAAC;IACF,OAAO;QACH,IAAI,EAAE,kBAAU;QAChB,KAAK;KACR,CAAA;AACL,CAAC,CAAC;AAlBW,QAAA,SAAS,aAkBpB;AAEK,MAAM,WAAW,GAAG,CAAC,EAAkB,EAAE,OAA0B,EAAC,EAAE;IACzE,OAAO;QACH,IAAI,EAAE,oBAAY;QAClB,EAAE;QACF,YAAY,EAAE,OAAO;KACxB,CAAA;AACL,CAAC,CAAA;AANY,QAAA,WAAW,eAMvB;AAEM,MAAM,UAAU,GAAG,CAAC,EAAE,EAAC,EAAE,CAAA,CAAC;IAC7B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wBAAwB;YACxB,OAAO,eAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACrC;QACD,KAAK,oBAAY,CAAC,CAAA;YACd,MAAM,QAAQ,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,EAAE,KAAG,MAAM,CAAC,EAAE,CAAA,CAAC,CAAA,EAAC,GAAG,CAAC,EAAE,GAAG,MAAM,CAAC,YAAY,EAAC,CAAA,CAAC,CAAA,CAAC,CAAC,CAAC;YACjF,wBAAwB;YACxB,OAAO,eAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;SACrC;QACD,KAAK,mBAAW;YACZ,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA,EAAE,CAAA,CAAC,CAAC,EAAE,KAAG,MAAM,CAAC,EAAE,CAAC,CAAC;QAC7C;YACI,OAAO,KAAK,CAAC;KACpB;AACL,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@evlop/commons",
3
- "version": "1.0.245",
3
+ "version": "1.0.247",
4
4
  "description": "",
5
5
  "main": "dist/main.js",
6
6
  "peerDependencies": {