@dakataa/crud-react 1.0.9 → 2.0.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 (108) hide show
  1. package/CHANGELOG.md +83 -0
  2. package/README.md +837 -96
  3. package/dist/Crud.d.ts +15 -0
  4. package/dist/component/BaseButtonContent.d.ts +10 -0
  5. package/dist/component/Button.d.ts +9 -0
  6. package/dist/component/Dropdown.d.ts +17 -0
  7. package/dist/component/Empty.d.ts +5 -0
  8. package/dist/component/Link.d.ts +6 -0
  9. package/dist/component/LottieAnimation.d.ts +8 -0
  10. package/dist/component/Modal.d.ts +22 -0
  11. package/dist/component/Money.d.ts +7 -0
  12. package/dist/component/Preloader.d.ts +20 -0
  13. package/dist/component/Translation.d.ts +14 -0
  14. package/dist/component/crud/ActionLink.d.ts +10 -0
  15. package/dist/component/crud/CrudLoader.d.ts +29 -0
  16. package/dist/component/crud/DynamicView.d.ts +19 -0
  17. package/dist/component/crud/FiltersView.d.ts +6 -0
  18. package/dist/component/crud/GridView.d.ts +27 -0
  19. package/dist/component/crud/IsListItemActionGranted.d.ts +10 -0
  20. package/dist/component/crud/ItemAction.d.ts +9 -0
  21. package/dist/component/crud/ItemActions.d.ts +7 -0
  22. package/dist/component/crud/ItemLabel.d.ts +6 -0
  23. package/dist/component/crud/ItemValue.d.ts +6 -0
  24. package/dist/component/crud/List.d.ts +19 -0
  25. package/dist/component/crud/ListItem.d.ts +4 -0
  26. package/dist/component/crud/ListView.d.ts +8 -0
  27. package/dist/component/crud/Modify.d.ts +9 -0
  28. package/dist/component/crud/Navigation.d.ts +19 -0
  29. package/dist/component/crud/Paginator.d.ts +2 -0
  30. package/dist/component/crud/ViewLoader.d.ts +14 -0
  31. package/dist/component/crud/batch/BatchActionSelector.d.ts +2 -0
  32. package/dist/component/crud/batch/BatchActionsContext.d.ts +17 -0
  33. package/dist/component/crud/batch/BatchItemSelector.d.ts +4 -0
  34. package/dist/component/crud/form/Form.d.ts +31 -0
  35. package/dist/component/crud/form/FormError.d.ts +6 -0
  36. package/dist/component/crud/form/FormField.d.ts +11 -0
  37. package/dist/component/crud/form/FormGroup.d.ts +76 -0
  38. package/dist/component/crud/form/FormGroupViewLoader.d.ts +2 -0
  39. package/dist/component/crud/form/FormLabel.d.ts +4 -0
  40. package/dist/component/crud/form/FormRequestError.d.ts +14 -0
  41. package/dist/component/crud/form/FormRest.d.ts +2 -0
  42. package/dist/component/crud/form/FormRestError.d.ts +4 -0
  43. package/dist/component/error/ErrorBoundary.d.ts +13 -0
  44. package/dist/component/error/Exception.d.ts +9 -0
  45. package/dist/component/error/HttpException.d.ts +16 -0
  46. package/dist/component/form/Choice.d.ts +24 -0
  47. package/dist/component/form/Collection.d.ts +27 -0
  48. package/dist/component/form/Form.d.ts +62 -0
  49. package/dist/component/form/FormAlert.d.ts +3 -0
  50. package/dist/component/form/FormFieldError.d.ts +6 -0
  51. package/dist/component/form/FormGroup.d.ts +8 -0
  52. package/dist/component/form/FormHelp.d.ts +5 -0
  53. package/dist/component/form/FormLabel.d.ts +7 -0
  54. package/dist/component/form/FormSetting.d.ts +11 -0
  55. package/dist/component/form/FormStore.d.ts +93 -0
  56. package/dist/component/form/Input.d.ts +13 -0
  57. package/dist/component/form/Textarea.d.ts +15 -0
  58. package/dist/component/form/constraint/Contraint.d.ts +6 -0
  59. package/dist/component/form/constraint/NotBlank.d.ts +11 -0
  60. package/dist/component/form/formChoices.d.ts +8 -0
  61. package/dist/component/form/formSession.d.ts +3 -0
  62. package/dist/component/form/formView.d.ts +35 -0
  63. package/dist/component/router/Route.d.ts +11 -0
  64. package/dist/component/templating/Template.d.ts +17 -0
  65. package/dist/component/templating/TemplateBlock.d.ts +8 -0
  66. package/dist/component/templating/TemplateExtend.d.ts +9 -0
  67. package/dist/component/templating/TemplateParentBlock.d.ts +5 -0
  68. package/dist/context/ActionContext.d.ts +46 -0
  69. package/dist/context/AlertContext.d.ts +52 -0
  70. package/dist/context/ConfigContext.d.ts +34 -0
  71. package/dist/context/CrudProvider.d.ts +7 -0
  72. package/dist/context/GetData.d.ts +43 -0
  73. package/dist/context/ListContext.d.ts +69 -0
  74. package/dist/context/ListItemContext.d.ts +8 -0
  75. package/dist/context/LoaderContext.d.ts +5 -0
  76. package/dist/context/ModalContext.d.ts +18 -0
  77. package/dist/context/NamespaceContext.d.ts +5 -0
  78. package/dist/crud-react.css +2 -1
  79. package/dist/crud-react.js +4015 -2881
  80. package/dist/denied-Emsz18Y8.js +688 -0
  81. package/dist/helper/ObjectUtils.d.ts +3 -0
  82. package/dist/helper/PathUtils.d.ts +12 -0
  83. package/dist/helper/StringUtils.d.ts +3 -0
  84. package/dist/info-C897Uj_w.js +626 -0
  85. package/dist/layout/default/Base.d.ts +5 -0
  86. package/dist/layout/default/Error.d.ts +11 -0
  87. package/dist/layout/default/Main.d.ts +4 -0
  88. package/dist/main.d.ts +91 -77
  89. package/dist/setupTests.d.ts +0 -0
  90. package/dist/success-YbPKEx5j.js +559 -0
  91. package/dist/type/ActionRequestType.d.ts +17 -0
  92. package/dist/type/ActionType.d.ts +15 -0
  93. package/dist/type/ColumnType.d.ts +24 -0
  94. package/dist/type/ExceptionType.d.ts +6 -0
  95. package/dist/type/FormType.d.ts +6 -0
  96. package/dist/type/FormViewType.d.ts +96 -0
  97. package/dist/type/ListMetaType.d.ts +8 -0
  98. package/dist/type/ListType.d.ts +32 -0
  99. package/dist/type/ModifyType.d.ts +15 -0
  100. package/dist/type/RedirectType.d.ts +7 -0
  101. package/dist/type/RouteType.d.ts +7 -0
  102. package/dist/type/ViewType.d.ts +15 -0
  103. package/dist/warning-DJITKJj5.js +630 -0
  104. package/package.json +86 -81
  105. package/dist/denied-CgoMpaA7.js +0 -27
  106. package/dist/info-D-NzIEYs.js +0 -144
  107. package/dist/success-Bu_BJcf1.js +0 -27
  108. package/dist/warning-B1nr7TsB.js +0 -27
package/dist/main.d.ts CHANGED
@@ -1,77 +1,91 @@
1
- export { default as Crud, CrudConfiguration, CrudRequester } from '../src/Crud.tsx';
2
- export { Environment, ConfigProvider } from '../src/context/ConfigContext.tsx';
3
- export type { Config, ConfigLink } from '../src/context/ConfigContext.tsx';
4
- export { UseConfig } from '../src/context/ConfigContext.tsx';
5
- export { default as CrudProvider } from '../src/context/CrudProvider.tsx';
6
- export { default as CrudLoader, CurrentActionProvider, UseCurrentAction, UseCurrentActionCollection } from '../src/component/crud/CrudLoader.tsx';
7
- export type { CurrentActionProviderRef } from '../src/component/crud/CrudLoader.tsx';
8
- export { default as Modify } from '../src/component/crud/Modify.tsx';
9
- export type { ModifyType } from '../src/type/ModifyType.tsx';
10
- export { default as List } from '../src/component/crud/List.tsx';
11
- export { default as GridView } from '../src/component/crud/GridView.tsx';
12
- export { default as ListView } from '../src/component/crud/ListView.tsx';
13
- export { default as ListItem } from '../src/component/crud/ListItem.tsx';
14
- export { default as Paginator } from '../src/component/crud/Paginator.tsx';
15
- export { UseList, ListProvider } from '../src/context/ListContext.tsx';
16
- export { UseListItem } from '../src/context/ListItemContext.tsx';
17
- export { default as CrudForm, UseFormView, FormViewProvider } from 'src/component/crud/form/Form.tsx';
18
- export type { FormViewContextType, ModifyFormRefType } from '../src/component/crud/form/Form.tsx';
19
- export { default as FormFieldViewLoader } from '../src/component/crud/form/FormFieldViewLoader.tsx';
20
- export { default as FormGroup } from '../src/component/crud/form/FormGroup.tsx';
21
- export { default as FormField } from '../src/component/crud/form/FormField.tsx';
22
- export { default as FormLabel } from '../src/component/crud/form/FormLabel.tsx';
23
- export { default as FormRest } from '../src/component/crud/form/FormRest.tsx';
24
- export { default as FormError } from '../src/component/crud/form/FormError.tsx';
25
- export { default as FormRestError } from '../src/component/crud/form/FormRestError.tsx';
26
- export { default as DynamicView, UseDynamicView } from '../src/component/crud/DynamicView.tsx';
27
- export { ViewLoader } from '../src/component/crud/ViewLoader.tsx';
28
- export { AsTemplate, Template, Block, Extend, Parent } from '../src/component/templating/Template.tsx';
29
- export { default as TemplateBlock } from '../src/component/templating/TemplateBlock.tsx';
30
- export { default as TemplateExtend } from '../src/component/templating/TemplateExtend.tsx';
31
- export { default as TemplateParentBlock } from '../src/component/templating/TemplateParentBlock.tsx';
32
- export { Router, Route, Outlet } from '../src/component/router/Route.tsx';
33
- export { default as Modal } from '../src/component/Modal.tsx';
34
- export type { ModalType } from '../src/component/Modal.tsx';
35
- export { ModalProvider, UseModal } from '../src/context/ModalContext.tsx';
36
- export type { ModalActionType, ModalContextType } from '../src/context/ModalContext.tsx';
37
- export { UseAlert, AlertProvider, WithAlertProvider, Icon as AlertIcon } from '../src/context/AlertContext.tsx';
38
- export { UseActions, ActionProvider, WithActionProviderContext } from '../src/context/ActionContext.tsx';
39
- export type { AlertConfigType, Animation, Result } from '../src/context/AlertContext.tsx';
40
- export type { OnClickAction } from '../src/type/OnClickAction.tsx';
41
- export type { ActionType } from '../src/type/ActionType.tsx';
42
- export type { RouteType } from '../src/type/RouteType.tsx';
43
- export { default as HttpException } from '../src/component/error/HttpException.tsx';
44
- export { default as Exception } from '../src/component/error/Exception.tsx';
45
- export { default as ErrorBoundary } from '../src/component/error/ErrorBoundary.tsx';
46
- export { default as Link } from '../src/component/Link.tsx';
47
- export { default as Button } from 'src/component/Button.tsx';
48
- export { default as Translation } from '../src/component/Translation.tsx';
49
- export { default as Action } from '../src/component/crud/Action.tsx';
50
- export { default as ItemAction } from '../src/component/crud/ItemAction.tsx';
51
- export { default as IsListItemActionGranted } from '../src/component/crud/IsListItemActionGranted.tsx';
52
- export { FormSetting, UseFormSettings } from '../src/component/form/FormSetting.tsx';
53
- export type { FormSettingContextType } from '../src/type/FormSettingType.tsx';
54
- export { UseForm, Form, nameToId } from '../src/component/form/Form.tsx';
55
- export type { FormRef } from '../src/component/form/Form.tsx';
56
- export { default as BaseFormGroup } from 'src/component/form/FormGroup.tsx';
57
- export { default as BaseFormFieldError } from 'src/component/form/FormFieldError.tsx';
58
- export { default as BaseFormLabel } from 'src/component/form/FormLabel.tsx';
59
- export { default as BaseFormHelp } from 'src/component/form/FormHelp.tsx';
60
- export { default as Choice, ChoiceOption, ChoiceGroupOption, SelectOption, SelectGroupOption } from 'src/component/form/Choice.tsx';
61
- export { default as Collection, CollectionItem, CollectionList, UseCollection, UseCollectionItem } from 'src/component/form/Collection.tsx';
62
- export type { CollectionContextType, CollectionItemContextType } from 'src/component/form/Collection.tsx';
63
- export { default as Input } from '../src/component/form/Input.tsx';
64
- export type { InputProps, FormFieldProps } from '../src/component/form/Input.tsx';
65
- export type { FormViewType, FormViewErrorType, ChoiceType, ChoiceGroupType, ChoiceUnionType } from '../src/type/FormViewType.tsx';
66
- export { FormViewTypeEnum } from '../src/type/FormViewType.tsx';
67
- export { default as BaseLayout } from '../src/layout/default/Base.tsx';
68
- export { default as MainLayout } from '../src/layout/default/Main.tsx';
69
- export { UseDataProvider, DataProvider, GetData, GetDataByAction, WithDataProvider } from '../src/context/GetData.tsx';
70
- export type { GetDataType, GetDataProps, GetDataByActionProps } from '../src/context/GetData.tsx';
71
- export type { ListType } from '../src/type/ListType.tsx';
72
- export type { ViewType } from '../src/type/ViewType.tsx';
73
- export type { ListContextType } from '../src/context/ListContext.tsx';
74
- export type { ListItemContextType } from '../src/context/ListItemContext.tsx';
75
- export { default as Money } from '../src/component/Money.tsx';
76
- export { default as Dropdown, DropdownContent, DropdownButton } from '../src/component/Dropdown';
77
- export { maskEmail, capitalize, titlize } from '../src/helper/StingUtils.tsx';
1
+ export { default as Crud, CrudConfiguration, CrudRequester } from './Crud.tsx';
2
+ export { Environment, ConfigProvider } from './context/ConfigContext.tsx';
3
+ export type { Config, ConfigLink } from './context/ConfigContext.tsx';
4
+ export { UseConfig } from './context/ConfigContext.tsx';
5
+ export { default as CrudProvider } from './context/CrudProvider.tsx';
6
+ export { default as CrudLoader, CurrentActionRequestProvider, UseCurrentActionRequest, UseCurrentActionCollection } from './component/crud/CrudLoader.tsx';
7
+ export type { CurrentActionRequestProviderRef } from './component/crud/CrudLoader.tsx';
8
+ export { default as Modify } from './component/crud/Modify.tsx';
9
+ export type { ModifyType } from './type/ModifyType.tsx';
10
+ export { default as List, ListInner, WithListProvider } from './component/crud/List.tsx';
11
+ export { default as GridView } from './component/crud/GridView.tsx';
12
+ export { default as ListView } from './component/crud/ListView.tsx';
13
+ export { default as ListItem } from './component/crud/ListItem.tsx';
14
+ export { default as Paginator } from './component/crud/Paginator.tsx';
15
+ export { UseList, ListProvider } from './context/ListContext.tsx';
16
+ export { UseListItem, ListItemProvider } from './context/ListItemContext.tsx';
17
+ export { default as CrudForm, UseFormView, FormViewProvider } from './component/crud/form/Form.tsx';
18
+ export type { FormViewContextType, ModifyFormRefType } from './component/crud/form/Form.tsx';
19
+ export { default as FormFieldViewLoader } from './component/crud/form/FormGroupViewLoader.tsx';
20
+ export { default as FormGroup } from './component/crud/form/FormGroup.tsx';
21
+ export type { FormGroupProps } from './component/crud/form/FormGroup.tsx';
22
+ export { default as FormField } from './component/crud/form/FormField.tsx';
23
+ export { default as FormLabel } from './component/crud/form/FormLabel.tsx';
24
+ export { default as FormRest } from './component/crud/form/FormRest.tsx';
25
+ export { default as FormError } from './component/crud/form/FormError.tsx';
26
+ export type { FormErrorProps } from './component/crud/form/FormError.tsx';
27
+ export { default as FormRestError } from './component/crud/form/FormRestError.tsx';
28
+ export { default as DynamicView, UseDynamicView } from './component/crud/DynamicView.tsx';
29
+ export { ViewLoader } from './component/crud/ViewLoader.tsx';
30
+ export { AsTemplate, Template, Block, Extend, Parent } from './component/templating/Template.tsx';
31
+ export { default as TemplateBlock } from './component/templating/TemplateBlock.tsx';
32
+ export { default as TemplateExtend } from './component/templating/TemplateExtend.tsx';
33
+ export { default as TemplateParentBlock } from './component/templating/TemplateParentBlock.tsx';
34
+ export { Router, Route, Outlet } from './component/router/Route.tsx';
35
+ export { default as Modal } from './component/Modal.tsx';
36
+ export type { ModalType } from './component/Modal.tsx';
37
+ export { ModalProvider, UseModal } from './context/ModalContext.tsx';
38
+ export type { ModalActionType, ModalContextType } from './context/ModalContext.tsx';
39
+ export { UseAlert, AlertProvider, WithAlertProvider, Icon as AlertIcon } from './context/AlertContext.tsx';
40
+ export { UseActions, ActionProvider, WithActionProviderContext } from './context/ActionContext.tsx';
41
+ export type { AlertConfigType, Animation, Result } from './context/AlertContext.tsx';
42
+ export type { ActionRequestType } from './type/ActionRequestType.tsx';
43
+ export type { ActionType } from './type/ActionType.tsx';
44
+ export { ActionVisibility } from './type/ActionType.tsx';
45
+ export type { RouteType } from './type/RouteType.tsx';
46
+ export { default as HttpException } from './component/error/HttpException.tsx';
47
+ export { default as Exception } from './component/error/Exception.tsx';
48
+ export { default as ErrorBoundary } from './component/error/ErrorBoundary.tsx';
49
+ export { default as Link } from './component/Link.tsx';
50
+ export { default as Button } from './component/Button.tsx';
51
+ export type { ButtonPropsType } from './component/Button.tsx';
52
+ export type { ButtonContentProps } from './component/BaseButtonContent.tsx';
53
+ export { default as Translation, UseTranslate } from './component/Translation.tsx';
54
+ export type { TranslationProps, TranslationFunction, TranslationOptions } from './component/Translation.tsx';
55
+ export { default as ActionLink } from './component/crud/ActionLink.tsx';
56
+ export { default as ItemAction } from './component/crud/ItemAction.tsx';
57
+ export { default as IsListItemActionGranted, useListItemActionGranted } from './component/crud/IsListItemActionGranted.tsx';
58
+ export { choiceToken, choiceList, selectionTokens } from './component/form/formChoices.ts';
59
+ export { FormSetting, UseFormSettings } from './component/form/FormSetting.tsx';
60
+ export type { FormSettingContextType } from './component/form/FormSetting.tsx';
61
+ export { UseForm, Form, nameToId, useFormField, useFormState, useFormValue, useFormValues, useFormErrors } from './component/form/Form.tsx';
62
+ export type { FormConstraints, FormContextType, FormErrors, FormProps, FormRef, FormState, FormValue, FormValueField } from './component/form/Form.tsx';
63
+ export { default as BaseFormGroup } from './component/form/FormGroup.tsx';
64
+ export { default as BaseFormFieldError } from './component/form/FormFieldError.tsx';
65
+ export type { FormFieldErrorProps as BaseFormFieldErrorProps } from './component/form/FormFieldError.tsx';
66
+ export { default as BaseFormLabel } from './component/form/FormLabel.tsx';
67
+ export { default as BaseFormHelp } from './component/form/FormHelp.tsx';
68
+ export { resolveAttribute } from './component/form/formView.ts';
69
+ export { default as Choice, ChoiceOption, ChoiceGroupOption, SelectOption, SelectGroupOption } from './component/form/Choice.tsx';
70
+ export { default as Collection, CollectionItem, CollectionList, UseCollection, UseCollectionItem } from './component/form/Collection.tsx';
71
+ export type { CollectionContextType, CollectionItemContextType } from './component/form/Collection.tsx';
72
+ export { default as Input } from './component/form/Input.tsx';
73
+ export type { InputProps, FormFieldProps } from './component/form/Input.tsx';
74
+ export type { FormViewType, FormViewErrorType, ChoiceType, ChoiceGroupType, ChoiceUnionType } from './type/FormViewType.tsx';
75
+ export { FormViewTypeEnum } from './type/FormViewType.tsx';
76
+ export { default as BaseLayout } from './layout/default/Base.tsx';
77
+ export { default as MainLayout } from './layout/default/Main.tsx';
78
+ export { UseDataProvider, DataProvider, DataContextProvider, GetData, GetDataByAction, WithDataProvider } from './context/GetData.tsx';
79
+ export type { GetDataType, GetDataProps, GetDataByActionRequestProps } from './context/GetData.tsx';
80
+ export type { ListType } from './type/ListType.tsx';
81
+ export type { ViewType } from './type/ViewType.tsx';
82
+ export type { ListContextPropsType } from './context/ListContext.tsx';
83
+ export type { ListItemContextType } from './context/ListItemContext.tsx';
84
+ export { default as Money } from './component/Money.tsx';
85
+ export { default as Dropdown, DropdownContent, DropdownButton } from './component/Dropdown';
86
+ export { maskEmail, capitalize, titlize } from './helper/StringUtils.tsx';
87
+ export { normalizePathPrefix, addPathPrefix, removePathPrefix } from './helper/PathUtils.ts';
88
+ export { default as LottieAnimation } from './component/LottieAnimation.tsx';
89
+ export { objectRemoveEmpty, objectKeyIntersect, objectKeyDiff } from './helper/ObjectUtils.tsx';
90
+ export type { FormStore, FormSubmission } from './component/form/FormStore.ts';
91
+ export type { ExceptionType } from './type/ExceptionType.tsx';
File without changes