@foris/avocado-not-front 0.13.0 → 0.14.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/dist/avocado-not-front.es.js +1805 -1765
- package/dist/avocado-not-front.umd.js +46 -46
- package/dist/components/table/TableSkeleton.d.ts +2 -0
- package/dist/components/table/table.util.d.ts +2 -1
- package/dist/style.css +1 -1
- package/dist/types/componentsCore.type.d.ts +8 -1
- package/dist/types/index.d.ts +1 -0
- package/package.json +3 -3
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DataSourceMapperData } from '../../types';
|
|
1
2
|
export type TablePaginationData = {
|
|
2
3
|
size: number;
|
|
3
4
|
total: number;
|
|
@@ -7,4 +8,4 @@ export type TableData = {
|
|
|
7
8
|
items: any[];
|
|
8
9
|
pagination: TablePaginationData;
|
|
9
10
|
};
|
|
10
|
-
export declare function parseDataFromResponse(response: any, jsonPathData: string, mapperData:
|
|
11
|
+
export declare function parseDataFromResponse(response: any, jsonPathData: string, mapperData: DataSourceMapperData, jsonPathPagination?: any): TableData;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._body_14tsv_1{padding:2rem 2.75rem;width:100%}._body_content_14tsv_5{display:flex;flex-direction:column;gap:.75rem;margin:0 auto;max-width:1440px}._cardNotificationNotFront_t7pln_1{max-width:50%}@media (max-width: 992px){._cardNotificationNotFront_t7pln_1{max-width:100%}}._codeEditor_7ct2r_1:not(:first-child){margin:1rem 0 0}._codeEditor_label_7ct2r_4{color:var(--color-neutral-90);display:block;font-family:Roboto,sans-serif;font-size:.75rem;font-weight:700;line-height:.875rem;margin:0 0 .5rem}._codeEditor_input_7ct2r_13{border-radius:.25rem;overflow:hidden;border:1px solid var(--color-neutral-30)}._componentList_1i0g0_1{margin:0 auto;max-width:1440px;padding:2rem 2.75rem;width:100%}._componentList_content_1i0g0_7{display:flex;flex-direction:column;gap:.75rem}._contentWrapper_12gyy_1{max-width:1440px}._contentWrapper_12gyy_1._contentWrapper__centered_12gyy_4{margin:0 auto}._dividerNotFront_tze3j_1{margin:1.25rem 0}._header_1lcyj_1{padding:1.5rem 2.75rem;background-color:var(--color-gray-80)}._header_content_1lcyj_5{display:flex;flex-direction:column;gap:.75rem}._selectNotFront_1yw9q_1{max-width:364px}@media (max-width: 992px){._selectNotFront_1yw9q_1{max-width:364px}}._tableSkeleton_1621g_1{display:flex;flex-direction:column;gap:.5rem}._textFieldNotFront_cps4i_1{max-width:364px}@media (max-width: 992px){._textFieldNotFront_cps4i_1{max-width:364px}}
|
|
@@ -18,9 +18,15 @@ export interface NotFrontDataSourceSelect extends NotFrontDataSource {
|
|
|
18
18
|
jsonPathLabel: string;
|
|
19
19
|
jsonPathValue?: string;
|
|
20
20
|
}
|
|
21
|
+
interface MapperDataItem {
|
|
22
|
+
path: string;
|
|
23
|
+
translations?: Record<string, string>;
|
|
24
|
+
}
|
|
25
|
+
type MapperDataValue = string | MapperDataItem;
|
|
26
|
+
export type DataSourceMapperData = Record<string, MapperDataValue>;
|
|
21
27
|
export interface NotFrontDataSourceTable extends NotFrontDataSource {
|
|
22
28
|
jsonPathData: string;
|
|
23
|
-
mapperData:
|
|
29
|
+
mapperData: DataSourceMapperData;
|
|
24
30
|
jsonPathPagination?: {
|
|
25
31
|
size: string;
|
|
26
32
|
total: string;
|
|
@@ -32,3 +38,4 @@ export interface NotFrontDependency {
|
|
|
32
38
|
when: 'empty';
|
|
33
39
|
actions: ('disabled' | 'reset')[];
|
|
34
40
|
}
|
|
41
|
+
export {};
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foris/avocado-not-front",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.14.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -29,9 +29,9 @@
|
|
|
29
29
|
"react-select": "5.8.0",
|
|
30
30
|
"react-select-async-paginate": "0.7.3",
|
|
31
31
|
"zustand": "4.5.4",
|
|
32
|
+
"@foris/avocado-core": "0.10.0",
|
|
32
33
|
"@foris/avocado-suite": "0.35.1",
|
|
33
|
-
"@foris/avocado-icons": "1.15.0"
|
|
34
|
-
"@foris/avocado-core": "0.10.0"
|
|
34
|
+
"@foris/avocado-icons": "1.15.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@testing-library/jest-dom": "6.4.0",
|