@gisce/react-ooui 2.6.3 → 2.7.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 (40) hide show
  1. package/dist/actionbar/TreeActionBar.d.ts.map +1 -1
  2. package/dist/helpers/one2manyHelper.d.ts +2 -1
  3. package/dist/helpers/one2manyHelper.d.ts.map +1 -1
  4. package/dist/react-ooui.es.js +5737 -5389
  5. package/dist/react-ooui.es.js.map +1 -1
  6. package/dist/ui/AsyncConfirmModal.d.ts +4 -0
  7. package/dist/ui/AsyncConfirmModal.d.ts.map +1 -0
  8. package/dist/ui/RemoveItemDialog.d.ts +2 -3
  9. package/dist/ui/RemoveItemDialog.d.ts.map +1 -1
  10. package/dist/ui/UnlinkItemDialog.d.ts +2 -3
  11. package/dist/ui/UnlinkItemDialog.d.ts.map +1 -1
  12. package/dist/ui/asyncConfirm.d.ts +14 -0
  13. package/dist/ui/asyncConfirm.d.ts.map +1 -0
  14. package/dist/widgets/base/one2many/One2many.types.d.ts +27 -0
  15. package/dist/widgets/base/one2many/One2many.types.d.ts.map +1 -0
  16. package/dist/widgets/base/one2many/One2manyForm.d.ts +12 -0
  17. package/dist/widgets/base/one2many/One2manyForm.d.ts.map +1 -0
  18. package/dist/widgets/base/one2many/One2manyInput.d.ts +4 -12
  19. package/dist/widgets/base/one2many/One2manyInput.d.ts.map +1 -1
  20. package/dist/widgets/base/one2many/One2manyTree.d.ts +28 -0
  21. package/dist/widgets/base/one2many/One2manyTree.d.ts.map +1 -0
  22. package/dist/widgets/base/one2many/useOne2manyColumnStorage.d.ts +8 -0
  23. package/dist/widgets/base/one2many/useOne2manyColumnStorage.d.ts.map +1 -0
  24. package/dist/widgets/base/one2many/useOne2manyDomain.d.ts +5 -0
  25. package/dist/widgets/base/one2many/useOne2manyDomain.d.ts.map +1 -0
  26. package/dist/widgets/base/one2many/useOne2manyForm.d.ts +20 -0
  27. package/dist/widgets/base/one2many/useOne2manyForm.d.ts.map +1 -0
  28. package/dist/widgets/base/one2many/useOne2manyFormModal.d.ts +24 -0
  29. package/dist/widgets/base/one2many/useOne2manyFormModal.d.ts.map +1 -0
  30. package/dist/widgets/base/one2many/useOne2manyItems.d.ts +5 -0
  31. package/dist/widgets/base/one2many/useOne2manyItems.d.ts.map +1 -0
  32. package/dist/widgets/base/one2many/useOne2manyRemove.d.ts +12 -0
  33. package/dist/widgets/base/one2many/useOne2manyRemove.d.ts.map +1 -0
  34. package/dist/widgets/base/one2many/useOne2manySearchModal.d.ts +16 -0
  35. package/dist/widgets/base/one2many/useOne2manySearchModal.d.ts.map +1 -0
  36. package/dist/widgets/base/one2many/useOne2manyTree.d.ts +21 -0
  37. package/dist/widgets/base/one2many/useOne2manyTree.d.ts.map +1 -0
  38. package/dist/widgets/base/one2many/useWhyDidYouRender.d.ts +2 -0
  39. package/dist/widgets/base/one2many/useWhyDidYouRender.d.ts.map +1 -0
  40. package/package.json +3 -2
@@ -0,0 +1,4 @@
1
+ import React from "react";
2
+ import { ConfirmConfig } from "./asyncConfirm";
3
+ export declare const AsyncConfirmModal: React.FC<ConfirmConfig>;
4
+ //# sourceMappingURL=AsyncConfirmModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AsyncConfirmModal.d.ts","sourceRoot":"","sources":["../../src/ui/AsyncConfirmModal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAGxC,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAE/C,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAyDrD,CAAC"}
@@ -1,6 +1,5 @@
1
- declare const showDialog: ({ onOk, t, }: {
2
- onOk: () => void;
1
+ export declare const showRemoveItemDialog: ({ t, onOk, }: {
2
+ onOk: () => Promise<void>;
3
3
  t: (key: string) => string;
4
4
  }) => void;
5
- export default showDialog;
6
5
  //# sourceMappingURL=RemoveItemDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"RemoveItemDialog.d.ts","sourceRoot":"","sources":["../../src/ui/RemoveItemDialog.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,UAAU;UAIR,MAAM,IAAI;aACP,MAAM,KAAK,MAAM;UAW3B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"RemoveItemDialog.d.ts","sourceRoot":"","sources":["../../src/ui/RemoveItemDialog.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;UAIzB,MAAM,QAAQ,IAAI,CAAC;aAChB,MAAM,KAAK,MAAM;UAW3B,CAAC"}
@@ -1,6 +1,5 @@
1
- declare const showDialog: ({ onOk, t, }: {
2
- onOk: () => void;
1
+ export declare const showUnlinkItemDialog: ({ t, onOk, }: {
2
+ onOk: () => Promise<void>;
3
3
  t: (key: string) => string;
4
4
  }) => void;
5
- export default showDialog;
6
5
  //# sourceMappingURL=UnlinkItemDialog.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"UnlinkItemDialog.d.ts","sourceRoot":"","sources":["../../src/ui/UnlinkItemDialog.tsx"],"names":[],"mappings":"AAKA,QAAA,MAAM,UAAU;UAIR,MAAM,IAAI;aACP,MAAM,KAAK,MAAM;UAW3B,CAAC;AAEF,eAAe,UAAU,CAAC"}
1
+ {"version":3,"file":"UnlinkItemDialog.d.ts","sourceRoot":"","sources":["../../src/ui/UnlinkItemDialog.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;UAIzB,MAAM,QAAQ,IAAI,CAAC;aAChB,MAAM,KAAK,MAAM;UAW3B,CAAC"}
@@ -0,0 +1,14 @@
1
+ /// <reference types="react" />
2
+ export interface ConfirmConfig {
3
+ title: string;
4
+ content: React.ReactNode;
5
+ onOk: () => Promise<void>;
6
+ okText?: string;
7
+ cancelText?: string;
8
+ icon?: React.ReactNode;
9
+ centered?: boolean;
10
+ }
11
+ export declare const asyncConfirm: (config: ConfirmConfig) => {
12
+ destroy: () => void;
13
+ };
14
+ //# sourceMappingURL=asyncConfirm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"asyncConfirm.d.ts","sourceRoot":"","sources":["../../src/ui/asyncConfirm.tsx"],"names":[],"mappings":";AAGA,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,KAAK,CAAC,SAAS,CAAC;IACzB,IAAI,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,WAAY,aAAa;;CAyBjD,CAAC"}
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { One2many as One2manyOoui, Form as FormOoui, Tree as TreeOoui } from "@gisce/ooui";
3
+ import { Views } from '../../../*/types';
4
+ type One2manyValue = {
5
+ fields?: any;
6
+ items: One2manyItem[];
7
+ };
8
+ type One2manyItem = {
9
+ operation?: "original" | "pendingRemove" | "pendingUpdate" | "pendingCreate" | "pendingLink";
10
+ id?: number;
11
+ values?: any;
12
+ treeValues?: any;
13
+ defaultValues?: any;
14
+ };
15
+ export interface One2manyInputProps {
16
+ ooui: One2manyOoui;
17
+ value?: One2manyValue;
18
+ onChange?: (value: One2manyValue) => void;
19
+ views: Views;
20
+ }
21
+ export declare const ViewObjects: {
22
+ form: typeof FormOoui;
23
+ tree: typeof TreeOoui;
24
+ graph: import("react").ForwardRefExoticComponent<import('../../../*/widgets/views/Graph/Graph').GraphProps & import("react").RefAttributes<unknown>>;
25
+ };
26
+ export {};
27
+ //# sourceMappingURL=One2many.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"One2many.types.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/One2many.types.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,QAAQ,IAAI,YAAY,EACxB,IAAI,IAAI,QAAQ,EAChB,IAAI,IAAI,QAAQ,EACjB,MAAM,aAAa,CAAC;AAErB,OAAO,EAAY,KAAK,EAAE,MAAM,SAAS,CAAC;AAE1C,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EACN,UAAU,GACV,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,KAAK,EAAE,KAAK,CAAC;CACd;AAED,eAAO,MAAM,WAAW;;;;CAIvB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { FormView } from '../../../*/types';
2
+ import { One2manyItem } from "./One2manyInput";
3
+ export type One2manyFormProps = {
4
+ formView: FormView;
5
+ items: One2manyItem[];
6
+ context: any;
7
+ relation: string;
8
+ readOnly: boolean;
9
+ onChange: (items: One2manyItem[]) => void;
10
+ };
11
+ export declare const One2manyForm: ({ formView, items, context, relation, readOnly, onChange, }: One2manyFormProps) => string | import("react/jsx-runtime").JSX.Element;
12
+ //# sourceMappingURL=One2manyForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"One2manyForm.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/One2manyForm.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAOnC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAI/C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,OAAO,EAAE,GAAG,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,CAAC,KAAK,EAAE,YAAY,EAAE,KAAK,IAAI,CAAC;CAC3C,CAAC;AAEF,eAAO,MAAM,YAAY,gEAOtB,iBAAiB,qDAwCnB,CAAC"}
@@ -1,23 +1,15 @@
1
1
  import React from "react";
2
- import { One2many as One2manyOoui } from "@gisce/ooui";
3
- import { Views } from '../../../*/types';
4
- type One2manyValue = {
2
+ import { One2manyInputProps } from "./One2many.types";
3
+ export type One2manyValue = {
5
4
  fields?: any;
6
5
  items: One2manyItem[];
7
6
  };
8
- type One2manyItem = {
7
+ export type One2manyItem = {
9
8
  operation?: "original" | "pendingRemove" | "pendingUpdate" | "pendingCreate" | "pendingLink";
10
9
  id?: number;
11
10
  values?: any;
12
11
  treeValues?: any;
13
12
  defaultValues?: any;
14
13
  };
15
- interface One2manyInputProps {
16
- ooui: One2manyOoui;
17
- value?: One2manyValue;
18
- onChange?: (value: One2manyValue) => void;
19
- views: Views;
20
- }
21
- declare const One2manyInput: React.FC<One2manyInputProps>;
22
- export { One2manyInput, One2manyItem, One2manyValue };
14
+ export declare const One2manyInput: React.FC<One2manyInputProps>;
23
15
  //# sourceMappingURL=One2manyInput.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"One2manyInput.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/One2manyInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AACf,OAAO,EACL,QAAQ,IAAI,YAAY,EAKzB,MAAM,aAAa,CAAC;AAIrB,OAAO,EAAE,KAAK,EAAY,MAAM,SAAS,CAAC;AAkB1C,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAQF,KAAK,YAAY,GAAG;IAClB,SAAS,CAAC,EACN,UAAU,GACV,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,UAAU,kBAAkB;IAC1B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,aAAa,KAAK,IAAI,CAAC;IAC1C,KAAK,EAAE,KAAK,CAAC;CACd;AAWD,QAAA,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAuoB/C,CAAC;AAEF,OAAO,EAAE,aAAa,EAAE,YAAY,EAAE,aAAa,EAAE,CAAC"}
1
+ {"version":3,"file":"One2manyInput.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/One2manyInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAC;AACxE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAwBtD,MAAM,MAAM,aAAa,GAAG;IAC1B,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,KAAK,EAAE,YAAY,EAAE,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,YAAY,GAAG;IACzB,SAAS,CAAC,EACN,UAAU,GACV,eAAe,GACf,eAAe,GACf,eAAe,GACf,aAAa,CAAC;IAClB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,UAAU,CAAC,EAAE,GAAG,CAAC;IACjB,aAAa,CAAC,EAAE,GAAG,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAgQtD,CAAC"}
@@ -0,0 +1,28 @@
1
+ /// <reference types="react" />
2
+ import { InfiniteTableRef } from "@gisce/react-formiga-table";
3
+ import { One2manyItem } from "./One2manyInput";
4
+ import { Tree as TreeOoui } from "@gisce/ooui";
5
+ export type One2manyTreeProps = {
6
+ items: One2manyItem[];
7
+ onRowDoubleClick: (record: any) => void;
8
+ readOnly: boolean;
9
+ height?: number;
10
+ ooui: TreeOoui;
11
+ context: any;
12
+ onFetchRecords: (idsToFetch: number[]) => Promise<{
13
+ results: any[];
14
+ colors: {
15
+ [key: number]: string;
16
+ };
17
+ }>;
18
+ onRowSelectionChange: (selectedIds: number[]) => void;
19
+ gridRef?: React.RefObject<InfiniteTableRef>;
20
+ relation: string;
21
+ onChangeFirstVisibleRowIndex?: (index: number) => void;
22
+ onGetFirstVisibleRowIndex?: () => number | undefined;
23
+ onGetSelectedRowKeys?: () => any[];
24
+ onAllRowSelectedModeChange?: (allRowSelectedMode: boolean) => void;
25
+ allRowSelectedMode?: boolean;
26
+ };
27
+ export declare const One2manyTree: ({ items, height, onRowDoubleClick, readOnly, ooui, context, onFetchRecords, onRowSelectionChange, gridRef, relation, onChangeFirstVisibleRowIndex, onGetFirstVisibleRowIndex, onGetSelectedRowKeys, onAllRowSelectedModeChange, allRowSelectedMode, }: One2manyTreeProps) => import("react/jsx-runtime").JSX.Element;
28
+ //# sourceMappingURL=One2manyTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"One2manyTree.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/One2manyTree.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAiB,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAC7E,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,IAAI,IAAI,QAAQ,EAAE,MAAM,aAAa,CAAC;AAQ/C,MAAM,MAAM,iBAAiB,GAAG;IAC9B,KAAK,EAAE,YAAY,EAAE,CAAC;IACtB,gBAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,IAAI,CAAC;IACxC,QAAQ,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,EAAE,GAAG,CAAC;IACb,cAAc,EAAE,CAAC,UAAU,EAAE,MAAM,EAAE,KAAK,OAAO,CAAC;QAChD,OAAO,EAAE,GAAG,EAAE,CAAC;QACf,MAAM,EAAE;YAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;SAAE,CAAC;KACnC,CAAC,CAAC;IACH,oBAAoB,EAAE,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACtD,OAAO,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,4BAA4B,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACvD,yBAAyB,CAAC,EAAE,MAAM,MAAM,GAAG,SAAS,CAAC;IACrD,oBAAoB,CAAC,EAAE,MAAM,GAAG,EAAE,CAAC;IACnC,0BAA0B,CAAC,EAAE,CAAC,kBAAkB,EAAE,OAAO,KAAK,IAAI,CAAC;IACnE,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAIF,eAAO,MAAM,YAAY,0PAgBtB,iBAAiB,4CAuGnB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import { ColumnState } from "@gisce/react-formiga-table";
2
+ export declare const useOne2manyColumnStorage: ({ model }: {
3
+ model: string;
4
+ }) => {
5
+ getColumnState: () => ColumnState[] | undefined;
6
+ updateColumnState: (state: ColumnState[]) => void;
7
+ };
8
+ //# sourceMappingURL=useOne2manyColumnStorage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyColumnStorage.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyColumnStorage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAGzD,eAAO,MAAM,wBAAwB;WAAwB,MAAM;;0BAC1B,WAAW,EAAE,GAAG,SAAS;+BAOtD,WAAW,EAAE;CAOxB,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare const useOne2ManyDomain: ({ fieldName, widgetDomain, }: {
2
+ fieldName: string;
3
+ widgetDomain?: string | undefined;
4
+ }) => any[];
5
+ //# sourceMappingURL=useOne2manyDomain.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyDomain.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyDomain.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;eAIjB,MAAM;;WAyClB,CAAC"}
@@ -0,0 +1,20 @@
1
+ /// <reference types="react" />
2
+ import { One2manyItem } from "./One2manyInput";
3
+ import { TreeView, FormView } from '../../../*/types';
4
+ export declare const useOne2manyForm: ({ items, relation, context, treeView, formView, triggerChange, }: {
5
+ items: One2manyItem[];
6
+ context: any[];
7
+ relation: string;
8
+ treeView: TreeView;
9
+ formView: FormView;
10
+ triggerChange: (items: One2manyItem[]) => void;
11
+ }) => {
12
+ showFormChangesDialogIfNeeded: (callback: () => void) => void;
13
+ formHasChanges: boolean;
14
+ setFormHasChanges: import("react").Dispatch<import("react").SetStateAction<boolean>>;
15
+ getOriginalItemsWithRestoredItemId: ({ id }: {
16
+ id: number;
17
+ }) => Promise<One2manyItem[]>;
18
+ onFormChanges: (newUpdatedItems: One2manyItem[]) => void;
19
+ };
20
+ //# sourceMappingURL=useOne2manyForm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyForm.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyForm.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAS7C,eAAO,MAAM,eAAe;WAQnB,YAAY,EAAE;aACZ,GAAG,EAAE;cACJ,MAAM;cACN,QAAQ;cACR,QAAQ;2BACK,YAAY,EAAE,KAAK,IAAI;;8CAmEjC,MAAM,IAAI;;;;YApDA,MAAM;;qCAqCT,YAAY,EAAE;CAuCnC,CAAC"}
@@ -0,0 +1,24 @@
1
+ import { One2manyItem } from '../../../*/index';
2
+ import { FormView, ViewType } from '../../../*/types';
3
+ export declare const useOne2manyFormModal: ({ currentView, inv_field, activeId, showFormChangesDialogIfNeeded, items, triggerChange, setCurrentView, setItemIndex, relation, formView, context, }: {
4
+ currentView: string;
5
+ inv_field?: string | undefined;
6
+ activeId?: number | undefined;
7
+ showFormChangesDialogIfNeeded: (callback: () => void) => void;
8
+ items: One2manyItem[];
9
+ triggerChange: (items: One2manyItem[]) => void;
10
+ setCurrentView: (view: ViewType) => void;
11
+ setItemIndex: (index: number) => void;
12
+ relation: string;
13
+ formView: FormView;
14
+ context: any;
15
+ }) => {
16
+ showFormModal: boolean;
17
+ modalItem: One2manyItem | undefined;
18
+ continuousEntryMode: boolean;
19
+ createItem: () => Promise<void>;
20
+ onCancelFormModal: () => void;
21
+ onFormModalSubmitSucceed: (id: number | undefined, _: any, values: any, x2manyPendingLink?: boolean) => void;
22
+ openItemInFormModal: (item: One2manyItem) => Promise<void>;
23
+ };
24
+ //# sourceMappingURL=useOne2manyFormModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyFormModal.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyFormModal.ts"],"names":[],"mappings":"AACA,OAAO,EAAsB,YAAY,EAAE,MAAM,SAAS,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAI7C,eAAO,MAAM,oBAAoB;iBAalB,MAAM;;;8CAGuB,MAAM,IAAI,KAAK,IAAI;WACtD,YAAY,EAAE;2BACE,YAAY,EAAE,KAAK,IAAI;2BACvB,QAAQ,KAAK,IAAI;0BAClB,MAAM,KAAK,IAAI;cAC3B,MAAM;cACN,QAAQ;aACT,GAAG;;;;;;;mCAkCJ,MAAM,GAAG,SAAS,KACnB,GAAG,UACE,GAAG,sBACQ,OAAO;gCA2Cf,YAAY;CAiC5B,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { One2manyItem } from "./One2manyInput";
2
+ export declare const useOne2manyItems: ({ one2manyItems, }: {
3
+ one2manyItems: One2manyItem[];
4
+ }) => One2manyItem[];
5
+ //# sourceMappingURL=useOne2manyItems.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyItems.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyItems.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,eAAO,MAAM,gBAAgB;mBAGZ,YAAY,EAAE;oBAG9B,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { One2manyItem } from "./One2manyInput";
2
+ export declare const useOne2manyRemove: ({ isMany2many, triggerChange, items, setFormHasChanges, selectedRowKeys, setSelectedRowKeys, }: {
3
+ isMany2many: boolean;
4
+ triggerChange: (items: One2manyItem[]) => void;
5
+ items: One2manyItem[];
6
+ setFormHasChanges: (hasChanges: boolean) => void;
7
+ selectedRowKeys: number[];
8
+ setSelectedRowKeys: (selectedRowKeys: number[]) => void;
9
+ }) => {
10
+ showRemoveConfirm: () => void;
11
+ };
12
+ //# sourceMappingURL=useOne2manyRemove.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyRemove.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyRemove.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAG/C,eAAO,MAAM,iBAAiB;iBAQf,OAAO;2BACG,YAAY,EAAE,KAAK,IAAI;WACvC,YAAY,EAAE;oCACW,OAAO,KAAK,IAAI;qBAC/B,MAAM,EAAE;0CACa,MAAM,EAAE,KAAK,IAAI;;;CAqGxD,CAAC"}
@@ -0,0 +1,16 @@
1
+ import { One2manyItem, Views } from '../../../*/index';
2
+ export declare const useOne2manySearchModal: ({ currentView, showFormChangesDialogIfNeeded, items, triggerChange, context, views, relation, }: {
3
+ currentView: string;
4
+ showFormChangesDialogIfNeeded: (callback: () => void) => void;
5
+ items: One2manyItem[];
6
+ triggerChange: (items: One2manyItem[]) => void;
7
+ context: any[];
8
+ views: Views;
9
+ relation: string;
10
+ }) => {
11
+ searchItem: () => Promise<void>;
12
+ showSearchModal: boolean;
13
+ onCloseSearchModal: () => void;
14
+ onSelectSearchValues: (ids: number[]) => Promise<void>;
15
+ };
16
+ //# sourceMappingURL=useOne2manySearchModal.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manySearchModal.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manySearchModal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAsB,YAAY,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIlE,eAAO,MAAM,sBAAsB;iBASpB,MAAM;8CACuB,MAAM,IAAI,KAAK,IAAI;WACtD,YAAY,EAAE;2BACE,YAAY,EAAE,KAAK,IAAI;aACrC,GAAG,EAAE;;cAEJ,MAAM;;;;;gCAkEF,MAAM,EAAE;CAavB,CAAC"}
@@ -0,0 +1,21 @@
1
+ /// <reference types="react" />
2
+ import { TreeView } from '../../../*/types';
3
+ export declare const useOne2manyTree: ({ treeView, relation, context, }: {
4
+ treeView: TreeView;
5
+ relation: string;
6
+ context: any;
7
+ }) => {
8
+ onTreeFetchRows: (idsToFetch: number[]) => Promise<{
9
+ results: any;
10
+ colors: any;
11
+ }>;
12
+ treeOoui: import("@gisce/ooui/dist/Tree").default;
13
+ setSelectedRowKeys: import("react").Dispatch<any>;
14
+ selectedRowKeys: any;
15
+ onChangeFirstVisibleRowIndex: (index: number) => void;
16
+ onGetFirstVisibileRowIndex: () => number;
17
+ onGetSelectedRowKeys: () => any;
18
+ onChangeAllRowSelectedMode: (value: boolean) => void;
19
+ allRowSelectedMode: boolean;
20
+ };
21
+ //# sourceMappingURL=useOne2manyTree.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useOne2manyTree.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useOne2manyTree.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAInC,eAAO,MAAM,eAAe;cAKhB,QAAQ;cACR,MAAM;aACP,GAAG;;kCAmCS,MAAM,EAAE;;;;;;;0CAxB4B,MAAM;;;wCAJR,OAAO;;CA0D/D,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare function useWhyDidYouRender(componentName: string, props: any, log?: boolean): void;
2
+ //# sourceMappingURL=useWhyDidYouRender.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useWhyDidYouRender.d.ts","sourceRoot":"","sources":["../../../../src/widgets/base/one2many/useWhyDidYouRender.ts"],"names":[],"mappings":"AAEA,wBAAgB,kBAAkB,CAChC,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,GAAG,EACV,GAAG,GAAE,OAAe,QAwBrB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gisce/react-ooui",
3
- "version": "2.6.3",
3
+ "version": "2.7.0-alpha.2",
4
4
  "engines": {
5
5
  "node": "20.5.0"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "@gisce/fiber-diagram": "2.1.0",
38
38
  "@gisce/ooui": "2.4.0",
39
39
  "@gisce/react-formiga-components": "1.6.2",
40
- "@gisce/react-formiga-table": "1.2.0",
40
+ "@gisce/react-formiga-table": "1.3.0-alpha.1",
41
41
  "@monaco-editor/react": "^4.4.5",
42
42
  "@tabler/icons-react": "^2.11.0",
43
43
  "antd": "5.13.1",
@@ -54,6 +54,7 @@
54
54
  "react-measure": "^2.5.2",
55
55
  "remark-gfm": "^4.0.0",
56
56
  "styled-components": "5.3.5",
57
+ "use-deep-compare": "^1.2.1",
57
58
  "use-deep-compare-effect": "^1.8.1",
58
59
  "validator": "^13.6.0"
59
60
  },