@applica-software-guru/react-admin 1.1.113 → 1.2.115
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/bitbucket-pipelines.yml +14 -15
- package/dist/components/ra-forms/LongForm/BaseForm.d.ts +8 -0
- package/dist/components/ra-forms/LongForm/BaseForm.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/Content.d.ts +8 -0
- package/dist/components/ra-forms/LongForm/Content.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/Form.d.ts +11 -0
- package/dist/components/ra-forms/LongForm/Form.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/NavMenu.d.ts +19 -0
- package/dist/components/ra-forms/LongForm/NavMenu.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/Provider.d.ts +15 -0
- package/dist/components/ra-forms/LongForm/Provider.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/Sidebar.d.ts +23 -0
- package/dist/components/ra-forms/LongForm/Sidebar.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/Tab.d.ts +11 -0
- package/dist/components/ra-forms/LongForm/Tab.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/hooks.d.ts +5 -0
- package/dist/components/ra-forms/LongForm/hooks.d.ts.map +1 -0
- package/dist/components/ra-forms/LongForm/index.d.ts +30 -2
- package/dist/components/ra-forms/LongForm/index.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/types.d.ts +12 -9
- package/dist/components/ra-forms/LongForm/types.d.ts.map +1 -1
- package/dist/components/ra-forms/LongForm/utils.d.ts +8 -0
- package/dist/components/ra-forms/LongForm/utils.d.ts.map +1 -0
- package/dist/components/ra-forms/TableForm/TableFormIterator.d.ts +2 -0
- package/dist/components/ra-forms/TableForm/TableFormIterator.d.ts.map +1 -1
- package/dist/react-admin.cjs.js +65 -65
- package/dist/react-admin.cjs.js.map +1 -1
- package/dist/react-admin.es.js +9206 -9131
- package/dist/react-admin.es.js.map +1 -1
- package/dist/react-admin.umd.js +65 -65
- package/dist/react-admin.umd.js.map +1 -1
- package/dist/themes/overrides/ListItemText.d.ts +12 -0
- package/dist/themes/overrides/ListItemText.d.ts.map +1 -0
- package/dist/themes/overrides/index.d.ts.map +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/ra-forms/LongForm/BaseForm.tsx +54 -0
- package/src/components/ra-forms/LongForm/Content.tsx +19 -0
- package/src/components/ra-forms/LongForm/Form.tsx +37 -0
- package/src/components/ra-forms/LongForm/NavMenu.tsx +128 -0
- package/src/components/ra-forms/LongForm/Provider.tsx +196 -0
- package/src/components/ra-forms/LongForm/Sidebar.tsx +71 -0
- package/src/components/ra-forms/LongForm/Tab.tsx +67 -0
- package/src/components/ra-forms/LongForm/hooks.tsx +25 -0
- package/src/components/ra-forms/LongForm/index.ts +52 -0
- package/src/components/ra-forms/LongForm/types.ts +13 -9
- package/src/components/ra-forms/LongForm/utils.ts +22 -0
- package/src/components/ra-forms/TableForm/TableFormIterator.tsx +32 -11
- package/src/themes/overrides/ListItemText.jsx +15 -0
- package/src/themes/overrides/index.jsx +2 -0
- package/src/types.ts +5 -0
- package/dist/components/ra-forms/LongForm/LongForm.d.ts +0 -98
- package/dist/components/ra-forms/LongForm/LongForm.d.ts.map +0 -1
- package/dist/components/ra-forms/LongForm/LongFormSidebar.d.ts +0 -34
- package/dist/components/ra-forms/LongForm/LongFormSidebar.d.ts.map +0 -1
- package/dist/components/ra-forms/LongForm/LongFormTab.d.ts +0 -45
- package/dist/components/ra-forms/LongForm/LongFormTab.d.ts.map +0 -1
- package/dist/components/ra-forms/LongForm/LongFormTabs.d.ts +0 -23
- package/dist/components/ra-forms/LongForm/LongFormTabs.d.ts.map +0 -1
- package/dist/components/ra-forms/LongForm/LongFormView.d.ts +0 -42
- package/dist/components/ra-forms/LongForm/LongFormView.d.ts.map +0 -1
- package/dist/components/ra-forms/LongForm/useFormRootPath.d.ts +0 -6
- package/dist/components/ra-forms/LongForm/useFormRootPath.d.ts.map +0 -1
- package/src/components/ra-forms/LongForm/LongForm.tsx +0 -59
- package/src/components/ra-forms/LongForm/LongFormSidebar.tsx +0 -44
- package/src/components/ra-forms/LongForm/LongFormTab.tsx +0 -122
- package/src/components/ra-forms/LongForm/LongFormTabs.tsx +0 -72
- package/src/components/ra-forms/LongForm/LongFormView.tsx +0 -161
- package/src/components/ra-forms/LongForm/index.tsx +0 -2
- package/src/components/ra-forms/LongForm/useFormRootPath.ts +0 -21
package/bitbucket-pipelines.yml
CHANGED
|
@@ -4,30 +4,29 @@ pipelines:
|
|
|
4
4
|
branches:
|
|
5
5
|
main:
|
|
6
6
|
- parallel:
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
7
|
+
- step:
|
|
8
|
+
name: Build and Test
|
|
9
|
+
caches:
|
|
10
|
+
- node
|
|
11
|
+
script:
|
|
12
|
+
- yarn install
|
|
13
|
+
- step:
|
|
14
|
+
name: Security Scan
|
|
15
|
+
script:
|
|
16
|
+
- pipe: atlassian/git-secrets-scan:0.5.1
|
|
17
17
|
- step:
|
|
18
18
|
name: Deploy
|
|
19
19
|
size: 2x
|
|
20
20
|
deployment: Production
|
|
21
21
|
script:
|
|
22
22
|
- export NODE_OPTIONS=--max_old_space_size=8192
|
|
23
|
-
- npm --no-git-tag-version version "1.
|
|
23
|
+
- npm --no-git-tag-version version "1.2.$BITBUCKET_BUILD_NUMBER" -m "Upgrade to new version"
|
|
24
24
|
- echo $VERSION
|
|
25
25
|
- npm install
|
|
26
26
|
- npm run build
|
|
27
27
|
- pipe: atlassian/npm-publish:0.3.2
|
|
28
28
|
variables:
|
|
29
29
|
NPM_TOKEN: $NPM_TOKEN
|
|
30
|
-
EXTRA_ARGS:
|
|
31
|
-
- git tag -a "1.
|
|
32
|
-
- git push origin "1.
|
|
33
|
-
|
|
30
|
+
EXTRA_ARGS: '--access public'
|
|
31
|
+
- git tag -a "1.2.$BITBUCKET_BUILD_NUMBER" -m "Version 1.2.$BITBUCKET_BUILD_NUMBER"
|
|
32
|
+
- git push origin "1.2.$BITBUCKET_BUILD_NUMBER"
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { FormProps } from 'react-admin';
|
|
2
|
+
type IBaseFormProps = FormProps & {
|
|
3
|
+
spacing?: number;
|
|
4
|
+
};
|
|
5
|
+
declare function BaseForm(props: IBaseFormProps): import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
export type { IBaseFormProps };
|
|
7
|
+
export { BaseForm };
|
|
8
|
+
//# sourceMappingURL=BaseForm.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseForm.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/BaseForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,aAAa,CAAC;AAK9C,KAAK,cAAc,GAAG,SAAS,GAAG;IAChC,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AA6BF,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CAYtC;AAED,YAAY,EAAE,cAAc,EAAE,CAAC;AAE/B,OAAO,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GridProps } from '@mui/material';
|
|
2
|
+
import { Disposition } from './types';
|
|
3
|
+
type IContentProps = GridProps & {
|
|
4
|
+
disposition?: Disposition;
|
|
5
|
+
};
|
|
6
|
+
declare function Content(props: IContentProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
export { Content };
|
|
8
|
+
//# sourceMappingURL=Content.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Content.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Content.tsx"],"names":[],"mappings":"AACA,OAAO,EAAQ,SAAS,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC,KAAK,aAAa,GAAG,SAAS,GAAG;IAC/B,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,CAAC;AAEF,iBAAS,OAAO,CAAC,KAAK,EAAE,aAAa,2CAQpC;AAED,OAAO,EAAE,OAAO,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IBaseFormProps } from './BaseForm';
|
|
2
|
+
import { IProviderProps } from './Provider';
|
|
3
|
+
import { Disposition } from './types';
|
|
4
|
+
type IFormProps = IProviderProps & IBaseFormProps & {
|
|
5
|
+
spacing?: number;
|
|
6
|
+
tabsDisposition: Disposition;
|
|
7
|
+
contentDisposition: Disposition;
|
|
8
|
+
};
|
|
9
|
+
declare function Form(props: IFormProps): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export { Form };
|
|
11
|
+
//# sourceMappingURL=Form.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Form.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Form.tsx"],"names":[],"mappings":"AACA,OAAO,EAAY,cAAc,EAAE,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,cAAc,EAAY,MAAM,YAAY,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAMtC,KAAK,UAAU,GAAG,cAAc,GAC9B,cAAc,GAAG;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,EAAE,WAAW,CAAC;IAC7B,kBAAkB,EAAE,WAAW,CAAC;CACjC,CAAC;AAEJ,iBAAS,IAAI,CAAC,KAAK,EAAE,UAAU,2CAkB9B;AAED,OAAO,EAAE,IAAI,EAAE,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ListItemProps } from '@mui/material';
|
|
3
|
+
import { IItem } from './types';
|
|
4
|
+
type IBaseNavMenuItemProps = React.PropsWithChildren<{
|
|
5
|
+
id: string;
|
|
6
|
+
onClick?: React.MouseEventHandler<HTMLDivElement>;
|
|
7
|
+
}>;
|
|
8
|
+
type INavMenuItemProps = IItem & ListItemProps & IBaseNavMenuItemProps;
|
|
9
|
+
declare function NavMenu(): import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
declare function NavMenuItem(props: INavMenuItemProps): import("react/jsx-runtime").JSX.Element;
|
|
11
|
+
declare function useNavMenuItem(item: INavMenuItemProps): IItem & {
|
|
12
|
+
selected: boolean;
|
|
13
|
+
onClick: React.MouseEventHandler<HTMLDivElement>;
|
|
14
|
+
items: Array<IItem>;
|
|
15
|
+
isGroup: boolean;
|
|
16
|
+
level: number;
|
|
17
|
+
};
|
|
18
|
+
export { NavMenu, NavMenuItem, useNavMenuItem };
|
|
19
|
+
//# sourceMappingURL=NavMenu.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"NavMenu.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/NavMenu.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAkC,aAAa,EAA8D,MAAM,eAAe,CAAC;AAE1I,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAQhC,KAAK,qBAAqB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IACnD,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;CACnD,CAAC,CAAC;AACH,KAAK,iBAAiB,GAAG,KAAK,GAAG,aAAa,GAAG,qBAAqB,CAAC;AAEvE,iBAAS,OAAO,4CAuBf;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,iBAAiB,2CA0C5C;AAED,iBAAS,cAAc,CACrB,IAAI,EAAE,iBAAiB,GACtB,KAAK,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAoCvI;AAED,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { IItem } from './types';
|
|
3
|
+
type IProviderProps = React.PropsWithChildren<{
|
|
4
|
+
syncWithLocation?: boolean;
|
|
5
|
+
}>;
|
|
6
|
+
declare function Provider(props: IProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
7
|
+
declare function useActiveItem(): string | undefined;
|
|
8
|
+
declare function useItems(): Array<IItem>;
|
|
9
|
+
declare function useSyncWithLocation(): boolean;
|
|
10
|
+
declare function useSetActiveItem(): (activeItem: string) => void;
|
|
11
|
+
declare function useAddItem(): (item: IItem) => void;
|
|
12
|
+
declare function useRemoveItem(): (item: string | IItem) => void;
|
|
13
|
+
export { Provider, useItems, useSyncWithLocation, useActiveItem, useSetActiveItem, useAddItem, useRemoveItem };
|
|
14
|
+
export type { IProviderProps };
|
|
15
|
+
//# sourceMappingURL=Provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Provider.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Provider.tsx"],"names":[],"mappings":";AAEA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAWhC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAC5C,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC5B,CAAC,CAAC;AAsEH,iBAAS,QAAQ,CAAC,KAAK,EAAE,cAAc,2CA2BtC;AAsBD,iBAAS,aAAa,IAAI,MAAM,GAAG,SAAS,CAG3C;AAED,iBAAS,QAAQ,IAAI,KAAK,CAAC,KAAK,CAAC,CAGhC;AAED,iBAAS,mBAAmB,IAAI,OAAO,CAGtC;AAED,iBAAS,gBAAgB,IAAI,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAaxD;AAED,iBAAS,UAAU,IAAI,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,CAa3C;AAED,iBAAS,aAAa,IAAI,CAAC,IAAI,EAAE,MAAM,GAAG,KAAK,KAAK,IAAI,CAavD;AAED,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,mBAAmB,EAAE,aAAa,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,CAAC;AAC/G,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { Disposition } from './types';
|
|
3
|
+
import { GridProps } from '@mui/material';
|
|
4
|
+
declare enum SidebarSectionPosition {
|
|
5
|
+
TOP = "top",
|
|
6
|
+
BOTTOM = "bottom"
|
|
7
|
+
}
|
|
8
|
+
type ISidebarProps = {
|
|
9
|
+
sticky?: boolean;
|
|
10
|
+
disposition?: Disposition;
|
|
11
|
+
} & GridProps;
|
|
12
|
+
type ISidebarSectionProps = React.PropsWithChildren<{
|
|
13
|
+
position: SidebarSectionPosition;
|
|
14
|
+
}>;
|
|
15
|
+
declare function Sidebar(props: ISidebarProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
declare function SidebarSection(props: ISidebarSectionProps): import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
type ISidebarChildren = {
|
|
18
|
+
top: Array<React.ReactNode>;
|
|
19
|
+
bottom: Array<React.ReactNode>;
|
|
20
|
+
};
|
|
21
|
+
declare function useSidebarChildren(props: React.PropsWithChildren): ISidebarChildren;
|
|
22
|
+
export { Sidebar, SidebarSection, SidebarSectionPosition, useSidebarChildren };
|
|
23
|
+
//# sourceMappingURL=Sidebar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Sidebar.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Sidebar.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACtC,OAAO,EAAa,SAAS,EAAS,MAAM,eAAe,CAAC;AAE5D,aAAK,sBAAsB;IACzB,GAAG,QAAQ;IACX,MAAM,WAAW;CAClB;AAED,KAAK,aAAa,GAAG;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B,GAAG,SAAS,CAAC;AAEd,KAAK,oBAAoB,GAAG,KAAK,CAAC,iBAAiB,CAAC;IAClD,QAAQ,EAAE,sBAAsB,CAAC;CAClC,CAAC,CAAC;AAEH,iBAAS,OAAO,CAAC,KAAK,EAAE,aAAa,2CAcpC;AAED,iBAAS,cAAc,CAAC,KAAK,EAAE,oBAAoB,2CAElD;AAED,KAAK,gBAAgB,GAAG;IACtB,GAAG,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,MAAM,EAAE,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;CAChC,CAAC;AAEF,iBAAS,kBAAkB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,GAAG,gBAAgB,CAuB5E;AAED,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Optional } from 'src/types';
|
|
3
|
+
import { IItem } from './types';
|
|
4
|
+
type IBaseItemProps = React.PropsWithChildren<Optional<IItem, 'id'>>;
|
|
5
|
+
type ITabProps = IBaseItemProps;
|
|
6
|
+
type IGroupProps = IBaseItemProps;
|
|
7
|
+
declare function Group(props: IGroupProps): import("react/jsx-runtime").JSX.Element;
|
|
8
|
+
declare function Tab(props: ITabProps): import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
declare function useBaseItemChildren(props: React.PropsWithChildren): Array<React.FunctionComponentElement<IBaseItemProps>>;
|
|
10
|
+
export { Tab, Group, useBaseItemChildren };
|
|
11
|
+
//# sourceMappingURL=Tab.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tab.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/Tab.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAqE,MAAM,OAAO,CAAC;AAE1F,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAIhC,KAAK,cAAc,GAAG,KAAK,CAAC,iBAAiB,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,CAAC;AACrE,KAAK,SAAS,GAAG,cAAc,CAAC;AAChC,KAAK,WAAW,GAAG,cAAc,CAAC;AA4BlC,iBAAS,KAAK,CAAC,KAAK,EAAE,WAAW,2CAWhC;AAED,iBAAS,GAAG,CAAC,KAAK,EAAE,SAAS,2CAE5B;AAED,iBAAS,mBAAmB,CAAC,KAAK,EAAE,KAAK,CAAC,iBAAiB,GAAG,KAAK,CAAC,KAAK,CAAC,wBAAwB,CAAC,cAAc,CAAC,CAAC,CAQlH;AAED,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/hooks.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAGhC,iBAAS,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAGxC;AAED,iBAAS,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,CAW9C;AAED,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,CAAC"}
|
|
@@ -1,3 +1,31 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import { Form } from './Form';
|
|
2
|
+
import { BaseForm } from './BaseForm';
|
|
3
|
+
import { Content } from './Content';
|
|
4
|
+
import { Provider, useActiveItem, useItems, useSyncWithLocation, useSetActiveItem, useAddItem, useRemoveItem } from './Provider';
|
|
5
|
+
import { Sidebar, SidebarSection, SidebarSectionPosition, useSidebarChildren } from './Sidebar';
|
|
6
|
+
import { NavMenu, NavMenuItem, useNavMenuItem } from './NavMenu';
|
|
7
|
+
import { Tab, Group, useBaseItemChildren } from './Tab';
|
|
8
|
+
type IForm = typeof Form & {
|
|
9
|
+
BaseForm: typeof BaseForm;
|
|
10
|
+
Content: typeof Content;
|
|
11
|
+
Provider: typeof Provider;
|
|
12
|
+
useItems: typeof useItems;
|
|
13
|
+
useSyncWithLocation: typeof useSyncWithLocation;
|
|
14
|
+
useActiveItem: typeof useActiveItem;
|
|
15
|
+
useSetActiveItem: typeof useSetActiveItem;
|
|
16
|
+
useAddItem: typeof useAddItem;
|
|
17
|
+
useRemoveItem: typeof useRemoveItem;
|
|
18
|
+
Sidebar: typeof Sidebar;
|
|
19
|
+
SidebarSection: typeof SidebarSection;
|
|
20
|
+
SidebarSectionPosition: typeof SidebarSectionPosition;
|
|
21
|
+
useSidebarChildren: typeof useSidebarChildren;
|
|
22
|
+
NavMenu: typeof NavMenu;
|
|
23
|
+
NavMenuItem: typeof NavMenuItem;
|
|
24
|
+
useNavMenuItem: typeof useNavMenuItem;
|
|
25
|
+
Tab: typeof Tab;
|
|
26
|
+
Group: typeof Group;
|
|
27
|
+
useBaseItemChildren: typeof useBaseItemChildren;
|
|
28
|
+
};
|
|
29
|
+
declare const DefaultForm: IForm;
|
|
30
|
+
export default DefaultForm;
|
|
3
31
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/index.
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,QAAQ,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACjI,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,sBAAsB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAChG,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAExD,KAAK,KAAK,GAAG,OAAO,IAAI,GAAG;IACzB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,QAAQ,EAAE,OAAO,QAAQ,CAAC;IAC1B,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;IAChD,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,gBAAgB,EAAE,OAAO,gBAAgB,CAAC;IAC1C,UAAU,EAAE,OAAO,UAAU,CAAC;IAC9B,aAAa,EAAE,OAAO,aAAa,CAAC;IACpC,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,sBAAsB,EAAE,OAAO,sBAAsB,CAAC;IACtD,kBAAkB,EAAE,OAAO,kBAAkB,CAAC;IAC9C,OAAO,EAAE,OAAO,OAAO,CAAC;IACxB,WAAW,EAAE,OAAO,WAAW,CAAC;IAChC,cAAc,EAAE,OAAO,cAAc,CAAC;IACtC,GAAG,EAAE,OAAO,GAAG,CAAC;IAChB,KAAK,EAAE,OAAO,KAAK,CAAC;IACpB,mBAAmB,EAAE,OAAO,mBAAmB,CAAC;CACjD,CAAC;AAEF,QAAA,MAAM,WAAW,OAAgB,CAAC;AAqBlC,eAAe,WAAW,CAAC"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
type Disposition = {
|
|
3
3
|
xl?: number;
|
|
4
4
|
lg?: number;
|
|
5
5
|
md?: number;
|
|
6
6
|
sm?: number;
|
|
7
7
|
xs?: number;
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
9
|
+
type IItem = {
|
|
10
|
+
id: string;
|
|
11
|
+
label: string;
|
|
12
|
+
icon?: React.ReactNode;
|
|
13
|
+
badge?: {
|
|
14
|
+
content: string | number;
|
|
15
|
+
color?: 'default' | 'error' | 'info' | 'primary' | 'secondary' | 'success' | 'warning';
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
export type { Disposition, IItem };
|
|
16
19
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/types.ts"],"names":[],"mappings":";AAAA,KAAK,WAAW,GAAG;IACjB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IACvB,KAAK,CAAC,EAAE;QACN,OAAO,EAAE,MAAM,GAAG,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,SAAS,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,CAAC;KACxF,CAAC;CACH,CAAC;AAEF,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { IItem } from './types';
|
|
2
|
+
import { Optional } from 'src/types';
|
|
3
|
+
declare function getId(data: Optional<Pick<IItem, 'id' | 'label'>, 'id'>): string;
|
|
4
|
+
declare function isChild(parentId: string, childId: string): boolean;
|
|
5
|
+
declare function getItemsIds(items: Array<IItem>): Array<string>;
|
|
6
|
+
declare function getLevel(id: string): number;
|
|
7
|
+
export { getId, isChild, getItemsIds, getLevel };
|
|
8
|
+
//# sourceMappingURL=utils.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/LongForm/utils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAErC,iBAAS,KAAK,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO,CAAC,EAAE,IAAI,CAAC,GAAG,MAAM,CAExE;AAED,iBAAS,OAAO,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAE3D;AAED,iBAAS,WAAW,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,MAAM,CAAC,CAEvD;AAED,iBAAS,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,MAAM,CAGpC;AAED,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,CAAC"}
|
|
@@ -20,6 +20,7 @@ declare const StyledTableFormIterator: import("@emotion/styled").StyledComponent
|
|
|
20
20
|
disableRemove: PropTypes.Requireable<NonNullable<boolean | ((...args: any[]) => any) | null | undefined>>;
|
|
21
21
|
TransitionProps: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
22
22
|
empty: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
|
|
23
|
+
template: PropTypes.Requireable<object>;
|
|
23
24
|
}>, "translate" | "TransitionProps" | "field" | "formState" | "fieldState"> & Pick<TableFormIteratorProps, "replace" | "meta" | "sx" | "move" | "remove" | "append" | "prepend" | "swap" | "insert" | "update" | "disableActions">, keyof TableFormIteratorProps> & import("@mui/system").MUIStyledCommonProps<import("@mui/material").Theme>, {}, {}>;
|
|
24
25
|
export interface TableFormIteratorProps extends Partial<UseFieldArrayReturn> {
|
|
25
26
|
addButton?: ReactElement;
|
|
@@ -28,6 +29,7 @@ export interface TableFormIteratorProps extends Partial<UseFieldArrayReturn> {
|
|
|
28
29
|
disableAdd?: boolean;
|
|
29
30
|
disableActions?: boolean;
|
|
30
31
|
disableRemove?: boolean;
|
|
32
|
+
template?: object;
|
|
31
33
|
meta?: {
|
|
32
34
|
error?: any;
|
|
33
35
|
submitFailed?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TableFormIterator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/TableFormIterator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,YAAY,EAAE,SAAS,EAA0C,MAAM,OAAO,CAAC;AAElG,OAAO,EAIL,OAAO,EAQR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAqD,MAAM,SAAS,CAAC;AAItF,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"TableFormIterator.d.ts","sourceRoot":"","sources":["../../../../../src/components/ra-forms/TableForm/TableFormIterator.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAY,YAAY,EAAE,SAAS,EAA0C,MAAM,OAAO,CAAC;AAElG,OAAO,EAIL,OAAO,EAQR,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,QAAQ,EAAqD,MAAM,SAAS,CAAC;AAItF,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAC;AA2LtD,QAAA,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;sVAU1B,CAAC;AA4BJ,MAAM,WAAW,sBAAuB,SAAQ,OAAO,CAAC,mBAAmB,CAAC;IAC1E,SAAS,CAAC,EAAE,YAAY,CAAC;IACzB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE;QAEL,KAAK,CAAC,EAAE,GAAG,CAAC;QACZ,YAAY,CAAC,EAAE,OAAO,CAAC;KACxB,CAAC;IACF,MAAM,CAAC,EAAE,QAAQ,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,EAAE,CAAC,EAAE,OAAO,CAAC;IACb,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;CAC3B;AAED,eAAe,uBAAuB,CAAC"}
|