@dakataa/crud-react 2.0.0 → 2.1.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/README.md +43 -0
  3. package/dist/Crud.d.ts +2 -2
  4. package/dist/component/BaseButtonContent.d.ts +2 -2
  5. package/dist/component/Button.d.ts +2 -2
  6. package/dist/component/Dropdown.d.ts +4 -4
  7. package/dist/component/Empty.d.ts +2 -2
  8. package/dist/component/Link.d.ts +1 -1
  9. package/dist/component/LottieAnimation.d.ts +1 -1
  10. package/dist/component/Modal.d.ts +3 -3
  11. package/dist/component/Money.d.ts +1 -1
  12. package/dist/component/Preloader.d.ts +4 -4
  13. package/dist/component/crud/ActionLink.d.ts +1 -1
  14. package/dist/component/crud/CrudLoader.d.ts +3 -3
  15. package/dist/component/crud/DynamicView.d.ts +1 -1
  16. package/dist/component/crud/FiltersView.d.ts +2 -1
  17. package/dist/component/crud/GridView.d.ts +2 -2
  18. package/dist/component/crud/IsListItemActionGranted.d.ts +1 -1
  19. package/dist/component/crud/ItemAction.d.ts +2 -2
  20. package/dist/component/crud/ItemActions.d.ts +2 -1
  21. package/dist/component/crud/ItemLabel.d.ts +2 -1
  22. package/dist/component/crud/ItemValue.d.ts +2 -1
  23. package/dist/component/crud/ListItem.d.ts +2 -1
  24. package/dist/component/crud/ListView.d.ts +2 -2
  25. package/dist/component/crud/Modify.d.ts +1 -1
  26. package/dist/component/crud/Paginator.d.ts +2 -1
  27. package/dist/component/crud/ViewLoader.d.ts +2 -1
  28. package/dist/component/crud/batch/BatchActionSelector.d.ts +2 -1
  29. package/dist/component/crud/batch/BatchActionsContext.d.ts +2 -2
  30. package/dist/component/crud/batch/BatchItemSelector.d.ts +2 -1
  31. package/dist/component/crud/form/Form.d.ts +1 -1
  32. package/dist/component/crud/form/FormError.d.ts +1 -1
  33. package/dist/component/crud/form/FormField.d.ts +1 -1
  34. package/dist/component/crud/form/FormGroup.d.ts +3 -3
  35. package/dist/component/crud/form/FormGroupViewLoader.d.ts +1 -1
  36. package/dist/component/crud/form/FormLabel.d.ts +1 -1
  37. package/dist/component/crud/form/FormRest.d.ts +1 -1
  38. package/dist/component/crud/form/FormRestError.d.ts +1 -1
  39. package/dist/component/error/ErrorBoundary.d.ts +2 -2
  40. package/dist/component/form/Choice.d.ts +4 -4
  41. package/dist/component/form/Collection.d.ts +2 -2
  42. package/dist/component/form/Form.d.ts +1 -1
  43. package/dist/component/form/FormAlert.d.ts +1 -1
  44. package/dist/component/form/FormFieldError.d.ts +1 -1
  45. package/dist/component/form/FormGroup.d.ts +1 -1
  46. package/dist/component/form/FormSetting.d.ts +2 -2
  47. package/dist/component/router/Route.d.ts +2 -1
  48. package/dist/component/templating/Template.d.ts +2 -2
  49. package/dist/component/templating/TemplateBlock.d.ts +1 -1
  50. package/dist/component/templating/TemplateParentBlock.d.ts +2 -2
  51. package/dist/context/ActionContext.d.ts +2 -2
  52. package/dist/context/AlertContext.d.ts +2 -2
  53. package/dist/context/ConfigContext.d.ts +2 -2
  54. package/dist/context/CrudProvider.d.ts +2 -2
  55. package/dist/context/GetData.d.ts +2 -2
  56. package/dist/context/ListContext.d.ts +2 -2
  57. package/dist/context/ListItemContext.d.ts +2 -2
  58. package/dist/context/LoaderContext.d.ts +2 -2
  59. package/dist/context/ModalContext.d.ts +2 -2
  60. package/dist/context/ModalScopeContext.d.ts +5 -0
  61. package/dist/context/NamespaceContext.d.ts +2 -2
  62. package/dist/crud-react.js +1159 -1170
  63. package/dist/layout/default/Base.d.ts +1 -1
  64. package/dist/layout/default/Error.d.ts +1 -1
  65. package/dist/layout/default/Main.d.ts +2 -1
  66. package/dist/main.d.ts +1 -0
  67. package/dist/type/ViewType.d.ts +2 -0
  68. package/package.json +1 -1
  69. /package/dist/{denied-Emsz18Y8.js → denied-Cg2igDWh.js} +0 -0
  70. /package/dist/{info-C897Uj_w.js → info-Dfyx45FU.js} +0 -0
  71. /package/dist/{success-YbPKEx5j.js → success-B5xn1-UX.js} +0 -0
  72. /package/dist/{warning-DJITKJj5.js → warning-BaaC-X6i.js} +0 -0
@@ -1,5 +1,5 @@
1
1
  import { default as React } from 'react';
2
2
  declare const Base: React.MemoExoticComponent<({ children }: {
3
3
  children?: any;
4
- }) => import("react/jsx-runtime").JSX.Element>;
4
+ }) => React.JSX.Element>;
5
5
  export default Base;
@@ -7,5 +7,5 @@ declare const Error: React.MemoExoticComponent<({ error, resetErrorBoundary, hom
7
7
  } | null;
8
8
  resetErrorBoundary?: () => void;
9
9
  homePath?: string;
10
- }) => import("react/jsx-runtime").JSX.Element>;
10
+ }) => React.JSX.Element>;
11
11
  export default Error;
@@ -1,4 +1,5 @@
1
+ import { default as React } from 'react';
1
2
  declare const Main: ({ children, ...props }: {
2
3
  children?: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => React.JSX.Element;
4
5
  export default Main;
package/dist/main.d.ts CHANGED
@@ -35,6 +35,7 @@ export { Router, Route, Outlet } from './component/router/Route.tsx';
35
35
  export { default as Modal } from './component/Modal.tsx';
36
36
  export type { ModalType } from './component/Modal.tsx';
37
37
  export { ModalProvider, UseModal } from './context/ModalContext.tsx';
38
+ export { useIsModal } from './context/ModalScopeContext.tsx';
38
39
  export type { ModalActionType, ModalContextType } from './context/ModalContext.tsx';
39
40
  export { UseAlert, AlertProvider, WithAlertProvider, Icon as AlertIcon } from './context/AlertContext.tsx';
40
41
  export { UseActions, ActionProvider, WithActionProviderContext } from './context/ActionContext.tsx';
@@ -1,5 +1,7 @@
1
1
  import { ColumnType } from './ColumnType';
2
+ import { ActionType } from './ActionType';
2
3
  export type ViewType = {
4
+ action: ActionType[];
3
5
  title: string | null;
4
6
  entity: {
5
7
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dakataa/crud-react",
3
- "version": "2.0.0",
3
+ "version": "2.1.0",
4
4
  "description": "Dakataa CRUD React",
5
5
  "private": false,
6
6
  "type": "module",
File without changes
File without changes