@mgarlik/datastore 0.1.27 → 0.2.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/index.cjs +415 -41
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -4
- package/dist/index.d.ts +6 -4
- package/dist/index.js +416 -42
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -2,6 +2,8 @@ import React$1, { ReactNode } from 'react';
|
|
|
2
2
|
import { filterType } from '@mgarlik/json-filter';
|
|
3
3
|
import { D as DataStoreStorage } from './storage-D_xv8gFb.cjs';
|
|
4
4
|
|
|
5
|
+
type DataStoreFilterType = filterType | Record<string, any>;
|
|
6
|
+
|
|
5
7
|
type formTypes = "textInput" | "select" | "switch" | "dateTime" | "radio";
|
|
6
8
|
|
|
7
9
|
type RemoteUpdateMode =
|
|
@@ -39,7 +41,7 @@ type dateTimeProps = {
|
|
|
39
41
|
|
|
40
42
|
type DataSourceOptions = {
|
|
41
43
|
dataProvider: string;
|
|
42
|
-
filter?:
|
|
44
|
+
filter?: DataStoreFilterType;
|
|
43
45
|
map: Record<string, string>;
|
|
44
46
|
};
|
|
45
47
|
|
|
@@ -106,7 +108,7 @@ type ProviderDataSourceType = {
|
|
|
106
108
|
* Nacist vsechny pole bez ohledu na schema
|
|
107
109
|
*/
|
|
108
110
|
readAllFields?: boolean;
|
|
109
|
-
filter?:
|
|
111
|
+
filter?: DataStoreFilterType;
|
|
110
112
|
/**
|
|
111
113
|
* Nazvy naslouchajicich socketu
|
|
112
114
|
*/
|
|
@@ -156,13 +158,13 @@ type ProviderLayoutType = {
|
|
|
156
158
|
description?: string;
|
|
157
159
|
footer?: string;
|
|
158
160
|
tooltip?: string | React.ReactNode;
|
|
159
|
-
visible?: boolean |
|
|
161
|
+
visible?: boolean | DataStoreFilterType;
|
|
160
162
|
items: Array<string | {
|
|
161
163
|
field: string;
|
|
162
164
|
form?: formType | { type: FormTypes; props?: any };
|
|
163
165
|
label?: string; // jen override
|
|
164
166
|
editable?: boolean;
|
|
165
|
-
visible?: boolean |
|
|
167
|
+
visible?: boolean | DataStoreFilterType;
|
|
166
168
|
tooltip?: string | React.ReactNode;
|
|
167
169
|
/**
|
|
168
170
|
* Přepíše submitMode formuláře pro toto konkrétní pole.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ import React$1, { ReactNode } from 'react';
|
|
|
2
2
|
import { filterType } from '@mgarlik/json-filter';
|
|
3
3
|
import { D as DataStoreStorage } from './storage-D_xv8gFb.js';
|
|
4
4
|
|
|
5
|
+
type DataStoreFilterType = filterType | Record<string, any>;
|
|
6
|
+
|
|
5
7
|
type formTypes = "textInput" | "select" | "switch" | "dateTime" | "radio";
|
|
6
8
|
|
|
7
9
|
type RemoteUpdateMode =
|
|
@@ -39,7 +41,7 @@ type dateTimeProps = {
|
|
|
39
41
|
|
|
40
42
|
type DataSourceOptions = {
|
|
41
43
|
dataProvider: string;
|
|
42
|
-
filter?:
|
|
44
|
+
filter?: DataStoreFilterType;
|
|
43
45
|
map: Record<string, string>;
|
|
44
46
|
};
|
|
45
47
|
|
|
@@ -106,7 +108,7 @@ type ProviderDataSourceType = {
|
|
|
106
108
|
* Nacist vsechny pole bez ohledu na schema
|
|
107
109
|
*/
|
|
108
110
|
readAllFields?: boolean;
|
|
109
|
-
filter?:
|
|
111
|
+
filter?: DataStoreFilterType;
|
|
110
112
|
/**
|
|
111
113
|
* Nazvy naslouchajicich socketu
|
|
112
114
|
*/
|
|
@@ -156,13 +158,13 @@ type ProviderLayoutType = {
|
|
|
156
158
|
description?: string;
|
|
157
159
|
footer?: string;
|
|
158
160
|
tooltip?: string | React.ReactNode;
|
|
159
|
-
visible?: boolean |
|
|
161
|
+
visible?: boolean | DataStoreFilterType;
|
|
160
162
|
items: Array<string | {
|
|
161
163
|
field: string;
|
|
162
164
|
form?: formType | { type: FormTypes; props?: any };
|
|
163
165
|
label?: string; // jen override
|
|
164
166
|
editable?: boolean;
|
|
165
|
-
visible?: boolean |
|
|
167
|
+
visible?: boolean | DataStoreFilterType;
|
|
166
168
|
tooltip?: string | React.ReactNode;
|
|
167
169
|
/**
|
|
168
170
|
* Přepíše submitMode formuláře pro toto konkrétní pole.
|