@gisce/react-ooui 2.71.0-alpha.4 → 2.71.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/context/ContentRootContext.d.ts.map +1 -1
- package/dist/helpers/formHelper.d.ts +1 -1
- package/dist/helpers/formHelper.d.ts.map +1 -1
- package/dist/hooks/useAutorefreshableTreeFields.d.ts +1 -5
- package/dist/hooks/useAutorefreshableTreeFields.d.ts.map +1 -1
- package/dist/hooks/useTreeFunctionFieldsRead.d.ts +2 -9
- package/dist/hooks/useTreeFunctionFieldsRead.d.ts.map +1 -1
- package/dist/react-ooui.es.js +6604 -6942
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/types/index.d.ts +2 -14
- package/dist/types/index.d.ts.map +1 -1
- package/dist/widgets/base/ReferenceTree.d.ts.map +1 -1
- package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -1
- package/dist/widgets/views/SearchTreeInfinite.d.ts.map +1 -1
- package/dist/widgets/views/Tree/Paginated/SearchTreePaginated.d.ts.map +1 -1
- package/dist/widgets/views/Tree/Paginated/components/PaginatedTableComponent.d.ts +1 -1
- package/dist/widgets/views/Tree/Paginated/components/PaginatedTableComponent.d.ts.map +1 -1
- package/dist/widgets/views/Tree/Paginated/hooks/usePaginatedSearch.d.ts +0 -1
- package/dist/widgets/views/Tree/Paginated/hooks/usePaginatedSearch.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/hooks/useCallbackRef.d.ts +0 -9
- package/dist/hooks/useCallbackRef.d.ts.map +0 -1
- package/dist/hooks/useTreeAttributesState.d.ts +0 -20
- package/dist/hooks/useTreeAttributesState.d.ts.map +0 -1
- package/dist/widgets/views/Tree/CellRenderer.d.ts +0 -8
- package/dist/widgets/views/Tree/CellRenderer.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentRootContext.d.ts","sourceRoot":"","sources":["../../src/context/ContentRootContext.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ContentRootContext.d.ts","sourceRoot":"","sources":["../../src/context/ContentRootContext.tsx"],"names":[],"mappings":"AAMA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,MAAM,MAAM,sBAAsB,GAAG;IACnC,aAAa,EAAE,CAAC,EACd,UAAU,EACV,MAAM,EACN,MAAM,EACN,OAAO,GACR,EAAE;QACD,UAAU,EAAE,GAAG,CAAC;QAChB,MAAM,EAAE,GAAG,CAAC;QACZ,MAAM,EAAE,GAAG,CAAC;QACZ,OAAO,CAAC,EAAE,GAAG,CAAC;QACd,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;KACpC,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;AAUF,eAAO,MAAM,kBAAkB,8CAC2B,CAAC;AAE3D,KAAK,wBAAwB,GAAG;IAC9B,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,YAAY,CAAC,EAAE,GAAG,CAAC;CACpB,CAAC;;AAsaF,wBAA+C"}
|
|
@@ -31,7 +31,7 @@ export declare const transformPlainMany2Ones: ({ values, fields, }: {
|
|
|
31
31
|
[key: string]: any;
|
|
32
32
|
};
|
|
33
33
|
export declare const colorFromBoolean: (value: boolean) => string;
|
|
34
|
-
export declare const colorFromString: (text
|
|
34
|
+
export declare const colorFromString: (text: string) => string;
|
|
35
35
|
export declare const getTextAndBackgroundColors: (color: string, intensity?: number) => {
|
|
36
36
|
text: string;
|
|
37
37
|
background: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formHelper.d.ts","sourceRoot":"","sources":["../../src/helpers/formHelper.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AA8B/C,eAAO,MAAM,aAAa,WAAY,GAAG,UAAU,GAAG,QAGrD,CAAC;AAEF,eAAO,MAAM,gBAAgB;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G;YACH,GAAG;;;CAqBZ,CAAC;AAEF,eAAO,MAAM,gBAAgB,UAAW,OAAO,KAAG,MAEjD,CAAC;AAEF,eAAO,MAAM,eAAe,SAAU,MAAM,KAAG,MAY9C,CAAC;AAEF,eAAO,MAAM,0BAA0B,UAC9B,MAAM,cACF,MAAM;;;CAOlB,CAAC;AAEF,eAAO,MAAM,uBAAuB,UAAW,MAAM,0BAiCpD,CAAC;AAEF,eAAO,MAAM,YAAY,SAAU,MAAM,UAAU,GAAG,KAAG,MAIxD,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { TreeView } from "..";
|
|
3
2
|
import { InfiniteTableRef } from "@gisce/react-formiga-table";
|
|
4
3
|
import { Tree as TreeOoui } from "@gisce/ooui";
|
|
5
4
|
export type UseAutorefreshableTreeFieldsOpts = {
|
|
@@ -7,15 +6,12 @@ export type UseAutorefreshableTreeFieldsOpts = {
|
|
|
7
6
|
model: string;
|
|
8
7
|
context: any;
|
|
9
8
|
autorefreshableFields?: string[];
|
|
10
|
-
|
|
9
|
+
fieldDefs: any;
|
|
11
10
|
isActive?: boolean;
|
|
12
11
|
treeOoui?: TreeOoui;
|
|
13
|
-
updateAttributes?: (attrsEvaluated: any, treeOoui: TreeOoui) => void;
|
|
14
|
-
results?: any[];
|
|
15
12
|
};
|
|
16
13
|
export declare const useAutorefreshableTreeFields: (opts: UseAutorefreshableTreeFieldsOpts) => {
|
|
17
14
|
pause: () => void;
|
|
18
15
|
resume: () => void;
|
|
19
|
-
clear: () => void;
|
|
20
16
|
};
|
|
21
17
|
//# sourceMappingURL=useAutorefreshableTreeFields.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAutorefreshableTreeFields.d.ts","sourceRoot":"","sources":["../../src/hooks/useAutorefreshableTreeFields.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"useAutorefreshableTreeFields.d.ts","sourceRoot":"","sources":["../../src/hooks/useAutorefreshableTreeFields.ts"],"names":[],"mappings":";AAIA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/C,MAAM,MAAM,gCAAgC,GAAG;IAC7C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,GAAG,CAAC;IACb,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,SAAS,EAAE,GAAG,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,4BAA4B,SACjC,gCAAgC;;;CAgHvC,CAAC"}
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { InfiniteTableRef } from "@gisce/react-formiga-table";
|
|
3
3
|
import { Tree as TreeOoui } from "@gisce/ooui";
|
|
4
|
-
import { TreeView } from '../*/types/index';
|
|
5
4
|
type UseTreeFunctionFieldsReadProps = {
|
|
6
5
|
model: string;
|
|
7
|
-
|
|
6
|
+
fields: any;
|
|
8
7
|
tableRef: React.RefObject<InfiniteTableRef>;
|
|
9
8
|
context?: any;
|
|
10
9
|
isActive?: boolean;
|
|
11
10
|
onResultsUpdated?: (updatedResults: any[]) => void;
|
|
12
11
|
treeOoui?: TreeOoui;
|
|
13
|
-
updateAttributes?: (attrsEvaluated: any, treeOoui: TreeOoui) => void;
|
|
14
|
-
results?: any[];
|
|
15
12
|
};
|
|
16
|
-
export declare const useTreeFunctionFieldsRead: ({ model,
|
|
13
|
+
export declare const useTreeFunctionFieldsRead: ({ model, fields, tableRef, context, isActive, onResultsUpdated, treeOoui, }: UseTreeFunctionFieldsReadProps) => {
|
|
17
14
|
refresh: () => void;
|
|
18
15
|
addRecordsToCheckFunctionFields: (ids: number[]) => void;
|
|
19
16
|
isFieldLoading: (record: any, fieldName: string) => boolean;
|
|
20
|
-
hasFunctionFields: boolean;
|
|
21
|
-
pause: () => void;
|
|
22
|
-
resume: () => void;
|
|
23
|
-
onHasFunctionFieldsToParseConditions: () => boolean;
|
|
24
17
|
};
|
|
25
18
|
export {};
|
|
26
19
|
//# sourceMappingURL=useTreeFunctionFieldsRead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTreeFunctionFieldsRead.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeFunctionFieldsRead.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI9D,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useTreeFunctionFieldsRead.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeFunctionFieldsRead.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAI9D,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAK/C,KAAK,8BAA8B,GAAG;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,gBAAgB,CAAC,EAAE,CAAC,cAAc,EAAE,GAAG,EAAE,KAAK,IAAI,CAAC;IACnD,QAAQ,CAAC,EAAE,QAAQ,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,yBAAyB,gFAQnC,8BAA8B;;2CAuIvB,MAAM,EAAE;6BA+D4B,GAAG,aAAa,MAAM;CAoDnE,CAAC"}
|