@gisce/react-ooui 2.58.1 → 2.59.0-alpha.2

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.
Files changed (29) hide show
  1. package/dist/actionbar/ActionBarSeparator.d.ts +3 -0
  2. package/dist/actionbar/ActionBarSeparator.d.ts.map +1 -0
  3. package/dist/actionbar/ActionButton.d.ts.map +1 -1
  4. package/dist/actionbar/DashboardActionBar.d.ts.map +1 -1
  5. package/dist/actionbar/FormActionBar.d.ts +3 -2
  6. package/dist/actionbar/FormActionBar.d.ts.map +1 -1
  7. package/dist/actionbar/TreeActionBar.d.ts +3 -1
  8. package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
  9. package/dist/context/ContentRootContext.d.ts.map +1 -1
  10. package/dist/hooks/useFormToolbarButtons.d.ts +48 -0
  11. package/dist/hooks/useFormToolbarButtons.d.ts.map +1 -0
  12. package/dist/hooks/useTreeToolbarButtons.d.ts +33 -0
  13. package/dist/hooks/useTreeToolbarButtons.d.ts.map +1 -0
  14. package/dist/locales/ca_ES.d.ts +6 -0
  15. package/dist/locales/ca_ES.d.ts.map +1 -1
  16. package/dist/locales/en_US.d.ts +6 -0
  17. package/dist/locales/en_US.d.ts.map +1 -1
  18. package/dist/locales/es_ES.d.ts +6 -0
  19. package/dist/locales/es_ES.d.ts.map +1 -1
  20. package/dist/react-ooui.es.js +6267 -6037
  21. package/dist/react-ooui.es.js.map +1 -1
  22. package/dist/widgets/base/one2many/One2manyForm.d.ts +2 -1
  23. package/dist/widgets/base/one2many/One2manyForm.d.ts.map +1 -1
  24. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -1
  25. package/dist/widgets/base/one2many/One2manyInputInfinite.d.ts.map +1 -1
  26. package/dist/widgets/base/one2many/One2manyTopBar.d.ts +7 -1
  27. package/dist/widgets/base/one2many/One2manyTopBar.d.ts.map +1 -1
  28. package/dist/widgets/views/Dashboard/Dashboard.d.ts.map +1 -1
  29. package/package.json +2 -2
@@ -0,0 +1,3 @@
1
+ /// <reference types="react" />
2
+ export declare const ActionBarSeparator: import("react").MemoExoticComponent<() => import("react/jsx-runtime").JSX.Element>;
3
+ //# sourceMappingURL=ActionBarSeparator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ActionBarSeparator.d.ts","sourceRoot":"","sources":["../../src/actionbar/ActionBarSeparator.tsx"],"names":[],"mappings":";AAEA,eAAO,MAAM,kBAAkB,oFAE7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ActionButton.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,2CAyBjC;AAED,eAAO,MAAM,kBAAkB,UAAW,KAAK,4CAE9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
1
+ {"version":3,"file":"ActionButton.d.ts","sourceRoot":"","sources":["../../src/actionbar/ActionButton.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,MAAM,CAAC;AAEnC,KAAK,KAAK,GAAG,WAAW,GAAG;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,GAAG,CAAC;IACd,IAAI,EAAE,GAAG,CAAC;IACV,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,iBAAS,YAAY,CAAC,KAAK,EAAE,KAAK,2CAyBjC;AAED,eAAO,MAAM,kBAAkB,UAAW,KAAK,4CAE9C,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"DashboardActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/DashboardActionBar.tsx"],"names":[],"mappings":"AAoBA,iBAAS,kBAAkB,4CA4C1B;AAED,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"DashboardActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/DashboardActionBar.tsx"],"names":[],"mappings":"AAgBA,iBAAS,kBAAkB,4CA4C1B;AAED,eAAe,kBAAkB,CAAC"}
@@ -1,6 +1,7 @@
1
- declare function FormActionBar({ toolbar }: {
1
+ /// <reference types="react" />
2
+ declare function FormActionBarComponent({ toolbar }: {
2
3
  toolbar: any;
3
4
  }): import("react/jsx-runtime").JSX.Element | null;
4
- export declare const ActionBarSeparator: () => import("react/jsx-runtime").JSX.Element;
5
+ declare const FormActionBar: import("react").MemoExoticComponent<typeof FormActionBarComponent>;
5
6
  export default FormActionBar;
6
7
  //# sourceMappingURL=FormActionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"FormActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/FormActionBar.tsx"],"names":[],"mappings":"AAsCA,iBAAS,aAAa,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,GAAG,CAAA;CAAE,kDA0WnD;AAED,eAAO,MAAM,kBAAkB,+CAA6C,CAAC;AAuB7E,eAAe,aAAa,CAAC"}
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,kDAsT5D;AAED,QAAA,MAAM,aAAa,oEAA+B,CAAC;AA6CnD,eAAe,aAAa,CAAC"}
@@ -1,8 +1,10 @@
1
+ /// <reference types="react" />
1
2
  type Props = {
2
3
  parentContext?: any;
3
4
  treeExpandable: boolean;
4
5
  toolbar?: any;
5
6
  };
6
- declare function TreeActionBar(props: Props): import("react/jsx-runtime").JSX.Element;
7
+ declare function TreeActionBarComponent({ parentContext, treeExpandable, toolbar, }: Props): import("react/jsx-runtime").JSX.Element;
8
+ declare const TreeActionBar: import("react").MemoExoticComponent<typeof TreeActionBarComponent>;
7
9
  export default TreeActionBar;
8
10
  //# sourceMappingURL=TreeActionBar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"TreeActionBar.d.ts","sourceRoot":"","sources":["../../src/actionbar/TreeActionBar.tsx"],"names":[],"mappings":"AAqCA,KAAK,KAAK,GAAG;IACX,aAAa,CAAC,EAAE,GAAG,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,GAAG,CAAC;CACf,CAAC;AAEF,iBAAS,aAAa,CAAC,KAAK,EAAE,KAAK,2CAoZlC;AAED,eAAe,aAAa,CAAC"}
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;CACf,CAAC;AAEF,iBAAS,sBAAsB,CAAC,EAC9B,aAAkB,EAClB,cAAc,EACd,OAAO,GACR,EAAE,KAAK,2CAsVP;AAED,QAAA,MAAM,aAAa,oEAA+B,CAAC;AACnD,eAAe,aAAa,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"ContentRootContext.d.ts","sourceRoot":"","sources":["../../src/context/ContentRootContext.tsx"],"names":[],"mappings":"AAMA,OAAO,KAMN,MAAM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}
@@ -0,0 +1,48 @@
1
+ import { RefObject } from "react";
2
+ interface UseFormToolbarButtonsProps {
3
+ toolbar: any;
4
+ mustDisableButtons?: boolean;
5
+ formRef: RefObject<any>;
6
+ onRefreshParentValues?: () => void;
7
+ }
8
+ interface SaveDocumentResult {
9
+ succeed: boolean;
10
+ currentId?: number;
11
+ }
12
+ export declare const useFormToolbarButtons: ({ toolbar, mustDisableButtons, formRef, onRefreshParentValues, }: UseFormToolbarButtonsProps) => {
13
+ actionButtonProps: {
14
+ disabled: boolean;
15
+ placement: "bottomRight";
16
+ onRetrieveData: () => Promise<{
17
+ label: string;
18
+ items: any;
19
+ }[]>;
20
+ onItemClick: (action: any) => Promise<void>;
21
+ };
22
+ printButtonProps: {
23
+ disabled: boolean;
24
+ placement: "bottomRight";
25
+ onRetrieveData: () => Promise<{
26
+ label: string;
27
+ items: any;
28
+ }[]>;
29
+ onItemClick: (report: any) => Promise<void>;
30
+ };
31
+ relateButtonProps: {
32
+ disabled: boolean;
33
+ placement: "bottomRight";
34
+ onRetrieveData: () => Promise<{
35
+ label: string;
36
+ items: any;
37
+ }[]>;
38
+ onItemClick: (relate: any) => Promise<void>;
39
+ };
40
+ };
41
+ export declare const saveDocument: ({ onFormSave, }: {
42
+ onFormSave?: (() => Promise<{
43
+ succeed: boolean;
44
+ id: number;
45
+ }>) | undefined;
46
+ }) => Promise<SaveDocumentResult>;
47
+ export {};
48
+ //# sourceMappingURL=useFormToolbarButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useFormToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useFormToolbarButtons.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,SAAS,EAAE,MAAM,OAAO,CAAC;AAW3D,UAAU,0BAA0B;IAClC,OAAO,EAAE,GAAG,CAAC;IACb,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,OAAO,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC;IACxB,qBAAqB,CAAC,EAAE,MAAM,IAAI,CAAC;CACpC;AAED,UAAU,kBAAkB;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,qBAAqB,qEAK/B,0BAA0B;;;;;;;;8BAmCG,GAAG;;;;;;;;;8BAcH,GAAG;;;;;;;;;8BAsBH,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"}
@@ -0,0 +1,33 @@
1
+ interface UseTreeToolbarButtonsProps {
2
+ toolbar: any;
3
+ disabled?: boolean;
4
+ parentContext?: any;
5
+ selectedRowItems?: any[];
6
+ onRefreshParentValues?: () => void;
7
+ }
8
+ export declare const useRunTreeAction: ({ selectedRowItems, onRefreshParentValues, }: {
9
+ selectedRowItems?: any[] | undefined;
10
+ onRefreshParentValues?: (() => void) | undefined;
11
+ }) => (actionData: any, context?: any) => void;
12
+ export declare const useTreeToolbarButtons: ({ toolbar, disabled, parentContext, selectedRowItems, onRefreshParentValues, }: UseTreeToolbarButtonsProps) => {
13
+ actionButtonProps: {
14
+ placement: "bottomRight";
15
+ disabled: boolean;
16
+ onRetrieveData: () => Promise<{
17
+ label: string;
18
+ items: any;
19
+ }[]>;
20
+ onItemClick: (action: any) => void;
21
+ };
22
+ printButtonProps: {
23
+ placement: "bottomRight";
24
+ disabled: boolean;
25
+ onRetrieveData: () => Promise<{
26
+ label: string;
27
+ items: any;
28
+ }[]>;
29
+ onItemClick: (report: any) => void;
30
+ };
31
+ };
32
+ export {};
33
+ //# sourceMappingURL=useTreeToolbarButtons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useTreeToolbarButtons.d.ts","sourceRoot":"","sources":["../../src/hooks/useTreeToolbarButtons.ts"],"names":[],"mappings":"AAOA,UAAU,0BAA0B;IAClC,OAAO,EAAE,GAAG,CAAC;IACb,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;CACpC;AAED,eAAO,MAAM,gBAAgB;;mCAKG,IAAI;mBAQnB,GAAG,YAAW,GAAG,SAkBjC,CAAC;AAEF,eAAO,MAAM,qBAAqB,mFAM/B,0BAA0B;;;;;;;;8BAaH,GAAG;;;;;;;;;8BAcH,GAAG;;CAsB5B,CAAC"}
@@ -100,6 +100,12 @@ declare const _default: {
100
100
  not: string;
101
101
  loading: string;
102
102
  pendingToCalculate: string;
103
+ createNewItem: string;
104
+ searchExistingItem: string;
105
+ toggleViewMode: string;
106
+ previousItem: string;
107
+ nextItem: string;
108
+ unlink: string;
103
109
  share: string;
104
110
  copyToClipboard: string;
105
111
  urlCopiedToClipboard: string;
@@ -1 +1 @@
1
- {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAkHE"}
1
+ {"version":3,"file":"ca_ES.d.ts","sourceRoot":"","sources":["../../src/locales/ca_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAwHE"}
@@ -100,6 +100,12 @@ declare const _default: {
100
100
  not: string;
101
101
  loading: string;
102
102
  pendingToCalculate: string;
103
+ createNewItem: string;
104
+ searchExistingItem: string;
105
+ toggleViewMode: string;
106
+ previousItem: string;
107
+ nextItem: string;
108
+ unlink: string;
103
109
  share: string;
104
110
  urlCopiedToClipboard: string;
105
111
  copyToClipboard: string;
@@ -1 +1 @@
1
- {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA8GE"}
1
+ {"version":3,"file":"en_US.d.ts","sourceRoot":"","sources":["../../src/locales/en_US.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoHE"}
@@ -100,6 +100,12 @@ declare const _default: {
100
100
  not: string;
101
101
  loading: string;
102
102
  pendingToCalculate: string;
103
+ createNewItem: string;
104
+ searchExistingItem: string;
105
+ toggleViewMode: string;
106
+ previousItem: string;
107
+ nextItem: string;
108
+ unlink: string;
103
109
  share: string;
104
110
  urlCopiedToClipboard: string;
105
111
  copyToClipboard: string;
@@ -1 +1 @@
1
- {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBAoHE"}
1
+ {"version":3,"file":"es_ES.d.ts","sourceRoot":"","sources":["../../src/locales/es_ES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,wBA0HE"}