@gisce/react-ooui 2.89.0 → 2.90.0-alpha.1
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/actionbar/FormActionBar.d.ts.map +1 -1
- package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
- package/dist/hooks/useFormToolbarButtons.d.ts +15 -5
- package/dist/hooks/useFormToolbarButtons.d.ts.map +1 -1
- package/dist/hooks/useTreeToolbarButtons.d.ts +13 -4
- package/dist/hooks/useTreeToolbarButtons.d.ts.map +1 -1
- package/dist/react-ooui.es.js +2037 -1939
- package/dist/react-ooui.es.js.map +1 -1
- package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/FormActionBar.tsx"],"names":[],"mappings":";AAuCA,iBAAS,sBAAsB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"FormActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/FormActionBar.tsx"],"names":[],"mappings":";AAuCA,iBAAS,sBAAsB,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,kDAsU5D;AAED,QAAA,MAAM,aAAa,oEAA+B,CAAC;AA6CnD,eAAe,aAAa,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/TreeActionBar.tsx"],"names":[],"mappings":";AA6CA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,iBAAS,sBAAsB,CAAC,EAC9B,aAAkB,EAClB,cAAc,EACd,OAAO,EACP,MAAM,GACP,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/TreeActionBar.tsx"],"names":[],"mappings":";AA6CA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AAEF,iBAAS,sBAAsB,CAAC,EAC9B,aAAkB,EAClB,cAAc,EACd,OAAO,EACP,MAAM,GACP,EAAE,KAAK,2CAkXP;AAED,QAAA,MAAM,aAAa,oEAA+B,CAAC;AACnD,eAAe,aAAa,CAAC"}
|
|
@@ -1,19 +1,29 @@
|
|
|
1
1
|
import { RefObject } from "react";
|
|
2
2
|
interface UseFormToolbarButtonsProps {
|
|
3
|
-
|
|
3
|
+
model: string;
|
|
4
4
|
mustDisableButtons?: boolean;
|
|
5
5
|
formRef: RefObject<any>;
|
|
6
6
|
onRefreshParentValues?: () => void;
|
|
7
|
+
toolbar?: {
|
|
8
|
+
action?: any[];
|
|
9
|
+
print?: any[];
|
|
10
|
+
relate?: any[];
|
|
11
|
+
};
|
|
7
12
|
}
|
|
8
13
|
interface SaveDocumentResult {
|
|
9
14
|
succeed: boolean;
|
|
10
15
|
currentId?: number;
|
|
11
16
|
}
|
|
12
|
-
|
|
17
|
+
interface MenuItem {
|
|
18
|
+
label: string;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
items: any[];
|
|
21
|
+
}
|
|
22
|
+
export declare const useFormToolbarButtons: ({ mustDisableButtons, formRef, onRefreshParentValues, model, toolbar: initialToolbar, }: UseFormToolbarButtonsProps) => {
|
|
13
23
|
actionButtonProps: {
|
|
14
24
|
disabled: boolean;
|
|
15
25
|
placement: "bottomRight";
|
|
16
|
-
onRetrieveData: () => Promise<{
|
|
26
|
+
onRetrieveData: () => Promise<MenuItem[] | {
|
|
17
27
|
label: string;
|
|
18
28
|
items: any;
|
|
19
29
|
}[]>;
|
|
@@ -22,7 +32,7 @@ export declare const useFormToolbarButtons: ({ toolbar, mustDisableButtons, form
|
|
|
22
32
|
printButtonProps: {
|
|
23
33
|
disabled: boolean;
|
|
24
34
|
placement: "bottomRight";
|
|
25
|
-
onRetrieveData: () => Promise<{
|
|
35
|
+
onRetrieveData: () => Promise<MenuItem[] | {
|
|
26
36
|
label: string;
|
|
27
37
|
items: any;
|
|
28
38
|
}[]>;
|
|
@@ -31,7 +41,7 @@ export declare const useFormToolbarButtons: ({ toolbar, mustDisableButtons, form
|
|
|
31
41
|
relateButtonProps: {
|
|
32
42
|
disabled: boolean;
|
|
33
43
|
placement: "bottomRight";
|
|
34
|
-
onRetrieveData: () => Promise<{
|
|
44
|
+
onRetrieveData: () => Promise<MenuItem[] | {
|
|
35
45
|
label: string;
|
|
36
46
|
items: any;
|
|
37
47
|
}[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useFormToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormToolbarButtons.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,
|
|
1
|
+
{"version":3,"file":"useFormToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormToolbarButtons.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAAY,MAAM,OAAO,CAAC;AAarE,UAAU,0BAA0B;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;QACd,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;KAChB,CAAC;CACH;AAED,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC;CACd;AAED,eAAO,MAAM,qBAAqB,4FAM/B,0BAA0B;;;;;;;;8BA0FG,GAAG;;;;;;;;;8BAuBH,GAAG;;;;;;;;;8BA+BH,GAAG;;CAqBlC,CAAC;AAEF,eAAO,MAAM,YAAY;wBAGJ,QAAQ;QAAE,OAAO,EAAE,OAAO,CAAC;QAAC,EAAE,EAAE,MAAM,CAAA;KAAE,CAAC;MAC1D,QAAQ,kBAAkB,CAK7B,CAAC"}
|
|
@@ -1,19 +1,28 @@
|
|
|
1
1
|
interface UseTreeToolbarButtonsProps {
|
|
2
|
-
toolbar: any;
|
|
3
2
|
disabled?: boolean;
|
|
4
3
|
parentContext?: any;
|
|
5
4
|
selectedRowItems?: any[];
|
|
6
5
|
onRefreshParentValues?: () => void;
|
|
6
|
+
model: string;
|
|
7
|
+
toolbar?: {
|
|
8
|
+
action?: any[];
|
|
9
|
+
print?: any[];
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
interface MenuItem {
|
|
13
|
+
label: string;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
items: any[];
|
|
7
16
|
}
|
|
8
17
|
export declare const useRunTreeAction: ({ selectedRowItems, onRefreshParentValues, }: {
|
|
9
18
|
selectedRowItems?: any[] | undefined;
|
|
10
19
|
onRefreshParentValues?: (() => void) | undefined;
|
|
11
20
|
}) => (actionData: any, context?: any) => void;
|
|
12
|
-
export declare const useTreeToolbarButtons: ({
|
|
21
|
+
export declare const useTreeToolbarButtons: ({ disabled, parentContext, selectedRowItems, onRefreshParentValues, model, toolbar: initialToolbar, }: UseTreeToolbarButtonsProps) => {
|
|
13
22
|
actionButtonProps: {
|
|
14
23
|
placement: "bottomRight";
|
|
15
24
|
disabled: boolean;
|
|
16
|
-
onRetrieveData: () => Promise<{
|
|
25
|
+
onRetrieveData: () => Promise<MenuItem[] | {
|
|
17
26
|
label: string;
|
|
18
27
|
items: any;
|
|
19
28
|
}[]>;
|
|
@@ -22,7 +31,7 @@ export declare const useTreeToolbarButtons: ({ toolbar, disabled, parentContext,
|
|
|
22
31
|
printButtonProps: {
|
|
23
32
|
placement: "bottomRight";
|
|
24
33
|
disabled: boolean;
|
|
25
|
-
onRetrieveData: () => Promise<{
|
|
34
|
+
onRetrieveData: () => Promise<MenuItem[] | {
|
|
26
35
|
label: string;
|
|
27
36
|
items: any;
|
|
28
37
|
}[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTreeToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeToolbarButtons.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useTreeToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeToolbarButtons.ts"],"names":[],"mappings":"AAUA,UAAU,0BAA0B;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,gBAAgB,CAAC,EAAE,GAAG,EAAE,CAAC;IACzB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE;QACR,MAAM,CAAC,EAAE,GAAG,EAAE,CAAC;QACf,KAAK,CAAC,EAAE,GAAG,EAAE,CAAC;KACf,CAAC;CACH;AAED,UAAU,QAAQ;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,GAAG,EAAE,CAAC;CACd;AAED,eAAO,MAAM,gBAAgB;;mCAKG,IAAI;mBAQnB,GAAG,YAAW,GAAG,SAkBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,0GAO/B,0BAA0B;;;;;;;;8BA0EH,GAAG;;;;;;;;;8BAuBH,GAAG;;CAsB5B,CAAC"}
|